daylengths: Calculate daily lengths of day for a given latitude.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/fire_index_functions.r

Description

Calculates a vector of length 366 containing the number of hours the sun was above the horizon for each day of the year.

Usage

1
daylengths(latitude)

Arguments

latitude

Latitude of site, southern latitudes take negative values.

Details

This is an approximate function, and day lengths are calculated to a resolution of approximately 2 minutes.

Value

A vector of day lengths in hours.

Author(s)

Grant Williamson

See Also

dayintegral,hourwatt,sunaltitude

Examples

1
2
3
latitude = -42
l=daylengths(latitude)
plot(l,type="l")

ozjimbob/ecbtools documentation built on Jan. 18, 2021, 7:39 p.m.