Module spa

Module spa 

Source
Expand description

SPA algorithm implementation.

High-accuracy solar positioning based on the NREL algorithm by Reda & Andreas (2003). Accuracy: ±0.0003° for years -2000 to 6000.

Reference: Reda, I.; Andreas, A. (2003). Solar position algorithm for solar radiation applications. Solar Energy, 76(5), 577-589. DOI: http://dx.doi.org/10.1016/j.solener.2003.12.003

Modules§

coefficients
SPA algorithm coefficient tables.

Structs§

SpaTimeDependent
Time-dependent intermediate values from SPA calculation (steps 1-11).

Functions§

solar_positionchrono
Calculate solar position using the SPA algorithm.
solar_position_from_julian
Calculate solar position from a Julian date.
spa_time_dependent_from_julian
Calculate time-dependent parts of SPA from a Julian date.
spa_time_dependent_partschrono
Extract expensive time-dependent parts of SPA calculation (steps 1-11).
spa_with_time_dependent_parts
Complete SPA calculation using pre-computed time-dependent parts (steps 12+).
sunrise_sunsetchrono
Calculate sunrise, solar transit, and sunset times using the SPA algorithm.
sunrise_sunset_for_horizonchrono
Calculate sunrise, solar transit, and sunset times for a specific horizon type.
sunrise_sunset_multiplechrono
Calculate sunrise/sunset times for multiple horizons efficiently.
sunrise_sunset_utc
Calculate sunrise/sunset times without chrono dependency.
sunrise_sunset_utc_for_horizon
Calculate sunrise, solar transit, and sunset times for a specific horizon type.