Skip to content

Commit

Permalink
Update docs and change notes
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Jan 18, 2024
1 parent b3a9ddd commit 255847c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ outlier_detection
- Removed ``grow`` from the ``outlier_detection`` step parameters,
because it's no longer used in the algorithms. [#8190]

refpix
------

- Modify IRS2 bad reference pixel flagging to consider values from all
groups in all integrations and robustly replace values from their
nearest neighbors. [#8197]

tweakreg
--------

Expand Down
23 changes: 14 additions & 9 deletions docs/jwst/refpix/description.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,20 @@ will be set to zero if they are flagged as bad in the DQ extension.

At this point the algorithm looks for intermittently bad (or suspicious)
reference pixels. This is done by calculating the means and standard
deviations per reference pixel column, as well as the difference between
even and odd pairs; then calculates the mean and standard deviation of
each of these arrays (the mean of the absolute values for the
differences array), and flag all values greater than the corresponding
mean plus the standard deviation times a factor to avoid overcorrection.
All suspicious pixels will be replaced by their nearest good reference
pixel, or set to zero if there were no good reference pixels left
(although this is unlikely to happen as there are typically only a few
pixels flagged as suspicious).
deviations per reference pixel column, as well as the absolute value of the
difference between readout pairs, across all groups and integrations.
The robust mean and standard deviation of each of these arrays is then
computed. Values greater than the robust mean plus the standard
deviation, times a factor to avoid overcorrection, are flagged as bad
pixels. Readout pairs are always flagged together, and are flagged across
all groups and integrations. Bad values are replaced by values from the
nearest reference group within the same amplifier, respecting parity
(even/oddness). The replacement value is the average of upper and lower
values if both are good, or directly using the upper or lower values if only
one is good. If there are no nearest good values available, but there is a
good adjacent neighbor that does not match parity, that value is used. If
there are no good replacement values, the bad pixel is set to 0.0 to be
interpolated over in the IRS2 correction to follow.

The next step in this processing is to
copy the science data and the reference pixel data separately to temporary
Expand Down

0 comments on commit 255847c

Please sign in to comment.