def absoluteairmass(airmass_relative, pressure=101325.):

    airmass_absolute = airmass_relative * pressure / 101325.

    return airmass_absolute
Determine absolute (pressure corrected) airmass from relative
dataset/ETHPy150Open pvlib/pvlib-python/pvlib/atmosphere.py/absoluteairmass