# Analysis log: ionosphere-storm-recovery

All times UTC. Hashes are SHA-256. Rules files were written and hashed before the test data they govern were downloaded or computed.

## 2026-11-06T19:44:25Z — pre-registration

Rules and code at registration:

```
7e51f022e150b94060b585b8dc403a0bde5b1211a1c4196b8ca59431bfc0a3fa  RULES_spotcheck.txt
c849985839e44f411e15962d8cfd0d9c6852e3c3de3672056eae5d987ae77387  RULES_placebo.txt
98b45907dbbf3e83218820f2b78807a891afc4b721b25e2d26cc1fa444e185c2  RULES_kpquiet_symh.txt
b2ca3ae2e814d6c49213bd5208144da280a67119ef4bbcbf5dc8033b6130757a  select_placebo.py
ab63a11cba87f29691601917bf4df861b6d84716754147cb9a06199af81f59a5  kp_lib.py
579907cce6edf32ab4f3b7c5852be0dbc4ca47fca31d8236a99f96e254d943b6  gim_lib.py
38a46930333856dd405658127a14ae52259c89906722ed29785ae407c7b1991e  check_storms.py
96e2b2eaa9b9b4ca8bd93513ddf793e041b4c6e31c20c2b845d9f9c3816d0380  reproduce_note.py
33d9a41a4b5fd4ccdbd45889eb6911e8ae4ce610d213f52ebaf232d768c9a84a  fetch_code_gim.py
```

Input data at registration:

```
af01278a905944bc55a9ea4dbd00942566b56a8e9e7361e2a55808268e7bced8  gfz-kp/Kp_ap_Ap_SN_F107_since_1932.txt
dac1053212e4b9a35bc43c7ef0f3a114343a2a018bcba787a5183815ac8076d0  gfz-kp/QD_days2013.txt
9be0d2c40a565beaa80b6e7c834c46e0f45cbda7320915ad2b3bb6f2cb2f3f85  gfz-kp/QD_days2014.txt
a13688d1408590be02daf5036870a0f837ae66d5a7c37eba7e492201144be899  gfz-kp/QD_days2015.txt
8d0671405e87f6c8a3f4159ec3e6d42ad9386b81973aac557274ac74cb5a4551  gfz-kp/QD_days2016.txt
55d5d967b2f6e79a4cdfa313eb58f23d0bcb32025ebf119535af09901dd359ca  gfz-kp/QD_days2017.txt
bc9e68409a1fdbc9765bc351db47a51a993f18fa52e3698673cfce1c64b84738  gfz-kp/QD_days2018.txt
60eae9e7af15724aaf6154339330e3aee77d87d073594ef601ea5e9ed843ce5c  gfz-kp/QD_days2019.txt
f585b7bd131c6d8c47dd13df2fcab4329d3b370fa0f91669256ef31e6315e4e8  gfz-kp/QD_days2020.txt
e3147948bad6adf4b92c8b3ae7c00662accbb429f3ab73cf2bc3822977caac53  gfz-kp/QD_days2021.txt
80ece7b53c10a51c58fef98f887722cb170e3fb6e0acac31d711d61e552ea08f  gfz-kp/QD_days2022.txt
80bf33e00820da3ca16b58608ed72c26aaa4f60f091d81593cc0f24e5c533e4e  gfz-kp/QD_days2023.txt
5095c4be79df2b63d85cf0912d6fb81208328cdddbe7cf061b80d0e7bba60c73  gfz-kp/QD_days2024.txt
93651138af2406c3eaa5915561616a913aaab6e57f7ee68daea7af1914ad18dc  gfz-kp/QD_days2025.txt
c97c62bbfb2682e8b444d8f492b0a17cf7503c73d60279c158f40eae33e3eefb  gfz-kp/QD_days2026.txt
8f8d88403028fc4ee92c4f38d97b46e0a87e2cfc496045b43c9e26c1d6b0903c  igrf14/igrf14coeffs.txt
73edab085936ba2d2d5e3f735a6e21f05084f43a9a82d831d5cc7e4a39e35eb8  s0-note-002-drive/km_band_x_phase.csv
be47a41525a6853e56ea86916948ef80d758c353f93e683fa4028be5d59abb6a  s0-note-002-drive/km_curves.csv
692e1367d2bde99e3c0263f26a0a6cb7f9b60e6c80959e1a9a793dd900560bc6  s0-note-002-drive/km_sens_qday_variants.csv
8850931b29bcfd5d59178e64766f73ab756b0447507666913ef63762d774ddfa  s0-note-002-drive/km_summary.csv
4731a608ee045b91c53f30b578a46a711c40ce3b5a8cb763b555ee91979fa946  s0-note-002-drive/quiet_band_envelopes.csv
8512ecf12dddeb8cae59056d33ba41dea37cdda8545cdf85c4e752e262511f93  s0-note-002-drive/quiet_days_selected.csv
e4639eb584fc917d128f0597cb8a3164acbf507619a57e29ff4264cf3a0befcf  s0-note-002-drive/recovery_times.csv
014a5c8bfacfe21ac7d460bf7a26ef57e6fa575c70ee6ca434a1bab06bc89198  s0-note-002-drive/sea_strip.csv
7d67d7e13d845f8d681a2ca318ad7d2d4ceb23d631d50ec4aab806a0ddb9ceda  s0-note-002-drive/storm_inventory.csv
2b296dd4e2f7987ac2cd41c2b2dd34736f8c2fe49dd2ed48e253f2ff4aa03b95  s0-note-002/note002.txt
```

