daylight_hours: Compute the daylight hours.

View source: R/cdtClimate_Variables_functions.R

daylight_hoursR Documentation

Compute the daylight hours.

Description

Compute the daylight hours for different latitudes.

Usage

daylight_hours(lat, dates)

Arguments

lat

numeric, a vector of the latitude of the points where the daylight hours will be calculated.

dates

character, a vector of dates in the form of YYYYMMDD.

Value

Returns a matrix, where the column represent the latitude and the row the date.

References

Allen, R.G., Pereira, L.S., Raes, D., and Smith, M. 1998. Crop evapotranspiration: Guidelines for computing crop requirements. Irrigation and Drainage PaperNo. 56, FAO, Rome, Italy 300 p.


rijaf-iri/CDT documentation built on July 3, 2024, 2:54 a.m.