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_dataIFUImageModel

The input science data.

tab_wavelengthndarray

The wavelength column read from the 1-D background table.

tab_backgroundndarray

The surf_bright column read from the 1-D background table.

Returns:
backgroundIFUImageModel

A copy of input_data but 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.