State at registration: no CODE map for any placebo start had been downloaded; the only CODE files on disk were the five pilot days (2014-02-19, 2014-10-27, 2015-01-01, 2022-11-27, 2025-04-10), used to test the reader. Before registration, the design was sized from GFZ Kp and the Q-day lists only (select_placebo.py --report-only with separations of 7, 3 and 1 days and windows up to 90 days), which says nothing about TEC.

## 2026-11-06T19:44:56Z — placebo and spot-check draws (deterministic, from the registered code)

- `select_placebo.py` (defaults: windows 30/45/60 d, separation 3 d, seed 20261106): 112 of 119 storms got a placebo start (94 within 30 d, 10 within 45 d, 8 within 60 d). No candidate within 60 d for 7 storms, all in 2025: IPK105, IPK106, IPK110, IPK116, IPK117, IPK118, IPK119.
- Spot-check sample (RULES_spotcheck.txt): random 7 = IPK084, IPK007, IPK012, IPK018, IPK031, IPK001, IPK080; never recovered at NS50 = IPK011, IPK050, IPK071; IPK001 is already in the 2-hourly era, so no extra draw. 10 storms.
- UT days of CODE maps needed for all 119 storms (t0 - 24 h to the end of follow-up, plus their quiet days) and the 112 placebos: 2,010 of 4,383.

```
9c920f963b44f2fd6c88be45c1644edbab8461482a6dc895f155726f03a48667  results/placebos.csv
85284fd8751e1563a0c8dd3cce5e6403632d98366344f652f3678e90ccde06c5  results/spotcheck_sample.txt
d913d131dd696824d164423fb897298ff5d2275fba4bcf656a25c41ce85f469a  work/dates_needed.txt
```

## 2026-11-06T19:49:08Z — calibration on IPK001 and an addition to the download list

- With the 00 UT value taken from each day's own 00:00 map, our IPK001 quiet ranges matched the note's in 171/216 cells (q50); every even UT hour matched except 00 UT.
- With 00 UT taken from the previous day's file (its 24:00 map; what joining daily files in date order and keeping the first duplicate gives), all 216 cells match for q025, q50 and q975 (largest difference 0.0009 TECU, the CSV's rounding). Dipole per map epoch, 72 longitudes, linear percentiles.
- So every needed day also needs the previous day's file: 306 more days (work/dates_prevday.txt), fetched after the main run. This adds files only; no rule changes. The 3 previous-day files for IPK001 (2014-02-12, 2014-02-16, 2014-03-06) were fetched at 19:48Z, logged in downloads/code-gim/fetch_log_extra.jsonl.

## 2026-11-06T19:55:23Z — SYM-H check (RULES_kpquiet_symh.txt, part B)

Inputs: omni_5min2015.asc, omni_5min2024.asc, omni_5min2025.asc (hashes in downloads/MANIFEST.md); code check_symh.py.

