The function calculates the zenith angle, the location of the sun as an angle (in degrees) measured from vertical (Campbell and Norman 1998) .
zenith_angle(doy, lat, lon, hour, offset = NA)
numeric
day of year (1-366). This can be obtained from standard date via day_of_year
.
numeric
latitude (decimal degrees).
numeric
longitude (decimal degrees).
numeric
hour of the day (0-24).
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.
numeric
zenith angle (degrees)
Campbell GS, Norman JM (1998). Introduction to environmental biophysics, 2nd ed. edition. Springer, New York. ISBN 0387949372.
Other utility functions:
airpressure_from_elev()
,
azimuth_angle()
,
day_of_year()
,
daylength()
,
dec_angle()
,
solar_noon()
,
temperature conversions
zenith_angle(doy = 112,
lat = 47.61,
lon = -122.33,
hour = 12)
#> [1] 35.71846