bkg_for_image
- jwst.master_background.expand_to_2d.bkg_for_image(input_data, tab_wavelength, tab_background)[source]
Create a 2-D background for an ImageModel.
- Parameters:
- input_data
ImageModel 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
ImageModel A copy of
input_databut with the data replaced by the background, “expanded” from 1-D to 2-D.
- background