daylength: Day Length

View source: R/UtilityFunctions.R

daylengthR Documentation

Day Length

Description

The function calculates daylength in hours as a function of latitude and day of year. Uses the CMB model \insertCiteCampbell1998TrenchR.

Usage

daylength(lat, doy)

Arguments

lat

numeric latitude (decimal degrees).

doy

numeric day of year (1-366). This can be obtained from standard date via day_of_year.

Value

numeric day length (hours).

References

\insertAllCited

See Also

Other utility functions: airpressure_from_elev(), azimuth_angle(), day_of_year(), dec_angle(), solar_noon(), temperature conversions, zenith_angle()

Examples

  daylength(lat = 47.61, 
            doy = 112)


TrenchR documentation built on Sept. 14, 2023, 1:07 a.m.