apply_response#

sofia_redux.instruments.fifi_ls.flux_calibrate.apply_response(hdul, response)[source]#

Apply response data to data in an HDUList.

Parameters:
hdulfits.HDUList
responsenumpy.ndarray

(3, nwave) where [0, :] = wavelength and [1, :] = response data, and [2, :] = response error.

Returns:
fits.HDUList

Notes

Uncertainties of the measured flux (statistical error) and the response curve (systematic error) are propagated separately. The measurement error is saved to the ‘STDDEV’ extension, and the relative calibration error is saved to the ‘RELATIVE_RESPONSE_ERROR’ extension.