GLOBAL KNOWLEDGE ARK

Astronomy · From raw signals to supported claims

Reproducible analysis, provenance and transparent reporting

Trace a small source-rate calculation through its raw indications, calibration references and fixed quality mask, then distinguish a repeatable result from a correct scientific claim.

Continue in the approved chapter order. Necessary vocabulary, quantities and assumptions are explained in the lesson.

Back to the chapter

After reading, you can

  • Record the input, calibration, configuration and processing roles that produced a scientific result.
  • Calculate how a changed reference or mask changes the defined output.
  • Distinguish artifact identity, numerical reproduction and scientific validation.
01

Preserve the route from observations to a reported result

A reported astronomical result should be interpretable by someone who did not run the original analysis. They need to know which observations were used, which quantities were estimated, how instrumental effects were treated, what was excluded and what assumptions connect the record to the scientific conclusion.

Provenance is that account of origins and transformations. In the International Virtual Observatory Alliance provenance model, an entity can be an input or output dataset, an activity can be a processing step, and an agent can be a person or organization responsible for an activity. Relations identify which entity was used in which role and which output was generated.

Those distinctions are useful even for a small notebook without a formal provenance service. A raw exposure, a flat-field reference, a quality mask and a configuration are all inputs, but they have different scientific roles. Saving only their filenames without identifying their contents or roles may be insufficient when files change.

The goal is enough detail to interpret the stated result and attempt its reproduction. It is not a guarantee that every archived file is correct or that every environment will yield identical bytes. State the comparison being attempted and the conditions held fixed.

02

The extraction rule is part of the quantity

Consider three original synthetic pixels observed for 10 seconds. Each has a raw indication D in ADU, a bias B = 2 ADU, an accumulated dark contribution Q = 0 ADU and a dimensionless relative flat f. Define its corrected rate as r = (D − B − Q)/(ft), in reference-response ADU s⁻¹.

The input values are A: D = 12, f = 0.5, quality good; B: D = 20, f = 1, quality good; and C: D = 100, f = 1, quality hot. The quality flags are supplied externally and fixed for this example. They are not thresholds chosen after inspecting the resulting rates.

Define the reported quantity as the sum of rates over exactly the pixels flagged good in this specified region. The pixel rates are 2, 1.8 and 9.8 reference-response ADU s⁻¹. Only A and B enter the defined output, giving 3.8 reference-response ADU s⁻¹.

That is a retained two-pixel-region rate. It is not an estimate of omitted sky light, a missing-pixel correction or total source flux. Such quantities would need additional spatial, instrumental and source assumptions. Retaining the extraction rule prevents an apparently simple sum from acquiring an unintended physical meaning.

Original fixed-mask extraction. Bias is 2 ADU, accumulated dark is zero and duration is 10 s for every pixel. The good/hot flags are fixed inputs.
PixelRaw D (ADU)Relative flat fQualityRate (reference-response ADU s⁻¹)Included?
A120.5good2yes
B201good1.8yes
C1001hot9.8no
03

Record revisions rather than overwriting their history

Now change only the flat for pixel A from 0.5 to 0.4, retaining the same raw data, additive terms, duration and mask. Pixel A becomes (12 − 2)/(0.4 × 10) = 2.5, and the retained sum becomes 4.3 reference-response ADU s⁻¹. This is a different calibration result, even if both runs use a file called flat.fits.

Alternatively, keep the original flat and omit the fixed quality mask. The sum becomes 2 + 1.8 + 9.8 = 13.6 reference-response ADU s⁻¹. That is a different selection of pixels and a different defined output. A repeated execution of this altered procedure does not reproduce the original masked quantity.

Retain original and revised products with their input identities, processing version and change reason. A comparison can then attribute the 3.8-to-4.3 change to the flat rather than to new observations or a changed mask. If several inputs change together, the provenance should say so instead of implying that one isolated cause was tested.

The CRDS documentation provides a practical astronomical counterpart: calibration contexts can be specified rather than left to a changing default. A frozen context and the actual reference files help identify an analysis. The context name alone does not explain the extraction region, scientific model or every numerical dependency.

04

Identical files and agreeing scientific numbers are different checks

A content hash can establish that a retained artifact matches a particular byte sequence. It cannot establish that the flat was suitable, that a hot-pixel flag was correct, or that the scientific model was adequate. An incorrect mask can have a perfectly reproducible hash.

Bitwise computational reproduction asks for exactly identical output bytes under stated conditions. Numerical reproduction may instead ask whether designated values agree within a declared tolerance, with the same units and scientific definitions. Floating-point libraries, hardware, operation order or nondeterministic execution can affect exact bytes even when the selected numerical comparison agrees.

A software version label, a random seed or a saved script is useful but may leave input data, calibration references, configuration or dependencies unspecified. Record the relevant environment and precision along with the algorithm. If randomness is used, preserve its role and controls; do not assume that a seed freezes every other input.

