Compute daylength (photoperiod) for a latitude and date.
Usage
daylength(lat, doy)
Value
Daylength in hours
Arguments
lat
latitude, in degrees. I.e. between -90.0 and 90.0
doy
integer, day of the year (1..365) for common (non-leap) years; or an object of class Date; or a character that can be coerced into a date, using 'yyyy-mm-dd' format, e.g. '1982-11-23'
Author
Robert J. Hijmans
References
Forsythe, William C., Edward J. Rykiel Jr., Randal S. Stahl, Hsin-i Wu and Robert M. Schoolfield, 1995. A model comparison for daylength as a function of latitude and day of the year. Ecological Modeling 80:87-95.