Atmospheric extinction is applied to the star spectrum:
with is the atmospheric extinction coefficient in function of the wavelength and airmass the airmass factor.