pvlib.atmosphere.get_relative_airmass#

pvlib.atmosphere.get_relative_airmass(zenith, model='kastenyoung1989')[source]#

Calculate relative (not pressure-adjusted) airmass at sea level.

Parameter model allows selection of different airmass models.

Parameters:
  • zenith (numeric) – Zenith angle of the sun. [degrees]

  • model (string, default 'kastenyoung1989') –

    Available models include the following:

    • ’simple’ - secant(apparent zenith angle) - Note that this gives -Inf at zenith=90

    • ’kasten1966’ - See reference [1] - requires apparent sun zenith

    • ’youngirvine1967’ - See reference [2] - requires true sun zenith

    • ’kastenyoung1989’ (default) - See reference [3] - requires apparent sun zenith

    • ’gueymard1993’ - See reference [4] - requires apparent sun zenith

    • ’young1994’ - See reference [5] - requires true sun zenith

    • ’pickering2002’ - See reference [6] - requires apparent sun zenith

    • ’gueymard2003’ - See references [7] and [8] - requires apparent sun zenith

Returns:

airmass_relative (numeric) – Relative airmass at sea level. Returns NaN values for any zenith angle greater than 90 degrees. [unitless]

Notes

Some models use apparent (refraction-adjusted) zenith angle while other models use true (not refraction-adjusted) zenith angle. Apparent zenith angles should be calculated at sea level.

References

Examples using pvlib.atmosphere.get_relative_airmass#

Modelling shading losses in modules with bypass diodes

Modelling shading losses in modules with bypass diodes

Modeling Spectral Irradiance

Modeling Spectral Irradiance

Spectral Mismatch Estimation

Spectral Mismatch Estimation

Average Photon Energy Calculation

Average Photon Energy Calculation