Files
seismo-relay/tests/fixtures/histogram-decode-11-02-26/T193KR5M_X90H_XML.XML
T
serversdownandClaude Opus 5.5 aec4a38473 fix(decode): histograms go to the histogram codec, and a loud interval no longer hides a short one
Three causes behind the histograms the checker found decoding wrongly:

1. The file decoder tried the waveform codec first, whatever the record
   type.  It accepted BE9440 / BE9557 / BE17354's 2018 5 s histograms and
   returned ~5x too many 'samples' (K440HDXX.XH0H: SFM 44,504, Blastware
   6,976).  The codec now follows STRT[18] (0x46 / 0x0A on 70,041 /
   70,041 DL2 files); only an unknown type falls back to trial order, and a
   chosen codec that fails is a decode problem rather than a silent switch.

2. The sub-minute layout check required each record's 'zero word' to be
   0000.  It is the high word of the interval's PVS squared, non-zero above
   1.28 in/s, so a one-block histogram with a loud interval was not
   recognised (T193KR5M.X90H, K440HA3C.JM0H, R352HFZ7.530H decoded to
   nothing).  The check is now the measured relation peak <= PVS <=
   sqrt(3) * peak, which holds on 34,502,955 / 34,502,955 DL2 sub-minute
   intervals.  The no-terminal-tail trim uses the same test.  Two test
   builders wrote PVS bytes no real record has (one still in the retracted
   little-endian layout); they now write peak^2 in the measured layout, and
   the retraction test keeps a legacy builder of its own.

3. Checker carve-out interval-count-is-duration: Blastware's Number of
   Intervals is (stop - start) / interval from the footer times, and its
   own interval table lists one block fewer when the unit never wrote the
   last minute.  SFM matches the table (T193KSWP.FF0H: 2,880 vs 2,850).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-02 16:20:32 -05:00

