View source: R/helper_functions.R
daylength | R Documentation |
Calculates day length (in hours) and the solar elevation above the ecliptic plane based upon latitude and a day of year, and year values. according to H.Glarner (http://herbert.gandraxa.com/length_of_day.xml)
daylength(doy, latitude)
doy |
a vector with doy values 1 - 365(6) |
latitude |
a given latitude |
Due to heterogeneous date formats with years normalized to 365 days I do not apply a leap year correction.
a daylength vector
## Not run:
# calcualte the hours of sunlight and solar elevation on day of year 1
length_of_day = daylength(1, 51, 2000)
print(length_of_day)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.