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§
- SpaTime
Dependent - Time-dependent intermediate values from SPA calculation (steps 1-11).
Functions§
- solar_
position chrono - 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_ parts chrono - 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_
sunset chrono - Calculate sunrise, solar transit, and sunset times using the SPA algorithm.
- sunrise_
sunset_ for_ horizon chrono - Calculate sunrise, solar transit, and sunset times for a specific horizon type.
- sunrise_
sunset_ multiple chrono - 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.