longslit_header_from_wcs

msaexp.utils.longslit_header_from_wcs(wcs)[source]

Generate a FITS-compliant long-slit header from a NIRSpec spectral WCS

Parameters
wcsgwcs.wcs.WCS

Spectral WCS, with minimal transforms detector and world

Returns
headerHeader

WCS header following the FITS WCS Paper II standard.