do_correction

jwst.lastframe.lastframe_sub.do_correction(output)[source]

Set data quality flag of the final group in an integration to DO_NOT_USE.

This correction only works on MIRI data. If the number of groups is greater than 2, then GROUP dq flag of final group is set to DO_NOT_USE.

Parameters:
outputJwstDataModel

Science data to be corrected

Returns:
outputJwstDataModel

Lastframe-corrected science data