Lesson 4 of 4 · Quality flags and conditional bounds
Preserve flags and bound the gap
22 minute lesson · 3 checks along the way
Your goal for this lessonPreserve combined NEWSIPS quality conditions and distinguish a measured partial line from a conditional bound on its missing region.
In this lesson 3 sections · 3 checks
Read & understand
Flags are conditions, not flux values
NEWSIPS flags can represent several conditions at once. Its documentation advises interpreting the magnitude of a negative flag before decoding the condition bits. For example, −32 denotes the low-dispersion SWET cosmic-ray condition, −4 a missing minor frame in extracted background, and −8192 a missing minor frame in extracted spectral data. The code is not a flux, probability or numerical correction to apply to the spectrum.
When combining bins, preserve the union of conditions. Thus −32 combined with −4 gives −36, while two occurrences of −32 still give −32, not −64. Combining −8192 and −32 gives −8224. Adding repeated flags as ordinary numbers would invent a different condition. Zero means no known flagged problem, not proof of a flawless observation. Decide how each relevant condition affects a measurement rather than imposing one undocumented universal rejection rule.
Combine conditions, not occurrences
Use the absolute flag magnitude to decode NEWSIPS condition bits, union the bits and restore the negative sign. Examples preserve SWET cosmic-ray, missing-background and missing-spectrum conditions; they do not prescribe a universal rejection policy.
Open full-size diagram in a new tab: Combine conditions, not occurrencesRead diagram data as a table
| Input flags | Distinct condition magnitudes | Union flag | Interpretation |
|---|---|---|---|
| −32, −4 | 32, 4 | −36 | Two distinct conditions |
| −32, −32 | 32 | −32 | One condition repeated |
| −8192, −32 | 8192, 32 | −8224 | Two distinct conditions |
Use the absolute flag magnitude to decode NEWSIPS condition bits, union the bits and restore the negative sign. Examples preserve SWET cosmic-ray, missing-background and missing-spectrum conditions; they do not prescribe a universal rejection policy.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Report the portion that was measured
Suppose the central bin in our fictional line is unusable. The four remaining bins contribute 2/5 Å of equivalent width over 4 Å of measured coverage. That partial contribution is not the result for the original 5 Å window. An analyst with a missing bin does not get to use its hidden teaching-model value of 6 as if it were observed.
Introduce an explicit absorption-only prior: the missing mean flux density lies between zero and the continuum C=10. Its unknown contribution then lies between zero and 1 Å, so the full-window equivalent width lies in [2/5,7/5] Å. This is an identification interval under a supplied flux bound, not a statistical confidence interval. The range describes the unmeasured bin even before adding uncertainty to the measured bins and continuum.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Keep a fill separate from evidence
Filling the missing flux with zero selects the upper endpoint 7/5 Å. Filling it with the continuum selects the lower endpoint 2/5 Å. Neither is a neutral operation, and neither reconstructs the unseen flux without further evidence. If the gap can contain emission above the continuum, the lower bound can fail; if negative extracted flux is allowed, the upper bound can fail. The prior must remain attached to the reported interval.
A reproducible result therefore records the product and processing identity, wavelength window, continuum method, bin widths, retained quality conditions, rejected coverage and any filling assumptions. Separate the measured partial contribution, conditional gap bounds and statistical uncertainty. Those distinctions let another observer test a claim of variability or a physical interpretation instead of merely reproducing a smooth-looking plot.
A flagged gap stays unknown
The hatched region is an unknown flux range, not a zero-flux observation. The endpoint line shows the conditional equivalent-width interval; positive emission or negative extracted flux can invalidate its assumed bounds. Statistical measurement uncertainty is separate.
Open full-size diagram in a new tab: A flagged gap stays unknownRead diagram data as a table
| Missing-bin assumption | Missing contribution (Å) | Full-window result (Å) |
|---|---|---|
| F_missing=C | 0 | 2/5 |
| 0≤F_missing≤C | [0,1] | [2/5,7/5] |
| F_missing=0 | 1 | 7/5 |
The hatched region is an unknown flux range, not a zero-flux observation. The endpoint line shows the conditional equivalent-width interval; positive emission or negative extracted flux can invalidate its assumed bounds. Statistical measurement uncertainty is separate.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: NEWSIPS: Data quality flag descriptionMultiple conditions encoded together; decode flag magnitude before interpreting bits. −32 SWET cosmic ray, −4 missing background minor frame, −8192 missing extracted spectral minor frame. Zero means no known problem, not guaranteed perfection.
- Read: IUEDAC: Resampling spectraComparisons may need common wavelength coordinates; flags and processing history can accompany resampling. Listed interpolation routines are not the conservative bin-merging model developed here.