Description Usage Arguments Value Author(s) Examples
View source: R/utilSolarTime.R
Compute the Day-length in hours for given time and coordinates
1 | computeDayLengthDoy(doy, latDeg)
|
doy |
integer vector with day of year [DoY, 1..366], same length as Hour or length 1 |
latDeg |
Latitude in (decimal) degrees |
numeric vector of length(doy) giving the time between sunrise and sunset in hours
Thomas Wutzler
1 2 3 4 5 | doy <- 1:366
plot( computeDayLengthDoy(doy, latDeg = 51) ~ doy)
# north pole: daylength 0 and 24 hours
plot( computeDayLengthDoy( doy, latDeg = +80) ~ doy )
plot( computeDayLengthDoy( doy, latDeg = -80) ~ doy )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.