fix(decode): the mic's own range -- a range-1 mic reads an eighth
The mic's channel block carries a range byte at the geophones' offset (label + 29, reference D.6.4). At 1 each count is an eighth, 0.25 / 8 Pa: set on 7 DL2 events, all of them Blastware's values divided by 8, and on none of the other 70,026 -- independently of the geophone range (28 events have Sensitive geophones and a range-0 mic). SFM read those 7 mics 8x high: K557J1XQ.GF0W is 79.4 dB(L), not 97.5. Event.mic_range; the decoded mic peak (and so the .h5 mic samples, whose scale is the peak's) and the checker's mic conversions follow it. 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
af8dde5114
commit
836c9e864b
7 files changed
+3266
-12
No files matched your search
@@ -473,3 +473,13 @@ def test_an_over_range_flag_against_a_printed_number_is_a_mismatch():
|
||||
sfm.event.peak_values.pvs_over_range = True # SFM would print OORANGE; Blastware printed 14.49
|
||||
res = {r.field: r for r in compare(sfm, ref, CARVEOUTS)}
|
||||
assert res["PeakVectorSum"].verdict == "mismatch"
|
||||
|
||||
|
||||
|
||||
def test_a_range_1_mic_matches_blastware():
|
||||
# Its mic range byte is 1: every count is an eighth (79.4 dB(L), not 97.5).
|
||||
path = _OR / "K557J1XQ.GF0W"
|
||||
ref = parse_xml_report_file(path.with_name(path.name.replace(".", "_", 1) + "_XML.XML"))
|
||||
res = {r.field: r for r in compare(sfm_side(path.read_bytes()), ref, CARVEOUTS)}
|
||||
for f in ("MicLPSPL", "samples.MicL"):
|
||||
assert res[f].verdict == "match", (f, res[f])
|
||||
Reference in new issue
Block a user