Droop and its Manifestions |
This document reviews the droop correction as implemented in version 6.8 of the Instrumental Calibration (ICAL) module and included in WSDS delivery version 3.5. Examples of testing on flight data are also presented. Droop is only seen in bands 3 and 4. The red boxes in Figure 1 show the location of the three droop correction steps in the ICAL pipeline.
Figure 1 - ICAL pipeline flow. Droop correction steps for W3,W4 are shown in red. Click to enlarge. |
Droop manifests itself in two forms: (i) intra-quadrant splitting, usually bisecting a saturated source or region, and (ii) global quadrant-to-quadrant (Q-to-Q) effects leading to a depression of one or more quadrants followed by an increase (or rebound) in the quadrant signals in subsequent frames. During the rebound phase, the quadrants also become unstable at the location of bad-pixel clusters and the banding/split structure seen in the dark becomes apparent, lasting for 10-20 frames. The residual bands (in excess of those seen in the static dark calibration) are also referred to as stationary splits and can be corrected using the same algorithm as for intra-quadrant droop-splits. Both forms of droop have been confirmed to be additive in nature and it is assumed that the banding-split residuals are additive too so all these can be corrected using offset-matching. There is also a final (optional) refinement step for cases where a global Q-to-Q correction could not be computed. We describe the algorithms (in order of execution) below.
Before outlining the steps, we note that this version of the algorithm corrects splits using exclusively the active pixels. An initial version attempted to use the reference pixels at the top and bottom of each quadrant and demarcated by the split locations. This approach was aborted since (i) splits are often associated with heavily drooped cases where a large fraction of the reference pixel values are truncated at zero (represented as values 32767 in the downlink, which means the DEB slopes are really < 0). This implies that any metric that uses the reference pixels (e.g., median) will be biased high. There are indeed some cases with a good fraction of usable reference pixels, but their occurrence is infrequent to warrant mixing algorithms. The number of usable reference pixels becomes even lower when multiple splits are present, since one must consider only those pixels within regions separated by splits. The situation is worst for W4 where there are only two rows of pixels to work with; (ii) Furthermore, as will become apparent below, optimal correction for splits (whether droop or residual-banding related), requires that metrics be computed off a pre-calibrated frame, e.g., one that has been dark and responsivity corrected. This is not possible for the reference pixels because there is no attempt to calibrate them in processing. The current calibrations do not preserve reference pixel information that can be used in any meaningful manner downstream.
Following the split corrections to equalize levels within quadrants, Q-to-Q relative offsets are then computed and applied to equalize levels over the whole frame. This step exclusively uses the reference pixels where possible (which may have been updated by the split correction step above). The correction is computed for each separate quadrant by first computing the median of all good reference pixels (above or below it) where "good" means those pixels with value < 32767 (where 32767 is equivalent to a DEB instrinsic slope value < 0). This median is only computed from the good pixels if their fraction in a reference region is > some threshold gfrac (where currently gfrac = 0.5). The 32767 values cannot be reset to zero and included in the median estimate since otherwise the reference signal will be over-estimated. We found that a good reference pixel fraction of > 0.5 minimizes such biases.
The median reference value for each quadrant is then differenced against some long-term median reference signal for that quadrant to compute a relative offset correction. These long-run medians are given by the input refbaseN parameters for W3, W4 (where N = quadrant 1,2,3,4). These baselines are stable over long periods and appear to represent the natural levels that the reference signals return to following a droop and/or rebound event (see Figure 3). The relative corrections are then applied to the active pixels in each respective quadrant. This brings them in line with what one would have observed if no droop or rebound event occurred.
If the fraction of good reference pixels is <= gfrac for any quadrant, no correction is applied to the active pixels. Instead, a flag is set to indicate this and propagated downstream to the optional droop-refinement step (see Section 2.3).
We close this section with a note on the order of application of the split and Q-to-Q corrections. The splits are corrected first since this removes an ambiguity on which side of a split to correct first. The split corrections are applied to both active and reference pixels in a self-consistent manner so that the updated reference pixels can be used in the Q-to-Q step as described above. Furthermore, this order removes a potential bias on a median reference signal if it turns out a split exactly bisects a quadrant straight down the middle, i.e, 50% of the quadrant pixels lie on one side. The median reference signal will lie somewhere across the split transition (which has some slope) and will not be representative of the reference signal in either half of the drooped/undrooped region. Initial equalization of levels across splits is therefore key before attempting the Q-to-Q correction.
Figure 3 - Run of reference pixel medians (top), corresponding active pixel medians before Q-to-Q correction (middle), and after correction (bottom) for all frames in a scan. Click to enlarge. |
If a global correction using reference pixels alone (as described in Section 2.2) could not be computed for any quadrant, e.g., because there were an insufficient number of good reference pixels (their fraction is < some threshold gfrac), we attempt to compute an offset using the active pixels in neighboring quadrants where a correction was possible. This step is only performed if the drpflag parameter is set to 1 in wise-meta.tbl. If set, this step is performed after all instrumental calibrations have been applied in order to minimize biases from quadrant-dependent instrumental residuals.
We first compute lower-tail quantile values corresponding to the falow input parameter (currently = 0.1) in strips of width 50 pixels for W3 and 25 pixels for W4 running up and down the center the frame. Figure 4 shows an example of a correction to be computed for Q1. The correction for this quadrant uses the strips colored solid red. If a Q-to-Q droop correction using reference pixels was possible for Q2 (i.e., its good pixels satisfied > gfrac), then the offset correction for Q1 (which is added to all active pixels of Q1) is given by the quantile difference: q2 - q1. If a correction was not possible for Q2, then we look at the bottom quadrant, Q4, and use the active pixels in its strip to compute the offset correction for Q1, i.e., q4 - q1. The same procedure is used for the other quadrants that failed to be corrected in the initial global Q-to-Q step. E.g., for Q3, the correction sought for is first q4 - q3, but if Q3 failed to be corrected in the Q-to-Q step, we would try using q2 - q3.
If no correction is possible after two attempts to use two neighboring "good" quadrants (because their Q-to-Q reference pixel corrections were not possible), we give up and leave it at that. Note that we avoid using strips aligned in the horizontal direction above/below the quadrants since the existence of incorrectly corrected splits (either from droop or residual banding) could bias the results.
Below we show a collection of W3 and W4 L0 frames with examples of droop.
Further below are the corresponding calibrated/corrected L1b frames.
The various flavors of droop shown here is by no means complete. There will be
more surprises when v3.5 is deployed and operational.
Figure 5 - A managerie of L0 (w3) input frames with a variety of droop phenomena. |
Figure 6 - Calibrated frames corresponding to Figure 5. All processed using the same droop-correction parameters. |
Figure 7 - A managerie of L0 (w4) input frames with a variety of droop phenomena. |
Figure 8 - Calibrated frames corresponding to Figure 7. All processed using the same droop-correction parameters. |