From dd9f6dde7a47f28e44c5efc9e923d059cc33e236 Mon Sep 17 00:00:00 2001 From: serversdown Date: Tue, 3 Nov 2026 11:32:57 -0500 Subject: [PATCH] docs(changelog): Unreleased -- histograms go to the histogram codec Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9 --- CHANGELOG.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 855362f..d7d8e6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,38 @@ All notable changes to seismo-relay are documented here. - ⚠ **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. +- **Histograms go to the histogram codec, and a loud interval no longer hides + a short one.** These were the histograms the decode checker found decoding + wrongly. + - **The codec now follows the record type.** The file decoder used to try the + waveform codec first, whatever `STRT[18]` said. That codec accepted BE9440, + BE9557 and BE17354's 2018 5 s histograms and returned about 5× too many + "samples" (K440HDXX.XH0H: 44,504 against Blastware's 6,976). Only an + unknown type still falls back to trying both, and a chosen codec that + fails is now a decode problem rather than a silent switch. + - **A loud interval no longer breaks the sub-minute layout check.** The check + required each record's "zero word" to be `0000`. That word is the high word + of the interval's PVS², which is non-zero above 1.28 in/s, so a one-block + histogram with a loud interval decoded to nothing (T193KR5M.X90H, + K440HA3C.JM0H, R352HFZ7.530H). + - The check is now the measured relation peak ≤ PVS ≤ √3·peak. It holds + on 34,502,955 / 34,502,955 DL2 sub-minute intervals. + - The trim for a stream with no terminal tail uses the same test. + - **New decode-checker carve-out, `interval-count-is-duration`.** Blastware's + "Number of Intervals" is (stop − start) / interval. When the unit never + wrote the last minute, Blastware's own interval table lists one block + fewer, and SFM matches the table. It covers 8 events. + - **Decode checker:** 462 comparisons fixed, 0 regressions, 16 of 88 fields + fully match (was 11). + - Every DL2 histogram's Tran / Vert / Long interval peaks now match + Blastware (bar the clipped intervals the saturation carve-out covers). + - Channels 70,042 / 70,042. + - Histogram start dates a day off: 26 → 9. + - Peak vector sum mismatches: 45 → 18. + - ⚠ **Codec change:** it rides the next release's `TOOL_VERSION` bump and + backfill (`backfill_sidecars.py` then `backfill_event_shape.py`). Those + files are stored wrongly on prod today, and the backfill rewrites them. No + schema change. ### Added - **A Blastware file's job number, and whether Blastware shows it.**