Solar position algorithms

Solar position algorithms#

Functions to compute sun positions for the specified times and location. All functions return solar zenith, elevation, and azimuth angles. Algorithms that include an atmospheric refraction model also return “apparent” (refraction-corrected) values.

solarposition.iqbal(times, latitude, longitude)

Calculate solar position using the Iqbal algorithm.

solarposition.michalsky(times, latitude, ...)

Calculate solar position using the Michalsky algorithm.

solarposition.nasa_horizons(latitude, ...[, ...])

Retrieve solar positions from NASA's Horizons web service.

solarposition.noaa(times, latitude, longitude, *)

Calculate solar position using the NOAA algorithm.

solarposition.psa(times, latitude, longitude, *)

Calculate solar position using the PSA algorithm.

solarposition.sg2(times, latitude, longitude)

Calculate solar position using the SG2 algorithm.

solarposition.sg2_c(times, latitude, longitude)

Calculate solar position using the SG2 Python package.

solarposition.skyfield(times, latitude, ...)

Calculate solar position using the Skyfield Python package.

solarposition.spa(time, latitude, longitude)

Calculate the solar position using a python implementation of the NREL SPA algorithm.

solarposition.usno(times, latitude, longitude, *)

Calculate solar position using the USNO algorithm.

solarposition.walraven(times, latitude, ...)

Calculate solar position using the Walraven algorithm.