do_correction
- jwst.firstframe.firstframe_sub.do_correction(output, bright_use_group1=False)[source]
Set data quality of the first group in an integration to DO_NOT_USE.
This correction only works on MIRI data. If the number of groups is > 3, then the GROUP data quality flag of the first group is set to DO_NOT_USE.
- Parameters:
- output
JwstDataModel Science data to be corrected
- bright_use_group1bool
If True, setting first group data quality flag to DO_NOT_USE will not be done for pixels that have the saturation flag set for group 3.
- output
- Returns:
- output
JwstDataModel Firstframe-corrected science data
- output