correct_model

jwst.refpix.reference_pixels.correct_model(input_model, odd_even_columns, use_side_ref_pixels, side_smoothing_length, side_gain, odd_even_rows, conv_kernel_params, siglimit)[source]

Perform Reference Pixel Correction on a JWST Model.

Parameters:
input_modelJwstDataModel

Model to be corrected

odd_even_columnsbool

Flag that controls whether odd and even-numbered columns are processed separately (NIR only)

use_side_ref_pixelsbool

Flag that controls whether the side reference pixels are used in the correction (NIR only)

side_smoothing_lengthint

Smoothing length the use in calculating the running median of the side reference pixels (NIR only)

side_gainfloat

Gain to use in applying the side reference pixel correction (NIR only)

odd_even_rowsbool

Flag that controls whether odd and even-numbered rows are handled separately (MIR only)

conv_kernel_paramsdict

Dictionary containing the parameters needed for the optimized convolution kernel

siglimitfloat

Sigma clipping limit for outlier rejection

Returns:
statusint

Return status