pvlib.location.Location.get_sun_rise_set_transit#

Location.get_sun_rise_set_transit(times, method='pyephem', **kwargs)[source]#

Calculate sunrise, sunset and transit times.

Parameters:
  • times (DatetimeIndex) – Must be localized to the Location

  • method (str, default 'pyephem') – ‘pyephem’, ‘spa’, or ‘geometric’

  • kwargs – Passed to the relevant functions. See solarposition.sun_rise_set_transit_<method> for details.

Returns:

result (DataFrame) – Column names are: sunrise, sunset, transit.