interp_array

jwst.wfs_combine.wfs_combine.interp_array(sci_data, dq_data, n_size)[source]

Bilinear interpolation over the SCI values.

For bad DQ values as given by the input DQ array, do a bilinear interpolation over the corresponding SCI values and return the interpolated SCI array.

Parameters:
sci_datandarray

Original SCI image (float) to interpolate over

dq_datandarray

Corresponding DQ image (int)

n_sizeint

Size of the interpolation box

Returns:
sci_datandarray

Interpolated SCI image (2D float)