Module spa

Module spa 

Source
Expand description

SPA (Solar Position Algorithm) implementation.

High-accuracy solar positioning based on the NREL algorithm by Reda & Andreas (2003). Provides uncertainties of ±0.0003 degrees for years -2000 to 6000.

Modules§

coefficients
SPA algorithm coefficient tables.

Functions§

solar_position
Calculate solar position using the SPA algorithm.
solar_position_no_refraction
Calculate solar position using the SPA algorithm without refraction correction.
sunrise_sunset
Calculate sunrise, solar transit, and sunset times using the SPA algorithm.
sunrise_sunset_for_horizon
Calculate sunrise, solar transit, and sunset times for a specific horizon type.
sunrise_sunset_multiple
Calculate sunrise/sunset times for multiple horizons efficiently.