pvlib.location.Location.get_airmass#

Location.get_airmass(times=None, solar_position=None, model='kastenyoung1989')[source]#

Calculate the relative and absolute airmass.

Automatically chooses zenith or apparant zenith depending on the selected model.

Parameters
  • times (DatetimeIndex, optional) – Only used if solar_position is not provided.

  • solar_position (DataFrame, optional) – DataFrame with columns ‘apparent_zenith’, ‘zenith’.

  • model (str, default 'kastenyoung1989') – Relative airmass model. See pvlib.atmosphere.get_relative_airmass() for a list of available models.

Returns

airmass (DataFrame) – Columns are ‘airmass_relative’, ‘airmass_absolute’