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, jwst LIKELY) leave out both differences next to a flagged group, and OLS_C drops 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 groupdq array of shape (nints, ngroups, nrows, ncols). When meta.exposure.nframes is 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_plus is "COMPLETE". Without frame averaging the copy is unchanged and meta.cal_step.jump_plus is "SKIPPED". self.skip is 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.