pvlib.solarpositionΒΆ

Calculate the solar position using a variety of methods/packages.

Functions

calc_time(lower_bound, upper_bound, ...[, ...]) Calculate the time between lower_bound and upper_bound where the attribute is equal to value.
ephemeris(time, latitude, longitude[, ...]) Python-native solar position calculator.
get_solarposition(time, latitude, longitude) A convenience wrapper for the solar position calculators.
get_sun_rise_set_transit(time, latitude, ...) Calculate the sunrise, sunset, and sun transit times using the NREL SPA algorithm described in [1].
nrel_earthsun_distance(time[, how, delta_t, ...]) Calculates the distance from the earth to the sun using the NREL SPA algorithm described in [1].
pyephem(time, latitude, longitude[, ...]) Calculate the solar position using the PyEphem package.
pyephem_earthsun_distance(time) Calculates the distance from the earth to the sun using pyephem.
spa_c(time, latitude, longitude[, pressure, ...]) Calculate the solar position using the C implementation of the NREL
spa_python(time, latitude, longitude[, ...]) Calculate the solar position using a python implementation of the NREL SPA algorithm described in [1].