Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the exposure time for skin to sunburn based on the UV index
ResourceFunction["TimeToSunburn"][uvinfo] determines the time to sunburn for a range of skin types based on the UV index information in uvinfo. | |
ResourceFunction["TimeToSunburn"][uvinfo,targetinfo] determines the time to sunburn based on uvinfo and the skin type and SPF details in targetinfo. | |
ResourceFunction["TimeToSunburn"][uvinfo,targetinfo,property] returns the property for targetinfo based on uvinfo. |
"Recommendation" | safety recommendations for maximal UV index |
"Time" | exposure time to sunburn |
Compute the exposure time to sunburn for a UV index of 6 over a range of skin types:
In[1]:= |
Out[1]= |
Find the sunburn time for a specific skin type and SPF 30 sunscreen:
In[2]:= |
Out[2]= |
Calculate time to sunburn in New York City using UV forecasts:
In[3]:= |
Out[3]= |
Obtain safety recommendations for UV indices:
In[4]:= |
Out[4]= |
Compute all properties in a property Association:
In[5]:= |
Out[5]= |
Calculate the time to sunburn based on an input time series:
In[6]:= |
Out[6]= |
Compute the time to sunburn starting at the beginning of the time series:
In[7]:= |
Out[7]= |
Start the exposure time just before peak UV index:
In[8]:= |
Out[8]= |
Limit exposure to a window near maximal exposure:
In[9]:= |
Out[9]= |
Calculate time to sunburn based on forecasts with defined starting and ending times:
In[10]:= |
Out[10]= |
Skin type entities can be used to find many properties of different skin types:
In[11]:= |
Out[11]= |
The UV index should be a positive number or a time series with positive values:
In[12]:= |
Out[12]= |
In[13]:= |
Out[13]= |
SPF values must be integers greater than 0:
In[14]:= |
Out[14]= |
TimeToSunburn returns Missing["NotApplicable"] when the time to sunburn exceeds the UV exposure time:
In[15]:= |
In[16]:= |
Out[16]= |
In[17]:= |
Out[17]= |
This work is licensed under a Creative Commons Attribution 4.0 International License