Solar Noon, Sunrise, Sunset, and Daylength
The angle between the line from an observer on the earth to the sun and a vertical line extending upward from the observer is called the zenith angle, θz (Figure 1:1-1). Solar noon occurs when this angle is at its minimum value for the day.

For a given geographical position, the relationship between the sun and a horizontal surface on the earth's surface is:
cosθz=sinδsinϕ+cosδcosϕcosωt 1:1.1.3
where δ is the solar declination in radians, ϕ is the geographic latitude in radians, ω is the angular velocity of the earth's rotation (0.2618 rad h−1 or 15˚ h−1 ), and t is the solar hour. t equals zero at solar noon, is a positive value in the morning, and is a negative value in the evening. The combined term ωt is referred to as the hour angle.
Sunrise, TSR, and sunset, TSS, occur at equal times before and after solar noon. These times can be determined by rearranging the above equation as:
TSR=+(cos−1[−tanδtanϕ]/ω) 1:1.1.4
and
TSS=−(cos−1[−tanδtanϕ]/ω) 1:1.1.5
Total daylength, TDL is calculated:
TDL=(2cos−1[−1tanδtanϕ]/ω) 1:1.1.6
At latitudes above 66.5°or below −66.5°, the absolute value of [ tanδtanϕ ] can exceed 1 and the above equation cannot be used. When this happens, there is either no sunrise (winter) or no sunset (summer) and TDL must be assigned a value of 0 or 24 hours, respectively.
To determine the minimum daylength that will occur during the year, equation 1:1.1.6 is solved with the solar declination set to −23.5° (-0.4102 radians) for the northern hemisphere or +23.5° (0.4102 radians) for the southern hemisphere.
The only SWAT+ input variable used in the calculations reviewed in Section 1:1.1 is given in Table 1:1-1.
Table 1:1-1: SWAT+ input variables that are used in earth-sun relationship calculations.
Variable Name
Definition
File Name
SUB_LAT
Latitude of the subbasin (degrees).
.sub
Last updated