Description Usage Arguments Value
Calculates incoming SWR using cloud cover, time, latitude and longitude. Calculations taken from the GOTM code. See https://github.com/gotm-model/code Note: For GOTM all inputs have to be in UTC so be sure to switch back to local timezone if working with subdaily data.
1 |
time |
vector; In POSIXct format |
lat |
numeric; Latitude in decimal degrees |
lon |
numeric; Longitude in decimal degrees |
cloud |
vector; Cloud cover values [0-1] which correspond to the times supplied |
daily2hour |
logical; Indicate whether you are converting daily cloud cover data to hourly SWR or hourly cloud cover. Default = FALSE |
If daily2hour = FALSE, then a vector of SWR values are returned corresponding to input time vector. If TRUE, a data.frame with the DateTime and SWR are returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.