Relative AirmassΒΆ

How do the various relative airmass models compare?

relative airmass
import pvlib
import numpy as np
import matplotlib.pyplot as plt

models = ['simple', 'kasten1966', 'youngirvine1967', 'kastenyoung1989',
          'gueymard1993', 'young1994', 'pickering2002']

zenith = np.linspace(0, 88, 1000)

for model in models:
    am = pvlib.atmosphere.get_relative_airmass(zenith, model)
    plt.plot(zenith, am, label=model)

plt.legend()
plt.xlabel('solar zenith [degrees]')
plt.ylabel('relative airmass [-]')
plt.yscale('log')
plt.show()

Total running time of the script: ( 0 minutes 0.610 seconds)

Gallery generated by Sphinx-Gallery