rex.utilities.solar_position.SolarPosition
- class SolarPosition(time_index, lat_lon)[source]
Bases:
object
Class to compute solar position for time(s) and site(s) Based off of SAM Solar Position Function: https://github.com/NREL/ssc/blob/develop/shared/lib_irradproc.cpp
- Parameters:
time_index (ndarray | pandas.DatetimeIndex | str) – Datetime stamps of interest
lat_lon (ndarray) – (latitude, longitude) for site(s) of interest
Methods
Attributes
Refracted solar elevation angle
Solar azimuth angle
Solar elevation angle
Latitudes of site(s)
longitude of site(s)
Datetime stamp(s) of interest
Solar zenith angle
- property time_index
Datetime stamp(s) of interest
- Returns:
time_index (pandas.DatetimeIndex)
- property latitude
Latitudes of site(s)
- Returns:
lat (ndarray)
- property longitude
longitude of site(s)
- Returns:
lon (ndarray)
- property azimuth
Solar azimuth angle
- Returns:
azimuth (ndarray) – Solar azimuth angle in degrees
- property elevation
Solar elevation angle
- Returns:
elevation (ndarray) – Solar elevation angle in degrees
- property apparent_elevation
Refracted solar elevation angle
- Returns:
elevation (ndarray) – Solar elevation angle in degrees
- property zenith
Solar zenith angle
- Returns:
zenith (ndarray) – Solar zenith angle in degrees