AirmassCor

pydis.AirmassCor(obj_wave, obj_flux, airmass, airmass_file='apoextinct.dat')[source]

Correct the spectrum based on the airmass

Parameters
obj_wave1-d array

The 1-d wavelength array of the spectrum

obj_flux1-d or 2-d array

The 1-d or 2-d flux array of the spectrum

airmassfloat

The value of the airmass, not the header keyword.

airmass_filestr, {‘apoextinct.dat’, ‘ctioextinct.dat’, ‘kpnoextinct.dat’, ‘ormextinct.dat’}

The name of the airmass extinction file. This routine assumes the file is stored in the resources/extinction/ subdirectory. Available files are (Default is apoextinct.dat)

Returns
The flux array