- 55 storms with t0 in 2015, 2024 or 2025. The note's symh_at_t0_nT matches the OMNI hourly mean of the 5-min SYM-H values stamped in [H, H + 1 h) for 55/55 storms (largest difference 0.05 nT); symh_at_recovery_nT matches for 43/43 recovered NS50 storms (0.05 nT). The other definitions tried match 0 or 1.
- Sample medians (these 55 storms, not the note's 119): -59.2 nT at t0, -29.0 nT at t0 + 24 h, -34.2 nT at NS50 recovery (IQR -44.7 to -17.6, n = 43). The note's all-storm values are -51, -27 and -24.4 nT; the difference is the subset (2015, 2024 and 2025 held more intense storms), not an error.
- For scale: the median of all 5-min SYM-H values in 2015, 2024 and 2025 together is -12 nT.

```
67d43c4f0a4c97a1216aef0b2490f6785b83b1f3fc71af1790c426c78776febb  code/check_symh.py
c4a4b06f4a527ac359db0ca6d4d80866a881139051a77ae39a282fa5c1bd6488  results/symh_check.csv
b1ac10cbed2778b0601d0c58eb4eab46853beaf38cebd60cb13f07cbcfdb0252  results/symh_check.json
```

## 2026-11-06T20:27:25Z — calibration on the 10 spot-check storms; implementation locked

All CODE files fetched (2,003 in the main run, 303 previous-day files, plus the pilot and test files; no 404, no refusal, no throttling). Band cache built for 2,319 files, all with 13 or 25 maps.

Envelope agreement with quiet_band_envelopes.csv, 10 storms x 9 bands x 24 UT hours = 2,160 cells each for q025, q50, q975 (within 0.0015 TECU):

| Option set | q50 | q025 | q975 |
|---|---|---|---|
| dipole per map epoch, 72 lon, linear, 00 UT from previous file (LOCKED) | 2160 | 2160 | 2160 (max diff 0.0010) |
| same, 00 UT from own file | 2034 | 2046 | 2070 |
| dipole per year (mid-year) | 1528 | 1513 | 1501 |
| dipole fixed 2020.0 | 142 | 189 | 149 |
| 73 longitudes | 24 | 58 | 18 |
| Hazen or Weibull percentiles | 2160 | 29 | 12 |

2-hourly run length: the three 2-hourly-era storms (IPK001-IPK003, 27 storm x band cases) give the same T_rec as the note under both 6 and 7 samples, so the storms cannot decide it. Locked at 6 (the first listed option); the placebo is also reported with 7 as a sensitivity check (it can affect at most the 3 placebos matched to IPK001-IPK003).

No placebo T_rec had been computed at this point.

```
77f749a60065510bb85c2a2bdaec89a23816d1b2a40dc39b669894513fd3c45b  tec_pipeline.py
579907cce6edf32ab4f3b7c5852be0dbc4ca47fca31d8236a99f96e254d943b6  gim_lib.py
457274b821db79cd975763ba495ae1c2584cd47e763cec3c8b596f0a46b335ef  calibrate.py
4d2d42965d6a2673c27e815dc75c079e9a0eaa11df92e6164b8d69b5e2831ee7  cache_bands.py
ec2f786a535c72f7490ecbcff366c236183b6a518a137574121908d13d972c95  run_all.py
b15396d69956dddc58f4fa206025d235d8d6ef93291bb88a6e8fbec77b838b85  stats_lib.py
141c04bd5b9eab9dba800ca29ed542cd1ef688ffed0aea66e47945048ac9f3c8  fetch_code_gim_batch.py
```

## 2026-11-06T20:28:37Z — amendment 1 to the placebo rules (before any placebo result)

The first run of run_all.py stopped with an error on the placebo matched to IPK015, which has no quiet days under the note's rule; nothing was written or printed for any placebo. RULES_placebo_amendment1.txt (drop a start with no quiet day, as the note did; add a comparison restricted to >= 5 quiet days; 2-hourly run length 6, with 7 as a sensitivity check) was written and hashed before the rerun.

```
21b4dd9d69e6ab90a9aae6a31700b6225e8b382b0976b041d16c025d7f42fdbd  RULES_placebo_amendment1.txt
a84cbace29449eaa33fa58797eb0c5225b899b2e57a6d3c36485283e9e15b381  run_all.py
```

## 2026-11-06T20:33:54Z — results (registered run, then exploratory checks)

### Storm replication (RULES_spotcheck.txt)
- Spot-check sample (10 storms): T_rec identical to the note in all 9 bands (90/90); quiet ranges identical in 2,160/2,160 cells.
- All 119 storms: T_rec identical in 1,069 of 1,071 storm x band cases; the two others (NS50: IPK026 20 h vs our 21 h; IPK116 15 h vs 21 h) are ties, a TEC value equal to the band edge within 0.0005 TECU. Quiet ranges: 77,001 of 77,112 cells within 0.0015 TECU, the rest within 0.13 TECU (a few quiet days in 2017, 2018, 2024 and 2025, likely files re-issued since the note was made); no T_rec affected. Epoch-strip medians identical to sea_strip.csv. KM: identical to the note.

### Placebo, primary (RULES_placebo.txt; amendment 1)
- 112 placebos drawn, 1 dropped (no quiet days, IPK015's match): n = 111.
- NS50 KM: placebo median 16 h (storms 24 h); still "disturbed" 46.0% / 33.3% / 27.0% / 22.5% / 20.7% / 15.3% at 24 / 48 / 72 / 96 / 120 / 144 h (storms 49.6 / 35.2 / 25.6 / 16.5 / 12.4 / 6.2). In band at t: 38/111 (storms 12/119). Never back within 168 h: 15/111. Log-rank storms vs placebo chi2 = 0.11, p = 0.74. Bootstrap 95% CI of storm minus placebo: S(24) -0.10 to +0.16; S(96) -0.17 to +0.05; medians: storms 18-34 h, placebos 10-31 h.
- Matched censoring: placebo median 16 h, S(96) 23.0%, p = 0.71. Restricted to >= 5 quiet days (A2): storms 24 h, placebos 26 h, S(96) 17.2% vs 25.8%, p = 0.33.
- NS30: placebo 14 h vs storms 21 h, p = 0.91. NS70: 11 h vs 27 h, S(24) 32% vs 54%, S(96) 16.2% vs 16.2%, p = 0.057.
- By period, NS50: 2014-2019 storms 64 h vs placebos 16 h; 2020-2025 storms 17 h vs placebos 16 h (S(96) 10.4% vs 25.0%).
- First 24 h: hours outside the quiet range, mean share: storms 57.8%, placebos 43.6%; median first-day dTEC: storms -13.2%, placebos +1.8%; negative first-day median: storms 99/119, placebos 53/111.
- Pre-registered interpretation: placebo S(24) = 0.460 >= 0.5 x 0.496 and placebo S(96) = 0.225 >= 0.5 x 0.165, so "at least half of what the note calls lingering is produced by the rule on storm-free days".

### Kp-quiet sensitivity (RULES_kpquiet_symh.txt, part A)
- 78 of 119 t0s open with a Kp 4-, 4o or 4+ bin. Kp <= 3+ clock: shift median 3 h (IQR 0-6); KM median 21 h, S(96) 15.0%. Kp <= 2+ clock: shift median 12 h (IQR 6-24), 4 storms never reach it; KM median 16 h, S(96) 10.8% (n = 115).

### Exploratory checks, NOT pre-registered (exploratory_checks.py)
- By number of quiet days: 5-7 days: storms 23 h (n = 34) vs placebos 37 h (n = 58), S(96) 15.8% vs 29.3%, p = 0.046; >= 8 days: storms 26 h (n = 81) vs placebos 13 h (n = 35), S(24) 50.6% vs 34.3%, S(48) 37.3% vs 22.9%, S(96) 17.6% vs 20.0%, p = 0.30. Fewer quiet days make the band narrower and "recovery" slower; placebos have fewer (mean 6.6 vs 8.0). Like for like, storms show an excess on days 1-2, none at day 4.
- 2-hourly run length 7 instead of 6: no change for the 3 affected placebos.
- Median dTEC, storms minus placebos (NS50), bootstrap 95% CI: +5 h -19.8 (-24.2 to -13.2); +12 h -18.2 (-21.9 to -11.8); +24 h -11.6 (-15.8 to -7.1); +36 h -6.8 (-14.2 to -2.4); +48 h -6.7 (-9.2 to -1.8); +72 h -3.8 (-7.4 to +1.2); +96 h -1.7 (-6.8 to +3.1).
- Placebo NS50 hours outside the quiet range over the whole week: 7,364 of 18,396 (40.0%; 57% of them above the range).
- Quiet-day distance from t: storms median 9.0 d, placebos 9.25 d (no distance bias).
- SYM-H on GFZ Q1-Q10 days in 2015, 2024, 2025: median -4 nT (IQR -12 to +2); all days -12 nT.

```
7d41e65a215678ff4c585606ee3bf2b6f879c2f288062f3ebe6ae8a2cd8b4532  results/storms_recomputed.csv
d95285fc2fa04555556350d230eff43494554798bce3f9d00d2864c7af890094  results/placebo_trec.csv
1294d24b48f174a5b84e2a65cfea8a5d39c34b4016aab498aae795b74a90994b  results/km_compare.csv
d5bade8ef12399b0614ec7ab8c3201bf176af31c97ef59bec20522d014247f80  results/strip_compare.csv
34a18161c222c5a50546b96befd681052de5312c9c6a5d4e212a1946d0852aa2  results/kp_quiet_sensitivity.csv
88c4f294b933f97c70ead3912e4ff98f1316ba5887dc7773a9ddb6963be6dff3  results/summary.json
c37c19547493a8d53a962d945794a9f9e923721951b1024111d62cea4fbfd3e8  results/exploratory_checks.json
2ef514e04eb3d5ec6cb21ca7ebe8c10ce2592360df85803534aecbb6092365ed  code/exploratory_checks.py
```

## 2026-11-06T21:03:59Z — page build (wave 2)

No analysis was re-run or changed. Added for the page, after the analysis:

- fetch_inputs.py (fetches every input by URL under the plain client name, comparing each file with the SHA-256 of our copy), draw_spotcheck.py (the spot-check draw as a script; it reproduces results/spotcheck_sample.txt byte for byte, 85284fd8...), charts.py (the two charts, from results/km_compare.csv and results/strip_compare.csv) and make_hosted.py (puts the hosted files in the page folder; trims the two CSVs that repeat the note's values).
- Our own copy of note 001 (text export, 20:49:12Z, SHA-256 f3ca788a..., identical to the coordinator's copy), for source [3].
- Two HEAD requests to the note's Drive files (SHA256SUMS.txt and storm_inventory.csv, 20:50Z): both give Last-Modified Wed, 04 Nov 2026 05:22:04 GMT, so the listing's "Nov 3" is November 3, 2026 (US time). No file was saved.

```
137d452faad16ca4e66b331902079db7540791d7e0445974c8a963e4add8ab19  code/fetch_inputs.py
8a8814ec75a194ac589a8a389c8454da23f99355a5ed001a5b2434cbe90da3f1  code/draw_spotcheck.py
19a7cae8eac041c0b27c26aa220a9be9dc79f1b028ecf2c1bdeb791a2a2b9b23  code/charts.py
dea5467c1765f7e307a9c5873e8a0a4a893f496018a87a147008de9bea40195a  code/make_hosted.py
f3ca788a0a7608b0057d6212c0df666d8e3d1c830490ac61274dd6c52e3fc99a  downloads/s0-note-001/note001.txt
```

2026-11-06T21:10:58Z — fetch_inputs.py revised to print the commands for the next steps after fetching (no other change):

```
dcd323c81235e98193337af2f2b4f033ada0ec0d3c0c24e7ce2c1626aedb7a1f  code/fetch_inputs.py
```

## 2026-11-06T21:59:26Z — fix round after the fresh review (final-check.md)

review_checks.py: exploratory checks added after the fresh review, NOT pre-registered (period split with intervals, quiet-day restrictions, pooled and like-with-like intervals, dip by period, starts close to storms, quiet-day mix, the unscripted numbers, Kp after t0, our curve against the note's). Hashed before running:

```
13f0a7ffea1e3a4920e3d3ac65f112c2eafd022d12d4f8e0677164b56c340a1d  code/review_checks.py
```

2026-11-06T22:00:37Z — review_checks.py revised before its results were used: Kp after t0 now stops at the end of each storm's follow-up, as the note masks (the first run did not):

```
3babdae8f645fbe7f693ae779fade5c6b6a50b95b212ba1b97bd6355add4f9a5  code/review_checks.py
```

2026-11-06T22:02:41Z — review_checks.py extended before its results were used: pooled and like-with-like intervals at all six hours, and the timing of the starts inside their storm's follow-up:

```
ab3f29dcfade643cd812c7a1430b2d14004ff58a2331723503fcff0c258fb44c  code/review_checks.py
```

2026-11-06T22:06:11Z — review_checks.py extended before use: mean quiet days per start, and the two counts of clocks opening at Kp 4- to 4+ (first bin; either opening bin):

```
e06c324ea67a41f43cd178bd4fbd367db74a4981ec0d885c8a63ccf68b7942a8  code/review_checks.py
```

2026-11-06T22:10:04Z — fix round: charts.py (true minus signs in the strip chart's tooltips and labels) and make_hosted.py (review_checks hosted; HASHES.txt note on RULES_kpquiet_symh.txt; the rules described as hashed before any storm-free start was drawn) revised; no analysis changed:

```
2bf56d085b6e1f9ff92ed26d6dc9b8a3524a62b8f37d9c813013c9d3c0ca51f2  code/charts.py
f04bd226c0a80d98d0ec03468c1e2a5d15e6e1abdcf3bfa7a4d665e4e8d7398e  code/make_hosted.py
e06c324ea67a41f43cd178bd4fbd367db74a4981ec0d885c8a63ccf68b7942a8  code/review_checks.py
```
