diff --git a/CHANGELOG.md b/CHANGELOG.md index d7d8e6d..d2d3d8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,30 @@ All notable changes to seismo-relay are documented here. 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. +- **A Blastware file's footer is its last 26 bytes: no more day-late + histograms.** + - **Measured:** every DL2 file ends in a valid footer (`0e 08` and two valid + times), 70,041 / 70,041. + - **The bug:** the decoder took the first "`0e 08` + plausible year". On 14 + files there is an earlier record, about 1.1 KB before the end, holding the + stop time followed by zeros. + - A histogram then started at its own stop: a day late on BE9558's daily + histograms (K558L9XP.FK0H read 2025-10-08 19:10:01 for Blastware's + 2025-10-07 19:14:08). + - T003LCYV.JD0H got no time at all. + - A waveform lost its stop, so its trigger was never computed and the stop + was stamped instead (K440I4LG.JK0W: 11:14:12 for 11:14:08). + - **The fix:** the last 26 bytes are now taken when they are a footer, and + the old search remains only as the fallback. + - **Decode checker:** event times 6,524 / 6,524 and histogram start dates + 63,518 / 63,518. 13 comparisons fixed, 0 regressions, 18 of 88 fields + fully match (was 16). + - **Also:** the protocol reference records where the 1995 default-clock + events come from (units back from calibration with the battery unplugged; + 17 in DL2). + - ⚠ **Codec change:** it rides the next release's `TOOL_VERSION` bump and + backfill. It moves the stored time of those ~14 events on prod. No schema + change. ### Added - **A Blastware file's job number, and whether Blastware shows it.**