11Description
2- ============
2+ ===========
33
4- :Class: `jwst.linearity.LinearityStep `
4+ :Class: `jwst.linearity.linearity_step. LinearityStep `
55:Alias: linearity
66
77Assumptions
88-----------
99It is assumed that the input science exposure data for near-IR instruments
1010have had the :ref: `superbias <superbias_step >` subtraction step applied,
11- therefore the correction coefficients stored in the linearity reference files
11+ therefore the correction coefficients stored in the :ref: ` linearity_reffile `
1212for those instruments must have been derived from data that has also been
1313bias subtracted.
1414MIRI data, on the other hand, do not receive bias subtraction
@@ -30,8 +30,8 @@ for detector non-linearity. The correction is applied pixel-by-pixel,
3030group-by-group, integration-by-integration within a science exposure.
3131
3232The correction is represented by an nth-order polynomial for
33- each pixel in the detector, with n+1 arrays of coefficients read from the
34- linearity reference file .
33+ each pixel in the detector, with `` n+1 `` arrays of coefficients read from the
34+ :ref: ` linearity_reffile ` .
3535
3636The algorithm for correcting the observed pixel value in each group of an
3737integration is currently of the form:
@@ -42,7 +42,7 @@ integration is currently of the form:
4242 where :math: `F` is the observed counts (in DN), :math: `c_n` are the polynomial
4343coefficients, and :math: `F_\text {c}` is the corrected counts. There is no
4444limit to the order of the polynomial correction; all coefficients contained in
45- the reference file will be applied.
45+ the :ref: ` linearity_reffile ` will be applied.
4646
4747Upon successful completion of the linearity correction the S_LINEAR keyword is
4848set to "COMPLETE".
@@ -54,16 +54,16 @@ Special Handling
5454 the linearity correction applied and the DQ flag "NO_LIN_CORR" is added to
5555 the science exposure PIXELDQ array.
5656
57- #. Pixels that have the "NO_LIN_CORR" flag set in the DQ array of the linearity
58- reference file will not have the correction applied and the "NO_LIN_CORR" flag
57+ #. Pixels that have the "NO_LIN_CORR" flag set in the DQ array of the
58+ :ref: ` linearity_reffile ` will not have the correction applied and the "NO_LIN_CORR" flag
5959 is added to the science exposure PIXELDQ array.
6060
6161#. Pixel values that have the "SATURATED" flag set in a particular group of the
6262 science exposure GROUPDQ array will not have the linearity correction
6363 applied to that group. Any groups for that pixel that are not flagged as
6464 saturated will be corrected.
6565
66- The flags from the linearity reference file DQ array are propagated into the
66+ The flags from the :ref: ` linearity_reffile ` DQ array are propagated into the
6767PIXELDQ array of the science exposure using a bitwise OR operation.
6868
6969NIRCam Frame 0
@@ -81,7 +81,11 @@ Subarrays
8181This step handles input science exposures that were taken in subarray modes
8282in a flexible way. If the reference data arrays are the same size as the
8383science data, they will be applied directly. If there is a mismatch, the
84- routine will extract a matching subarray from the reference file data arrays
84+ routine will extract a matching subarray from the :ref: ` linearity_reffile ` data arrays
8585and apply them to the science data. Hence full-frame reference files can be
8686used for both full-frame and subarray science exposures, or
8787subarray-dependent reference files can be provided if desired.
88+
89+ Step Arguments
90+ --------------
91+ The linearity correction has no step-specific arguments.
0 commit comments