update_wcs

sofia_redux.spectroscopy.rectifyorder.update_wcs(result, spatcal)[source]

Update a FITS header with spectral WCS information.

This function assumes that result[‘header’] is a fits.Header, to be updated in place, and that result[‘wave’] and result[‘spatial’] are appropriately populated.

Parameters:
resultdict

Rectified result, as produced by reconstruct_slit.

spatcalnumpy.ndarray of float (nrow, ncol)

Spatial coordinates of each input pixel.