chaosmagpy.coordinate_utils.zenith_angle

chaosmagpy.coordinate_utils.zenith_angle(time, theta, phi)[source]

Compute the solar zenith angle.

Parameters
timendarray, shape (…)

Time in modified Julian date.

thetandarray, shape (…)

Colatitude in degrees.

phindarray, shape (…)

Longitude in degrees.

Returns
zetandarray, shape (…)

Zenith angle in degrees \([0^\circ, 180^\circ]\) (angle between the local zenith and the center of the solar disc). Solar elevation angle is then computed by \(90^\circ - \theta_\mathrm{zenith}\).