do_correction
- jwst.reset.reset_sub.do_correction(output_model, reset_model)[source]
Subtract the reset correction from science arrays.
Subtracts the reset correction from science arrays and updates data quality array based on DQ flags in the reset arrays. The reset data model contains the number of initial frames in an integration to correct in the
reset_model.meta.exposure.ngroupsattribute (hereafter,reset_ngroups) and the number of integrations for which a correction exists in thereset_model.meta.exposure.nintsattribute (hereafter,reset_nints). Only the firstreset_ngroupsin each integration will have a reset correction applied. If the number of integrations in the science data is larger thanreset_nints, then the reset correction applied is the correction contained in thereset_nintsintegration.- Parameters:
- output_model
RampModel Science data to be corrected
- reset_model
ResetModel Reset reference file model
- output_model
- Returns:
- output_model
RampModel Reset-subtracted science data
- output_model