pvlib.solarposition.pyephem#
- pvlib.solarposition.pyephem(time, latitude, longitude, altitude=0, pressure=101325, temperature=12, horizon='+0:00')[source]#
Calculate the solar position using the PyEphem package.
- Parameters:
time (pandas.DatetimeIndex) – Must be localized or UTC will be assumed.
latitude (float) – Latitude in decimal degrees. Positive north of equator, negative to south.
longitude (float) – Longitude in decimal degrees. Positive east of prime meridian, negative to west.
altitude (float, default 0) – Height above sea level in meters. [m]
pressure (int or float, optional, default 101325) – air pressure in Pascals.
temperature (int or float, optional, default 12) – air temperature in degrees C.
horizon (string, optional, default '+0:00') – arc degrees:arc minutes from geometrical horizon for sunrise and sunset, e.g., horizon=’+0:00’ to use sun center crossing the geometrical horizon to define sunrise and sunset, horizon=’-0:34’ for when the sun’s upper edge crosses the geometrical horizon
- Returns:
pandas.DataFrame – index is the same as input time argument The DataFrame will have the following columns: apparent_elevation, elevation, apparent_azimuth, azimuth, apparent_zenith, zenith.
See also