fix(decode): one MicL count is 0.25 Pa -- the mic psi was ~95x low
SFM converted mic counts to psi with a '~0.5 psi full-scale' guess (0.0125 / 32768 psi per count). Measured against 1,729,253 DL2 histogram intervals' 'MicL Peak' columns: one count is exactly 0.25 Pa. count x 0.25 Pa matches Blastware's psi(L) on every interval, and 20 log10(count x 0.25 Pa / 20 uPa) its dB(L) on all but 17 exact half-way cases. - event_file_io: _MIC_FS_PSI -> _MIC_PSI_PER_COUNT = 0.25 / 6894.757 (3.626e-5 psi per count, was 3.81e-7). The event's mic peak in psi, and with it the .h5 mic trace (event_hdf5 back-solves its scale from that peak), come right on events with no report. - waveform_codec.mic_count_to_db: the offset is 20 log10(0.25 / 20e-6) = 81.938, not 81.94 -- the old value missed 49 of those intervals at a rounding edge (count 119 printed 123.4, 81.94 gave 123.451). The decoded count was always right: count 16 on K441LTON.900 is Blastware's 106.0 dB. 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
dc42ae041a
commit
5644dbd5ad
5 files changed
+56
-18
No files matched your search
@@ -142,3 +142,8 @@ def test_pvs_carveout_needs_the_clipped_channel_at_the_ceiling():
|
||||
side.values["TranPPV"] = 1.256
|
||||
res = {r.field: r for r in compare(side, ref, CARVEOUTS)}
|
||||
assert res["PeakVectorSum"].verdict == "mismatch"
|
||||
|
||||
|
||||
def test_interval_mic_psi_matches():
|
||||
# psi(L) report: every interval's "MicL Peak psi(L)" now converts right
|
||||
assert _results("T004JTRF.ME0H")["intervals.MicL Peak psi(L)"].verdict == "match"
|
||||
Reference in new issue
Block a user