Professional Documents
Culture Documents
Here, longitude and hour angle are in degrees, and the equation of time is in
minutes.
The equation of time is defined as E = GHA (apparent Sun) - GHA (mean Sun). GHA is the Greenwich ho
The term sunrise time refers to the time when the sun first appears or when daylight has arrived. Similarly, we define
sunset time as the moment when the sun disappears below the horizon. For a given location having latitude ϕ and
nth day of the year, we can estimate the sunrise time using the hour angle for sunrise/sunset, ω.
where:
We take this angle as it is for the sunset while we subtract it from 360° to find the sunrise. The declination angle is
the angle between the equator and the line joining centers of the Earth and the Sun. The angle of declination
varies with each day, n such that:
δ=arcsin(0.39872⋅sin(L))
where L is the true latitude of the Sun (its projected position on the Earth). Note that there are multiple ways to
calculate the Sun's declination.
In our case, we calculated it from L, with L being given by:
L=M+1.916sin(M)+0.02sin(2⋅M)+282.634
L=M+1.916sin(M)+0.02sin(2⋅M)+282.634
M is a measure of the Sun's mean anomaly, a quantity that expresses the discrepancy between the true elliptic orbit of
Earth and the ideal circular orbit with an identical period for a given moment of the year:
M=0.9856⋅t−3.289
The value of t depends on the day number (the number of days elapsed since the first of January) and the time of
the day:
The second part of both equations is an approximation of the local sunrise and sunset times. In the formula, λhour is
nothing but an expression of the latitude in hours. To find it, divide the value of the latitude in degrees by 15.
Once we have the hour (angle for sunrise), ω, we can calculate the local time of the sunrise and sunset by applying
the following formula:
T=15ω+RA−(0.06571⋅t)−6.622
Back to business: we need to adjust the times we calculated, taking into account the local latitude and the time zone. To
do so, we subtract the former and add the latter:
Tlocal=T−λh+tz
While the above methodology is correct, it does not consider atmospheric refraction. This effect occurs due to
the sunlight refracting through the atmosphere and making the sun appear higher above the horizon than its
actual position. A small angle is included in the sunrise and sunset formula to take this phenomenon into account.
Therefore, the corrected sunset and sunrise equation is: