apply_atran

sofia_redux.instruments.fifi_ls.telluric_correct.apply_atran(hdul, atran, narrow=False, cutoff=0.6, skip_corr=False, unsmoothed=None, hdr_ovr=False, restwav=0.0, redshift=0.0)[source]

Apply transmission data to data in an HDUList.

Parameters:
hdulfits.HDUList
atrannumpy.ndarray

(2, nwave) where [0, :] = wavelength and [1, :] = transmission

narrowbool, optional

The telluric correction value at the rest wave lenght will be used for the complete cube. Only suitable for certain observations.

cutofffloat, optional

Used as the fractional transmission below which data will be set to NaN. Set to 0 to keep all data.

skip_corrbool, optional

If set, telluric correction will not be applied, but ATRAN spectra will still be attached to the output file.

unsmoothednumpy.ndarray, optional

Unsmoothed transmission to attach to output file. (2, nwave) where [0, :] = wavelength and [1, :] = transmission

hdr_ovrbool, optional

If set, rest wave length and z are not taken from FITS header (as they might not be available in older observations), but provided manually.

restwavfloat, optionl

Rest wave length of observed line for narrow line mode. Only used if hrd_ovr is set

redshiftfloat, optionl

Redhift z of observed line for narrow line mode. Only used if hrd_ovr is set

Returns:
fits.HDUList