separate_oned_spectra#

niriss_tools.pipeline.separate_oned_spectra(mb, tfit=None)[source]#

Extract 1D spectra for each grism, e.g. GR150R/GR150C.

The standard 1D spectra derived by grizli combine all position angles and grisms. This allows the output to be used directly with codes such as jwstwfss/line-finding (Nedkova+26).

Parameters:
mbMultiBeam

The grizli-extracted multiple beams object.

tfitdict or None

Dictionary of fit results (templates, coefficients, etc) from template_at_z.

Returns:
fits.HDUList

FITS version of the 1D spectrum tables.