Learn R Programming

MeTo (version 0.1.1)

dlh: Dayligth hours (N)

Description

Dayligth hours in dependence to latitude.

Usage

dlh(x, lat.rad = NULL, lat.deg = NULL)

Arguments

x

date-time object or day of the year

lat.rad

latitude [rad] (either lat.rad or lat.deg). Latitude is positive for the northern hemisphere and negative for the southern hemisphere

lat.deg

latitude [degree] (either lat.rad or lat.deg). Latitude is positive for the northern hemisphere and negative for the southern hemisphere

Details

References

Allen, R. G., Pereira, L. S., Raes, D., & Smith, M. (1998). Crop evapotranspiration-Guidelines for computing crop water requirements-FAO Irrigation and drainage paper 56. FAO, Rome, 300(9).

Examples

Run this code
# NOT RUN {
dlh(x = 105, lat.deg = 13.73)
dlh(x = 105, lat.rad = 0.283)
dlh(x = as.Date('2018-04-15'), lat.deg = 13.73)
# }

Run the code above in your browser using DataLab