bkg_for_ifu_image
- jwst.master_background.expand_to_2d.bkg_for_ifu_image(input_data, tab_wavelength, tab_background)[source]
Create a 2-D background for an IFUImageModel.
- Parameters:
- input_data
IFUImageModel 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.
- input_data
- Returns:
- background
IFUImageModel A copy of
input_databut with the data replaced by the background, “expanded” from 1-D to 2-D. The DQ flags are set to DO_NOT_USE for the pixels outside the region provided in the X1D background wavelength table.
- background