nsrdb.solar_position.solpos.SolPos

class SolPos(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

apparent_elevation

Refracted solar elevation angle

azimuth

Solar azimuth angle

elevation

Solar elevation angle

latitude

Latitudes of site(s)

longitude

longitude of site(s)

time_index

Datetime stamp(s) of interest

zenith

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