fix(decode): a Blastware file's geophone range comes from its setup -- Sensitive events no longer read 8x
In the setup's channel blocks, the byte 29 after each geophone label is the range: 0x00 Normal (10 in/s), 0x01 Sensitive (1.25 in/s). It matches Blastware's GeoRange on 70,042 / 70,042 DL2 events, all three channels agreeing on every one (35 Sensitive). SFM's live 1A has the same byte at label+33. SFM assumed Normal, so every Sensitive event's peaks, vector sum and .h5 samples read 8x high. - Event.geo_range (0 / 1, None when not read -- channels disagreeing, an unknown value or a missing block -- with a decode_problems entry). - decode_blastware_bytes scales peaks and the histogram vector sum by it. - event_hdf5.write_event_hdf5: geo_range defaults to None = the event's own, else Normal; an explicit argument still wins. - waveform_store.save_imported_bw and scripts/backfill_sidecars.py stop forcing 'normal', so imports and the backfill store the file's range. The waveform_store line was agreed with the parity session, which owns that file; its own branch keeps a geo_range parameter, defaulting to None at its next dev merge. - The checker's SFM side converts at the event's range and reports GeoRange; tests that pinned the old 8x gap now pin the fix, and the saturation carve-out is still tested against an 8x value. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
1 parent
6c7c6b0a15
commit
4844135f01
13 files changed
+3549
-32
No files matched your search
@@ -428,8 +428,7 @@ def main(argv=None) -> int:
|
||||
try:
|
||||
event_hdf5.write_event_hdf5(
|
||||
hdf5_path, ev,
|
||||
serial=serial,
|
||||
geo_range="normal",
|
||||
serial=serial, # range: the event's own, from its setup
|
||||
source_kind=source_kind,
|
||||
)
|
||||
hdf5_filename = hdf5_path.name
|
||||
|
||||
Reference in new issue
Block a user