Metrology uses repeatability and reproducibility for precision under specified measurement conditions, including which operators, locations and systems change. Our computational comparison is an explicitly stated operational task. It should not be silently substituted for those measurement-precision definitions or for independent replication of a physical observation.

05

Transparent reporting includes assumptions and exclusions

For the toy, a useful report identifies the raw values, bias and accumulated-dark references, flat values, exposure duration, quality flags, included pixels, correction order, units and output. For real work, add observation identifiers, software and calibration versions, relevant warnings, numerical conditions and access information sufficient to identify the actual inputs.

The scientific record also needs the sampling and selection rules, background treatment, physical and statistical model, fitted or fixed parameters, uncertainty components and correlations, and the meaning of any interval or upper limit. Reproducing a point estimate without its assumptions does not reproduce its interpretation.

Credit the data and software contributors and identify the versions used. The AAS software guidance distinguishes a publication describing software from a version-specific software citation. Both can help: one explains the method and gives credit; the other identifies the implementation behind this analysis.

Finally, preserve the limits of the comparison. Agreement with the original run supports faithful execution under the declared conditions. Independent calibration checks and tests of model adequacy support different conclusions and remain necessary where the scientific question requires them. The next chapter starts earlier in this chain: choosing observations whose possible outcomes can answer the intended question.

Worked examples

Reconstruct the original extraction

What result follows from the original flats and the rule to include exactly the externally flagged good pixels?

  1. Pixel A gives (12 − 2)/(0.5 × 10) = 2.
  2. Pixel B gives (20 − 2)/(1 × 10) = 1.8.
  3. Exclude hot pixel C and sum the two retained rates.

3.8 reference-response ADU s⁻¹ in the defined retained region; no omitted-pixel flux has been estimated.

Explain a revised result

Why does the retained sum become 4.3 when only pixel A’s flat changes to 0.4?

  1. The same raw indication and bias leave 10 ADU for pixel A.
  2. Dividing by 0.4 × 10 s gives 2.5 reference-response ADU s⁻¹.
  3. Pixel B remains 1.8, so the sum is 2.5 + 1.8 = 4.3.

The changed flat changes the calibration, while the observations and mask remain fixed. Retain both results and reference identities so this difference is traceable.

Try the reasoning

  1. Does summing all three original pixel rates reproduce the defined masked result?

    Show the answer and reasoning

    No; it gives 13.6 rather than 3.8 reference-response ADU s⁻¹.

    Including the externally flagged hot pixel changes the extraction rule.

  2. Does a matching file hash prove that a calibration is scientifically suitable?

    Show the answer and reasoning

    No.

    It establishes artifact identity, not suitability or correctness.

  3. Is a software version alone enough to identify an analysis that can use changing calibration defaults?

    Show the answer and reasoning

    No.

    The actual calibration context, references, input data and settings also matter.

  4. If exact bytes differ but designated values agree within a predeclared tolerance, what should be reported?

    Show the answer and reasoning

    Numerical agreement under that tolerance, while noting the failure of byte identity.

    The two comparisons test different stated criteria.

What to carry forward

  • Provenance records input roles, processing choices and the outputs they produced.
  • A changed calibration or mask creates a distinct analysis result whose history should remain inspectable.
  • Reproduction and artifact identity support traceability; scientific validity also requires appropriate calibration, uncertainty and model checks.

References

Teaching resources and research supporting this lesson’s explanations and examples.

  1. IVOA Provenance Data Model,Version1.0Mathieu Servillat,Kristin Riebe,Catherine Boisson,François Bonnarel,Anastasia Galkin,Mireille Louys,Markus Nullmeier,Nicolas Renault-Tinacci,Michèle Sanguillon and Ole Streicher / IVOA;Recommendation11April2020Reference guide · PDFivoa.netRead source
  2. Space Telescope Science Institute / Calibration References Data System documentation;retained manual13.02 sources
    1. CRDS User Manual:OverviewSpace Telescope Science Institute / Calibration References Data System documentation;retained manual13.0Reference guidehst-crds.stsci.eduRead source
    2. CRDS User Manual:Best References BasicsSpace Telescope Science Institute / Calibration References Data System documentation;retained manual13.0Reference guidehst-crds.stsci.eduRead source
  3. Policy Statement on SoftwareAmerican Astronomical Society Journals;actual retained policy with February2024 update noteReference guidejournals.aas.orgRead source
  4. NIST TN1297:7.Reporting UncertaintyBarry N.Taylor and Chris E.Kuyatt / NIST,1994 guidance;retained HTMLReference guidenist.govRead source
  5. WFC3 Data Handbook:3.2 UVIS Data Calibration StepsWFC3 instrument team / Space Telescope Science Institute; handbook6.0,June2024,editors Amanda Pagul and Isabel Rivera et al.Reference guidehst-docs.stsci.eduRead source