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_model
MultiSlitModel The input data model containing all slit instances.
- master_bkg
CombinedSpecModel The 1D master background spectrum.
- input_model
- Returns:
- output_model:
MultiSlitModel The output data model containing background signal.
- output_model: