Skip to contents

Calculates the cosine of the solar zenith angle based on the given parameters. This angle is crucial in determining the amount of solar radiation reaching a point on Earth.

Usage

cos_solar_zenith_angle(doy, lat, lon, dt, hr)

Arguments

doy

Day of year. Integer representing the day of the year (1-365).

lat

Latitude in degrees. Positive for the Northern Hemisphere and negative for the Southern Hemisphere.

lon

Longitude in degrees. Positive for East and negative for West.

dt

Time interval in seconds. Represents the duration over which the measurement is averaged or integrated.

hr

Hour of the day (0-23). Specifies the specific hour for which the calculation is made.

Value

Numeric value representing the cosine of the solar zenith angle.

Details

For explanations of formulae, see https://web.archive.org/web/20180307133425/http://www.itacanet.org/the-sun-as-a-source-of-energy/part-3-calculating-solar-angles/

References

"Understanding Solar Position and Solar Radiation" - RAMMB: [Link](https://rammb.cira.colostate.edu/wmovl/vrl/tutorials/euromet/courses/english/nwp/n5720/n5720005.htm)

Author

Alexey Shiklomanov

Examples

cos_solar_zenith_angle(doy = 150, lat = 45, lon = -93, dt = 3600, hr = 12)
#> [1] 0.3198601