Solar Position#
Functions and methods for calculating solar position.
The location.Location.get_solarposition()
method and the
solarposition.get_solarposition()
function with default
parameters are fast and accurate. We recommend using these functions
unless you know that you need a different function.
|
Uses the |
|
A convenience wrapper for the solar position calculators. |
|
Calculate the solar position using a python implementation of the NREL SPA algorithm. |
|
Python-native solar position calculator. |
|
Calculate the solar position using the PyEphem package. |
|
Calculate the solar position using the C implementation of the NREL SPA code. |
Additional functions for quantities closely related to solar position.
|
Calculate the time between lower_bound and upper_bound where the attribute is equal to value. |
Calculates the distance from the earth to the sun using pyephem. |
|
|
Calculates the distance from the earth to the sun using the NREL SPA algorithm. |
|
Calculate the difference between Terrestrial Dynamical Time (TD) and Universal Time (UT). |
Functions for calculating sunrise, sunset and transit times.
Calculate sunrise, sunset and transit times. |
|
Calculate the next sunrise and sunset times using the PyEphem package. |
|
Calculate the sunrise, sunset, and sun transit times using the NREL SPA algorithm. |
|
Geometric calculation of solar sunrise, sunset, and transit. |
The spa module contains the implementation of the built-in NREL SPA algorithm.
Calculate the solar position using the NREL SPA algorithm either using numpy arrays or compiling the code to machine language with numba. |
Correlations and analytical expressions for low precision solar position calculations.
Analytical expression of solar zenith angle based on spherical trigonometry. |
|
Analytical expression of solar azimuth angle based on spherical trigonometry. |
|
|
Solar declination from Duffie & Beckman and attributed to Spencer (1971) and Iqbal (1983). |
|
Solar declination from Duffie & Beckman and attributed to Cooper (1969). |
Equation of time from Duffie & Beckman and attributed to Spencer (1971) and Iqbal (1983). |
|
|
Equation of time from PVCDROM. |
|
Hour angle in local solar time. |