flag_rscd
- jwst.rscd.rscd_sub.flag_rscd(output_model, int_start, int_end, rscd_skip)[source]
Find the initial groups to set to DO_NOT_USE based on RSCD rules.
- Parameters:
- output_model
RampModel Science data to be flagged.
- int_startint
Starting integration.
- int_endint
Ending integration.
- rscd_skipint
Number of groups to skip at the beginning of the ramp for integration range.
- output_model
- Returns:
- skip_arrayndarray
Array containing the number of groups to skip based on pixel location and integration.
- num_rscd_loweredint
The number of pixels where the number of RSCD groups to flag as DO_NOT_USE was changed because of saturation.
- num_only_one_groupint
The number of pixels where there is only 1 valid group after checking for saturation.