map_to_science_slits

jwst.master_background.nirspec_utils.map_to_science_slits(input_model, master_bkg)[source]

Interpolate 1D master background spectrum to 2D.

The 1D spectrum is projected onto the 2D space of each source slitlet in the input MultiSlitModel.

Parameters:
input_modelMultiSlitModel

The input data model containing all slit instances.

master_bkgCombinedSpecModel

The 1D master background spectrum.

Returns:
output_model: MultiSlitModel

The output data model containing background signal.