bkg_for_container
- jwst.master_background.expand_to_2d.bkg_for_container(input_data, tab_wavelength, tab_background, allow_mos=False)[source]
Create a 2-D background for a container object.
- Parameters:
- input_data
AssociationorModelContainer The input science data.
- tab_wavelengthndarray
The
wavelengthcolumn read from the 1-D background table.- tab_backgroundndarray
The
surf_brightcolumn read from the 1-D background table.- allow_mosbool
If
True, NIRSpec MOS data is supported. IfFalse, background is set to 0.0 for any slit marked as exposure type NRS_MSASPEC. This parameter should be set toTrueonly for themaster_background_mosstep in thespec2pipeline; MOS data is not supported via themaster_background stepin thespec3pipeline.
- input_data
- Returns:
- background
ModelContainer A copy of
input_databut with the data replaced by the background, “expanded” from 1-D to 2-D.
- background