Details
uvinfo specifies the UV index for the calculations and should be an
Association with one of the keys
"UVIndex" or
"Location".
"UVIndex" can be a non-negative number for a static UV index or a non-negative
TimeSeries representing the UV index over a period of time.
"Location" can be a
GeoPosition or
Entity and is used to retrieve a recent UV forecast for a location.
With "Location" or
TimeSeries input a "StartTime" and "EndTime" can be provided. The time provided should be a
DateObject or
DateList. If they are not provided, then the start time is assumed to be the current time with an end time encompassing the next day.
targetinfo provides information on the subject of the UV exposure and should be an
Association with one or more of the keys
"SkinType" or
"SPF".
"SkinType" can be an integer between 1 and 6 or a
"SkinType" Entity.
"SPF" is the solar protection factor and must be an integer greater than or equal to 1.
If a
"SkinType" is not specified, then an
Association of time to sunburn for the six supported skin types will be returned.
If "SPF" is not provided, it is assumed to be equal to 1.
ResourceFunction["TimeToSunburn"] takes the following properties:
| "Recommendation" | safety recommendations for maximal UV index |
| "Time" | exposure time to sunburn |
By default,
ResourceFunction["TimeToSunburn"] returns
"Time". It will also take the property argument
"PropertyAssociation" to return an
Association of the properties.
"Recommendation" uses the maximum UV index in a time series or forecast.