correct_model
- jwst.refpix.irs2_subtract_reference.correct_model(output_model, irs2_model, scipix_n_default=16, refpix_r_default=4, pad=8, preserve_refpix=False)[source]
Correct an input NIRSpec IRS2 datamodel using reference pixels.
- Parameters:
- output_model
RampModel The input science data model.
- irs2_model
IRS2Model The reference file model for IRS2 correction.
- scipix_n_defaultint
Number of regular samples before stepping out to collect reference samples.
- refpix_r_defaultint
Number of reference samples before stepping back in to collect regular samples.
- padint
The effective number of pixels sampled during the pause at the end of each row (new-row overhead). The padding is needed to preserve the phase of temporally periodic signals.
- preserve_refpixbool
If
True, reference pixels will be preserved in the output. This is not used in the science pipeline, but is necessary to create new bias files for IRS2 mode.
- output_model
- Returns:
- output_model
RampModel The science data with reference output and reference pixels subtracted.
- output_model