do_correction

jwst.group_scale.group_scale.do_correction(model)[source]

Rescale all groups in an exposure by FRMDIVSR/NFRAMES.

Rescales all groups in an exposure by FRMDIVSR/NFRAMES, to account for incorrect scaling when on-board frame averaging is done using a value of NFRAMES that is not a power of 2. The divisor for the on-board averaging is always a power of 2, so if the number of frames coadded is not a power of 2, the result is incorrect and needs to be rescaled.

Parameters:
modelRampModel

Science data to be corrected. Model is modified in place.