diff --git a/CHANGELOG.md b/CHANGELOG.md index 611407a..5a52ebe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,24 @@ All notable changes to seismo-relay are documented here. ## Unreleased ### Fixed +- **A Blastware event's record type comes from its bytes, not its filename + (#41).** + - STRT[18] is the record-type byte: `0x46` on every one of DL2's 6,577 + waveform files and `0x0A` on every one of its 63,535 histograms. + - The decoder used to read the type from the filename's last letter. So an + event with no Blastware name came out "Waveform" whatever it was: SFM's + own downloads, the call-in path, and a manual download (`.QZ0`). + - The filename is now only a cross-check that logs a disagreement. + - An unknown byte gives `record_type` None and a `decode_problems` entry, + not a guess. Manual, Event and Combo types never occur in DL2, so their + bytes are unknown. + - Decode checker: `EventType` matches on 70,042 / 70,042 events (was 6,524), + 0 regressions. + - ⚠ **Codec change, covered by the same release bump as #44/#45.** The + backfill rewrites stored `record_type`. Files named `…W` / `…H` keep their + type. A histogram stored from a 3-character manual-download name flips + from Waveform to Histogram, which also changes how it pairs with its + waveform twin. No schema change. - **A Blastware event imported without its ASCII report now carries its setup and notes (#44, #45).** Until now such an event stored no sample rate, a record time of "70 s" (the STRT record-type byte, 0x46), a