The function calculates the zenith angle, the location of the sun as an angle (in degrees) measured from vertical Campbell1998TrenchR.
Usage
zenith_angle(doy, lat, lon, hour, offset = NA)
Value
numeric zenith angle (degrees)
Arguments
doy
numeric day of year (1-366). This can be obtained from standard date via day_of_year.
lat
numeric latitude (decimal degrees).
lon
numeric longitude (decimal degrees).
hour
numeric hour of the day (0-24).
offset
numeric the number of hours to add to UTC (Coordinated Universal Time) to get local time (improves accuracy but not always necessary). Optional. Defaults to NA.
References
See Also
Other utility functions:
airpressure_from_elev(),
azimuth_angle(),
day_of_year(),
daylength(),
dec_angle(),
solar_noon(),
temperature conversions