ipc_convolve

jwst.ipc.ipc_corr.ipc_convolve(output_data, kernel, nref)[source]

Convolve the science data with the IPC kernel.

Parameters:
output_datandarray

A copy of the 2-D input science data for one group; this will be modified in-place.

kernelndarray

The IPC kernel (2-D or 4-D); the input is corrected for IPC by convolving with this array. If it is 4-D, the last two dimensions will be a slice that matches the last two dimensions of output_data.

nrefnamedtuple

Tuple containing number of reference pixels at each edge:

bottom_rowsint

The number of reference rows at the bottom of the image.

top_rowsint

The number of reference rows at the top of the image.

left_columnsint

The number of reference columns at the left edge.

right_columnsint

The number of reference columns at the right edge.