---
title: "Recompute a flare from one GOES file"
description: "Read a fixed NOAA file, decode UTC and quality flags, and reproduce two X-ray peaks and conditional band fluence."
canonical_url: "https://sandboxphysics.com/stories/solar-magnetic-reconnection/one-goes-file-one-flare/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/stories/solar-magnetic-reconnection/one-goes-file-one-flare/"
last_modified: "2026-11-03"
---

[From magnetic stress to reconnection](https://sandboxphysics.com/stories/solar-magnetic-reconnection/)

L3 · Magnetic reconnection and solar-flare signals

# Recompute a flare from one GOES file

Sandbox Physics · 2026-11-03

One fixed NOAA file is enough to reproduce the two X-ray-band peaks and a clearly defined fluence estimate for the 10 May 2024 event. Begin with the original bytes, then read the time and quality fields before selecting the flare. The calculation uses an observed record throughout.

## Before you begin

You need basic Python arrays, a file hash and the distinction between irradiance and energy. The offline analysis needs Python 3.12, NumPy and h5py; the pinned requirements and optional plotting dependency are in the scientific package.

## Verify the named source before parsing it

Use the GOES16 science-quality XRS one-minute product for 2024-05-10, version 2-2-2. NOAA released this reprocessed version in October 2026. The package includes the exact original 301570-byte NetCDF4/HDF5 file with its original metadata.

The reader checks both length and the full SHA-256 before opening values. The fixed filename is part of the data identity. A similarly named operational or earlier-version file can have different calibration or processing, even if the event looks familiar.

The helper’s default plan and verification modes use no network. Explicit reacquisition requests only this named URL and rejects changed or oversized input. The selected original file permits unrestricted reuse and redistribution; the package retains the NOAA NCEI Solar Irradiance Team attribution.

```
python scripts/astronomy/ac28/reacquire_goes.py --plan
python scripts/astronomy/ac28/reacquire_goes.py --verify docs/astronomy/ac28/research/sci_xrsf-l2-avg1m_g16_d20240510_v2-2-2.nc
```

| Input identity | Fixed value |
| --- | --- |
| Bytes | 301570 |
| SHA-256 | 93146eb0a920a8c0cfe5f74897c90978e17006f8280dcc73a5f99aeafec8ba16 |
| Product | sci\_xrsf-l2-avg1m\_g16\_d20240510\_v2-2-2.nc |

Sources: [NOAA NCEI, GOES16 XRS science-quality one-minute means, 2024-05-10, v2-2-2](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/data/xrsf-l2-avg1m_science/2024/05/sci_xrsf-l2-avg1m_g16_d20240510_v2-2-2.nc) · [NOAA, GOES-R XRS L2 Data ReadMe, release v2-2-2, 6 October 2026](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_ReadMe.pdf) · [NOAA NCEI Open Data Policy, signed 2023, §4a; selected file’s unrestricted-reuse statement](https://www.ncei.noaa.gov/sites/default/files/2023-12/NCEI%20PD-10-2-02%20-%20Open%20Data%20Policy%20Signed.pdf)

## Read the bandpasses and the actual clock

The short channel XRS-A covers $0.05\text{–}0.4\,\mathrm{nm}$; XRS-B covers $0.1\text{–}0.8\,\mathrm{nm}$. Both flux columns contain band irradiance in $\mathrm{W\,m^{-2}}$. They are instrument-band signals at the observer.

The file contains 1440 record-start minute means. Its time coordinate is seconds since 2000-01-01 at 12:00:00 UTC, with leap seconds neglected. This is not the TT epoch called J2000. The script compares two independent calendar conversions and preserves the source convention.

A peak at 06:54 labels the minute beginning at 06:54. It is not an individually timed photon event or a subminute maximum. Keep that interpretation when comparing the two bands or a separate event catalogue.

Sources: [NOAA, GOES-R XRS L2 Data Users Guide, §§2.1–2.4 and quality-flag tables](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_Users_Guide.pdf) · [NOAA NCEI, GOES16 XRS science-quality one-minute means, 2024-05-10, v2-2-2](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/data/xrsf-l2-avg1m_science/2024/05/sci_xrsf-l2-avg1m_g16_d20240510_v2-2-2.nc)

## Select valid bins and count the contributing seconds

Read the primary flag, the number of contributing one-second points and the electron-correction flag. This analysis requires primary flag zero, between 54 and 60 valid points, finite flux above the source floor, and valid non-interpolated, non-decaying electron correction with no significant correction in the primary band. The count fill value 255 is rejected.

The 54-point threshold is an analysis choice requiring at least 90% of the nominal minute. It does not manufacture missing seconds. Interpolated primary bins remain gaps even when a plotted line could connect them smoothly.

In 06:00–08:00 UTC, 120 of 120 bins pass in each band. However, XRS-A has four partially sampled bins with 7195 of 7200 possible seconds, including a minimum of 58 in one bin. XRS-B has all 7200 contributing seconds. Good-bin coverage and complete exposure are different quantities.

| Selected event | XRS-A | XRS-B |
| --- | --- | --- |
| Accepted minute bins | 120 | 120 |
| Contributing seconds | 7195 | 7200 |
| Partly sampled bins | 4 | 0 |
| Minimum seconds in a bin | 58 | 60 |

Sources: [NOAA, GOES-R XRS L2 Data Users Guide, §§2.1–2.4 and quality-flag tables](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_Users_Guide.pdf) · [NOAA NCEI, GOES16 XRS science-quality one-minute means, 2024-05-10, v2-2-2](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/data/xrsf-l2-avg1m_science/2024/05/sci_xrsf-l2-avg1m_g16_d20240510_v2-2-2.nc)

## Recompute the two peaks

Run the analysis command below. It writes a compact result JSON and source-metadata report. Plotting is a separate optional command, so checking the numeric result does not require a plotting installation.

The A-band peak minute begins at 06:52 UTC with mean $1.23114\times10^{-4}\,\mathrm{W\,m^{-2}}$. The B-band peak begins at 06:54 with mean $3.92869\times10^{-4}\,\mathrm{W\,m^{-2}}$. Dividing the latter by the nominal X-level threshold gives about 3.93.

Call this an X3.93-like one-minute science-product level. It does not claim to reproduce an operational flare catalogue, whose product, resolution and calibration can differ. The two-minute separation of these selected bins is also not by itself a precise plasma cooling-time measurement.

```
python -W error scripts/astronomy/ac28/analyze_goes.py
python -W error scripts/astronomy/ac28/make_figures.py
```

![Original measured GOES16 band irradiance over the day and the selected two-hour event.](https://sandboxphysics.com/stories/solar-magnetic-reconnection/materials/goes16-two-band-flare.png)

The same original source supplies both bands. Quality-rejected bins are gaps; selected minute means retain their record-start times.

Sources: [NOAA NCEI, GOES16 XRS science-quality one-minute means, 2024-05-10, v2-2-2](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/data/xrsf-l2-avg1m_science/2024/05/sci_xrsf-l2-avg1m_g16_d20240510_v2-2-2.nc) · [NOAA, GOES-R XRS L2 Data Users Guide, §§2.1–2.4 and quality-flag tables](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_Users_Guide.pdf) · [NOAA, GOES-R XRS L2 Data ReadMe, release v2-2-2, 6 October 2026](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_ReadMe.pdf)

## Define which fluence is being estimated

Irradiance times seconds has units of energy per area. Summing the minute means multiplied by 60 estimates fluence over the retained window. When all 60 samples contribute, that uses the reported full-bin mean. With 54–59 samples, it assumes the available seconds represent the full minute.

For A, the full-minute estimate is $0.14607970\,\mathrm{J\,m^{-2}}$, whereas weighting each mean by its available sample count gives a separately named proxy $0.14595377\,\mathrm{J\,m^{-2}}$. Their difference is not an uncertainty bound on the five missing seconds. The full-minute B estimate is $0.65148857\,\mathrm{J\,m^{-2}}$.

Next subtract a specified background: 05:30–05:50 or 05:40–06:00, using either a mean or a median. These four choices give B signed excess fluence about 0.606–0.610 joules per square metre. Positive-only clipping is printed separately because it changes the estimator.

The source au\_factor gives a distinct one-AU-corrected result. Native flux is not already corrected by that factor. No historical scaling from the older GOES8–15 series is applied to this GOES-R science product. These background and correction choices are sensitivity scenarios, not a confidence interval.

$$
\widehat{\mathcal F}_{60}=\sum_{i\in\mathrm{good}}\overline F_i(60\,\mathrm{s}),\qquad\mathcal F_{\mathrm{available}}=\sum_{i\in\mathrm{good}}\overline F_i(n_i\,\mathrm{s})
$$

For partial minutes, the first quantity extrapolates the available-sample mean; the second is an available-seconds-weighted irradiance proxy. Rejected bins are excluded, not filled.

$$
\widehat{\mathcal F}_{\mathrm{excess}}=\sum_{i\in\mathrm{good}}(\overline F_i-F_{\mathrm{background}})(60\,\mathrm{s})
$$

A signed excess can be negative in a bin. Clipping negative values defines a different statistic.

Sources: [NOAA, GOES-R XRS L2 Data Users Guide, §§2.1–2.4 and quality-flag tables](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_Users_Guide.pdf) · [NOAA NCEI, GOES16 XRS science-quality one-minute means, 2024-05-10, v2-2-2](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/data/xrsf-l2-avg1m_science/2024/05/sci_xrsf-l2-avg1m_g16_d20240510_v2-2-2.nc)

## Carry the definition into the physical conclusion

The resulting fluence concerns these bands, this observer geometry, this chosen interval and the stated within-bin assumptions. It is not total flare radiation or released magnetic energy. Two band signals alone also do not supply a calibrated temperature/emission-measure inference in this exercise.

A comparison with the MHD heat record would need a radiation calculation: density and thermodynamics, conduction, emission and the instrument response. The present model supplies a field/fluid energy-conversion problem; this tutorial supplies actual measured X-ray-band signals. Each has a complete reproducible path to its own result.

For the next mission file, keep the same sequence: exact input/version, clock, band definition, flags, contributing exposure, estimator, background and physical interpretation. Those choices should travel with every quoted number.

Sources: [NOAA, GOES-R XRS L2 Data Users Guide, §§2.1–2.4 and quality-flag tables](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_Users_Guide.pdf) · [NOAA, GOES-R XRS L2 Data ReadMe, release v2-2-2, 6 October 2026](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_ReadMe.pdf)

## Run the independent science

The small package contains independent Python, the exact NOAA input, our synthetic MHD states and source/units/failure notes. The pinned dependencies are listed before the offline commands.

- [solar-reconnection-science.zip](https://sandboxphysics.com/stories/solar-magnetic-reconnection/materials/solar-reconnection-science.zip) 6.33 MB
- [include-manifest.json](https://sandboxphysics.com/stories/solar-magnetic-reconnection/materials/include-manifest.json) 0.01 MB
- [README-science.md](https://sandboxphysics.com/stories/solar-magnetic-reconnection/materials/README-science.md) 0.01 MB
- [runtime-domain-reference.json](https://sandboxphysics.com/stories/solar-magnetic-reconnection/materials/runtime-domain-reference.json) 0.21 MB
- [goes-reference-results.json](https://sandboxphysics.com/stories/solar-magnetic-reconnection/materials/goes-reference-results.json) 0.01 MB
- [retained-counterexamples.json](https://sandboxphysics.com/stories/solar-magnetic-reconnection/materials/retained-counterexamples.json) 0.00 MB

Exact files and reuse terms

solar-reconnection-science.zip
6325678 bytes
SHA-256: 4f680fc833816eb4ae27fd1bce178ee61af985c0f800097e86e11cd489710f07

include-manifest.json
10996 bytes
SHA-256: 363ff93f8e96ae524583d067b560f865ff526021cb45bc725a21efd41161e405

README-science.md
9685 bytes
SHA-256: f0aee6da22e4e5ff73aa326ee9b8b3028601bed9b1e2a9974056588db417d32a

runtime-domain-reference.json
208128 bytes
SHA-256: 33cdb0c1deec2889759846f572b8d32ce1da3c2de9278e549a068bece7391f5d

goes-reference-results.json
5924 bytes
SHA-256: cc4e4785d66571658b1824d9c4aa5fdacfdba5f0643c2f126245836771a5c197

retained-counterexamples.json
1826 bytes
SHA-256: 1e89efaf39a01b431ea1aeb75c8b9a108f508a4ab1972351e47df68266db561e

NOAA permits unrestricted use and redistribution of the selected original input. New standalone Python is MIT; our data, plots and documents are CC BY4.0 with source attribution. Original publication PDFs and website Engine code are excluded.

## Work through the question

A minute has 58 valid one-second points. Is its reported mean multiplied by 60 a fully observed 60-second integral?

It estimates that integral conditional on the available samples representing the missing seconds. Multiplying by 58 gives an available-seconds-weighted proxy. Neither operation reveals what happened in the missing two seconds.

Why are the four background results not an uncertainty interval?

They are four chosen analysis scenarios. No probability distribution for the background, calibration or missing samples was supplied, so the range has no confidence-level interpretation.

Can a best-looking alignment between the MHD heat curve and GOES determine magnetic diffusivity?

The model has no density/temperature/radiation/instrument map connecting its dimensionless heat to those bands. A diffusivity estimate first needs a defined density, thermal, radiation and instrument-response mapping from the plasma state to the measured bands.

### [Identify the missing radiation calculation](https://sandboxphysics.com/labs/magnetic-reconnection/)

1. Pause a current-layer state and identify exactly which heat quantity the model records.
2. List the extra physical fields needed to predict an observed X-ray band.
3. Keep the measured GOES plot and the synthetic heat plot named separately when presenting the comparison.

## Primary sources

1. [NOAA NCEI, GOES16 XRS science-quality one-minute means, 2024-05-10, v2-2-2](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/data/xrsf-l2-avg1m_science/2024/05/sci_xrsf-l2-avg1m_g16_d20240510_v2-2-2.nc)
2. [NOAA, GOES-R XRS L2 Data Users Guide, §§2.1–2.4 and quality-flag tables](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_Users_Guide.pdf)
3. [NOAA, GOES-R XRS L2 Data ReadMe, release v2-2-2, 6 October 2026](https://data.ngdc.noaa.gov/platforms/solar-space-observing-satellites/goes/goes16/l2/docs/GOES-R_XRS_L2_Data_ReadMe.pdf)
4. [NOAA NCEI Open Data Policy, signed 2023, §4a; selected file’s unrestricted-reuse statement](https://www.ncei.noaa.gov/sites/default/files/2023-12/NCEI%20PD-10-2-02%20-%20Open%20Data%20Policy%20Signed.pdf)

[Previous: Follow energy through a reconnection calculation](https://sandboxphysics.com/stories/solar-magnetic-reconnection/follow-the-converted-energy/) [Next: Where the fluid picture of reconnection runs out](https://sandboxphysics.com/stories/solar-magnetic-reconnection/where-the-fluid-picture-runs-out/)
