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.
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.
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/