141 lines
5.5 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<Event>
<FileVersion>8.0</FileVersion>
<EventType>Full Histogram</EventType>
<SerialNumber>BE18193</SerialNumber>
<Version>V 10.72-8.17 MiniMate Plus</Version>
<FileName>T193KR5M.X90H</FileName>
<HistogramStartTime>17:22:21</HistogramStartTime>
<HistogramStartDate>2024-10-07</HistogramStartDate>
<HistogramStopTime>17:22:38</HistogramStopTime>
<HistogramStopDate>2024-10-07</HistogramStopDate>
<Channels>
<Channel>Tran</Channel>
<Channel>Vert</Channel>
<Channel>Long</Channel>
<Channel>MicL</Channel>
</Channels>
<NumberofIntervals>9.00</NumberofIntervals>
<IntervalSize>2 seconds</IntervalSize>
<SampleRate>1024 sps</SampleRate>
<BatteryLevel>6.3 Volts</BatteryLevel>
<Calibration>July 10, 2024 by Instantel</Calibration>
<Units>in/s and dB(L)</Units>
<Project>I-80- North Fork Bridges-543 Plank Rd</Project>
<Client>Fay Company</Client>
<UserName>Terra-Mechanics Inc - Harrison</UserName>
<Seis.Loc>Loc #1 -Main Line- Area 2 - 543 Plank Rd</Seis.Loc>
<GeoRange>
<Value>10.000</Value>
<Units>in/s</Units>
</GeoRange>
<TranPPV>
<Value>2.290</Value>
<Units>in/s</Units>
</TranPPV>
<VertPPV>
<Value>5.515</Value>
<Units>in/s</Units>
</VertPPV>
<LongPPV>
<Value>1.520</Value>
<Units>in/s</Units>
</LongPPV>
<TranZCFreq>
<Value>11</Value>
<Units>Hz</Units>
</TranZCFreq>
<VertZCFreq>
<Value>34</Value>
<Units>Hz</Units>
</VertZCFreq>
<LongZCFreq>
<Value>18</Value>
<Units>Hz</Units>
</LongZCFreq>
<TranPeakTime>17:22:37</TranPeakTime>
<TranPeakDate>2024-10-07</TranPeakDate>
<VertPeakTime>17:22:37</VertPeakTime>
<VertPeakDate>2024-10-07</VertPeakDate>
<LongPeakTime>17:22:37</LongPeakTime>
<LongPeakDate>2024-10-07</LongPeakDate>
<PeakVectorSum>
<Value>5.818</Value>
<Units>in/s</Units>
</PeakVectorSum>
<PeakVectorSumTime>17:22:37</PeakVectorSumTime>
<PeakVectorSumDate>2024-10-07</PeakVectorSumDate>
<Microphone>Linear Weighting</Microphone>
<MicLPSPL>
<Value>108.0</Value>
<Units>dB(L)</Units>
</MicLPSPL>
<MicLTime>17:22:37</MicLTime>
<MicLDate>2024-10-07</MicLDate>
<MicLZCFreq>
<Value>57</Value>
<Units>Hz</Units>
</MicLZCFreq>
<TranTestFreq>7.6 Hz.</TranTestFreq>
<TranTestRatio>3.7</TranTestRatio>
<TranTestResults>Passed</TranTestResults>
<VertTestFreq>7.7 Hz.</VertTestFreq>
<VertTestRatio>3.5</VertTestRatio>
<VertTestResults>Passed</VertTestResults>
<LongTestFreq>7.5 Hz.</LongTestFreq>
<LongTestRatio>3.6</LongTestRatio>
<LongTestResults>Passed</LongTestResults>
<MicLTestFreq>0.0 Hz.</MicLTestFreq>
<MicLTestAmplitude>0 mv</MicLTestAmplitude>
<MicLTestResults>Check</MicLTestResults>
<UsbSummaryChannels>
</UsbSummaryChannels>
<MonitorLog>2024-10-07 17:22:20 - 2024-10-07 17:22:38 &quot;Event Recorded Modem Exit&quot;</MonitorLog>
<HistogramData>
<HistogramDataColumnTitle>
<ColumnTitle> Tran Peak in/s </ColumnTitle>
<ColumnTitle> Tran Freq Hz </ColumnTitle>
<ColumnTitle> Vert Peak in/s </ColumnTitle>
<ColumnTitle> Vert Freq Hz </ColumnTitle>
<ColumnTitle> Long Peak in/s </ColumnTitle>
<ColumnTitle> Long Freq Hz </ColumnTitle>
<ColumnTitle> Geo PVS in/s </ColumnTitle>
<ColumnTitle> MicL Peak psi(L) </ColumnTitle>
<ColumnTitle> MicL Peak dB(L) </ColumnTitle>
<ColumnTitle> MicL Freq Hz </ColumnTitle>
</HistogramDataColumnTitle>
<HistogramDataIntervals>
<Time>2024-10-07 17:22:23</Time>
<Row>
<Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.010</Cell><Cell>&gt;100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>104.2</Cell><Cell>64</Cell></Row>
<Time>2024-10-07 17:22:25</Time>
<Row>
<Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>104.2</Cell><Cell>64</Cell></Row>
<Time>2024-10-07 17:22:27</Time>
<Row>
<Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>104.2</Cell><Cell>64</Cell></Row>
<Time>2024-10-07 17:22:29</Time>
<Row>
<Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>104.2</Cell><Cell>64</Cell></Row>
<Time>2024-10-07 17:22:31</Time>
<Row>
<Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>104.2</Cell><Cell>64</Cell></Row>
<Time>2024-10-07 17:22:33</Time>
<Row>
<Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>104.2</Cell><Cell>73</Cell></Row>
<Time>2024-10-07 17:22:35</Time>
<Row>
<Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.010</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>104.2</Cell><Cell>64</Cell></Row>
<Time>2024-10-07 17:22:37</Time>
<Row>
<Cell>2.290</Cell><Cell>11</Cell><Cell>5.515</Cell><Cell>34</Cell><Cell>1.520</Cell><Cell>18</Cell><Cell>5.818</Cell><Cell>0.001</Cell><Cell>108.0</Cell><Cell>57</Cell></Row>
<Time>2024-10-07 17:22:38</Time>
<Row>
<Cell>0.010</Cell><Cell>&gt;100</Cell><Cell>0.020</Cell><Cell>2.9</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.022</Cell><Cell>0.001</Cell><Cell>104.9</Cell><Cell>64</Cell></Row>
</HistogramDataIntervals>
</HistogramData>
<HistogramDataUsbChannels>
</HistogramDataUsbChannels>
</Event>