Location.get_solarposition(times, pressure=None, temperature=12, **kwargs)[source]

Uses the solarposition.get_solarposition() function to calculate the solar zenith, azimuth, etc. at this location.

  • times (pandas.DatetimeIndex) – Must be localized or UTC will be assumed.
  • pressure (None, float, or array-like, default None) – If None, pressure will be calculated using atmosphere.alt2pres() and self.altitude.
  • temperature (None, float, or array-like, default 12) –
  • kwargs – passed to solarposition.get_solarposition()

solar_position (DataFrame) – Columns depend on the method kwarg, but always include zenith and azimuth.

Examples using pvlib.location.Location.get_solarposition