fixed_rectified_slit_header

msaexp.utils.fixed_rectified_slit_header(slit_wcs, rectified_wcs)[source]

Merge 2D WCS header from a slit WCS to a rectified WCS, e.g., from build_slit_centered_wcs.

Something gets lost in the transformation of the latter, so assume the slit_wcs is correct, derive the cross-dispersion WCS based on the slit_frame coordinate frame there and then propagate to the rectified_wcs.

Parameters
slit_wcsgwcs.wcs.WCS

WCS object of a slitlet

rectified_wcsgwcs.wcs.WCS

Rectified WCS

Returns
headerHeader

Fits header with spectral WCS.