diff --git a/CHANGELOG.md b/CHANGELOG.md index 21a5034..ab3ba31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,37 @@ All notable changes to seismo-relay are documented here. --- +## Unreleased + +### Fixed +- **A Blastware file's geophone range comes from its setup, so Sensitive + events no longer read 8× high.** + - **Where it is:** in the setup's channel blocks, the byte 29 after each + geophone label. `0x00` is Normal (10 in/s full scale), `0x01` is Sensitive + (1.25 in/s). SFM's live 1A read has the same byte at label+33. + - **Measured:** it matches Blastware's GeoRange on 70,042 / 70,042 DL2 + events, all three channels agreeing on every one (35 Sensitive). + - **Before:** SFM assumed Normal, so every Sensitive event's peaks, vector + sum and `.h5` samples read 8× high. + - **`Event.geo_range`** is new: 0 or 1, or None when it isn't read (the + channels disagree, an unknown value, or a missing block). None comes with + a `decode_problems` entry, and peaks then assume Normal as before. + - **`decode_blastware_bytes`** scales peaks and the histogram vector sum by + the range. + - **`event_hdf5.write_event_hdf5`:** `geo_range` now defaults to None, + meaning the event's own range, else Normal. An explicit argument still + wins. + - **`waveform_store.save_imported_bw` and `scripts/backfill_sidecars.py`** + no longer force `"normal"`. The `waveform_store` line was agreed with the + parity session, which owns that file. + - **Decode checker:** GeoRange 70,042 / 70,042, and geophone samples exact + on **6,524 / 6,524** waveforms (was 6,491). PPV mismatches about halved, + and 10 of 88 fields fully match (was 6). 70,287 comparisons fixed, 0 + regressions. + - ⚠ **Codec change: bump `TOOL_VERSION` at the next release.** The backfill + (`backfill_sidecars.py` then `backfill_event_shape.py`) rewrites stored + Sensitive events' peaks and `.h5` files. No schema change. + ## v0.33.0 — 2026-11-01 **SFM reads Series-3 events from the file alone, and proves it against