JumpPlusStep#
snowblind.JumpPlusStep, run with strun jump_plus. Deprecated, to be removed. Flags the group after each jump and the group
before saturation in readouts that average several frames per group; the
jwst steps now flag what is needed.
Guide: Snowball, jump and open-pixel flagging.
The step has no parameters of its own.
The parameters every stpipe step has (skip, save_results,
output_dir, suffix, pre_hooks, post_hooks and the
others) are described in the stpipe documentation.
- class snowblind.JumpPlusStep(name=None, parent=None, config_file=None, _validate_kwds=True, **kws)#
Updates groupdq by propagating jumps in group N to group N+1
Deprecated: the jwst saturation step (since jwst 1.16) flags the group before saturation when its frames may have saturated, and the jump step flags a group that a cosmic ray hit partway through; the likelihood ramp fits (
ResetRampFitStep, jwstLIKELY) leave out both differences next to a flagged group, andOLS_Cdrops the one-group segment that leaves. What this step adds is mostly good data taken out of the fit.For NIR readout modes that average together more than one frames per group, i.e NFRAMES > 1, this propagates the detected JUMPS to the successive group, as a cosmic ray arriving within a group affects the slope of the one before and potentially the one after.
Frame-averaged groups that are saturated often got saturated in a frame in a previous group, so flag those as jumps as well.
- process(input_data)#
Propagate JUMP_DET flags to the next group and SATURATED flags to the previous one.
- Parameters:
- input_datastr or RampModel
Filename or ramp datamodel after jump detection, with a
groupdqarray of shape (nints, ngroups, nrows, ncols). Whenmeta.exposure.nframesis 1 the step is skipped.
- Returns:
- RampModel
Copy of the input. With frame averaging, each group’s JUMP_DET flags are also set in the following group, each group’s SATURATED flags are also set in the preceding group, and
meta.cal_step.jump_plusis"COMPLETE". Without frame averaging the copy is unchanged andmeta.cal_step.jump_plusis"SKIPPED".self.skipis left alone: stpipe resets it only for a step without a parent, so a hook that set it would skip every later run of its pipeline.