opacity_from_atten#

pycraf.atm.opacity_from_atten(atten, elev=None)[source]#

Atmospheric opacity derived from attenuation.

Parameters:
attenQuantity

Atmospheric attenuation [dB or dimless]

elevQuantity, optional

Elevation [deg] If not None, this is used to correct for the Airmass (via airmass_from_elevation; AM = 1 / sin(elev)), which means that the zenith opacity is inferred.

Returns:
tauQuantity

Atmospheric opacity [dimless aka neper]