Files
seismo-relay/tests/fixtures/histogram-decode-11-02-26/K440HA3C_JM0H_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

138 lines
5.3 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<Event>
<FileVersion>8.0</FileVersion>
<EventType>Full Histogram</EventType>
<SerialNumber>BE9440</SerialNumber>
<Version>V 10.72-8.17 MiniMate Plus</Version>
<FileName>K440HA3C.JM0H</FileName>
<HistogramStartTime>11:42:58</HistogramStartTime>
<HistogramStartDate>2018-02-10</HistogramStartDate>
<HistogramStopTime>11:43:34</HistogramStopTime>
<HistogramStopDate>2018-02-10</HistogramStopDate>
<Channels>
<Channel>Tran</Channel>
<Channel>Vert</Channel>
<Channel>Long</Channel>
<Channel>MicL</Channel>
</Channels>
<NumberofIntervals>8.00</NumberofIntervals>
<IntervalSize>5 seconds</IntervalSize>
<SampleRate>1024 sps</SampleRate>
<BatteryLevel>6.8 Volts</BatteryLevel>
<Calibration>January 11, 2018 by Instantel</Calibration>
<Units>in/s and dB(L)</Units>
<Project>Villanova Stadium Station - Seis. Loc #2</Project>
<Client>D&apos;Angleo Brothers, Inc</Client>
<UserName>Terra-Mechanics, Inc - D Harrison</UserName>
<Seis.Location>Loc # 2 - OutBound Track</Seis.Location>
<GeoRange>
<Value>10.000</Value>
<Units>in/s</Units>
</GeoRange>
<TranPPV>
<Value>0.390</Value>
<Units>in/s</Units>
</TranPPV>
<VertPPV>
<Value>2.645</Value>
<Units>in/s</Units>
</VertPPV>
<LongPPV>
<Value>0.095</Value>
<Units>in/s</Units>
</LongPPV>
<TranZCFreq>
<Value>85</Value>
<Units>Hz</Units>
</TranZCFreq>
<VertZCFreq>
<Value>73</Value>
<Units>Hz</Units>
</VertZCFreq>
<LongZCFreq>
<Value>43</Value>
<Units>Hz</Units>
</LongZCFreq>
<TranPeakTime>11:43:33</TranPeakTime>
<TranPeakDate>2018-02-10</TranPeakDate>
<VertPeakTime>11:43:33</VertPeakTime>
<VertPeakDate>2018-02-10</VertPeakDate>
<LongPeakTime>11:43:33</LongPeakTime>
<LongPeakDate>2018-02-10</LongPeakDate>
<PeakVectorSum>
<Value>2.656</Value>
<Units>in/s</Units>
</PeakVectorSum>
<PeakVectorSumTime>11:43:33</PeakVectorSumTime>
<PeakVectorSumDate>2018-02-10</PeakVectorSumDate>
<Microphone>Linear Weighting</Microphone>
<MicLPSPL>
<Value>126.4</Value>
<Units>dB(L)</Units>
</MicLPSPL>
<MicLTime>11:43:18</MicLTime>
<MicLDate>2018-02-10</MicLDate>
<MicLZCFreq>
<Value>&gt;100</Value>
<Units>Hz</Units>
</MicLZCFreq>
<TranTestFreq>7.2 Hz.</TranTestFreq>
<TranTestRatio>4.3</TranTestRatio>
<TranTestResults>Passed</TranTestResults>
<VertTestFreq>7.5 Hz.</VertTestFreq>
<VertTestRatio>3.7</VertTestRatio>
<VertTestResults>Passed</VertTestResults>
<LongTestFreq>7.4 Hz.</LongTestFreq>
<LongTestRatio>4.1</LongTestRatio>
<LongTestResults>Passed</LongTestResults>
<MicLTestFreq>19.7 Hz.</MicLTestFreq>
<MicLTestAmplitude>634 mv</MicLTestAmplitude>
<MicLTestResults>Passed</MicLTestResults>
<UsbSummaryChannels>
</UsbSummaryChannels>
<MonitorLog>2018-02-10 11:42:57 - 2018-02-10 11:43:34 &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>2018-02-10 11:43:03</Time>
<Row>
<Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>&gt;100</Cell><Cell>0.005</Cell><Cell>N/A</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>34</Cell></Row>
<Time>2018-02-10 11:43:08</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>100.0</Cell><Cell>&gt;100</Cell></Row>
<Time>2018-02-10 11:43:13</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>87.96</Cell><Cell>&gt;100</Cell></Row>
<Time>2018-02-10 11:43:18</Time>
<Row>
<Cell>0.010</Cell><Cell>&gt;100</Cell><Cell>0.015</Cell><Cell>&gt;100</Cell><Cell>0.010</Cell><Cell>&gt;100</Cell><Cell>0.016</Cell><Cell>0.006</Cell><Cell>126.4</Cell><Cell>&gt;100</Cell></Row>
<Time>2018-02-10 11:43:23</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.004</Cell><Cell>122.0</Cell><Cell>43</Cell></Row>
<Time>2018-02-10 11:43:28</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>87.96</Cell><Cell>&gt;100</Cell></Row>
<Time>2018-02-10 11:43:33</Time>
<Row>
<Cell>0.390</Cell><Cell>85</Cell><Cell>2.645</Cell><Cell>73</Cell><Cell>0.095</Cell><Cell>43</Cell><Cell>2.656</Cell><Cell>0.000</Cell><Cell>93.98</Cell><Cell>&gt;100</Cell></Row>
<Time>2018-02-10 11:43:34</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.007</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>&gt;100</Cell></Row>
</HistogramDataIntervals>
</HistogramData>
<HistogramDataUsbChannels>
</HistogramDataUsbChannels>
</Event>