charge_migration

jwst.charge_migration.charge_migration.charge_migration(output_model, signal_threshold)[source]

Correct for charge migration.

Each group in each ramp exceeding the signal threshold is flagged as CHARGELOSS and DO_NOT_USE, skipping groups already flagged as DO_NOT_USE.

Parameters:
output_modelRampModel

The input science data to be corrected. Updated in place.

signal_thresholdfloat

Science value above which a group will be flagged as CHARGELOSS.

Returns:
output_modelRampModel

Data model with charge_migration applied; add CHARGELOSS and DO_NOT_USE flags to groups exceeding signal_threshold.