# Solar zenith angle

The solar zenith angle is the zenith angle of the sun, i.e., the angle between the sun’s rays and the vertical direction. It is the complement to the solar altitude or solar elevation, which is the altitude angle or elevation angle between the sun’s rays and a horizontal plane. At solar noon, the zenith angle is at a minimum and is equal to latitude minus solar declination angle. This is the basis by which ancient mariners navigated the oceans.
Solar zenith angle is normally used in combination with the solar azimuth angle to determine the position of the Sun as observed from a given location on the surface of the Earth.

## Formula

$\cos \theta _{s}=\sin \alpha _{s}=\sin \Phi \sin \delta +\cos \Phi \cos \delta \cos h$
where
* $\theta _{s}$ is the solar zenith angle
* $\alpha _{s}$ is the solar altitude angle, $\alpha _{s}=90^{\circ }-\theta _{s}$
* $h$ is the hour angle, in the local solar time.
* $\delta$ is the current declination of the Sun
* $\Phi$ is the local latitude.

## Derivation of the formula using the subsolar point and vector analysis

While the formula can be derived by applying the cosine law to the zenith-pole-Sun spherical triangle, the spherical trigonometry is a relatively esoteric subject.
By introducing the coordinates of the subsolar point and using vector analysis, the formula can be obtained straightforward without incurring the use of spherical trigonometry.
In the Earth-Centered Earth-Fixed (ECEF) geocentric Cartesian coordinate system, let $(\phi _{s},\lambda _{s})$ and $(\phi _{o},\lambda _{o})$ be the latitudes and longitudes, or coordinates, of the subsolar point and the observer's point, then the upward-pointing unit vectors at the two points, $\mathbf {S}$ and $\mathbf {V} _{oz}$, are
$\mathbf {S} =\cos \phi _{s}\cos \lambda _{s}{\mathbf {i} }+\cos \phi _{s}\sin \lambda _{s}{\mathbf {j} }+\sin \phi _{s}{\mathbf {k} },$ $\mathbf {V} _{oz}=\cos \phi _{o}\cos \lambda _{o}{\mathbf {i} }+\cos \phi _{o}\sin \lambda _{o}{\mathbf {j} }+\sin \phi _{o}{\mathbf {k} }.$
where ${\mathbf {i} }$, ${\mathbf {j} }$ and ${\mathbf {k} }$ are the basis vectors in the ECEF coordinate system.
Now the cosine of the solar zenith angle, $\theta _{s}$, is simply the dot product of the above two vectors
$\cos \theta _{s}=\mathbf {S} \cdot \mathbf {V} _{oz}=\sin \phi _{o}\sin \phi _{s}+\cos \phi _{o}\cos \phi _{s}\cos(\lambda _{s}-\lambda _{o}).$
Note that $\phi _{s}$ is the same as $\delta$, the declination of the Sun, and $\lambda _{s}-\lambda _{o}$ is equivalent to $-h$, where $h$ is the hour angle defined earlier. So the above format is mathematically identical to the one given earlier.
Additionally, Ref. also derived the formula for solar azimuth angle in a similar fashion without using spherical trigonometry.

### Minimum and Maximum

At any given location on any given day, the solar zenith angle, $\theta _{s}$, reaches its minimum, $\theta _{\text{min}}$, at local solar noon when the hour angle $h=0$, or $\lambda _{s}-\lambda _{o}=0$, namely, $\cos \theta _{\text{min}}=\cos(|\phi _{o}-\phi _{s}|)$, or $\theta _{\text{min}}=|\phi _{o}-\phi _{s}|$. If $\theta _{\text{min}}>90^{\circ }$, it is polar night.
And at any given location on any given day, the solar zenith angle, $\theta _{s}$, reaches its maximum, $\theta _{\text{max}}$, at local midnight when the hour angle $h=-180^{\circ }$, or $\lambda _{s}-\lambda _{o}=-180^{\circ }$, namely, $\cos \theta _{\text{max}}=\cos(180^{\circ }-|\phi _{o}+\phi _{s}|)$, or $\theta _{\text{max}}=180^{\circ }-|\phi _{o}+\phi _{s}|$. If $\theta _{\text{max}}<90^{\circ }$, it is polar day.

### Caveats

The calculated values are approximations due to the distinction between common/geodetic latitude and geocentric latitude. However, the two values differ by less than 12 minutes of arc, which is less than the apparent angular radius of the sun.
The formula also neglects the effect of atmospheric refraction.

## Applications
### Sunrise/Sunset

Sunset and sunrise occur (approximately) when the zenith angle is 90°, where the hour angle h$_0$ satisfies $\cos h_{0}=-\tan \Phi \tan \delta .$
Precise times of sunset and sunrise occur when the upper limb of the Sun appears, as refracted by the atmosphere, to be on the horizon.

### Albedo

A weighted daily average zenith angle, used in computing the local albedo of the Earth, is given by ${\overline {\cos \theta _{s}}}={\frac {\displaystyle \int _{-h_{0}}^{h_{0}}Q\cos \theta _{s}\,{\text{d}}h}{\displaystyle \int _{-h_{0}}^{h_{0}}Q\,{\text{d}}h}}$ where Q is the instantaneous irradiance.

### Summary of special angles

For example, the solar elevation angle is:
* 90° at the subsolar point, which occurs, for example, at the equator on a day of equinox at solar noon
* near 0° at the sunset or at the sunrise
* between −90° and 0° during the night (midnight)
An exact calculation is given in position of the Sun. Other approximations exist elsewhere.