Compare commits
43
Commits
No files matched your search
+281
@@ -4,6 +4,287 @@ All notable changes to seismo-relay are documented here.
|
||||
|
||||
---
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
- ✅ **#51: events are identified by unit + time + type, and histograms take
|
||||
Blastware's times.**
|
||||
- **The new key.** The events table was `UNIQUE(serial, timestamp)`, one
|
||||
event per unit per second. A waveform and its histogram share a second
|
||||
legitimately: 209 times in prod's 2026-09-30 store. The key is now
|
||||
`UNIQUE(serial, timestamp, record_type)` (agreed with Brian 2026-11-03).
|
||||
- **Migration 3** rebuilds the table from its own definition with only the
|
||||
key swapped, in one transaction. Every column, row and id is kept, and
|
||||
the indexes are recreated.
|
||||
- **Lookups:** the upsert, the estimate guard and the restamp match on
|
||||
type. The restamp also re-types a file's own row in place. An untyped
|
||||
event still dedups against an untyped row.
|
||||
- **Histogram times.** A histogram's start and stop now come from its own
|
||||
event record (lead `00 28 05 00`, source `04 00`, marker `fe f5`). That is
|
||||
Blastware's Histogram Start and Stop on 63,490 / 63,490 DL2 histograms; the
|
||||
footer's start was a second early on 97%. Without a validated record, the
|
||||
footer stands and the decoder logs a decode problem.
|
||||
- **Interval times and peak times follow:**
|
||||
- each interval's printed time is its end, start + (i + 1) × interval,
|
||||
capped at the stop (2,308,524 / 2,308,524 rows; `interval_times`)
|
||||
- each peak's date and time is its interval's
|
||||
- **Decode checker:** 760,410 comparisons fixed, 0 regressions, **47 of 88**
|
||||
fields fully match (was 34). Histogram start and stop times, interval
|
||||
times and the ten peak date/time fields match every DL2 histogram.
|
||||
- **Rehearsed on a copy of prod's 2026-09-30 snapshot (15,432 events):**
|
||||
- The migration kept every row identical, rebuilt the indexes and passed
|
||||
the integrity check, in 0.27 s.
|
||||
- `backfill_sidecars.py`: 11,944 files, 0 errors. 9,852 Series-3
|
||||
histograms moved +1 s in place, with no id lost and review state
|
||||
untouched. The 209 same-second pairs coexist, and 0 collisions were
|
||||
refused. (It also created 341 rows for store files that never had one:
|
||||
the known one-time behaviour, not duplicates.)
|
||||
- `backfill_event_shape.py`: exit 0, `cleared_stale` 0.
|
||||
- ⚠ **Schema migration + codec change.** SFM migrates the events table by
|
||||
itself on first start: back up `seismo_relay.db` first. The release
|
||||
backfill (`backfill_sidecars.py` then `backfill_event_shape.py`) moves
|
||||
every Series-3 histogram's stored time by one second, in place.
|
||||
- Terra-View pairs twins by peak values and reads rows by id: no change
|
||||
needed there.
|
||||
- Note for Terra-View's changelog: Series-3 histograms move forward one
|
||||
second, so an event can cross a deployment-window edge.
|
||||
- Three tests that pinned the old footer start now pin the record's. The
|
||||
estimate-guard test's neighbour is now the same type.
|
||||
- **A Blastware file's geophone range comes from its setup, so Sensitive
|
||||
events no longer read 8× high.**
|
||||
- **Where it is:** in the setup's channel blocks, the byte 29 after each
|
||||
geophone label. `0x00` is Normal (10 in/s full scale), `0x01` is Sensitive
|
||||
(1.25 in/s). SFM's live 1A read has the same byte at label+33.
|
||||
- **Measured:** it matches Blastware's GeoRange on 70,042 / 70,042 DL2
|
||||
events, all three channels agreeing on every one (35 Sensitive).
|
||||
- **Before:** SFM assumed Normal, so every Sensitive event's peaks, vector
|
||||
sum and `.h5` samples read 8× high.
|
||||
- **`Event.geo_range`** is new: 0 or 1, or None when it isn't read (the
|
||||
channels disagree, an unknown value, or a missing block). None comes with
|
||||
a `decode_problems` entry, and peaks then assume Normal as before.
|
||||
- **`decode_blastware_bytes`** scales peaks and the histogram vector sum by
|
||||
the range.
|
||||
- **`event_hdf5.write_event_hdf5`:** `geo_range` now defaults to None,
|
||||
meaning the event's own range, else Normal. An explicit argument still
|
||||
wins.
|
||||
- **`waveform_store.save_imported_bw` and `scripts/backfill_sidecars.py`**
|
||||
no longer force `"normal"`. The `waveform_store` line was agreed with the
|
||||
parity session, which owns that file.
|
||||
- **Decode checker:** GeoRange 70,042 / 70,042, and geophone samples exact
|
||||
on **6,524 / 6,524** waveforms (was 6,491). PPV mismatches about halved,
|
||||
and 10 of 88 fields fully match (was 6). 70,287 comparisons fixed, 0
|
||||
regressions.
|
||||
- ⚠ **Codec change: bump `TOOL_VERSION` at the next release.** The backfill
|
||||
(`backfill_sidecars.py` then `backfill_event_shape.py`) rewrites stored
|
||||
Sensitive events' peaks and `.h5` files. No schema change.
|
||||
- **Histograms go to the histogram codec, and a loud interval no longer hides
|
||||
a short one.** These were the histograms the decode checker found decoding
|
||||
wrongly.
|
||||
- **The codec now follows the record type.** The file decoder used to try the
|
||||
waveform codec first, whatever `STRT[18]` said. That codec accepted BE9440,
|
||||
BE9557 and BE17354's 2018 5 s histograms and returned about 5× too many
|
||||
"samples" (K440HDXX.XH0H: 44,504 against Blastware's 6,976). Only an
|
||||
unknown type still falls back to trying both, and a chosen codec that
|
||||
fails is now a decode problem rather than a silent switch.
|
||||
- **A loud interval no longer breaks the sub-minute layout check.** The check
|
||||
required each record's "zero word" to be `0000`. That word is the high word
|
||||
of the interval's PVS², which is non-zero above 1.28 in/s, so a one-block
|
||||
histogram with a loud interval decoded to nothing (T193KR5M.X90H,
|
||||
K440HA3C.JM0H, R352HFZ7.530H).
|
||||
- The check is now the measured relation peak ≤ PVS ≤ √3·peak. It holds
|
||||
on 34,502,955 / 34,502,955 DL2 sub-minute intervals.
|
||||
- The trim for a stream with no terminal tail uses the same test.
|
||||
- **New decode-checker carve-out, `interval-count-is-duration`.** Blastware's
|
||||
"Number of Intervals" is (stop − start) / interval. When the unit never
|
||||
wrote the last minute, Blastware's own interval table lists one block
|
||||
fewer, and SFM matches the table. It covers 8 events.
|
||||
- **Decode checker:** 462 comparisons fixed, 0 regressions, 16 of 88 fields
|
||||
fully match (was 11).
|
||||
- Every DL2 histogram's Tran / Vert / Long interval peaks now match
|
||||
Blastware (bar the clipped intervals the saturation carve-out covers).
|
||||
- Channels 70,042 / 70,042.
|
||||
- Histogram start dates a day off: 26 → 9.
|
||||
- Peak vector sum mismatches: 45 → 18.
|
||||
- ⚠ **Codec change:** it rides the next release's `TOOL_VERSION` bump and
|
||||
backfill (`backfill_sidecars.py` then `backfill_event_shape.py`). Those
|
||||
files are stored wrongly on prod today, and the backfill rewrites them. No
|
||||
schema change.
|
||||
- **A Blastware file's footer is its last 26 bytes: no more day-late
|
||||
histograms.**
|
||||
- **Measured:** every DL2 file ends in a valid footer (`0e 08` and two valid
|
||||
times), 70,041 / 70,041.
|
||||
- **The bug:** the decoder took the first "`0e 08` + plausible year". On 14
|
||||
files there is an earlier record, about 1.1 KB before the end, holding the
|
||||
stop time followed by zeros.
|
||||
- A histogram then started at its own stop: a day late on BE9558's daily
|
||||
histograms (K558L9XP.FK0H read 2025-10-08 19:10:01 for Blastware's
|
||||
2025-10-07 19:14:08).
|
||||
- T003LCYV.JD0H got no time at all.
|
||||
- A waveform lost its stop, so its trigger was never computed and the stop
|
||||
was stamped instead (K440I4LG.JK0W: 11:14:12 for 11:14:08).
|
||||
- **The fix:** the last 26 bytes are now taken when they are a footer, and
|
||||
the old search remains only as the fallback.
|
||||
- **Decode checker:** event times 6,524 / 6,524 and histogram start dates
|
||||
63,518 / 63,518. 13 comparisons fixed, 0 regressions, 18 of 88 fields
|
||||
fully match (was 16).
|
||||
- **Also:** the protocol reference records where the 1995 default-clock
|
||||
events come from (units back from calibration with the battery unplugged;
|
||||
17 in DL2).
|
||||
- ⚠ **Codec change:** it rides the next release's `TOOL_VERSION` bump and
|
||||
backfill. It moves the stored time of those ~14 events on prod. No schema
|
||||
change.
|
||||
|
||||
### Added
|
||||
- **A histogram's interval detail: frequencies, vector sums, interval size and
|
||||
stop** (group B of the file-only decode). Measured on DL2 2026-11-03.
|
||||
- **Frequency** = (sample rate / 2) / half-period: 527,915 / 527,915 cells
|
||||
at 1024 sps and 1,725 / 1,725 at 2048.
|
||||
- ✅ **Fixes #50.** `half_period_to_hz` used a fixed 512 and halved every
|
||||
2048-sps frequency. It now takes the rate (default 1024).
|
||||
- Blastware prints "N/A" for a half-period of 0, ">100" (">200" at 2048)
|
||||
at 5 samples or fewer, and "<1.0" below 1 Hz.
|
||||
- **Each interval's vector sum**, √PVS² at the event's range.
|
||||
- **Interval size:** uint16 seconds at `k − 40` (Series IV `[8:10]`).
|
||||
- **Stop time:** the footer's.
|
||||
- **`Event` gains** `histogram_interval_sec`, `interval_half_periods`,
|
||||
`interval_pvs` and `stop_time`.
|
||||
- **The `.h5` gains** `/intervals/half_period/<ch>` and `/intervals/pvs_ips`,
|
||||
plus a `histogram_interval_sec` attribute.
|
||||
- **Decoder:** a histogram is now walked once
|
||||
(`histogram_codec.channels_from_records`).
|
||||
- **Decode checker:** 508,080 comparisons fixed, 0 regressions, 34 of 88
|
||||
fields fully match (was 28).
|
||||
- Frequencies on all four channels, interval size and stop date match
|
||||
every DL2 histogram.
|
||||
- Interval vector sum: 63,497 match, plus 17 clipped intervals now under
|
||||
the saturation carve-out. Blastware prints OORANGE when the sum exceeds
|
||||
the range in an interval where it clamped a channel (17 / 17).
|
||||
- 4 cells sit 4e-6 past a rounding boundary and stay mismatches.
|
||||
- 58 stop times are Blastware a second earlier, part of #51.
|
||||
- ⚠ **Codec change:** it rides the next release's `TOOL_VERSION` bump and
|
||||
backfill. The `.h5` additions are additive. No schema change.
|
||||
- **A Blastware file's identity, battery and trigger settings** (group A of the
|
||||
file-only decode). Every field is matched against every DL2 report
|
||||
(2026-11-03).
|
||||
- **Identity block** before the setup name: what the live read gets from
|
||||
SUB FE.
|
||||
- serial `k − 202`, firmware `k − 147`, DSP version `k − 138`, firmware
|
||||
minor `k − 193`
|
||||
- calibration date `k − 132` and "by" `k − 128`
|
||||
- manufacturer `k − 94`, model `k − 72`
|
||||
- Filled into `Event.device_info`; `DeviceInfo` gains `calibration_date` /
|
||||
`calibrated_by`.
|
||||
- Serial, Version and Calibration match 70,042 / 70,042.
|
||||
- **Battery:** uint16 hundredths of a volt at `k − 190`
|
||||
(`Event.battery_volts`), 70,042 / 70,042. Blastware rounds half up
|
||||
(6.25 → "6.3 Volts").
|
||||
- **Trigger source:** the two bytes between the embedded event record's lead
|
||||
and `fe 80`, a bitmask (`0x01` Tran, `0x02` Vert, `0x04` Long, `0x08`
|
||||
MicL, `0x200` Manual). 6,524 / 6,524 (`Event.triggered_by`).
|
||||
- **Trigger settings,** in Series IV's `0x1A` layout:
|
||||
- the sources bitmask at `k − 19`
|
||||
- the stop mode at `k − 31` (0 = Fixed)
|
||||
- each channel's float32 level at label + 30 (geo in/s, mic psi)
|
||||
- the mic type code at MicL + 4 (2 = Linear Weighting)
|
||||
|
||||
Blastware prints a level when its channel is a trigger source and the
|
||||
event wasn't Manual. Geo level 6,484 / 6,484, mic level 4,412 / 4,412
|
||||
(its dB uses 6895 Pa/psi).
|
||||
- **`.h5`:** all of them as attributes (additive).
|
||||
- **Decode checker:** 444,188 comparisons fixed, 0 regressions, 28 of 88
|
||||
fields fully match (was 18).
|
||||
- A mic level is now compared in the unit it is printed in: K441LA17.IN0W
|
||||
prints dB under psi Units.
|
||||
- New carve-out `units-is-a-display-preference` (3,532 events). dB or psi
|
||||
in a Blastware report is that PC's Blastware preference when it wrote the
|
||||
report (Blastware manual §4, Preferences → Units and Channel), not the
|
||||
unit's Microphone Units setting (MiniMate Plus manual §3.9.7). DL2's
|
||||
reports switch fleet-wide in 61 clean runs by write time, and no byte of
|
||||
the file separates them.
|
||||
- Single-value fields are proven for that value only: Version `10.72-8.17`,
|
||||
stop mode Fixed, mic type Linear.
|
||||
- ⚠ **Codec change:** it rides the next release's `TOOL_VERSION` bump and
|
||||
backfill. No schema change.
|
||||
- **A Blastware file's job number, and whether Blastware shows it.**
|
||||
- **Where it is:** the setup block has Series IV's `0x1A` layout here too.
|
||||
The report flags sit at 9 bytes before the setup name, with bit `0x02`
|
||||
meaning the job number is shown. The number is a uint16 BE at 8 bytes
|
||||
before the name, and it is kept while switched off.
|
||||
- **Measured:** the flag matches Blastware's JobNumber on 2,997 / 2,997 DL2
|
||||
events that print one, and 66,986 / 66,986 that don't.
|
||||
- Every printed value is 1, so the value is only proven for 1.
|
||||
- Hidden ones hold real numbers (802, 1012, 1013, 622).
|
||||
- **`ProjectInfo.job_number_enabled` / `job_number`**, named as in
|
||||
`micromate.setup_block`.
|
||||
- **`write_event_hdf5`** stores both as `.h5` attributes when they were read.
|
||||
- **Decode checker:** JobNumber 2,997 / 2,997, and 11 of 88 fields fully
|
||||
match (was 10). 0 regressions. A job number only SFM shows now counts as a
|
||||
mismatch.
|
||||
- **Not in the database, the API or the PDF report yet.** That needs a
|
||||
column.
|
||||
- ⚠ **Codec change:** it rides the next release's `TOOL_VERSION` bump and
|
||||
backfill (`backfill_sidecars.py` then `backfill_event_shape.py`). The new
|
||||
`.h5` attributes are additive. No schema change, no migration.
|
||||
|
||||
### Protocol / Documentation
|
||||
- **Group B in the protocol reference (D.6.9):**
|
||||
- interval size, the stop, and per-interval frequency, with Blastware's
|
||||
words (`N/A`, `>100` / `>200`, `<1.0`)
|
||||
- each interval's vector sum, with its OORANGE rule
|
||||
- #50's fixed-512 formula is retracted in place
|
||||
- CLAUDE.md and the README roadmap follow
|
||||
- Docs only.
|
||||
- **Group A in the protocol reference, and the three meanings of mic
|
||||
"units".**
|
||||
- **D.6.8:** the identity block, the trigger-source bitmask and the trigger
|
||||
settings.
|
||||
- **D.6.6:** recorded data vs report units vs unit peaks, with the
|
||||
MiniMate Plus and Blastware manual sections. CLAUDE.md carries the same
|
||||
glossary.
|
||||
- 🔶 Inferred: the histogram "terminal tail" `9c 06 00 42` is `9c 06 00`
|
||||
plus the serial's `B`.
|
||||
- Docs only: no code change, no migration.
|
||||
- **Where file-only decoding stands, and that prod's ASCII overlay is
|
||||
scaffolding.**
|
||||
- **CLAUDE.md "Where things stand"** now says plainly that a paired
|
||||
Blastware ASCII report overwrites SFM's decode on import, and that only
|
||||
report-less events run on the decoder alone. The overlay is to be retired
|
||||
at step 3 of the plan.
|
||||
- The checker status is brought up to `dev`: 18 of 88 fields match on every
|
||||
DL2 event, with the remaining groups A–F in the proposed order. The README
|
||||
roadmap is updated to match.
|
||||
- **The protocol reference** records:
|
||||
- the footer as the file's last 26 bytes (D.3.3, with `[18:24]` retracted
|
||||
as "fixed")
|
||||
- the codec chosen by STRT[18]
|
||||
- the job number
|
||||
- the PVS² high word and the peak / PVS consistency check (retracting
|
||||
"reads 0000")
|
||||
- Blastware's interval count
|
||||
- a refreshed "not read yet" list
|
||||
- Docs only: no code change, no migration.
|
||||
- **`docs/instantel_protocol_reference.md` gains Appendix D.6:** the bytes
|
||||
and DL2 verification for every field SFM reads from a Blastware event file.
|
||||
- the record type, `STRT[18]`
|
||||
- the recording-setup block: sample rate, pre-trigger, record time and the
|
||||
four notes
|
||||
- the geophone range
|
||||
- each histogram interval's PVS²
|
||||
- the mic scale
|
||||
- **Retracted in place:**
|
||||
- `STRT[20]` as the record time: it is `00` on every DL2 file.
|
||||
- The 2026-08-26 reading of sub-minute histogram records as little-endian:
|
||||
they are big-endian from byte 5 (#47/#49), and the "2-word tail" is the
|
||||
PVS². This is corrected in CLAUDE.md too.
|
||||
- **#48 is still open.** The event file's setup block puts the pre-trigger where
|
||||
the 1A "stable anchor" `be 80 00 00 00 00` sits. In the file, though, it is
|
||||
**each event's own pre-trigger**, not the unit's setting: it varies on the
|
||||
same unit on the same day, and Blastware reports it per event. So the files
|
||||
say little about whether the live 1A read loses its anchor. (Corrected the
|
||||
same day; the first version read the file's value as the setting.)
|
||||
- **CLAUDE.md "Where things stand"** now reflects the range fix.
|
||||
- Docs only: no code change, no migration.
|
||||
|
||||
## v0.33.0 — 2026-11-01
|
||||
|
||||
**SFM reads Series-3 events from the file alone, and proves it against
|
||||
|
||||
@@ -10,10 +10,27 @@ pair — lives in `../terra-view/docs/tmi-stack.md`, which is also loaded as
|
||||
|
||||
---
|
||||
|
||||
## Where things stand (updated 2026-11-01)
|
||||
## Where things stand (updated 2026-11-03)
|
||||
|
||||
Read this first when picking the project back up.
|
||||
|
||||
- **🔑 Prod still leans on Blastware's ASCII report, and that is scaffolding.**
|
||||
- **How it works today:** when a `_ASCII.TXT` report arrives with a
|
||||
Blastware file, `WaveformStore.save_imported_bw` overlays its peaks, notes,
|
||||
sample rate and record time onto SFM's decode
|
||||
(`event_file_io.apply_report_to_event`).
|
||||
- **Only events without a report** run on the decoder alone: all DL2 events
|
||||
before 2025, and everything SFM downloads itself.
|
||||
- **Why that matters:** the overlay made SFM trustworthy from day one. It
|
||||
also hid how much the decoder could not yet do; until the checker (below)
|
||||
there was no full list of what Blastware reports.
|
||||
- **The goal is full function without Blastware (Brian, 2026-10-29).** The
|
||||
README roadmap has four steps:
|
||||
1. the checker ✅
|
||||
2. complete the file-only decode, one field group at a time
|
||||
3. switch ingest so reports are kept only for checking (retire the overlay)
|
||||
4. stop the watchers forwarding reports
|
||||
- Until step 3, prod keeps the report as truth wherever one exists.
|
||||
- **🔑 The Series-3 decode checker (2026-10-29; v0.33.0).**
|
||||
- **Goal:** SFM produces everything Blastware reports, from the event file
|
||||
alone (spec and plan in `docs/superpowers/`).
|
||||
@@ -25,27 +42,66 @@ Read this first when picking the project back up.
|
||||
`~/dl2-archive/checker-runs/` and is never committed.
|
||||
- **The rule:** every mismatch is SFM's bug unless a carve-out with evidence
|
||||
covers it.
|
||||
- **Byte layouts** of every field read from the file:
|
||||
`docs/instantel_protocol_reference.md` Appendix **D.6**.
|
||||
|
||||
**As of v0.33.0:**
|
||||
- ✅ **Match on every event:** sample rate, record time, pre-trigger, notes,
|
||||
and event type (#41, from STRT[18]).
|
||||
- ✅ **Geophone samples** are exact on 6,491 / 6,524 waveforms in every year.
|
||||
The 33 others are the 1.250 in/s range, 8× under SFM's Normal-range
|
||||
assumption.
|
||||
- ✅ **Histogram PVS** = the stored per-interval PVS²: 69,919 / 70,042.
|
||||
- ✅ **Mic: one count = 0.25 Pa,** with Blastware's dB offset at 81.9384. It
|
||||
fails on only a few dozen events.
|
||||
**Where the decoder stands on `dev`** (2026-11-03, run `20261103-180306`):
|
||||
**34 of 88 fields match on every event**, up from about 6 before v0.33.0.
|
||||
The six `dev` fixes below share one release and one backfill. Group B
|
||||
(histogram interval detail, reference D.6.9) is done, which also fixed #50.
|
||||
- ✅ **Match on every event:**
|
||||
- sample rate, record time, pre-trigger, notes and event type (v0.33.0)
|
||||
- geophone range, job number, event times (6,524 / 6,524) and histogram
|
||||
start dates (63,518 / 63,518) — `dev`
|
||||
- group A (`dev`, reference D.6.8): serial, version, calibration, battery,
|
||||
trigger source, geo and mic trigger levels, stop mode, mic type
|
||||
- 🔑 **"Units" means three different things — keep them apart** (reference
|
||||
D.6.6):
|
||||
- **Recorded data:** the mic samples and interval peaks in the file, as
|
||||
raw counts with no unit.
|
||||
- **Report units:** dB(L) or psi(L) in a report.
|
||||
- A Blastware report uses that PC's Blastware preference at the moment
|
||||
it wrote the report; carve-out `units-is-a-display-preference`.
|
||||
- SFM's report uses SFM's own fixed choice.
|
||||
- **Unit peaks:** the unit's own summary, in its keypad Microphone Units
|
||||
setting. Shown on its screen, in Blastware's event list, and in the 0C
|
||||
record.
|
||||
- Where the unit stores that setting is not measured yet; a keypad test
|
||||
on a bench unit would show it.
|
||||
- ✅ **Geophone samples** are exact on **6,524 / 6,524** waveforms in every
|
||||
year (`dev`; v0.33.0 had 6,491, its 33 others being Sensitive-range events
|
||||
read 8× high).
|
||||
- ✅ **Histograms** decode to Blastware's own interval table on every DL2
|
||||
file: Tran / Vert / Long interval peaks have 0 mismatches (`dev`).
|
||||
- The codec is now chosen by STRT[18]. The waveform codec had been
|
||||
claiming 2018 5 s histograms.
|
||||
- The sub-minute layout check now tests peak ≤ PVS ≤ √3·peak.
|
||||
- Blastware's "Number of Intervals" is the monitoring time ÷ the interval:
|
||||
a carve-out, 8 events.
|
||||
- ✅ **Histogram PVS** = the stored per-interval PVS²: 69,989 / 70,042.
|
||||
**Mic:** one count = 0.25 Pa, dB offset 81.9384; a few dozen stragglers.
|
||||
- ❌ **Open:**
|
||||
- histogram start times are 1 s early (#51)
|
||||
- 35 sub-minute (5 s / 2 s) histograms decode wrongly, plus 2 one-minute
|
||||
no-mic histograms (`R352HFZ7`-shaped, likely a separate cause)
|
||||
- 26 histogram start dates are a day off
|
||||
- the per-interval PVS is not stored
|
||||
- histogram start times are 1 s early (#51; fixing it moves every stored
|
||||
histogram by 1 s, and the event key is (serial, time), so it needs a
|
||||
decision first)
|
||||
- the mic stragglers: ~20 one-minute histograms with an interval or two off
|
||||
- Blastware prints `OORANGE` when the vector sum alone exceeds the range
|
||||
(a carve-out to prove)
|
||||
- ⬜ **Not read yet:** job number, ZC frequency, acceleration, displacement,
|
||||
time of peak, sensor check, battery, calibration, range, units, monitor
|
||||
log.
|
||||
- ⬜ **Not read yet, in the order proposed** (2026-11-03):
|
||||
- ~~**A. Setup fields**~~ ✅ done on `dev`.
|
||||
- ~~**B. Histogram interval detail**~~ ✅ done on `dev`. Frequencies (#50),
|
||||
per-interval PVS, interval size, stop.
|
||||
- **C. #51 timing:** start time, per-interval times, peak times.
|
||||
- **D. Blastware's waveform calculations:** ZC frequency, acceleration,
|
||||
displacement, time of peak.
|
||||
- **E. Sensor check results.**
|
||||
- **F. Monitor log:** probably not in the event file at all.
|
||||
- 🔶 **#48 is still open.** The event file's setup block puts the pre-trigger
|
||||
where the 1A "stable anchor" `be 80 00 00 00 00` sits. In the file, though,
|
||||
it is **each event's own pre-trigger**, not the setting: 253–256 samples at
|
||||
1024 sps, alternating on the same unit on the same day, and reported that
|
||||
way by Blastware. So the files say little about whether the live 1A read
|
||||
loses its anchor (reference D.6.2).
|
||||
- **The Series-4 LIVE wire protocol is reverse-engineered end to end
|
||||
(2026-09-25).** `docs/micromate_protocol_reference.md` is the Series-4
|
||||
Rosetta Stone, sibling to `instantel_protocol_reference.md`. **A Micromate
|
||||
@@ -229,8 +285,9 @@ Read this first when picking the project back up.
|
||||
over) needs a BW capture of a spanning event first. Do not ship layer one
|
||||
alone without a loud truncation warning — a silently short event is the
|
||||
failure mode this codec has been bitten by repeatedly.
|
||||
- **Open, not blocking:** 14 sensitive-range files show an exact 8x
|
||||
(= 10.0/1.25) units discrepancy; `scripts/backfill_sidecars.py --force` also
|
||||
- **Open, not blocking:** ~~14 sensitive-range files show an exact 8x
|
||||
(= 10.0/1.25) units discrepancy~~ (**resolved on `dev` 2026-11-02:** the
|
||||
range is read from the file, reference D.6.4); `scripts/backfill_sidecars.py --force` also
|
||||
inserts DB rows for store files that have none (one-time per store) and the
|
||||
dry-run does not report that count.
|
||||
- **After any codec change, regenerate the store** — `backfill_sidecars.py`
|
||||
@@ -640,6 +697,14 @@ block still covers exactly one minute:
|
||||
| 15 s | 4 | 92 |
|
||||
| 2 s | 30 | 612 |
|
||||
|
||||
> ⚠ **CORRECTED in v0.32.0 (#47/#49), recorded here 2026-11-02.** The
|
||||
> records are **big-endian, starting at byte 5**. Each holds a uint16 peak
|
||||
> and a uint16 half-period per channel, then the interval's **PVS² as a
|
||||
> uint32 BE**. Record = 4 × channels + 4 bytes: 20 with the mic, 16
|
||||
> without. `stride = 12 + n × record`. The little-endian reading below was
|
||||
> the same words shifted by one byte. Its "2-word tail" is the PVS²
|
||||
> (reference D.6.5).
|
||||
|
||||
`stride = 12 + n * 20`. Block = `[00][segment][ctr uint16 LE][0a][00]`,
|
||||
then n x 20-byte records of 8 x uint16 **LITTLE**-endian values
|
||||
(`T_peak, T_halfp, V_peak, V_halfp, L_peak, L_halfp, M_peak, M_halfp`)
|
||||
@@ -647,6 +712,7 @@ plus a 2-word tail whose first word is `0000` on every real interval,
|
||||
then a 6-byte block trailer.
|
||||
|
||||
⚠ The standard 32-byte block is BIG-endian; this variant is LITTLE-endian.
|
||||
*(Retracted: both are big-endian; see the box above.)*
|
||||
|
||||
Recovers **415 files** (216 on BE18193, 199 on BE9440) that decoded to
|
||||
nothing. Ground truth `BE9440/K440L3AQ.T70H` matches its BW ASCII export
|
||||
@@ -674,6 +740,9 @@ block has its own tail signature. Two long-standing errors:
|
||||
`1e 0a 00 00`, with arbitrary bytes at `[21:23]`. Rejecting it
|
||||
dropped the final interval of nearly every histogram — frequently the
|
||||
one holding the event peak, so the file's PPV read low.
|
||||
- **`[21:25]` is the interval's PVS² as a uint32 BE** (v0.33.0, reference
|
||||
D.6.5). The "arbitrary bytes" above are probably its high half
|
||||
(inferred).
|
||||
|
||||
Verified against 1211 production histograms paired with their BW ASCII
|
||||
exports: **1211/1211 decode exactly** (interval count plus every
|
||||
@@ -682,11 +751,13 @@ with zero mismatches. Before: 1 of 1196.
|
||||
|
||||
### What's NOT solved
|
||||
|
||||
- **MicL channel conversion to dB(L)** — the codec emits MicL as
|
||||
- ~~**MicL channel conversion to dB(L)** — the codec emits MicL as
|
||||
raw ADC counts (same format as geo channels), but BW's ASCII export
|
||||
shows mic in dB(L) with ~6 dB quantization steps. Need to map
|
||||
ADC counts → dB(L) for direct comparison; likely
|
||||
`dB = 20*log10(|counts|) + offset` or similar.
|
||||
`dB = 20*log10(|counts|) + offset` or similar.~~ **Solved in v0.33.0.**
|
||||
One count = 0.25 Pa, and dB(L) = 81.9384 + 20·log10(|count|), an offset
|
||||
measured from Blastware's printed values (reference D.6.6).
|
||||
- **Variable-prefix segment descriptors** — 3 of the 75 ground-truth
|
||||
production events still truncate. The walk reaches a segment header
|
||||
whose channel-id field is preceded by a *variable-width* prefix (2, 4
|
||||
@@ -1345,7 +1416,7 @@ Do NOT use fixed absolute offsets for sample_rate or record_time.
|
||||
| trigger_level_geo | float32 BE, located in channel block |
|
||||
| alarm_level_geo | float32 BE, adjacent to trigger_level_geo |
|
||||
| geo_hardware_constant (adc_scale_factor) | float32 BE at **channel_label+28** in both read (E5) and write (SUB 71) payloads — reads **6.206053** on BOTH tested units (BE11529 and BE18189); identical across all geo channels (Tran/Vert/Long) and all captures. **Confirmed 2026-04-17 from Interface Handbook §4.5**: this is the **ADC-to-velocity scale factor** = 1/sensitivity = (in/s per V). Firmware uses it as: `PPV (in/s) = ADC_voltage × 6.206053`. Cross-check: `1.61133 V (ADC full-scale) × 6.206053 = 10.000 in/s` (Normal range ✅). Do NOT write this field — it is a hardware/firmware constant. |
|
||||
| geo_range (sensitivity selector) | **uint8 at channel_label+33** in both read (E5) and write (SUB 71) payloads — **CONFIRMED 2026-04-20** from 4-20-26 geo sensitivity captures: `0x00` = Normal 10.000 in/s (standard gain), `0x01` = Sensitive 1.250 in/s (high gain). Present in all three geo channel blocks (Tran, Vert, Long). **NOTE: `channel_label+20` reads `0x01` on ALL captures regardless of range setting — it is NOT this field.** Note: the "SUB 71 write offset = +29" that appears in earlier analysis was an artifact of incorrect BW-style destuffing applied to write frame data — write frame data is RAW, so the literal `0x10` bytes in the channel block header are preserved, and the offset is the same as in the E5 read payload. |
|
||||
| geo_range (sensitivity selector) | **uint8 at channel_label+33** in both read (E5) and write (SUB 71) payloads (an event file's setup copy has it at label+29: reference D.6.4) — **CONFIRMED 2026-04-20** from 4-20-26 geo sensitivity captures: `0x00` = Normal 10.000 in/s (standard gain), `0x01` = Sensitive 1.250 in/s (high gain). Present in all three geo channel blocks (Tran, Vert, Long). **NOTE: `channel_label+20` reads `0x01` on ALL captures regardless of range setting — it is NOT this field.** Note: the "SUB 71 write offset = +29" that appears in earlier analysis was an artifact of incorrect BW-style destuffing applied to write frame data — write frame data is RAW, so the literal `0x10` bytes in the channel block header are preserved, and the offset is the same as in the E5 read payload. |
|
||||
| setup_name | ASCII, null-padded, in cfg body |
|
||||
| project / client / operator / sensor_location | ASCII, label-value pairs |
|
||||
|
||||
|
||||
@@ -621,16 +621,35 @@ Implementation steps (concrete):
|
||||
|
||||
### High-impact (unblocks product features)
|
||||
|
||||
- [x] **Series III waveform body codec reverse-engineering.** ✅ The body codec is fully decoded (`minimateplus/waveform_codec.py`, `histogram_codec.py`), and verified per-sample against Blastware's own exports. As of v0.33.0, geophone samples are exact on 6,491 / 6,524 DL2 waveforms against their `_XML.XML` reports, across 2016–2026.
|
||||
- [ ] **SFM produces everything Blastware reports, from the event file alone.** The four-piece plan:
|
||||
- [x] **Series III waveform body codec reverse-engineering.** ✅ The body codec is fully decoded (`minimateplus/waveform_codec.py`, `histogram_codec.py`), and verified per-sample against Blastware's own exports. Geophone samples are exact on all 6,524 DL2 waveforms against their `_XML.XML` reports, across 2016–2026 (`dev`; v0.33.0 had 6,491, before the geophone range was read from the file).
|
||||
- [ ] **SFM produces everything Blastware reports, from the event file alone.**
|
||||
|
||||
**Why this matters:** until it's done, prod overlays Blastware's ASCII report onto SFM's decode wherever a report exists. That made SFM trustworthy from day one, but it is scaffolding: the goal is full function without Blastware.
|
||||
|
||||
The four-piece plan:
|
||||
1. the decode checker ✅ v0.33.0
|
||||
2. complete the file-only decode, one field group at a time, each proven by the checker
|
||||
3. flip ingest so reports are kept only for checking
|
||||
3. flip ingest so reports are kept only for checking (retire the overlay)
|
||||
4. stop the watchers forwarding reports
|
||||
|
||||
**Done so far:** setup fields, notes, event type, histogram PVS, mic.
|
||||
**Done so far: 34 of 88 report fields match on every DL2 event.**
|
||||
- In v0.33.0: setup fields, notes, event type, histogram PVS, mic.
|
||||
- On `dev`:
|
||||
- the geophone range
|
||||
- the job number
|
||||
- histograms that decoded wrongly
|
||||
- the footer: no more day-late histograms; every waveform time exact
|
||||
- serial, version, calibration, battery, trigger source and levels, stop mode, mic type
|
||||
- histogram interval detail: frequencies (#50 fixed), per-interval PVS, interval size, stop
|
||||
- A Blastware report's dB/psi is its PC's preference, not anything in the event file: a carve-out.
|
||||
|
||||
**Next:** histogram start times (#51), the 37 histograms that decode wrongly, the job number, the geophone range (Sensitive-range events read 8×), and the values Blastware computes itself (ZC frequency, acceleration, displacement, time of peak), plus the sensor check, battery, calibration and monitor log. Design: `docs/superpowers/specs/2026-10-29-s3-decode-checker-design.md`.
|
||||
**Next:**
|
||||
- histogram start times (#51)
|
||||
- the values Blastware computes itself: ZC frequency, acceleration, displacement, time of peak
|
||||
- the sensor check results
|
||||
- the monitor log
|
||||
|
||||
Design: `docs/superpowers/specs/2026-10-29-s3-decode-checker-design.md`. Status detail: CLAUDE.md "Where things stand".
|
||||
- [x] **Series IV (Thor IDF) binary codec reverse-engineering.** ✅ v0.21.0 — `micromate/idf_file.read_idf_file()` decodes both IDFW (waveform body at offset `0x0f1f`, reusing `decode_waveform_v2()`; 87–99% sample fidelity on quiet events) and IDFH (dedicated segment-based decoder: all 859 corpus files decode, 181,071 intervals, peaks within ~1.8% of sidecar values). `WaveformStore.save_imported_idf` now also projects parsed Thor data into a `bw_report` block via `micromate/idf_to_bw_report.py` so Thor events render in the existing Event Report PDF pipeline without a separate renderer.
|
||||
- [ ] **In-app waveform viewer accuracy.** Depends on Series III codec decode. Plot.v1 JSON pipeline + viewer skeleton already exist; will start showing real waveforms automatically once `_decode_a5_waveform` produces correct samples. Series IV waveforms come online when the IDF codec lands.
|
||||
- [ ] **Series IV live-device support.** Once the IDF binary is decoded, extend `micromate/` with `transport.py` / `framing.py` / `protocol.py` / `client.py` mirroring the `minimateplus/` package layout — depends on capturing Thor's wire protocol (TCP / RS-232 captures TBD).
|
||||
|
||||
@@ -11,9 +11,13 @@
|
||||
|
||||
| Date | Section | Change |
|
||||
|---|---|---|
|
||||
| 2026-11-03 (3) | Appendix D.6.9 (NEW), D.6.10 | ✅ **Histogram interval detail.** Interval size = uint16 seconds at `k − 40`; stop = footer ts2. Frequency = (sample rate / 2) / half-period, 527,915 / 527,915 cells at 1024 sps and 1,725 / 1,725 at 2048 — **#50 retracted** (a fixed 512 halved 2048-sps frequencies). Blastware's words: `N/A` (half-period 0), `>100` / `>200` (≤ 5 samples), `<1.0`. Per-interval vector sum √PVS²: 63,497 histograms; `OORANGE` when over range with a clamped channel, 17 / 17. 34 of 88 report fields now match on every DL2 event. |
|
||||
| 2026-11-03 (2) | Appendix D.6.6, D.6.8 (NEW), D.6.9 | ✅ **Identity, battery and trigger, from the file.** **D.6.8:** the identity block before the setup name is SUB FE's (serial `k − 202`, firmware `k − 147`, DSP `k − 138`, calibration `k − 132` + by `k − 128`, model `k − 72`; battery uint16 /100 at `k − 190`); all 70,042 / 70,042. The embedded event record's two unknown bytes are the **trigger source** bitmask (6,524 / 6,524). Trigger sources `k − 19`, stop mode `k − 31`, per-channel trigger level float32 at label + 30, mic type at MicL + 4 (Series IV's code). **D.6.6:** recorded data vs report units vs unit peaks, with the manual sections; a Blastware report's dB/psi is the PC's preference. 🔶 `9c 06 00 42` (the histogram "terminal tail") looks like `9c 06 00` + the serial's `B`. 28 of 88 report fields now match on every DL2 event. |
|
||||
| 2026-11-03 | Appendix D.3.3, D.6.1, D.6.3, D.6.5, D.6.7, §8 | ✅ **File-only decode, second pass (on `dev`).** **D.3.3:** the footer is the file's last 26 bytes (70,041 / 70,041); an earlier stop-time record fooled the first-match search on 14 files, making histograms a day late. Its `[18:24]` is **not** fixed (retracted). **D.6.1:** STRT[18] now picks the codec; the waveform codec had claimed 2018 5 s histograms. **D.6.3:** the job number (flags `k − 9` bit `0x02`, uint16 at `k − 8`; 2,997 / 2,997). **D.6.5:** the PVS² high word is non-zero above 1.28 in/s (retracted "reads 0000"), so the layout check now uses peak ≤ PVS ≤ √3·peak (34,502,955 / 34,502,955); Blastware's "Number of Intervals" is the monitoring time ÷ the interval. **§8:** where the 1995 default-clock events come from. 18 of 88 report fields now match on every DL2 event. |
|
||||
| 2026-11-02 | Appendix D.3.1, D.6 (NEW), §15 | ✅ **Event fields SFM reads from the file alone (v0.33.0, plus the range on `dev`).** New D.6 records the bytes and the DL2 verification for each field: the record type `STRT[18]`, the recording-setup block (sample rate, pre-trigger, record time, the four notes), the geophone range (label + 29 in the setup's channel blocks), each histogram interval's PVS², and the mic scale (one count = 0.25 Pa). **Retracted in place:** D.3.1's `STRT[20]` = record time (it is `00` on every DL2 file; the "70 s" SFM used to report was `STRT[18]`, the record-type byte), and the 2026-08-26 reading of sub-minute histogram records as little-endian (big-endian from byte 5 since v0.32.0, #47/#49). **For #48:** the file's copy of the block puts the pre-trigger where the 1A "stable anchor" `be 80 00 00 00 00` sits. In the file, though, it is each event's own pre-trigger, which varies on the same unit on the same day (253–256 samples at 1024 sps), and Blastware reports it per event. So the file says little about whether the live 1A loses its anchor, and #48 stays open. |
|
||||
| 2026-10-26 (5) | §7.8.9 | ✅ **The embedded event record: the instrument's trigger time, inside the 5A stream.** Every Blastware waveform file carries `00 28 05 00 ?? ?? fe 80 [trigger 8 B][stop 8 B]`, times as `dd mm yyyy(BE) 00 hh mm ss`. The trigger equals Blastware's report 1,320/1,320, the filename 7,935/7,935 and the unit's 0C record 10/10. It occurs once in the unit's own A5 payloads (8/8 events) and in SFM-only downloads (2/2): instrument data, not Blastware's. The footer's `ts2 - record time` is only an estimate, a second off on ~19%. Decoder rule, validation and an open case (3 waveform-named files the codec does not recognise) in §7.8.9. 🔶 The §7.5 `0C` "sub_code" timestamp variants look like the same 8-byte form read with its escapes. |
|
||||
| 2026-10-17 | §7.6.1 | 🔶 **OPEN — the 6-byte "stable anchor" may be two settings at their defaults, not a constant.** Series IV's `0x1A` has the same field order as the S3 compliance block, and a keypad diff pass on a Micromate (UM20147) measured the bytes in the anchor's position: `[f32 BE pre-trigger, negative seconds][record stop mode, 00 00 = Fixed]`. `be 80 00 00` is exactly −0.25 s. If S3 matches — **inferred, not measured on S3** — then any S3 unit set to Record Stop Mode = Auto (a basic Blastware Compliance Setup option) or a non-default pre-trigger loses the anchor, and `client.py` silently decodes no recording mode / sample rate / interval / record time and skips them on write. No S3 capture has ever been taken in Auto stop mode (see the 2026-03-09 Auto Window rows), which would explain why the anchor never broke. To settle: one BW capture with Record Stop Mode = Auto. See `docs/micromate_protocol_reference.md` → *The `0x1A` field map from a keypad pass*. |
|
||||
| 2026-08-26 | S7.6.2, S15 | **MULTI-INTERVAL HISTOGRAM BLOCKS - sub-minute intervals pack several per block.** The device always writes one minute of data per block, so a shorter histogram interval means more intervals packed into a longer block: 1 min -> 1 (the standard 32-byte block), 15 s -> 4 (stride 92), 2 s -> 30 (stride 612), with `stride = 12 + n * 20`. Each 20-byte record holds 8 x uint16 **little**-endian values (peak/half-period per channel) plus a 2-word tail whose first word is `0000` on every real interval. The standard block is big-endian - the variant is not. This recovers **415 files** (216 on BE18193 at 2 s, 199 on BE9440 at 15 s) that previously decoded to nothing, and before that were being accepted by the WAVEFORM codec and returning garbage up to 400x the device-reported PPV. |
|
||||
| 2026-08-26 | S7.6.2, S15 | **MULTI-INTERVAL HISTOGRAM BLOCKS - sub-minute intervals pack several per block.** ⚠ *Corrected 2026-11-02: the records are big-endian from byte 5, not little-endian (v0.32.0, #47/#49), and the "2-word tail" is the interval's PVS². See D.6.5.* The device always writes one minute of data per block, so a shorter histogram interval means more intervals packed into a longer block: 1 min -> 1 (the standard 32-byte block), 15 s -> 4 (stride 92), 2 s -> 30 (stride 612), with `stride = 12 + n * 20`. Each 20-byte record holds 8 x uint16 **little**-endian values (peak/half-period per channel) plus a 2-word tail whose first word is `0000` on every real interval. The standard block is big-endian - the variant is not. This recovers **415 files** (216 on BE18193 at 2 s, 199 on BE9440 at 15 s) that previously decoded to nothing, and before that were being accepted by the WAVEFORM codec and returning garbage up to 400x the device-reported PPV. |
|
||||
| 2026-08-25 (3) | S7.6.1, S15 | **THE WAVEFORM BODY IS A RECORD CHAIN, NOT A TAG STREAM — supersedes the segment-header model entirely.** Records are self-delimiting: `off+2` is a uint16 BE length and `next = off + 2 + len`; the chain ends on a record whose chan_id is `0x06`. `off+8` holds a 3-valued mode enum - `02 00` (14-byte header, anchors, cumulative deltas), `01 00` (10-byte, no anchors, ABSOLUTE values), `00 03` (10-byte, no tags at all, raw 12-bit absolute). **`40 NN` is an ordinary int16 BE data block of length 2*NN+2**, never a header; reading it as a 2*NN+16 header is what made walks drift, and the 'variable prefix' of 0/2/4/6/8 bytes reported earlier the same day was walker drift, exactly `4 - (old_stop - true_record_start)`. Verified: chain terminates on `06` in 1387/1388 files; all four channels equal length in **1388/1388** (was 156/1388); ASCII sample-count exact 72/75 -> **75/75**, fully exact 70/75 -> **73/75**; device PPV on a live decode **1306/1306** waveform (mean abs ratio error 0.00000) and **4458/4459** histogram. Also eliminated the walker-over-read class: 24 of those files were histograms the waveform codec was wrongly accepting. The superseded model is retained as `decode_waveform_legacy` because `micromate/idf_file.py` pins it for Thor IDFW body-offset search. |
|
||||
| 2026-08-25 (2) | S7.6.2, S15 | **HISTOGRAM BLOCK IS BIG-ENDIAN + terminal block tail.** The 32-byte histogram block's per-channel fields are uint16 **big-endian** (`T_peak` [5:7], `T_halfperiod` [7:9], `V_peak` [9:11], `V_halfperiod` [11:13], `L_peak` [13:15], `L_halfperiod` [15:17], `M_peak` [17:19], `M_halfperiod` [19:21]); only `block_ctr` [2:4] is little-endian. The marker is `block[4]` alone - the previous uint16 LE marker test at [4:6] forced `block[5] == 0` and thereby capped every geo peak at 255 counts (1.275 in/s), silently clipping larger peaks. The byte previously documented as a per-channel "annotation" is the high byte of the big-endian half-period, which is why it was non-zero exactly on sub-Hz intervals. Separately, the **final block of each stream carries tail `9c 06 00 42`** rather than `1e 0a 00 00` and holds arbitrary bytes at [21:23]; rejecting it dropped the last interval of nearly every histogram. Verified against 1211 production histograms paired with their Blastware ASCII exports: 1211/1211 decode exactly, plus 842,442 per-interval frequency comparisons with zero mismatches (previously 1 of 1196 files fully correct). |
|
||||
| 2026-08-25 | §7.6.1, §15, Appendix E (NEW) | **BODY CODEC + SCALE PASS — five findings, all verified against 75 production events paired with their preserved Blastware ASCII exports.** (1) **Geo full scale is 32000 ADC counts, not 32768** — one decoder unit (16 counts) is exactly 0.005 in/s, so 10.000 in/s = 32000 counts. Consumers dividing by 32768 read every geophone sample and derived peak **2.34% low**; the error scales with amplitude so it was invisible on quiet events and worst on loud ones. 216 per-channel comparisons: 32768 → 151/216 exact (worst 0.238 in/s on a 10 in/s event); 32000 → 216/216 exact, worst 1 LSB. Affects waveforms, histograms and series-4 alike. (2) **Wide-NN RLE `0X NN`** — the 12-bit NN encoding already known for `1X`/`2X` also applies to the `00 NN` RLE tag (runs > 252 samples). (3) **`30 NN` is not capped at NN=0x10** — data-section blocks reach at least 0x18; the length formula was already right. (4) **`40 NN` segment headers are variable width** — NN counts the previous-channel continuation deltas, so the header is `2*NN + 16` bytes; `40 01` and `40 03` occur alongside `40 02`. A header can also appear **tagless** (the NN=0 case): just the 14-byte tail. (5) **The header field documented as a "monotonic uint32 LE counter" is really `[channel_id][00][00][segment_index]`** with 0x46=Tran 0x47=Vert 0x48=Long 0x49=MicL — verified on 1697/1697 segment headers, zero disagreements. Decoders should take the channel from this field, not from rotation position. Items (2)–(5) each caused **silent channel truncation**: an unhandled tag ends the walk and the decoder returns short channels with no error. Corpus result end-to-end: exact 37 → 72, truncated 23 → 3, full-length value errors 15 → 0. New Appendix E documents the field-observed "offset" device fault. |
|
||||
@@ -2668,6 +2672,11 @@ Appears in event index blocks. Time-of-day fields (hour/min/sec) are absent.
|
||||
| `1E` | 30 | Day (0x1E = 30 decimal) | ✅ CONFIRMED |
|
||||
|
||||
> ✅ **2026-02-26 — CONFIRMED:** The year 1995 is the **MiniMate Plus factory default RTC date**, which the device reverts to whenever the internal battery is disconnected or the real-time clock loses power. Any event timestamped around 1995 means the clock was not set. This is known device behavior, not an encoding anomaly.
|
||||
>
|
||||
> **2026-11-03 — where they come from (operator account, Brian):** units come back from calibration with the internal battery unplugged, so an event triggered while testing communications, before anyone sets the date, carries the default.
|
||||
> - **DL2 (measured):** 17 such events on 6 units (BE9440, BE9557, BE11529, BE17354, BE18189, BE18190). All fall between 1995-09-01 12:02:02 and 1995-09-03 11:24:06, most of them between 12:02 and 13:01 on 1 September.
|
||||
> - 🔶 **Inferred:** the clock restarts at a fixed default near 1995-09-01 12:00 and runs from power-up.
|
||||
> - These files still end in a valid footer. SFM reads the 1995 times and reports them as `CLOCK_NOT_SET` (`models.Timestamp`).
|
||||
|
||||
### 8.2 9-byte format (Full Waveform Record / SUB 0C, sub_code=0x10)
|
||||
> ✅ **CONFIRMED 2026-04-01** — Cross-referenced against Blastware event report
|
||||
@@ -3170,7 +3179,7 @@ The `.bin` files produced by `s3_bridge` are **not raw wire bytes**. The logger
|
||||
| **RV55 DCD/DTR default** — newer Sierra Wireless RV55 firmware does not assert DCD/DTR by default, so the MiniMate Plus never detects TCP disconnect and stays idle instead of resuming monitoring. Root cause: RV55 ACEmanager `DCD Control` setting. Workaround not yet found. | MEDIUM | 2026-04-11 | Still open |
|
||||
| ~~**Variable-prefix segment descriptors**~~ - **RESOLVED 2026-08-25:** there is no variable prefix. The body is a chain of self-delimiting records (see S7.6.1); the 0/2/4/6/8-byte prefix was walker drift from reading `40 NN` as a segment header. All 25 affected files now chain cleanly to the `06` terminator. | RESOLVED | 2026-08-25 | Resolved 2026-08-25 |
|
||||
| ~~**Histogram codec drops trailing intervals (series-3)**~~ - **RESOLVED 2026-08-25.** Two errors, both in the block model. (1) The block is **uniformly big-endian**: peaks and half-periods are uint16 BE (`T_peak` [5:7], `T_halfperiod` [7:9], `V_peak` [9:11], ...); only `block_ctr` [2:4] is LE. The old uint8-peak + "annotation"-byte model silently clipped any peak above 1.275 in/s, and the "annotation" byte was really the half-period high byte - non-zero exactly on the sub-Hz intervals BW renders `<1.0`. The marker is `block[4]` alone; testing [4:6] as a uint16 LE marker forced `block[5] == 0`, which is what capped the peak at one byte. (2) The **final block of the stream carries tail `9c 06 00 42`** instead of `1e 0a 00 00`, with arbitrary bytes at [21:23]; rejecting it dropped the last interval of nearly every histogram - often the one holding the event peak. Verified on 1211 production histograms vs their BW ASCII exports: **1211/1211 exact** (interval count + every per-interval peak) and 842,442 frequency comparisons with zero mismatches; was 1/1196. | RESOLVED | 2026-08-25 | Resolved 2026-08-25 |
|
||||
| ~~**Unmapped histogram block variant (415 files, 2 units)**~~ - **RESOLVED 2026-08-26.** When the histogram interval is SHORTER than one minute the device packs several intervals into a single block so each block still covers exactly one minute: 1 min -> 1 interval (the standard 32-byte block), 15 s -> 4 (stride 92), 2 s -> 30 (stride 612). `stride = 12 + n * 20`. Block is `[00][segment][ctr uint16 LE][0a][00]` then n x 20-byte records of 8 x uint16 **LITTLE**-endian `T_peak,T_halfp,V_peak,V_halfp,L_peak,L_halfp,M_peak,M_halfp` plus a 2-word tail whose first word is `0000` on every real interval (a session ending mid-block leaves buffer garbage in the remaining slots), then a 6-byte block trailer. **Note the endianness flip** - the standard 32-byte block is big-endian. Ground truth `BE9440/K440L3AQ.T70H` (5,710 intervals at 15 s) decodes with 17,130/17,130 geo peaks, 22,840/22,840 frequencies and 5,710/5,710 mic dB(L) matching its Blastware ASCII export exactly; across all 455 affected files 1,354/1,365 channel peaks (99.2%) match the device-reported PPV. | RESOLVED | 2026-08-25 | Resolved 2026-08-26 |
|
||||
| ~~**Unmapped histogram block variant (415 files, 2 units)**~~ - **RESOLVED 2026-08-26.** ⚠ *Corrected 2026-11-02: the records are big-endian from byte 5, not little-endian (v0.32.0, #47/#49), and the "2-word tail" is the interval's PVS². See D.6.5.* When the histogram interval is SHORTER than one minute the device packs several intervals into a single block so each block still covers exactly one minute: 1 min -> 1 interval (the standard 32-byte block), 15 s -> 4 (stride 92), 2 s -> 30 (stride 612). `stride = 12 + n * 20`. Block is `[00][segment][ctr uint16 LE][0a][00]` then n x 20-byte records of 8 x uint16 **LITTLE**-endian `T_peak,T_halfp,V_peak,V_halfp,L_peak,L_halfp,M_peak,M_halfp` plus a 2-word tail whose first word is `0000` on every real interval (a session ending mid-block leaves buffer garbage in the remaining slots), then a 6-byte block trailer. **Note the endianness flip** - the standard 32-byte block is big-endian. Ground truth `BE9440/K440L3AQ.T70H` (5,710 intervals at 15 s) decodes with 17,130/17,130 geo peaks, 22,840/22,840 frequencies and 5,710/5,710 mic dB(L) matching its Blastware ASCII export exactly; across all 455 affected files 1,354/1,365 channel peaks (99.2%) match the device-reported PPV. | RESOLVED | 2026-08-25 | Resolved 2026-08-26 |
|
||||
| **Micromate (UM-series) IDF decode is ~1000x low** — e.g. `UM11402_20260406130113.IDFW` decodes a Tran peak of 0.0009 in/s against a device-reported 1.1168. Distinct from the Thor IDF path, which decodes sanely. Suspect a different per-count LSB or a body offset that does not hold for UM-series files. | MEDIUM | 2026-08-25 | Still open |
|
||||
| **Thor IDF per-count LSB** — after the 32000 geo full-scale correction, series-4 Thor peaks sit at a median 0.983 of the device-reported peak (was 0.960 under 32768). Closer, but the residual ~1.7% suggests Thor uses its own per-count LSB rather than the BW 16-count/0.005 in/s convention. A code comment in `sfm/waveform_store.py` claims Thor's LSB is 0.0003 in/s, which would predict Thor reading *high* — the measurement shows the opposite, so that comment is unverified. | LOW | 2026-08-25 | Still open |
|
||||
|
||||
@@ -3397,8 +3406,16 @@ The STRT record immediately follows the 22-byte header.
|
||||
| 4 | 2 | `ff fe` | Fixed |
|
||||
| 6 | 4 | event key (key4) | 4-byte waveform key |
|
||||
| 10 | 4 | device-specific | NOT a repeat of key4 — device-internal field |
|
||||
| 14 | 6 | device-specific | NOT zero-padded — device-internal fields |
|
||||
| 20 | 1 | rectime | uint8 seconds |
|
||||
| 14 | 4 | device-specific | not identified (see the retraction below) |
|
||||
| 18 | 1 | **record type** ✅ | `0x46` waveform, `0x0A` histogram: 6,541 / 6,541 `…W` and 63,500 / 63,500 `…H` DL2 files (2026-11-02). See D.6.1 |
|
||||
| 19 | 2 | `00 00` | zero on 70,041 / 70,041 DL2 files |
|
||||
|
||||
> ⚠ **RETRACTED 2026-11-02.** This table used to end `| 14 | 6 | device-specific |` and
|
||||
> `| 20 | 1 | rectime | uint8 seconds |`. `STRT[20]` is `0x00` on every DL2 file, so it is not
|
||||
> the record time. Until v0.33.0, SFM read a record time from `STRT[18]`, the record-type byte,
|
||||
> which is why every waveform reported "70 s" (`0x46`). It also read pre-trigger and sample count
|
||||
> from `[16:18]`; both were wrong (#45). The record time and pre-trigger live in the
|
||||
> recording-setup block (D.6.2).
|
||||
|
||||
**Critical:** The STRT record must be copied verbatim from A5[0].data[7+strt_pos:] — bytes [10:20] contain device-specific values that cannot be reconstructed from protocol-level Event fields alone.
|
||||
|
||||
@@ -3427,12 +3444,16 @@ The body is reconstructed from the raw A5 bulk waveform stream frames by strippi
|
||||
|
||||
The footer terminates the N00 file. Its bytes come directly from the terminator A5 frame's inner content — do NOT reconstruct from event metadata.
|
||||
|
||||
✅ **It is the file's last 26 bytes** (2026-11-03): `0e 08` and two valid times end every one of 70,041 DL2 files.
|
||||
- ⚠ **Do not search for the first `0e 08` + plausible year.** 14 DL2 files also hold an earlier record of that shape, about 1.1 KB before the end, carrying the stop time followed by zeros.
|
||||
- Taking it made a histogram start at its own stop (a day late on BE9558's daily histograms). It also cost a waveform its stop, and with it the trigger time.
|
||||
|
||||
| Offset | Length | Field | Notes |
|
||||
|---|---|---|---|
|
||||
| 0 | 2 | `0e 08` | Fixed marker |
|
||||
| 2 | 8 | ts1 | Start timestamp (8B big-endian) |
|
||||
| 10 | 8 | ts2 | Stop timestamp (8B big-endian) |
|
||||
| 18 | 6 | `00 01 00 02 00 00` | Fixed |
|
||||
| 18 | 6 | varies | ⚠ **Not fixed** (2026-11-03). `00 01 00 02 00 00` in M529LIY6.N00. Elsewhere: `00 21 04 00 00 00` (K558L9XP.FK0H, K439I2WY.RK0H, T1895KDW.6J0H), `00 01 02 00 00 00` (K5575KDW.5L0W), `00 01 00 01 00 00` (S3545KFL.S60W). Not identified |
|
||||
| 24 | 2 | CRC | 2-byte CRC — algorithm unconfirmed |
|
||||
|
||||
**CRC:** The 2-byte CRC at footer[24:26] has an unconfirmed algorithm. In M529LIY6.N00 it reads `fe da`. Attempts to match CRC-16/CCITT, CRC-16/IBM, CRC-32 (truncated), and 40+ polynomial/init combinations all failed. The writer copies it verbatim from the terminator frame.
|
||||
@@ -3576,6 +3597,10 @@ observed) and does NOT follow the AB0T formula.
|
||||
|
||||
**DLE-shift offset note for reading recording_mode from N00/9T0 body:**
|
||||
|
||||
> ⚠ **2026-11-02:** this note finds the block by the 6-byte anchor. In an event file that anchor
|
||||
> exists only when the event's own pre-trigger is exactly −0.25 s: 3,886 / 6,541 DL2 waveforms,
|
||||
> and no histogram. Find the block by its setup name instead (D.6.2).
|
||||
|
||||
The compliance block in the file body has been through `_strip_inner_frame_dles`. The 0x10 constant at logical `anchor−7` (between recording_mode and sample_rate_HI) gets stripped when sample_rate_HI = `0x04` (1024 sps), because `0x10` precedes `0x04 ∈ {0x02,0x03,0x04}`. After stripping, the anchor shifts left by 1, so:
|
||||
|
||||
| 1024 sps (strip occurs) | 2048 or 4096 sps (no strip) |
|
||||
@@ -3594,6 +3619,302 @@ file[anc−4]: histogram_interval_HI
|
||||
file[anc−3]: histogram_interval_LO
|
||||
```
|
||||
|
||||
### D.6 Event fields read from the file alone ✅ 2026-10-29 → 2026-11-02
|
||||
|
||||
Since v0.33.0, SFM decodes the fields below from an event file's bytes alone: no filename, no
|
||||
Blastware report. The code is in `minimateplus/event_file_io.py`, `histogram_codec.py` and
|
||||
`waveform_codec.py`.
|
||||
|
||||
Each field was proven by the decode checker, `scratch/check_s3_decode.py`. It compares SFM's
|
||||
decode with Blastware's `_XML.XML` report for every DL2 event: 70,042 events, 2016–2026, local
|
||||
copy in `~/dl2-archive`. Counts below are from that archive unless stated otherwise.
|
||||
|
||||
#### D.6.1 Record type — `STRT[18]` ✅
|
||||
|
||||
| `STRT[18]` | Type | DL2 |
|
||||
|---|---|---|
|
||||
| `0x46` | Waveform | 6,541 / 6,541 `…W` files |
|
||||
| `0x0A` | Histogram | 63,500 / 63,500 `…H` files |
|
||||
|
||||
- The 5A stream shows the same byte after the STRT keys (§7.8.5, `data[35]`).
|
||||
- The filename's `W` / `H` is only a cross-check. On a disagreement SFM logs it and keeps the
|
||||
byte (#41).
|
||||
- Checker, event type: 70,042 / 70,042.
|
||||
- **It also picks the codec** (2026-11-03). Trying the waveform codec first handed it BE9440,
|
||||
BE9557 and BE17354's 2018 5 s histograms. It accepted them and returned about 5× too many
|
||||
"samples" (K440HDXX.XH0H: 44,504 for Blastware's 6,976).
|
||||
|
||||
#### D.6.2 Recording-setup block — sample rate, pre-trigger, record time ✅
|
||||
|
||||
**Find the block by structure:** `1c 08`, then the setup name (1–40 printable ASCII), then `00`.
|
||||
That pattern occurs exactly once in every DL2 file. Do not search for the name "Standard
|
||||
Recording Setup": 37% of DL2 files use another name.
|
||||
|
||||
Offsets are from `k`, the first byte of the setup name:
|
||||
|
||||
| Offset | Type | Field | Notes |
|
||||
|---|---|---|---|
|
||||
| `k − 42` | uint16 BE | sample rate | 1024 / 2048 / 4096 |
|
||||
| `k − 36` | float32 BE | pre-trigger | seconds, ≤ 0: `−0.25` is a quarter second before the trigger. **This event's own length, not the unit's setting** (below) |
|
||||
| `k − 32` | 2 bytes | — | `00 00` on 70,041 / 70,041 files |
|
||||
| `k − 30` | float32 BE | record time | seconds |
|
||||
|
||||
- Pre-trigger samples = `round(−pre-trigger × sample rate)`.
|
||||
- A histogram carries the block too, with pre-trigger `0.0` (63,500 / 63,500). Blastware reports
|
||||
no record time or pre-trigger for a histogram, and SFM reports none.
|
||||
- Sample rate, record time and pre-trigger match Blastware on every DL2 event that reports them
|
||||
(#44, #45).
|
||||
|
||||
⚠ **The file's pre-trigger is the event's, not the setting (measured 2026-11-02).**
|
||||
- **It varies from event to event on the same unit, often on the same day.** BE18193 has both
|
||||
−0.25 and −0.248 on 2026-08-21.
|
||||
- At 1024 sps the common values −0.25, −0.249, −0.248 and −0.2471 are 256, 255, 254 and 253
|
||||
samples.
|
||||
- At 4096 sps, BE18193's events range from −0.002 to −0.249 s.
|
||||
- **Blastware reports the same per-event value** as `Pre-triggerLength`, for example
|
||||
`-0.094 sec` for `T193KMX5.4Z0W`.
|
||||
- 🔶 Inferred: the unit's setting stays fixed while the captured length falls short of it. Why it
|
||||
falls short is unknown.
|
||||
|
||||
**What this means for #48 (the 1A "stable anchor"):**
|
||||
- This is the 1A compliance layout. Sample rate at anchor − 6 and record time at anchor + 6
|
||||
(§7.6.1) put the anchor at `k − 36`, so the 6-byte `be 80 00 00 00 00` is a pre-trigger of
|
||||
−0.25 s followed by the `00 00` at `k − 32`.
|
||||
- **In a file**, the anchor bytes appear only when that event's pre-trigger is exactly −0.25 s:
|
||||
3,886 / 6,541 waveforms, and no histogram (histogram files store 0.0). A file parser that
|
||||
searches for the anchor breaks on the rest. SFM's file decoder finds the block by its setup
|
||||
name instead.
|
||||
- **The live 1A read holds the setting, not an event's length.** So these files say little about
|
||||
whether the live read loses its anchor; #48 is still unsettled.
|
||||
- `k − 32 : k − 30` is `00 00` on all 70,041 files. 🔶 If `[17]` is the stop mode, as on
|
||||
Series IV, no DL2 event was recorded in Auto stop mode, so the archive cannot test that case.
|
||||
- The two blocks differ in at least one field. A live 1A in Histogram mode showed the anchor
|
||||
(−0.25 s), but histogram files store 0.0.
|
||||
|
||||
#### D.6.3 Notes — four label/value pairs after the name ✅
|
||||
|
||||
- After the name's `00`, NUL-terminated `label`, `value` pairs fill four slots, in order:
|
||||
project, client, operator ("User Name") and sensor location ("Seis Loc").
|
||||
- **Read them by position, never by label.** Blastware lets the operator relabel the slots
|
||||
("Seis. Loc:", "Location:", "Project: ").
|
||||
- An empty value means none.
|
||||
- They match Blastware on every DL2 event.
|
||||
- Not read yet: extended notes.
|
||||
|
||||
**Job number** ✅ 2026-11-02, in Series IV's `0x1A` layout (`[39]` report flags, `[40:42]` the
|
||||
number):
|
||||
|
||||
| Offset | Type | Field |
|
||||
|---|---|---|
|
||||
| `k − 9` | uint8 | report flags: bit `0x02` = job number shown |
|
||||
| `k − 8` | uint16 BE | job number, kept while not shown |
|
||||
|
||||
- **The flag** matches Blastware's `JobNumber` on 2,997 / 2,997 DL2 events that print one, and
|
||||
66,986 / 66,986 that don't.
|
||||
- **The value** matches on all 2,997, but every printed value is 1, so it is only proven for 1.
|
||||
Hidden ones hold real numbers (802, 1012, 1013, 622).
|
||||
- Bit `0x04` is also seen (2,311 files); it is not identified.
|
||||
|
||||
#### D.6.4 Geophone range — the setup's channel blocks ✅ 2026-11-01
|
||||
|
||||
The channel blocks follow the notes, within 2,000 bytes of the name: `00 00 01` then `Tran` /
|
||||
`Vert` / `Long`. The range is the byte at label + 29, where label is the first byte of
|
||||
`Tran` / `Vert` / `Long`:
|
||||
|
||||
| label + 29 | Range | Full scale |
|
||||
|---|---|---|
|
||||
| `0x00` | Normal | 10.000 in/s |
|
||||
| `0x01` | Sensitive | 1.250 in/s |
|
||||
|
||||
- It matches the report's `GeoRange` on 70,042 / 70,042 events. The three channels agree on
|
||||
every event, and 35 are Sensitive.
|
||||
- The live 1A carries the same byte at label + 33 (§7.6, confirmed 2026-04-20).
|
||||
- Full scale is 32,000 counts at either range, so a Sensitive count is 8× smaller.
|
||||
- Until `dev` `057df47` (2026-11-02), SFM assumed Normal and read every Sensitive event 8× high.
|
||||
- If the channels disagree, a value is unknown or a block is missing, SFM reports no range, logs
|
||||
a decode problem and assumes Normal.
|
||||
|
||||
#### D.6.5 Histogram interval peak vector sum ✅ 2026-10-30
|
||||
|
||||
Each interval stores its peak vector sum **squared**:
|
||||
|
||||
| Block | Where | Type |
|
||||
|---|---|---|
|
||||
| Standard 32-byte block (intervals of a minute or more) | `[21:25]` | uint32 BE |
|
||||
| Sub-minute record | the record's last 4 bytes | uint32 BE |
|
||||
|
||||
- `PVS = √value × unit`. The unit is 16 counts: 0.005 in/s at Normal, 0.000625 in/s at
|
||||
Sensitive.
|
||||
- **The event's PVS is the largest interval's.** Combining the three channel peaks instead read
|
||||
high on 86% of DL2 histograms, because the peaks can come from different moments.
|
||||
- **Verified:** √value matches Blastware's "Geo PVS" on 34.5 M DL2 sub-minute intervals, and the
|
||||
event PVS matches on 69,989 / 70,042 events (`dev`, 2026-11-03).
|
||||
- **A consistency check** (2026-11-03): an interval's vector sum is never below its largest
|
||||
channel peak, nor above √3 times it, give or take one unit of rounding. That holds on
|
||||
34,502,955 / 34,502,955 DL2 sub-minute intervals, and is what the codec now uses to recognise
|
||||
a sub-minute record layout.
|
||||
- 🔶 On the stream's last block, the "arbitrary bytes at [21:23]" in the 2026-08-25 note are
|
||||
probably the high half of this field (inferred from the layout, not measured).
|
||||
|
||||
**Sub-minute records (corrected in v0.32.0, #47/#49):**
|
||||
- They are **big-endian, starting at byte 5** of the block.
|
||||
- Each holds, per channel, a uint16 peak and a uint16 half-period (Tran, Vert, Long, and MicL
|
||||
when the mic is on), then the uint32 PVS².
|
||||
- Record = 4 × channels + 4 bytes: 20 with the mic, 16 without. `stride = 12 + n × record`.
|
||||
|
||||
> ⚠ **RETRACTED:** the 2026-08-26 notes (Changelog, §15) read these records as 8 × uint16
|
||||
> little-endian after a 6-byte header. That was the same big-endian words shifted by one byte.
|
||||
> Their "2-word tail whose first word is 0000" is the PVS², whose high word reads `0000`.
|
||||
>
|
||||
> ⚠ **RETRACTED 2026-11-03:** "the high word reads `0000`" holds only on quiet intervals. It is
|
||||
> non-zero above 1.28 in/s. The layout check required it, so a one-block histogram with a loud
|
||||
> interval was not recognised at all (T193KR5M.X90H, K440HA3C.JM0H, R352HFZ7.530H). The check is
|
||||
> now the consistency test above.
|
||||
|
||||
**Blastware's "Number of Intervals" is the monitoring time ÷ the interval** (measured
|
||||
2026-11-03), from the footer's start and stop:
|
||||
- It is exact on T193KSWP.FF0H (2,880), M462KSWR.1R0H (1,650) and T193KY0A.740H (6,390).
|
||||
- When the unit never wrote the last minute, the file holds one block fewer (30 intervals at
|
||||
2 s). Blastware's own interval table lists only the stored intervals, which is what SFM
|
||||
decodes.
|
||||
- A decode-checker carve-out (`interval-count-is-duration`) covers the 8 DL2 events where the
|
||||
two differ.
|
||||
|
||||
#### D.6.6 Mic ✅ v0.33.0
|
||||
|
||||
- One count = **0.25 Pa**, so psi = count × 0.25 / 6894.757.
|
||||
- dB(L) = **81.9384** + 20·log10(|count|).
|
||||
- The exact value, 20·log10(0.25 Pa / 20 µPa), is 81.9382. Blastware's printed values pin the
|
||||
offset in [81.9383, 81.9385] instead.
|
||||
- With the exact value, 280 events mismatched, all at count 129.
|
||||
- float32 rounding does not explain the difference.
|
||||
- **Verified:** interval psi mismatches fell from 42,783 to 26, and mic peak mismatches from 345
|
||||
to 40.
|
||||
|
||||
**Three things share the word "units". Keep them apart** (2026-11-03):
|
||||
|
||||
| Name | What it is | Its units are set by | Where it shows |
|
||||
|---|---|---|---|
|
||||
| **Recorded data** | the mic samples and interval peaks in the event file | nothing: they are raw counts | the event file |
|
||||
| **Report units** | dB(L) or psi(L) in a report | Blastware's report: the PC's preference (Blastware manual 714U0301 Rev 22 §4, Preferences → Units and Channel). SFM's report: SFM's own fixed choice (PDF PSPL in dB(L), plot in psi) | a Blastware report, an SFM report |
|
||||
| **Unit peaks** | the peaks the unit works out for its own summary | the unit's Microphone Units setting: psi(L), dB(L) or Pa(L), on the keypad (Right Arrow + Setups) or from Compliance Setup → Special Setups (MiniMate Plus manual 716U0101 Rev 15 §3.9.7) | the unit's screen, Blastware's event list, the 0C record on a live download |
|
||||
|
||||
- A Blastware report converts the recorded counts in its PC's preference. That is why DL2's
|
||||
reports flip dB ↔ psi fleet-wide, in 61 clean runs by report-write time. The decode checker's
|
||||
`units-is-a-display-preference` carve-out covers it.
|
||||
- 🔶 **Where the unit stores its own setting, and its unit peaks, is not measured.** Blastware's
|
||||
event list must read the unit peaks from somewhere, so they are probably in the event file,
|
||||
perhaps near the embedded event record.
|
||||
- **To settle it (proposed, not done):** on a bench unit, change Microphone Units on the keypad,
|
||||
then diff a read-only `1A` read and a short recorded event.
|
||||
|
||||
#### D.6.8 Identity, battery and trigger ✅ 2026-11-03
|
||||
|
||||
**The identity block** sits before the setup name. It is what the live read gets from SUB FE
|
||||
(`DeviceInfo`); offsets are from `k`:
|
||||
|
||||
| Offset | Content | DL2 |
|
||||
|---|---|---|
|
||||
| `k − 202` | serial number, NUL-terminated | 70,042 / 70,042 |
|
||||
| `k − 193` | firmware minor (`0x11` = 17), as SUB EA | — |
|
||||
| `k − 190` | battery, uint16 BE, hundredths of a volt | 70,042 / 70,042 (Blastware rounds half up: 6.25 → "6.3 Volts") |
|
||||
| `k − 147` | firmware, `"S338.17"` | |
|
||||
| `k − 138` | DSP version, `"10.72"` | Version 70,042 / 70,042 as `V {DSP}-{firmware after "S33"} {model}`; only `10.72-8.17` occurs, so the rule is proven for that alone |
|
||||
| `k − 132` | calibration date, `dd mm yyyy` (BE year) | Calibration 70,042 / 70,042 as `{Month} {d}, {yyyy} by {k − 128}` |
|
||||
| `k − 128` | calibrated by, `"Instantel"` | |
|
||||
| `k − 94` | manufacturer, `"Instantel"` | |
|
||||
| `k − 72` | model, `"MiniMate Plus"` / `"BlastMate III"` | |
|
||||
|
||||
- `k − 180 … k − 149` hold eight float32s (1.0, 8.0, then 1.0s). Not identified.
|
||||
- 🔶 **Inferred, not measured:** the three bytes before the serial are `9c 06 00`. With the
|
||||
serial's `B` (0x42) that makes `9c 06 00 42`, the histogram codec's "terminal tail". It looks
|
||||
like the start of this record rather than the end of a block. Every serial starts with B
|
||||
(BE… / BA…).
|
||||
|
||||
**The trigger source** is in the embedded event record (§7.8.9). The two bytes between its lead
|
||||
`00 28 05 00` and `fe 80`, a uint16 BE bitmask, were "unknown" until now:
|
||||
|
||||
| Value | Blastware's Trigger |
|
||||
|---|---|
|
||||
| `0x0001` | Tran |
|
||||
| `0x0002` | Vert |
|
||||
| `0x0004` | Long |
|
||||
| `0x0008` | MicL |
|
||||
| `0x0200` | Manual |
|
||||
|
||||
That holds on 6,524 / 6,524 waveforms.
|
||||
|
||||
**Trigger settings,** in Series IV's `0x1A` layout:
|
||||
|
||||
| Offset | Content | DL2 |
|
||||
|---|---|---|
|
||||
| `k − 19` | trigger sources: `0x07` geophones, `0x08` mic (`0x80` seen once, not identified) | — |
|
||||
| `k − 23` | active sensors, `0x0f` (all four) | 69,975, `0x07` on 8 mic-less files |
|
||||
| `k − 31` | stop mode: 0 = Fixed | 6,524 / 6,524, the only value in DL2 |
|
||||
| channel label + 30 | float32 trigger level: geophones in/s, mic psi | geo 6,484 / 6,484, mic 4,412 / 4,412 |
|
||||
| MicL + 4 | mic type code: 2 = Linear Weighting, as Series IV | 70,034 / 70,034, the only value |
|
||||
|
||||
- **Blastware prints a trigger level only when its channel is a trigger source** and the event
|
||||
was not Manual.
|
||||
- **For the mic level in dB, Blastware converts with 6895 Pa per psi.** That gives 4,272 / 4,272;
|
||||
the exact 6894.757 gives 4,271, failing one boundary case (0.01 psi → "130.8 dB(L)").
|
||||
- **The file's channel block is the 1A's, 4 bytes earlier.** Compare the 1A's scale constant at
|
||||
+28 and range at +33 with the file's +24 and +29.
|
||||
|
||||
#### D.6.9 Histogram interval detail ✅ 2026-11-03
|
||||
|
||||
**Interval size** is a uint16 count of seconds at `k − 40` (Series IV `[8:10]`): 2, 5, 15, 60 or
|
||||
300. It matches Blastware's IntervalSize ("1 minute", "5 seconds", …) on 63,518 / 63,518 DL2
|
||||
histograms. **The stop** is the footer's ts2: 63,460 / 63,518. The other 58 are Blastware a
|
||||
second earlier, the #51 family.
|
||||
|
||||
**Each interval's frequency** comes from its half-period in samples:
|
||||
`frequency = (sample rate / 2) / half-period`. That matches 527,915 / 527,915 printed cells at
|
||||
1024 sps and 1,725 / 1,725 at 2048.
|
||||
- ⚠ **RETRACTED (#50):** "frequency = 512 / half-period". 512 is half the sample rate at
|
||||
1024 sps only; at 2048 sps it halved every frequency.
|
||||
|
||||
Blastware prints these words instead of a number, on ~3.1 M DL2 cells:
|
||||
|
||||
| half-period / frequency | printed |
|
||||
|---|---|
|
||||
| half-period 0 | `N/A` |
|
||||
| half-period ≤ 5 samples | `>100` at 1024 sps, `>200` at 2048 |
|
||||
| below 1 Hz | `<1.0` |
|
||||
| below 10 Hz (20 at 2048) | one decimal |
|
||||
| otherwise | a whole number |
|
||||
|
||||
All four channels match every DL2 histogram.
|
||||
|
||||
**Each interval's vector sum** is √PVS² (D.6.5) at the event's range: 63,497 histograms match.
|
||||
- Blastware prints `OORANGE` for an interval's vector sum above the range when it also clamped
|
||||
a channel in that interval: 17 / 17 cells. The decode checker's saturation carve-out covers
|
||||
it.
|
||||
- 4 cells sit about 4e-6 past a rounding boundary. Blastware's arithmetic is a hair lower; they
|
||||
stay counted as mismatches.
|
||||
|
||||
#### D.6.10 Not read from the file yet
|
||||
|
||||
*Updated 2026-11-03. 34 of 88 report fields now match on every DL2 event.*
|
||||
- **Fields not read yet:**
|
||||
- extended notes
|
||||
- the values Blastware computes: ZC frequency, acceleration, displacement, time of peak
|
||||
- sensor check results
|
||||
- monitor log
|
||||
- **Open cases:**
|
||||
- histogram start times are 1 s early (#51), and so are 58 stop times
|
||||
- about 20 one-minute histograms with a mic peak an interval or two off
|
||||
- Blastware prints `OORANGE` when an event's vector sum alone exceeds the range, with no
|
||||
clamped channel (a carve-out still to prove; the interval version is proven, D.6.9)
|
||||
- **Resolved on `dev`, 2026-11-02 → 03:**
|
||||
- the 37 histograms that decoded wrongly (D.6.1, D.6.5)
|
||||
- the 26 histogram start dates a day off (D.3.3; 17 of them were the same 5 s files, timed
|
||||
as waveforms)
|
||||
- the job number (D.6.3)
|
||||
- identity, battery, trigger source and trigger settings (D.6.8); Units is Blastware's
|
||||
preference (D.6.6)
|
||||
- histogram interval detail: frequencies (#50), vector sums, interval size, stop (D.6.9)
|
||||
|
||||
---
|
||||
|
||||
*All findings reverse-engineered from live RS-232 bridge captures.*
|
||||
|
||||
+149
-25
@@ -13,31 +13,101 @@ Pure: no I/O, and no import from `sfm/`.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
import math
|
||||
import re
|
||||
from dataclasses import dataclass
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Callable, Optional, Sequence
|
||||
|
||||
from .bw_xml_report import XmlReport
|
||||
from .event_file_io import _GEO_INT16_FS, _GEO_NORMAL_FS_INS, _MIC_PSI_PER_COUNT, decode_blastware_bytes
|
||||
from .event_file_io import (interval_times, _GEO_FS_BY_RANGE, _GEO_INT16_FS, _GEO_NORMAL_FS_INS, _MIC_PSI_PER_COUNT,
|
||||
decode_blastware_bytes)
|
||||
from .histogram_codec import half_period_to_hz
|
||||
from .models import Event
|
||||
from .waveform_codec import mic_count_to_db
|
||||
|
||||
# SFM's conversion: it cannot yet read the geophone range from the file, and
|
||||
# assumes Normal (10 in/s full scale = 32000 counts).
|
||||
# SFM's conversion at the Normal range (10 in/s full scale = 32000 counts),
|
||||
# which SFM assumes when it cannot read the event's range from the file.
|
||||
GEO_IPS_PER_COUNT: float = _GEO_NORMAL_FS_INS / _GEO_INT16_FS
|
||||
|
||||
_CHANNELS = ("Tran", "Vert", "Long", "MicL")
|
||||
_EVENT_TYPE = {"Waveform": "Full Waveform", "Histogram": "Full Histogram"}
|
||||
|
||||
# How Blastware prints the setup fields SFM reads (measured 2026-11-03).
|
||||
_MONTHS = ("January", "February", "March", "April", "May", "June", "July",
|
||||
"August", "September", "October", "November", "December")
|
||||
_TRIGGERED_BY = {0x0001: "Tran", 0x0002: "Vert", 0x0004: "Long", 0x0008: "MicL", 0x0200: "Manual"}
|
||||
_STOP_MODES = {0: "Fixed"}
|
||||
_MIC_TYPES = {2: "Linear Weighting"}
|
||||
_GEO_TRIGGERS, _MIC_TRIGGER = 0x07, 0x08
|
||||
# Blastware turns the mic trigger level from psi to dB with 6895 Pa per psi, not
|
||||
# 6894.757: 4,272 / 4,272 DL2 levels against 4,271 (the odd one 0.01 psi,
|
||||
# printed 130.8 dB(L), is 130.7498 at the exact constant).
|
||||
_TRIGGER_PA_PER_PSI = 6895.0
|
||||
|
||||
|
||||
def _setup_values(ev: Event) -> dict[str, object]:
|
||||
out: dict[str, object] = {}
|
||||
di = ev.device_info
|
||||
if di is not None:
|
||||
out["SerialNumber"] = di.serial
|
||||
fw = di.firmware_version or ""
|
||||
if di.dsp_version and fw.startswith("S33") and di.model:
|
||||
# "V 10.72-8.17 MiniMate Plus" from "10.72", "S338.17" and the model --
|
||||
# the only version in DL2, so the rule is proven for it alone.
|
||||
out["Version"] = f"V {di.dsp_version}-{fw[3:]} {di.model}"
|
||||
if di.calibration_date and di.calibrated_by:
|
||||
c = di.calibration_date
|
||||
out["Calibration"] = f"{_MONTHS[c.month - 1]} {c.day}, {c.year} by {di.calibrated_by}"
|
||||
out["BatteryLevel"] = ev.battery_volts
|
||||
out["Trigger"] = _TRIGGERED_BY.get(ev.triggered_by)
|
||||
out["RecordStopMode"] = _STOP_MODES.get(ev.record_stop_mode)
|
||||
out["Microphone"] = _MIC_TYPES.get(ev.mic_type)
|
||||
# dB or psi is Blastware's preference, not the unit's (carve-out
|
||||
# units-is-a-display-preference); SFM reports dB, the default.
|
||||
out["Units"] = "in/s and dB(L)" if ev.mic_type is not None else "in/s"
|
||||
# Blastware prints a trigger level only for a channel that is a trigger
|
||||
# source, and none for a Manual trigger.
|
||||
src, manual = ev.trigger_sources or 0, ev.triggered_by == 0x0200
|
||||
if src & _GEO_TRIGGERS and not manual:
|
||||
out["GeoTriggerLevel"] = ev.trigger_level_geo
|
||||
if src & _MIC_TRIGGER and not manual and ev.trigger_level_mic_psi:
|
||||
psi = ev.trigger_level_mic_psi
|
||||
out["MicTriggerLevel psi(L)"] = psi
|
||||
out["MicTriggerLevel dB(L)"] = 20 * math.log10(psi * _TRIGGER_PA_PER_PSI / 2e-5)
|
||||
return out
|
||||
|
||||
|
||||
@dataclass
|
||||
class SfmSide:
|
||||
event: Event
|
||||
values: dict[str, object] # reference tag -> SFM's value; absent or None = blank
|
||||
notes: list[str] # non-empty user-note slots, in order
|
||||
job_number: Optional[str] # None until the decoder reads it
|
||||
job_number: Optional[str] # only when the file says Blastware shows it
|
||||
channels: list[str] # channels with decoded data, in Tran/Vert/Long/MicL order
|
||||
counts: dict[str, list[int]] # waveform samples or histogram interval peaks
|
||||
geo_ips_per_count: float = GEO_IPS_PER_COUNT # at the event's range, as SFM read it
|
||||
# interval column -> SFM's value per interval (a number, or Blastware's word)
|
||||
interval_values: dict[str, list[object]] = field(default_factory=dict)
|
||||
interval_times: Optional[list[str]] = None # each interval's printed time
|
||||
|
||||
|
||||
def interval_frequency(halfp: int, sample_rate: int) -> object:
|
||||
"""An interval's frequency as Blastware prints it: "N/A" for a half-period
|
||||
of 0, ">100" (">200" at 2048 sps) at 5 samples or fewer, "<1.0" below 1 Hz,
|
||||
else (sample rate / 2) / half-period in Hz. Measured on ~3.1 M DL2 cells,
|
||||
2026-11-03 (#50: the rate, not a fixed 512)."""
|
||||
if halfp == 0:
|
||||
return "N/A"
|
||||
hz = half_period_to_hz(halfp, sample_rate)
|
||||
if hz is None:
|
||||
return f">{round(100 * sample_rate / 1024)}"
|
||||
return "<1.0" if hz < 1.0 else hz
|
||||
|
||||
|
||||
def _interval_size(seconds: int) -> str:
|
||||
n, unit = (seconds // 60, "minute") if seconds % 60 == 0 else (seconds, "second")
|
||||
return f"{n} {unit}{'' if n == 1 else 's'}"
|
||||
|
||||
|
||||
def sfm_side(raw: bytes) -> SfmSide:
|
||||
@@ -55,6 +125,7 @@ def sfm_side(raw: bytes) -> SfmSide:
|
||||
# SFM's interval count is its decoded entry count; the reference
|
||||
# carries this field for histograms only.
|
||||
"NumberofIntervals": len(counts["Tran"]) or None,
|
||||
"GeoRange": _GEO_FS_BY_RANGE.get(ev.geo_range),
|
||||
}
|
||||
if ts is not None:
|
||||
date = f"{ts.year:04d}-{ts.month:02d}-{ts.day:02d}"
|
||||
@@ -69,15 +140,44 @@ def sfm_side(raw: bytes) -> SfmSide:
|
||||
if counts["MicL"]:
|
||||
values["MicLPSPL dB(L)"] = mic_count_to_db(max(abs(c) for c in counts["MicL"]))
|
||||
values["MicLPSPL psi(L)"] = pv.micl if pv is not None else None
|
||||
values.update(_setup_values(ev))
|
||||
if ev.stop_time is not None:
|
||||
values.update(HistogramStopDate=ev.stop_time.strftime("%Y-%m-%d"),
|
||||
HistogramStopTime=ev.stop_time.strftime("%H:%M:%S"))
|
||||
if ev.histogram_interval_sec:
|
||||
values["IntervalSize"] = _interval_size(ev.histogram_interval_sec)
|
||||
interval_values: dict[str, list[object]] = {}
|
||||
if ev.interval_half_periods and ev.sample_rate:
|
||||
for ch, hps in ev.interval_half_periods.items():
|
||||
interval_values[f"{ch} Freq Hz"] = [interval_frequency(h, ev.sample_rate) for h in hps]
|
||||
if ev.interval_pvs:
|
||||
interval_values["Geo PVS in/s"] = list(ev.interval_pvs)
|
||||
times = None
|
||||
n = len(counts["Tran"])
|
||||
if ev.record_type == "Histogram" and ts is not None and ev.histogram_interval_sec and n:
|
||||
start = datetime.datetime(ts.year, ts.month, ts.day, ts.hour, ts.minute, ts.second)
|
||||
ends = interval_times(start, ev.histogram_interval_sec, ev.stop_time, n)
|
||||
times = [t.strftime("%Y-%m-%d %H:%M:%S") for t in ends]
|
||||
# A peak's date and time are those of the interval holding it (first).
|
||||
for tag, series in (("TranPeak", counts["Tran"]), ("VertPeak", counts["Vert"]),
|
||||
("LongPeak", counts["Long"]), ("MicL", counts["MicL"]),
|
||||
("PeakVectorSum", ev.interval_pvs)):
|
||||
if series and len(series) == n:
|
||||
j = max(range(n), key=lambda q: abs(series[q]))
|
||||
values[f"{tag}Date"] = ends[j].strftime("%Y-%m-%d")
|
||||
values[f"{tag}Time"] = ends[j].strftime("%H:%M:%S")
|
||||
|
||||
return SfmSide(
|
||||
event=ev,
|
||||
values=values,
|
||||
notes=[v for v in (pi.project, pi.client, pi.operator, pi.sensor_location) if v]
|
||||
if pi is not None else [],
|
||||
job_number=None,
|
||||
job_number=str(pi.job_number) if pi is not None and pi.job_number_enabled else None,
|
||||
channels=[ch for ch in _CHANNELS if counts[ch]],
|
||||
counts=counts,
|
||||
geo_ips_per_count=_GEO_FS_BY_RANGE.get(ev.geo_range, _GEO_NORMAL_FS_INS) / _GEO_INT16_FS,
|
||||
interval_values=interval_values,
|
||||
interval_times=times,
|
||||
)
|
||||
|
||||
|
||||
@@ -140,10 +240,12 @@ def _mic_converter(ref: XmlReport) -> Optional[Callable[[int], float]]:
|
||||
def _compare_scalar(tag: str, printed: str, sfm: SfmSide, ref: XmlReport) -> FieldResult:
|
||||
if not printed.strip() or printed.strip() == "N/A":
|
||||
return FieldResult(tag, "no_reference", printed, None)
|
||||
if tag == "MicLPSPL":
|
||||
units = ref.event_units or ""
|
||||
key = ("MicLPSPL dB(L)" if "dB(L)" in units else
|
||||
"MicLPSPL psi(L)" if "psi(L)" in units else None)
|
||||
if tag in ("MicLPSPL", "MicTriggerLevel"):
|
||||
# A printed value that states its unit is compared in that unit:
|
||||
# K441LA17.IN0W's Units say psi(L), its MicTriggerLevel "125.0 dB(L)".
|
||||
units = printed if ("dB(L)" in printed or "psi(L)" in printed) else (ref.event_units or "")
|
||||
key = (f"{tag} dB(L)" if "dB(L)" in units else
|
||||
f"{tag} psi(L)" if "psi(L)" in units else None)
|
||||
value = sfm.values.get(key) if key else None
|
||||
else:
|
||||
value = sfm.values.get(tag)
|
||||
@@ -162,9 +264,11 @@ def _compare_scalar(tag: str, printed: str, sfm: SfmSide, ref: XmlReport) -> Fie
|
||||
return FieldResult(tag, "match" if ok else "mismatch", printed, _render(value, printed))
|
||||
|
||||
|
||||
def _cell_diff(value: float, printed: str) -> Optional[float]:
|
||||
def _cell_diff(value: object, printed: str) -> Optional[float]:
|
||||
"""|value - printed| when the cell disagrees, else None; inf for a cell that
|
||||
is not a number."""
|
||||
is not a number. A word on SFM's side (">100", "N/A") must be printed."""
|
||||
if isinstance(value, str):
|
||||
return None if _same_text(value, printed) else float("inf")
|
||||
p = _printed_number(printed)
|
||||
if p is None:
|
||||
return float("inf")
|
||||
@@ -184,19 +288,20 @@ def _series_result(field: str, n_bw: int, n_sfm: int, diffs: list[tuple[int, flo
|
||||
)
|
||||
|
||||
|
||||
def _sample_converters(ref: XmlReport) -> dict[str, Callable[[int], float]]:
|
||||
convert: dict[str, Callable[[int], float]] = {ch: (lambda c: c * GEO_IPS_PER_COUNT) for ch in _GEO}
|
||||
def _sample_converters(sfm: SfmSide, ref: XmlReport) -> dict[str, Callable[[int], float]]:
|
||||
k = sfm.geo_ips_per_count
|
||||
convert: dict[str, Callable[[int], float]] = {ch: (lambda c: c * k) for ch in _GEO}
|
||||
mic = _mic_converter(ref)
|
||||
if mic is not None:
|
||||
convert["MicL"] = mic
|
||||
return convert
|
||||
|
||||
|
||||
def _interval_converter(title: str) -> Optional[Callable[[int], float]]:
|
||||
def _interval_converter(title: str, sfm: SfmSide) -> Optional[Callable[[int], float]]:
|
||||
"""SFM keeps each interval's peaks; it drops their frequencies and geo PVS."""
|
||||
ch, _, rest = title.partition(" ")
|
||||
if rest.startswith("Peak") and ch in _GEO:
|
||||
return lambda c: c * GEO_IPS_PER_COUNT
|
||||
return lambda c: c * sfm.geo_ips_per_count
|
||||
if ch == "MicL" and rest == "Peak dB(L)":
|
||||
return mic_count_to_db
|
||||
if ch == "MicL" and rest == "Peak psi(L)":
|
||||
@@ -215,7 +320,7 @@ def series_pairs(sfm: SfmSide, ref: XmlReport,
|
||||
a row whose cell count differs is a disagreement for every channel."""
|
||||
if field.startswith("samples."):
|
||||
ch = field[len("samples."):]
|
||||
convert = _sample_converters(ref).get(ch)
|
||||
convert = _sample_converters(sfm, ref).get(ch)
|
||||
counts = sfm.counts.get(ch, [])
|
||||
if convert is None or not counts:
|
||||
return None
|
||||
@@ -232,14 +337,19 @@ def series_pairs(sfm: SfmSide, ref: XmlReport,
|
||||
if field.startswith("intervals."):
|
||||
title = field[len("intervals."):]
|
||||
columns = ref.interval_columns or []
|
||||
convert = _interval_converter(title)
|
||||
counts = sfm.counts.get(title.partition(" ")[0], [])
|
||||
if convert is None or not counts or title not in columns:
|
||||
if title not in columns:
|
||||
return None
|
||||
i = columns.index(title)
|
||||
cells = [row[i] if i < len(row) else "" for _, row in (ref.intervals or [])]
|
||||
pairs = [(j, cell, convert(c)) for j, (cell, c) in enumerate(zip(cells, counts))]
|
||||
return pairs, abs(len(cells) - len(counts))
|
||||
values = sfm.interval_values.get(title)
|
||||
if values is None:
|
||||
convert = _interval_converter(title, sfm)
|
||||
counts = sfm.counts.get(title.partition(" ")[0], [])
|
||||
if convert is None or not counts:
|
||||
return None
|
||||
values = [convert(c) for c in counts]
|
||||
pairs = [(j, cell, v) for j, (cell, v) in enumerate(zip(cells, values))]
|
||||
return pairs, abs(len(cells) - len(values))
|
||||
return None
|
||||
|
||||
|
||||
@@ -249,7 +359,9 @@ def _compare_series(field: str, n_bw: int, sfm: SfmSide, ref: XmlReport) -> Fiel
|
||||
return FieldResult(field, "sfm_blank", f"{n_bw} rows", None)
|
||||
pairs, row_len = got
|
||||
diffs = [(j, d) for j, cell, v in pairs if (d := _cell_diff(v, cell)) is not None]
|
||||
n_sfm = len(sfm.counts.get(field.split(".", 1)[1].partition(" ")[0], []))
|
||||
title = field.split(".", 1)[1]
|
||||
n_sfm = (len(sfm.interval_values[title]) if title in sfm.interval_values
|
||||
else len(sfm.counts.get(title.partition(" ")[0], [])))
|
||||
return _series_result(field, n_bw, n_sfm, diffs, row_len)
|
||||
|
||||
|
||||
@@ -260,12 +372,21 @@ def _compare_samples(sfm: SfmSide, ref: XmlReport) -> list[FieldResult]:
|
||||
|
||||
|
||||
def _compare_intervals(sfm: SfmSide, ref: XmlReport) -> list[FieldResult]:
|
||||
"""One result per column, plus the interval times, which SFM does not keep."""
|
||||
"""One result per column, plus the interval times."""
|
||||
n = len(ref.intervals or [])
|
||||
return ([FieldResult("intervals.Time", "sfm_blank", f"{n} rows", None)]
|
||||
return ([_compare_interval_times(sfm, ref, n)]
|
||||
+ [_compare_series(f"intervals.{t}", n, sfm, ref) for t in ref.interval_columns or []])
|
||||
|
||||
|
||||
def _compare_interval_times(sfm: SfmSide, ref: XmlReport, n: int) -> FieldResult:
|
||||
if sfm.interval_times is None:
|
||||
return FieldResult("intervals.Time", "sfm_blank", f"{n} rows", None)
|
||||
diffs = [(j, float("inf")) for j, ((t, _), s) in enumerate(zip(ref.intervals or [], sfm.interval_times))
|
||||
if not _same_text(s, t)]
|
||||
return _series_result("intervals.Time", n, len(sfm.interval_times), diffs,
|
||||
abs(n - len(sfm.interval_times)))
|
||||
|
||||
|
||||
def compare(sfm: SfmSide, ref: XmlReport, carveouts: Sequence["Carveout"] = ()) -> list[FieldResult]:
|
||||
"""Every field Blastware's report carries, set against what SFM produced.
|
||||
A mismatch a carve-out covers and applies to becomes `accepted`."""
|
||||
@@ -284,6 +405,9 @@ def compare(sfm: SfmSide, ref: XmlReport, carveouts: Sequence["Carveout"] = ())
|
||||
if sfm.job_number is None else
|
||||
FieldResult("JobNumber", "match" if _same_text(sfm.job_number, ref.job_number)
|
||||
else "mismatch", ref.job_number, sfm.job_number))
|
||||
elif sfm.job_number is not None:
|
||||
# SFM says the job number is shown; Blastware printed none.
|
||||
out.append(FieldResult("JobNumber", "mismatch", None, sfm.job_number))
|
||||
out.append(FieldResult("Channels", "match" if ref.channels == sfm.channels else "mismatch",
|
||||
" ".join(ref.channels), " ".join(sfm.channels)))
|
||||
if ref.sample_rows is not None:
|
||||
|
||||
@@ -68,6 +68,21 @@ def _saturation(sfm: SfmSide, ref: XmlReport, res: FieldResult) -> bool:
|
||||
got = series_pairs(sfm, ref, res.field)
|
||||
if got is None or got[1]:
|
||||
return False
|
||||
if res.field == "intervals.Geo PVS in/s":
|
||||
# Per interval, as PeakVectorSum: an OORANGE vector sum, SFM's sum within
|
||||
# three channels at the ceiling, and a channel Blastware itself clamped in
|
||||
# that interval. 17 / 17 DL2 cells, SFM 10.01 .. 17.33 (2026-11-03).
|
||||
cols = ref.interval_columns or []
|
||||
peaks = [cols.index(c) for c in ("Tran Peak in/s", "Vert Peak in/s", "Long Peak in/s")
|
||||
if c in cols]
|
||||
rows = ref.intervals or []
|
||||
differing = [(j, cell, v) for j, cell, v in got[0]
|
||||
if isinstance(v, str) or not matches_printed(v, cell)]
|
||||
return bool(differing) and all(
|
||||
cell.strip() == "OORANGE" and not isinstance(v, str)
|
||||
and r - _TOL <= v <= 3 ** 0.5 * r * 1.01
|
||||
and any(_clamped(rows[j][1][p], r) for p in peaks if p < len(rows[j][1]))
|
||||
for j, cell, v in differing)
|
||||
differing = [(cell, v) for _, cell, v in got[0] if not matches_printed(v, cell)]
|
||||
return bool(differing) and all(
|
||||
_clamped(cell, r) and _at_ceiling(v, r)
|
||||
@@ -79,11 +94,59 @@ SATURATION = Carveout(
|
||||
id="saturation",
|
||||
fields=("TranPPV", "VertPPV", "LongPPV", "PeakVectorSum",
|
||||
"samples.Tran", "samples.Vert", "samples.Long",
|
||||
"intervals.Tran Peak in/s", "intervals.Vert Peak in/s", "intervals.Long Peak in/s"),
|
||||
"intervals.Tran Peak in/s", "intervals.Vert Peak in/s", "intervals.Long Peak in/s",
|
||||
"intervals.Geo PVS in/s"),
|
||||
evidence=("Blastware clamps a clipped channel to the range maximum and prints OORANGE; "
|
||||
"the file holds counts past full scale (32016 counts = 10.005 in/s observed). "
|
||||
"scratch/verify_against_ascii.py, 2026-08-28."),
|
||||
"scratch/verify_against_ascii.py, 2026-08-28. An interval's vector sum prints "
|
||||
"OORANGE when it exceeds the range in an interval with a clamped channel: 17 / 17 "
|
||||
"DL2 cells, 2026-11-03."),
|
||||
applies=_saturation,
|
||||
)
|
||||
|
||||
CARVEOUTS: tuple[Carveout, ...] = (SATURATION,)
|
||||
def _interval_count_is_duration(sfm: SfmSide, ref: XmlReport, res: FieldResult) -> bool:
|
||||
"""Blastware's count exceeds the intervals in its own table, and SFM decoded
|
||||
exactly the table's."""
|
||||
p = _printed_number(res.bw or "")
|
||||
n = sfm.values.get("NumberofIntervals")
|
||||
rows = len(ref.intervals or [])
|
||||
return p is not None and n is not None and rows == n and p[0] > n
|
||||
|
||||
|
||||
INTERVAL_COUNT_IS_DURATION = Carveout(
|
||||
id="interval-count-is-duration",
|
||||
fields=("NumberofIntervals",),
|
||||
evidence=("Blastware's Number of Intervals is (stop - start) / interval from the file's "
|
||||
"footer times -- exact on T193KSWP.FF0H (2,880), M462KSWR.1R0H (1,650) and "
|
||||
"T193KY0A.740H (6,390). Its own interval table lists the intervals the file "
|
||||
"holds: one block (30 at 2 s) fewer when the unit never wrote the last minute. "
|
||||
"2026-11-02."),
|
||||
applies=_interval_count_is_duration,
|
||||
)
|
||||
|
||||
_MIC_UNITS = ("in/s and dB(L)", "in/s and psi(L)")
|
||||
|
||||
|
||||
def _units_is_a_display_preference(sfm: SfmSide, ref: XmlReport, res: FieldResult) -> bool:
|
||||
"""Both sides say the event has a mic; they differ only in dB against psi."""
|
||||
return (" ".join((res.bw or "").split()) in _MIC_UNITS
|
||||
and sfm.values.get("Units") in _MIC_UNITS)
|
||||
|
||||
|
||||
UNITS_IS_A_DISPLAY_PREFERENCE = Carveout(
|
||||
id="units-is-a-display-preference",
|
||||
fields=("Units",),
|
||||
evidence=("dB(L) or psi(L) is Blastware's display preference on the PC when it wrote the "
|
||||
"report, not the unit's: in report-write order (the _XML.XML mtimes) DL2's 70,034 "
|
||||
"reports switch fleet-wide in 61 clean runs, every unit at once, and no byte or "
|
||||
"bit of the event file separates the two (k-240 .. k+520, nor the 1.2 KB before "
|
||||
"the footer). Instantel documents both settings: the unit's own Microphone "
|
||||
"Units (MiniMate Plus manual 716U0101 Rev 15 §3.9.7: psi(L), dB(L) or Pa(L), "
|
||||
"keypad Right Arrow + Setups) and Blastware's report preference (Blastware "
|
||||
"manual 714U0301 Rev 22 §4, Preferences > Units and Channel: Show Mic in dB / "
|
||||
"in Linear Units). 2026-11-03."),
|
||||
applies=_units_is_a_display_preference,
|
||||
)
|
||||
|
||||
CARVEOUTS: tuple[Carveout, ...] = (SATURATION, INTERVAL_COUNT_IS_DURATION,
|
||||
UNITS_IS_A_DISPLAY_PREFERENCE)
|
||||
+316
-65
@@ -19,18 +19,19 @@ import datetime
|
||||
import hashlib
|
||||
import json
|
||||
import logging
|
||||
import math
|
||||
import os
|
||||
import re
|
||||
import struct
|
||||
from pathlib import Path
|
||||
from typing import Optional, Union
|
||||
|
||||
from .models import Event, PeakValues, ProjectInfo, Timestamp
|
||||
from .models import DeviceInfo, Event, PeakValues, ProjectInfo, Timestamp
|
||||
from . import blastware_file as _bw # avoid circular reference at module load
|
||||
from .bw_ascii_report import BwAsciiReport
|
||||
from . import waveform_codec as _wc
|
||||
from .waveform_codec import decode_waveform_v2, decoded_to_adc_counts
|
||||
from .histogram_codec import decode_histogram_body, interval_pvs
|
||||
from .histogram_codec import channels_from_records, decode_histogram_body, decode_histogram_body_full
|
||||
|
||||
# Reference pressure for dB(L) → psi conversion (20 µPa expressed in psi).
|
||||
# Same constant as sfm/sfm_webapp.html so server-side and browser-side
|
||||
@@ -704,9 +705,11 @@ _INT16_FS = 32768.0
|
||||
# sfm.event_hdf5._GEO_INT16_FS or sidecar peaks disagree with the plotted
|
||||
# waveform by 2.3%. Confirmed 2026-08-25 against the BW ASCII corpus.
|
||||
_GEO_INT16_FS = 32000.0
|
||||
# A histogram's geo values are in decoder units of 16 counts = 0.005 in/s at
|
||||
# the Normal range (the same assumption as the samples above).
|
||||
_HIST_GEO_UNIT_INS = 16 * _GEO_NORMAL_FS_INS / _GEO_INT16_FS
|
||||
# Full scale per geo_range: 0 Normal, 1 Sensitive.
|
||||
_GEO_FS_BY_RANGE = {0: _GEO_NORMAL_FS_INS, 1: _GEO_SENSITIVE_FS_INS}
|
||||
# A histogram's geo values are decoder units of 16 counts: 0.005 in/s at the
|
||||
# Normal range, scaled by the range's full scale like the samples above.
|
||||
_HIST_GEO_COUNTS_PER_UNIT = 16
|
||||
|
||||
# Microphone scale factor, psi per MicL count: one count is 0.25 Pa
|
||||
# (waveform_codec.MIC_PA_PER_COUNT, measured against Blastware's psi(L) on
|
||||
@@ -749,17 +752,19 @@ def _decode_samples_4ch_int16_le(stream: bytes) -> dict[str, list[int]]:
|
||||
}
|
||||
|
||||
|
||||
def _peaks_from_samples(samples: dict[str, list[int]]) -> PeakValues:
|
||||
def _peaks_from_samples(samples: dict[str, list[int]],
|
||||
geo_fs_ins: float = _GEO_NORMAL_FS_INS) -> PeakValues:
|
||||
"""
|
||||
Compute approximate peaks from raw int16 samples assuming Normal-range
|
||||
geophone sensitivity. Used by the BW-importer when the 0C waveform
|
||||
record (the device's authoritative peaks) is unavailable.
|
||||
Compute peaks from raw int16 samples at the given geophone full scale
|
||||
(Normal, 10 in/s, unless the file's range says otherwise). Used by the
|
||||
BW-importer when the 0C waveform record (the device's authoritative peaks)
|
||||
is unavailable.
|
||||
"""
|
||||
def _peak_ins(ch: list[int]) -> float:
|
||||
if not ch:
|
||||
return 0.0
|
||||
m = max(abs(int(v)) for v in ch)
|
||||
return m / _GEO_INT16_FS * _GEO_NORMAL_FS_INS
|
||||
return m / _GEO_INT16_FS * geo_fs_ins
|
||||
|
||||
tran = _peak_ins(samples.get("Tran", []))
|
||||
vert = _peak_ins(samples.get("Vert", []))
|
||||
@@ -773,7 +778,7 @@ def _peaks_from_samples(samples: dict[str, list[int]]) -> PeakValues:
|
||||
pvs = 0.0
|
||||
n = min(len(samples.get("Tran", [])), len(samples.get("Vert", [])), len(samples.get("Long", [])))
|
||||
if n:
|
||||
scale = _GEO_NORMAL_FS_INS / _GEO_INT16_FS
|
||||
scale = geo_fs_ins / _GEO_INT16_FS
|
||||
T = samples["Tran"]; V = samples["Vert"]; L = samples["Long"]
|
||||
for i in range(n):
|
||||
t = T[i] * scale
|
||||
@@ -858,6 +863,7 @@ _RECTIME_OFFSET_BEFORE_MARKER = 30
|
||||
# 2026-10-29). Offsets are from the first byte of the name.
|
||||
_SETUP_NAME_RE = re.compile(rb"\x1c\x08([\x20-\x7e]{1,40})\x00")
|
||||
_SAMPLE_RATE_BEFORE_NAME = 42 # uint16 BE, samples per second
|
||||
_INTERVAL_BEFORE_NAME = 40 # uint16 BE, histogram interval in seconds (2 / 5 / 15 / 60 / 300)
|
||||
_PRETRIG_BEFORE_NAME = 36 # float32 BE, seconds, negative (-0.25, -0.0625 ...)
|
||||
_RECTIME_BEFORE_NAME = 30 # float32 BE, seconds (the marker's offset above)
|
||||
_SAMPLE_RATES = (1024, 2048, 4096)
|
||||
@@ -891,17 +897,22 @@ def _ts8(b: bytes) -> Optional[datetime.datetime]:
|
||||
def _embedded_event_record(
|
||||
raw: bytes, end: int, start: Optional[datetime.datetime],
|
||||
stop: Optional[datetime.datetime], record_time: Optional[float],
|
||||
) -> tuple[Optional[datetime.datetime], str]:
|
||||
"""The trigger time from the instrument's embedded event record, or (None, why).
|
||||
) -> tuple[Optional[datetime.datetime], str, Optional[int]]:
|
||||
"""The trigger time and trigger source from the instrument's embedded event
|
||||
record, or (None, why, None).
|
||||
|
||||
Every `fe 80` before `end` (the footer) is a candidate. One counts only if
|
||||
its lead bytes match, both its times are well formed, the footer's session
|
||||
start <= trigger <= its stop, its stop is the footer's stop or a second
|
||||
before it, and its length agrees with the record time. Exactly one may
|
||||
pass: none, or more than one, is reported rather than guessed between.
|
||||
|
||||
The two bytes between the lead and `fe 80` are the trigger source, a uint16
|
||||
BE bitmask: 0x01 Tran, 0x02 Vert, 0x04 Long, 0x08 MicL, 0x200 Manual --
|
||||
Blastware's Trigger on 6,493 / 6,493 DL2 waveforms (2026-11-03).
|
||||
"""
|
||||
if start is None or stop is None:
|
||||
return None, "the footer has no start and stop to check one against"
|
||||
return None, "the footer has no start and stop to check one against", None
|
||||
found, rejected = [], 0
|
||||
i = raw.find(_EVENT_RECORD_MARKER, 6)
|
||||
while 0 <= i and i + 18 <= end:
|
||||
@@ -917,15 +928,62 @@ def _embedded_event_record(
|
||||
<= _EVENT_RECORD_SLACK_S[1])
|
||||
)
|
||||
if valid:
|
||||
found.append(trig)
|
||||
found.append((trig, int.from_bytes(raw[i - 2:i], "big")))
|
||||
else:
|
||||
rejected += 1
|
||||
i = raw.find(_EVENT_RECORD_MARKER, i + 1)
|
||||
if len(found) == 1:
|
||||
return found[0], ""
|
||||
return found[0][0], "", found[0][1]
|
||||
if found:
|
||||
return None, f"{len(found)} candidates validate"
|
||||
return None, (f"{rejected} candidate(s), none valid" if rejected else "no candidate")
|
||||
return None, f"{len(found)} candidates validate", None
|
||||
return None, (f"{rejected} candidate(s), none valid" if rejected else "no candidate"), None
|
||||
|
||||
|
||||
# A histogram's event record: the same lead, the source 0x0400, marker fe f5,
|
||||
# then its start and stop -- Blastware's Histogram Start / Stop on 63,490 /
|
||||
# 63,490 DL2 histograms. On all 63,500 its start is 0 or 1 s after the footer's
|
||||
# start and its stop 0 or 1 s before the footer's stop (2026-11-03).
|
||||
_HISTOGRAM_RECORD_MARKER = b"\xfe\xf5"
|
||||
_HISTOGRAM_RECORD_SOURCE = b"\x04\x00"
|
||||
|
||||
|
||||
def interval_times(start: datetime.datetime, interval_sec: int,
|
||||
stop: Optional[datetime.datetime], n: int) -> list[datetime.datetime]:
|
||||
"""Each histogram interval's time as Blastware prints it: the interval's
|
||||
end, start + (i + 1) x interval, capped at the stop. 2,308,524 / 2,308,524
|
||||
DL2 rows; and an event's peak date and time are its interval's (2026-11-03)."""
|
||||
out = []
|
||||
for i in range(n):
|
||||
t = start + datetime.timedelta(seconds=interval_sec * (i + 1))
|
||||
out.append(min(t, stop) if stop is not None else t)
|
||||
return out
|
||||
|
||||
|
||||
def _histogram_event_record(
|
||||
raw: bytes, end: int, start: Optional[datetime.datetime],
|
||||
stop: Optional[datetime.datetime],
|
||||
) -> tuple[Optional[datetime.datetime], Optional[datetime.datetime], str]:
|
||||
"""(start, stop) from a histogram's own event record, or (None, None, why).
|
||||
Exactly one record may validate against the footer's start and stop."""
|
||||
if start is None or stop is None:
|
||||
return None, None, "the footer has no start and stop to check one against"
|
||||
found, rejected = [], 0
|
||||
i = raw.find(_HISTOGRAM_RECORD_MARKER, 6)
|
||||
while 0 <= i and i + 18 <= end:
|
||||
a, b = _ts8(raw[i + 2:i + 10]), _ts8(raw[i + 10:i + 18])
|
||||
if (raw[i - 6:i - 2] == _EVENT_RECORD_LEAD and raw[i - 2:i] == _HISTOGRAM_RECORD_SOURCE
|
||||
and a is not None and b is not None and a <= b
|
||||
and 0 <= (a - start).total_seconds() <= 1
|
||||
and 0 <= (stop - b).total_seconds() <= 1):
|
||||
found.append((a, b))
|
||||
elif raw[i - 6:i - 2] == _EVENT_RECORD_LEAD:
|
||||
rejected += 1
|
||||
i = raw.find(_HISTOGRAM_RECORD_MARKER, i + 1)
|
||||
if len(found) == 1:
|
||||
return found[0][0], found[0][1], ""
|
||||
if found:
|
||||
return None, None, f"{len(found)} candidates validate"
|
||||
return None, None, (f"{rejected} candidate(s), none valid" if rejected else "no candidate")
|
||||
|
||||
|
||||
def _parse_record_time_seconds(raw: bytes) -> Optional[float]:
|
||||
@@ -992,8 +1050,132 @@ def _setup_notes(raw: bytes) -> ProjectInfo:
|
||||
text = [p.decode("ascii", errors="replace").strip() or None for p in parts]
|
||||
text += [None] * (2 + 2 * _NOTE_SLOTS - len(text))
|
||||
project, client, operator, location = text[2:2 + 2 * _NOTE_SLOTS:2]
|
||||
enabled, number = _setup_job_number(raw, k)
|
||||
return ProjectInfo(setup_name=text[0], project=project, client=client,
|
||||
operator=operator, sensor_location=location)
|
||||
operator=operator, sensor_location=location,
|
||||
job_number_enabled=enabled, job_number=number)
|
||||
|
||||
|
||||
# The job number, in Series IV's 0x1A layout ([39] report flags, [40:42] the
|
||||
# number): flags at k - 9, bit 0x02 = shown; the number, uint16 BE, at k - 8,
|
||||
# kept while switched off. The flag matches Blastware's JobNumber on 2,997 /
|
||||
# 2,997 DL2 events that print one and 66,986 / 66,986 that don't, and every
|
||||
# printed value matches (all are 1; measured 2026-11-02).
|
||||
_REPORT_FLAGS_BEFORE_NAME = 9
|
||||
_JOB_NUMBER_BEFORE_NAME = 8
|
||||
_JOB_NUMBER_ON = 0x02
|
||||
|
||||
|
||||
def _setup_job_number(raw: bytes, k: int) -> tuple[Optional[bool], Optional[int]]:
|
||||
"""(shown, number) from the setup block whose name starts at k."""
|
||||
if k < _REPORT_FLAGS_BEFORE_NAME:
|
||||
return None, None
|
||||
flags = raw[k - _REPORT_FLAGS_BEFORE_NAME]
|
||||
j = k - _JOB_NUMBER_BEFORE_NAME
|
||||
return bool(flags & _JOB_NUMBER_ON), int.from_bytes(raw[j:j + 2], "big")
|
||||
|
||||
|
||||
# The geophone range sits in the setup's channel blocks, which follow the
|
||||
# notes: the byte 29 after each geophone label (`00 00 01 Tran ...`). 0x00 is
|
||||
# Normal, 0x01 Sensitive -- Blastware's GeoRange on 70,042 / 70,042 DL2 events,
|
||||
# all three channels agreeing on every one (measured 2026-11-01). SFM's live
|
||||
# 1A read has the same byte at label+33.
|
||||
_RANGE_AFTER_LABEL = 29
|
||||
_CHANNEL_BLOCK_SPAN = 2000 # how far past the setup name the blocks may sit
|
||||
|
||||
|
||||
def _setup_geo_range(raw: bytes) -> tuple[Optional[int], Optional[str]]:
|
||||
"""(geo_range, problem): 0 Normal or 1 Sensitive when all three geophone
|
||||
channels say the same, else None and why."""
|
||||
k = _setup_name_at(raw)
|
||||
if k is None:
|
||||
return None, "no recording-setup block to read the geophone range from"
|
||||
found = {}
|
||||
for label in (b"Tran", b"Vert", b"Long"):
|
||||
i = raw.find(b"\x00\x00\x01" + label, k, k + _CHANNEL_BLOCK_SPAN)
|
||||
p = i + 3 + _RANGE_AFTER_LABEL
|
||||
found[label.decode()] = raw[p] if i >= 0 and p < len(raw) else None
|
||||
values = set(found.values())
|
||||
if len(values) == 1 and values <= {0, 1}:
|
||||
return values.pop(), None
|
||||
return None, f"geophone range not read: channel range bytes {found}"
|
||||
|
||||
|
||||
# The identity block before the setup: what the live read gets from SUB FE
|
||||
# (DeviceInfo). Offsets back from k, the setup name; matched against every DL2
|
||||
# report 2026-11-03 -- serial, version and calibration 69,983 / 69,983, the
|
||||
# battery 69,729 plus 254 that Blastware rounds half up (6.25 -> "6.3 Volts").
|
||||
_SERIAL_BEFORE_NAME = 202 # ASCII, NUL-terminated
|
||||
_BATTERY_BEFORE_NAME = 190 # uint16 BE, hundredths of a volt
|
||||
_FIRMWARE_MINOR_BEFORE_NAME = 193 # 0x11 = 17 for S338.17, as SUB EA
|
||||
_FIRMWARE_BEFORE_NAME = 147 # "S338.17"
|
||||
_DSP_BEFORE_NAME = 138 # "10.72"
|
||||
_CALIBRATION_BEFORE_NAME = 132 # dd mm yyyy (BE)
|
||||
_CALIBRATED_BY_BEFORE_NAME = 128 # "Instantel"
|
||||
_MANUFACTURER_BEFORE_NAME = 94 # "Instantel"
|
||||
_MODEL_BEFORE_NAME = 72 # "MiniMate Plus" / "BlastMate III"
|
||||
|
||||
|
||||
def _cstr(raw: bytes, i: int, limit: int = 40) -> Optional[str]:
|
||||
if i < 0:
|
||||
return None
|
||||
j = raw.find(b"\x00", i, i + limit)
|
||||
s = raw[i:j if j >= 0 else i + limit].decode("ascii", errors="replace").strip()
|
||||
return s or None
|
||||
|
||||
|
||||
def _setup_identity(raw: bytes, k: int) -> tuple[Optional[DeviceInfo], Optional[float]]:
|
||||
"""(the unit's identity, the battery in volts) from the block before the
|
||||
setup name at k."""
|
||||
if k < _SERIAL_BEFORE_NAME:
|
||||
return None, None
|
||||
serial = _cstr(raw, k - _SERIAL_BEFORE_NAME, 16)
|
||||
if not serial:
|
||||
return None, None
|
||||
c = k - _CALIBRATION_BEFORE_NAME
|
||||
try:
|
||||
cal = datetime.date(int.from_bytes(raw[c + 2:c + 4], "big"), raw[c + 1], raw[c])
|
||||
except ValueError:
|
||||
cal = None
|
||||
info = DeviceInfo(
|
||||
serial=serial,
|
||||
firmware_minor=raw[k - _FIRMWARE_MINOR_BEFORE_NAME],
|
||||
firmware_version=_cstr(raw, k - _FIRMWARE_BEFORE_NAME, 9),
|
||||
dsp_version=_cstr(raw, k - _DSP_BEFORE_NAME, 6),
|
||||
manufacturer=_cstr(raw, k - _MANUFACTURER_BEFORE_NAME),
|
||||
model=_cstr(raw, k - _MODEL_BEFORE_NAME),
|
||||
calibration_date=cal,
|
||||
calibrated_by=_cstr(raw, k - _CALIBRATED_BY_BEFORE_NAME, 32),
|
||||
)
|
||||
b = k - _BATTERY_BEFORE_NAME
|
||||
return info, int.from_bytes(raw[b:b + 2], "big") / 100
|
||||
|
||||
|
||||
# Trigger settings, in Series IV's 0x1A layout again: the trigger-source bitmask
|
||||
# at k - 19 ([29]: 0x07 geophones, 0x08 mic), the stop mode at k - 31 ([17],
|
||||
# 0 = Fixed), and each channel block's trigger level, a float32 at label + 30 --
|
||||
# in/s for a geophone, psi for the mic. The mic block's type code at label + 4
|
||||
# is Series IV's (2 = linear). Against every DL2 waveform (2026-11-03): the geo
|
||||
# level 6,447 / 6,447, the mic level 4,403 / 4,403, and Blastware prints a level
|
||||
# exactly when its channel is a trigger source and the event was not Manual.
|
||||
_TRIGGER_SOURCES_BEFORE_NAME = 19
|
||||
_STOP_MODE_BEFORE_NAME = 31
|
||||
_TRIGGER_LEVEL_AFTER_LABEL = 30
|
||||
_MIC_TYPE_AFTER_LABEL = 4
|
||||
|
||||
|
||||
def _setup_trigger(raw: bytes, k: int) -> dict:
|
||||
out = {"trigger_sources": raw[k - _TRIGGER_SOURCES_BEFORE_NAME],
|
||||
"record_stop_mode": raw[k - _STOP_MODE_BEFORE_NAME]}
|
||||
t = raw.find(b"\x00\x00\x01Tran", k, k + _CHANNEL_BLOCK_SPAN)
|
||||
if t >= 0:
|
||||
p = t + 3 + _TRIGGER_LEVEL_AFTER_LABEL
|
||||
out["trigger_level_geo"] = struct.unpack_from(">f", raw, p)[0]
|
||||
m = raw.find(b"MicL", k, k + _CHANNEL_BLOCK_SPAN)
|
||||
if m >= 0:
|
||||
out["trigger_level_mic_psi"] = struct.unpack_from(">f", raw, m + _TRIGGER_LEVEL_AFTER_LABEL)[0]
|
||||
out["mic_type"] = int.from_bytes(raw[m + _MIC_TYPE_AFTER_LABEL:m + _MIC_TYPE_AFTER_LABEL + 4], "big")
|
||||
return out
|
||||
|
||||
|
||||
def read_blastware_file(path: Union[str, Path], *, name: Optional[str] = None) -> Event:
|
||||
@@ -1047,22 +1229,34 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
|
||||
# Footer: locate the 0e 08 marker, validating the year is in a sane range.
|
||||
body_start = _bw._WAVEFORM_HEADER_SIZE + 21
|
||||
# The 0e 08 + plausible-year footer signature can occur inside the sample
|
||||
# stream. Collect every candidate and prefer the first whose body yields a
|
||||
# waveform record chain terminating on the 0x06 marker; fall back to the
|
||||
# first candidate otherwise. Blast radius measured 2026-08-25: changes the
|
||||
# chosen footer on exactly 1 of 1,388 series-3 waveform files
|
||||
# (BE17353/S353L4O5.OX0W, false positive at 3800, real footer at 8576).
|
||||
footer_candidates = []
|
||||
pos = body_start
|
||||
while True:
|
||||
pos = raw.find(b"\x0e\x08", pos)
|
||||
if pos < 0 or pos + 26 > len(raw):
|
||||
break
|
||||
yr = (raw[pos + 4] << 8) | raw[pos + 5]
|
||||
if 2015 <= yr <= 2050:
|
||||
footer_candidates.append(pos)
|
||||
pos += 1
|
||||
# The footer is the file's last 26 bytes whenever they are one -- 0e 08 and
|
||||
# two valid times: 70,041 / 70,041 DL2 files (measured 2026-11-03). Taking
|
||||
# the first "0e 08 + plausible year" instead found, on 14 of them, an
|
||||
# earlier record ~1.1 KB before the end holding the stop time and zeros: a
|
||||
# histogram then started at its own stop (a day late on BE9558's daily
|
||||
# histograms) and a waveform lost its stop, so its trigger time too.
|
||||
#
|
||||
# Otherwise the search below stands. The signature can occur inside the
|
||||
# sample stream, so it prefers the first candidate whose body yields a
|
||||
# waveform record chain terminating on the 0x06 marker, then the first
|
||||
# candidate (2026-08-25: BE17353/S353L4O5.OX0W, false positive at 3800,
|
||||
# real footer at 8576).
|
||||
end = len(raw) - 26
|
||||
if (end >= body_start and raw[end:end + 2] == b"\x0e\x08"
|
||||
and _bw._decode_ts_be(raw[end + 2:end + 10]) is not None
|
||||
and _bw._decode_ts_be(raw[end + 10:end + 18]) is not None):
|
||||
footer_candidates = [end]
|
||||
else:
|
||||
footer_candidates = []
|
||||
pos = body_start
|
||||
while True:
|
||||
pos = raw.find(b"\x0e\x08", pos)
|
||||
if pos < 0 or pos + 26 > len(raw):
|
||||
break
|
||||
yr = (raw[pos + 4] << 8) | raw[pos + 5]
|
||||
if 2015 <= yr <= 2050:
|
||||
footer_candidates.append(pos)
|
||||
pos += 1
|
||||
|
||||
footer_pos = -1
|
||||
for cand in footer_candidates:
|
||||
@@ -1119,18 +1313,40 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
# mode, synthetic test input), fall back to empty channels — the
|
||||
# rest of the event (timestamp, waveform_key, project strings) is
|
||||
# still recoverable and useful.
|
||||
decoded = decode_waveform_v2(body)
|
||||
# Discriminator for the timestamp logic below: a waveform (trigger) event
|
||||
# vs a histogram window. Keyed on the codec, not the filename — the
|
||||
# save_imported_bw path passes a tmp ".bw" name whose extension lies.
|
||||
is_waveform_body = decoded is not None
|
||||
if decoded is None:
|
||||
decoded = decode_histogram_body(body)
|
||||
#
|
||||
# The record type comes from the bytes: STRT[18] (#41), 0x46 / 0x0A on
|
||||
# 70,041 / 70,041 DL2 files. It picks the codec. Trying the waveform codec
|
||||
# first handed it BE9440 / BE9557 / BE17354's 2018 5 s histograms, which it
|
||||
# accepted and returned ~5x too many "samples" for. Only an unknown type
|
||||
# falls back to the old trial order. The filename's last letter is only a
|
||||
# cross-check -- SFM's own downloads have no name, and a manual download's
|
||||
# (".QZ0") carries no type at all.
|
||||
type_byte = strt_raw[18]
|
||||
record_type = _RECORD_TYPE_BY_STRT.get(type_byte)
|
||||
problems = []
|
||||
if record_type is None:
|
||||
problems.append(f"unknown record type byte 0x{type_byte:02x} at STRT[18]")
|
||||
hist_records = None
|
||||
if record_type == "Histogram":
|
||||
hist_records = decode_histogram_body_full(body)
|
||||
decoded = channels_from_records(hist_records)
|
||||
is_waveform_body = False
|
||||
elif record_type == "Waveform":
|
||||
decoded = decode_waveform_v2(body)
|
||||
is_waveform_body = True
|
||||
else:
|
||||
decoded = decode_waveform_v2(body)
|
||||
is_waveform_body = decoded is not None
|
||||
if decoded is None:
|
||||
hist_records = decode_histogram_body_full(body)
|
||||
decoded = channels_from_records(hist_records)
|
||||
if decoded is None:
|
||||
log.warning(
|
||||
"%s: body codec failed to decode (body starts %s) — "
|
||||
"raw_samples will be empty", label, body[:8].hex(" "),
|
||||
)
|
||||
if record_type is not None:
|
||||
problems.append(f"the {record_type.lower()} codec could not decode the body")
|
||||
samples = {"Tran": [], "Vert": [], "Long": [], "MicL": []}
|
||||
else:
|
||||
samples = decoded_to_adc_counts(decoded)
|
||||
@@ -1139,13 +1355,8 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
ev = Event(index=-1)
|
||||
if strt_fields.get("waveform_key"):
|
||||
ev._waveform_key = bytes.fromhex(strt_fields["waveform_key"])
|
||||
# The record type comes from the bytes: STRT[18] (#41). The filename's
|
||||
# last letter is only a cross-check -- SFM's own downloads have no name,
|
||||
# and a manual download's (".QZ0") carries no type at all.
|
||||
type_byte = strt_raw[18]
|
||||
ev.record_type = _RECORD_TYPE_BY_STRT.get(type_byte)
|
||||
if ev.record_type is None:
|
||||
ev.decode_problems.append(f"unknown record type byte 0x{type_byte:02x} at STRT[18]")
|
||||
ev.record_type = record_type
|
||||
ev.decode_problems.extend(problems)
|
||||
named_type = derive_record_type_from_filename(name, default=None) if name else None
|
||||
if named_type is not None and ev.record_type is not None and named_type != ev.record_type:
|
||||
log.warning("%s: record type %s from the file disagrees with the filename's %s; "
|
||||
@@ -1156,6 +1367,14 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
# every waveform used to read "70 s". A histogram has no record time or
|
||||
# pre-trigger -- Blastware reports neither.
|
||||
ev.sample_rate = _setup_sample_rate(raw)
|
||||
ev.geo_range, range_problem = _setup_geo_range(raw)
|
||||
if range_problem:
|
||||
ev.decode_problems.append(range_problem + "; peaks assume the Normal range")
|
||||
k = _setup_name_at(raw)
|
||||
if k is not None:
|
||||
ev.device_info, ev.battery_volts = _setup_identity(raw, k)
|
||||
for attr, value in _setup_trigger(raw, k).items():
|
||||
setattr(ev, attr, value)
|
||||
if is_waveform_body:
|
||||
ev.rectime_seconds = _setup_record_time(raw)
|
||||
ev.total_samples = len(samples["Tran"]) or None
|
||||
@@ -1186,17 +1405,19 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
# embedded in the 5A stream (_embedded_event_record), so a waveform takes
|
||||
# it from there. Without a validated one the estimate stands, reported as a
|
||||
# decode problem -- never a filename's time, which is only a cross-check.
|
||||
# Histograms stay on ts1 although it runs a second early on 97% (their
|
||||
# record, marker fe f5, holds the exact start): in Blastware's timing a
|
||||
# waveform and its histogram share a second 209 times in prod's store, and
|
||||
# events is unique on (serial, timestamp) -- #51.
|
||||
# A histogram's footer start runs a second early on 97%. Its own event
|
||||
# record (marker fe f5) holds Blastware's exact start and stop, so it takes
|
||||
# them from there (#51); events are keyed unit + time + type, so a waveform
|
||||
# and its histogram may share a second.
|
||||
# ⚠ RETRACTED 2026-11-03: "histograms stay on ts1" -- that held only while
|
||||
# events were unique on (serial, timestamp).
|
||||
if is_waveform_body and ts2 is not None:
|
||||
_stop = datetime.datetime(ts2.year, ts2.month, ts2.day,
|
||||
ts2.hour, ts2.minute, ts2.second)
|
||||
_rt = _parse_record_time_seconds(raw)
|
||||
_start = (datetime.datetime(ts1.year, ts1.month, ts1.day, ts1.hour, ts1.minute, ts1.second)
|
||||
if ts1 is not None else None)
|
||||
_trig, _why = _embedded_event_record(raw, footer_pos, _start, _stop, _rt)
|
||||
_trig, _why, ev.triggered_by = _embedded_event_record(raw, footer_pos, _start, _stop, _rt)
|
||||
if _trig is not None:
|
||||
ev.timestamp_source = "event_record"
|
||||
else:
|
||||
@@ -1218,13 +1439,25 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
hour=_trig.hour, minute=_trig.minute, second=_trig.second,
|
||||
)
|
||||
elif ts1 is not None:
|
||||
_start, _hstop, _why = (_histogram_event_record(raw, footer_pos, ts1, ts2)
|
||||
if record_type == "Histogram" else (None, None, ""))
|
||||
if _start is not None:
|
||||
ev.timestamp_source = "event_record"
|
||||
ev.stop_time = _hstop
|
||||
else:
|
||||
_start = ts1
|
||||
ev.timestamp_source = "footer"
|
||||
if record_type == "Histogram":
|
||||
_problem = (f"no validated histogram event record ({_why}); the start is the "
|
||||
"footer's, a second early on 97% of measured files")
|
||||
ev.decode_problems.append(_problem)
|
||||
log.warning("%s: %s", label, _problem)
|
||||
ev.timestamp = Timestamp(
|
||||
raw=footer[2:10],
|
||||
flag=0x10,
|
||||
year=ts1.year, unknown_byte=0, month=ts1.month, day=ts1.day,
|
||||
hour=ts1.hour, minute=ts1.minute, second=ts1.second,
|
||||
year=_start.year, unknown_byte=0, month=_start.month, day=_start.day,
|
||||
hour=_start.hour, minute=_start.minute, second=_start.second,
|
||||
)
|
||||
ev.timestamp_source = "footer"
|
||||
|
||||
ev.project_info = _setup_notes(raw)
|
||||
ev.raw_samples = samples
|
||||
@@ -1244,14 +1477,32 @@ def decode_blastware_bytes(raw: bytes, *, name: Optional[str] = None) -> Event:
|
||||
# None, and ``apply_report_to_event`` overlays from a paired ASCII
|
||||
# report when one is supplied.
|
||||
has_samples = any(samples.get(ch) for ch in ("Tran", "Vert", "Long", "MicL"))
|
||||
ev.peak_values = _peaks_from_samples(samples) if has_samples else None
|
||||
if not is_waveform_body and ev.peak_values is not None:
|
||||
# A histogram stores each interval's vector sum (squared); the event's
|
||||
# is the largest. Combining the channel peaks instead read high on 86%
|
||||
# of DL2's histograms -- they can come from different moments.
|
||||
pvs = interval_pvs(body)
|
||||
if pvs:
|
||||
ev.peak_values.peak_vector_sum = max(pvs) * _HIST_GEO_UNIT_INS
|
||||
# The geophone full scale is the file's range; Normal when it wasn't read.
|
||||
geo_fs = _GEO_FS_BY_RANGE.get(ev.geo_range, _GEO_NORMAL_FS_INS)
|
||||
ev.peak_values = _peaks_from_samples(samples, geo_fs) if has_samples else None
|
||||
if ev.stop_time is None: # a histogram's record stop, else the footer's
|
||||
ev.stop_time = ts2
|
||||
if hist_records:
|
||||
# A histogram stores each interval's vector sum (squared), and each
|
||||
# channel's half-period: Blastware's per-interval Geo PVS (771,354 /
|
||||
# 771,354 DL2 cells) and frequency, (sample rate / 2) / half-period.
|
||||
unit_ins = _HIST_GEO_COUNTS_PER_UNIT * geo_fs / _GEO_INT16_FS
|
||||
ev.interval_pvs = [math.sqrt(r["pvs_sq"]) * unit_ins for r in hist_records]
|
||||
ev.interval_half_periods = {
|
||||
ch: [r[key] for r in hist_records if r[key] is not None]
|
||||
for ch, key in (("Tran", "t_halfp"), ("Vert", "v_halfp"),
|
||||
("Long", "l_halfp"), ("MicL", "m_halfp"))}
|
||||
if not ev.interval_half_periods["MicL"]:
|
||||
del ev.interval_half_periods["MicL"]
|
||||
k = _setup_name_at(raw)
|
||||
if k is not None and k >= _INTERVAL_BEFORE_NAME:
|
||||
ev.histogram_interval_sec = int.from_bytes(
|
||||
raw[k - _INTERVAL_BEFORE_NAME:k - _INTERVAL_BEFORE_NAME + 2], "big") or None
|
||||
if not is_waveform_body and ev.peak_values is not None and ev.interval_pvs:
|
||||
# The event's vector sum is the largest interval's. Combining the
|
||||
# channel peaks instead read high on 86% of DL2's histograms -- they
|
||||
# can come from different moments.
|
||||
ev.peak_values.peak_vector_sum = max(ev.interval_pvs)
|
||||
ev._a5_frames = None # not recoverable from BW file
|
||||
|
||||
return ev
|
||||
@@ -156,10 +156,11 @@ _BLOCK_MARKER = 10
|
||||
# 16-count-unit output (1 unit = 0.005 in/s = 16 ADC counts).
|
||||
_GEO_LSB_INS = 0.005
|
||||
|
||||
# Frequency formula: freq_Hz = _FREQ_NUMERATOR / half_period_samples.
|
||||
# Empirically determined to be 512 (= sample_rate / 2, where sample rate
|
||||
# is 1024 sps for the standard MiniMate Plus configuration).
|
||||
_FREQ_NUMERATOR = 512
|
||||
# Frequency formula: freq_Hz = (sample_rate / 2) / half_period_samples.
|
||||
# ⚠ RETRACTED 2026-11-03 (#50): "a fixed numerator of 512". 512 is sample_rate
|
||||
# / 2 at 1024 sps only; at 2048 sps it halved every frequency. Measured on DL2:
|
||||
# 527,915 / 527,915 cells at 1024 sps and 1,725 / 1,725 at 2048.
|
||||
_FREQ_NUMERATOR = 512 # sample_rate / 2 at the default 1024 sps
|
||||
|
||||
|
||||
def _is_data_block(block: bytes) -> bool:
|
||||
@@ -300,7 +301,11 @@ def decode_histogram_body(body: bytes) -> Optional[dict]:
|
||||
to get 1-count ADC values, then ``count / 32767 * 10.0`` for in/s)
|
||||
- Mic channel: use ``waveform_codec.mic_count_to_db(count)``
|
||||
"""
|
||||
records = _walk_auto(body)
|
||||
return channels_from_records(_walk_auto(body))
|
||||
|
||||
|
||||
def channels_from_records(records: Optional[List[dict]]) -> Optional[dict]:
|
||||
"""``decode_histogram_body``'s per-channel peaks, from records already walked."""
|
||||
if not records:
|
||||
return None
|
||||
return {
|
||||
@@ -338,17 +343,19 @@ def interval_pvs(body: bytes) -> Optional[List[float]]:
|
||||
return [math.sqrt(r["pvs_sq"]) for r in records] if records else None
|
||||
|
||||
|
||||
def half_period_to_hz(halfp: int) -> Optional[float]:
|
||||
"""Convert a half-period in samples to frequency in Hz.
|
||||
def half_period_to_hz(halfp: int, sample_rate: int = 1024) -> Optional[float]:
|
||||
"""Convert a half-period in samples to frequency in Hz:
|
||||
``(sample_rate / 2) / halfp``.
|
||||
|
||||
Returns ``None`` for half-period ≤ 5 — the device emits values in
|
||||
that range when the measured zero-crossing rate exceeds 100 Hz
|
||||
(the BW display reports `>100 Hz` for such cases). Callers can
|
||||
treat ``None`` as the `>100 Hz` sentinel.
|
||||
that range when the measured zero-crossing rate exceeds 100 Hz at
|
||||
1024 sps (the BW display reports `>100`, `>200` at 2048 sps). Callers
|
||||
can treat ``None`` as that sentinel. A half-period of 0 is Blastware's
|
||||
"N/A"; it also returns None.
|
||||
"""
|
||||
if halfp <= 5:
|
||||
return None
|
||||
return _FREQ_NUMERATOR / halfp
|
||||
return (sample_rate / 2) / halfp
|
||||
|
||||
|
||||
def geo_count_to_ins(count: int) -> float:
|
||||
@@ -439,16 +446,34 @@ def _stride(rec: int, n: int) -> int:
|
||||
|
||||
|
||||
def _records_plausible(body: bytes, off: int, rec: int, m: int) -> bool:
|
||||
"""Every record's zero word is 0000 -- what tells a 16-byte layout from a
|
||||
20-byte one when both strides happen to fit (492 = 12 + 16x30 = 12 + 20x24)."""
|
||||
"""Every record's last 4 bytes are its vector sum squared, consistent with
|
||||
its channel peaks: at least the largest peak, at most sqrt(3) times it (one
|
||||
unit of rounding either way). That is what tells a 16-byte layout from a
|
||||
20-byte one when both strides happen to fit (492 = 12 + 16x30 = 12 + 20x24);
|
||||
misread, those bytes are other fields. Holds on 34,502,955 / 34,502,955 DL2
|
||||
sub-minute intervals (2026-11-02).
|
||||
|
||||
⚠ RETRACTED 2026-11-02: "every record's zero word is 0000". It is the high
|
||||
word of the PVS², non-zero on any interval above 1.28 in/s, so a short
|
||||
histogram with one loud interval was not recognised at all (T193KR5M.X90H,
|
||||
K440HA3C.JM0H decoded to nothing)."""
|
||||
z = rec - 4
|
||||
for k in range(m):
|
||||
q = off + _MULTI_HEADER_LEN + rec * k
|
||||
if q + rec > len(body) or body[q + z] or body[q + z + 1]:
|
||||
if q + rec > len(body):
|
||||
return False
|
||||
peak = max((body[q + i] << 8) | body[q + i + 1] for i in (0, 4, 8))
|
||||
if not _pvs_consistent(peak, int.from_bytes(body[q + z:q + z + 4], "big")):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def _pvs_consistent(peak: int, pvs_sq: int) -> bool:
|
||||
"""A record's vector sum squared against its largest geo peak, one unit of
|
||||
rounding either way: peak <= PVS <= sqrt(3) * peak."""
|
||||
return max(peak - 1, 0) ** 2 <= pvs_sq <= 3 * (peak + 1) ** 2
|
||||
|
||||
|
||||
def detect_multi_interval_layout(body: bytes) -> Optional[Tuple[int, int]]:
|
||||
"""``(record_len, per_block)`` of a multi-interval body, or None.
|
||||
|
||||
@@ -543,8 +568,8 @@ def walk_multi_interval_blocks(body: bytes,
|
||||
recs = [_decode_record(body, off + _MULTI_HEADER_LEN + rec * k, rec, off)
|
||||
for k in range(max(m, 0))]
|
||||
for k, r in enumerate(recs):
|
||||
if (r["meta_var"][:2] != b"\x00\x00"
|
||||
or max(r["t_peak"], r["v_peak"], r["l_peak"]) > _GEO_MAX_COUNTS):
|
||||
peak = max(r["t_peak"], r["v_peak"], r["l_peak"])
|
||||
if not _pvs_consistent(peak, r["pvs_sq"]) or peak > _GEO_MAX_COUNTS:
|
||||
del recs[k:]
|
||||
break
|
||||
out.extend(recs)
|
||||
|
||||
@@ -300,6 +300,10 @@ class DeviceInfo:
|
||||
# ── From SUB 08 (EVENT_INDEX_RESPONSE) ────────────────────────────────────
|
||||
event_count: Optional[int] = None # stored event count from F7 response 🔶
|
||||
|
||||
# ── From a Blastware event file's identity block (2026-11-03) ─────────────
|
||||
calibration_date: Optional[datetime.date] = None # e.g. 2019-02-20 ✅
|
||||
calibrated_by: Optional[str] = None # e.g. "Instantel" ✅
|
||||
|
||||
def __str__(self) -> str:
|
||||
fw = self.firmware_version or f"?.{self.firmware_minor}"
|
||||
mdl = self.model or "MiniMate Plus"
|
||||
@@ -379,6 +383,8 @@ class ProjectInfo:
|
||||
operator: Optional[str] = None # operator / user name
|
||||
sensor_location: Optional[str] = None # sensor location string
|
||||
notes: Optional[str] = None # extended notes
|
||||
job_number_enabled: Optional[bool] = None # Blastware prints the job number
|
||||
job_number: Optional[int] = None # kept while switched off
|
||||
|
||||
|
||||
# ── Compliance Config ──────────────────────────────────────────────────────────
|
||||
@@ -543,6 +549,23 @@ class Event:
|
||||
total_samples: Optional[int] = None # from STRT record: expected total sample-sets
|
||||
pretrig_samples: Optional[int] = None # from STRT record: pre-trigger sample count
|
||||
rectime_seconds: Optional[int] = None # from STRT record: record duration (seconds)
|
||||
# Geophone range from the recording setup, as ComplianceConfig.geo_range:
|
||||
# 0 Normal (10 in/s full scale), 1 Sensitive (1.25 in/s). None: not read.
|
||||
geo_range: Optional[int] = None
|
||||
# From a Blastware event file (2026-11-03); None when not read.
|
||||
device_info: Optional["DeviceInfo"] = None # the unit, as SUB FE reports it
|
||||
battery_volts: Optional[float] = None # at the event
|
||||
triggered_by: Optional[int] = None # 0x01 Tran 0x02 Vert 0x04 Long 0x08 MicL 0x200 Manual
|
||||
trigger_sources: Optional[int] = None # setup bitmask: 0x07 geophones, 0x08 mic
|
||||
trigger_level_geo: Optional[float] = None # in/s, as ComplianceConfig.trigger_level_geo
|
||||
trigger_level_mic_psi: Optional[float] = None
|
||||
record_stop_mode: Optional[int] = None # 0 = Fixed
|
||||
mic_type: Optional[int] = None # 2 = Linear Weighting (as Series IV)
|
||||
stop_time: Optional[datetime.datetime] = None # the footer's stop
|
||||
# A histogram's per-interval detail (2026-11-03); None for a waveform.
|
||||
histogram_interval_sec: Optional[int] = None # as ComplianceConfig.histogram_interval_sec
|
||||
interval_half_periods: Optional[dict] = None # channel -> half-period per interval, samples
|
||||
interval_pvs: Optional[list] = None # each interval's vector sum, in/s
|
||||
|
||||
# Sensor self-check traces keyed by channel label — the short diagnostic
|
||||
# waveforms the unit records when it pulses each sensor before monitoring
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -73,7 +73,7 @@ def main(argv: list[str] | None = None) -> int:
|
||||
conn.row_factory = sqlite3.Row
|
||||
|
||||
rows = list(conn.execute(
|
||||
"SELECT id, serial, timestamp, blastware_filename "
|
||||
"SELECT id, serial, timestamp, record_type, blastware_filename "
|
||||
" FROM events "
|
||||
" WHERE serial = 'UNKNOWN' "
|
||||
" ORDER BY timestamp",
|
||||
@@ -98,10 +98,11 @@ def main(argv: list[str] | None = None) -> int:
|
||||
unresolved += 1
|
||||
continue
|
||||
|
||||
# Check for an existing row at the target (serial, timestamp).
|
||||
# Check for an existing row at the target key (serial, timestamp,
|
||||
# record_type -- #51).
|
||||
existing = conn.execute(
|
||||
"SELECT id FROM events WHERE serial = ? AND timestamp = ?",
|
||||
(new_serial, ts),
|
||||
"SELECT id FROM events WHERE serial = ? AND timestamp = ? AND record_type IS ?",
|
||||
(new_serial, ts, row["record_type"]),
|
||||
).fetchone()
|
||||
action: str
|
||||
if existing is None:
|
||||
|
||||
+65
-19
@@ -35,6 +35,7 @@ from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
import logging
|
||||
import re
|
||||
import sqlite3
|
||||
import uuid
|
||||
from pathlib import Path
|
||||
@@ -106,7 +107,7 @@ CREATE TABLE IF NOT EXISTS events (
|
||||
shape_offset_pre REAL, -- pre-trigger baseline median (in/s)
|
||||
shape_offset_spread REAL, -- max(pre,mid,end) - min(...) in in/s; small = constant/DC
|
||||
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%SZ', 'now')),
|
||||
UNIQUE(serial, timestamp)
|
||||
UNIQUE(serial, timestamp, record_type) -- unit + time + type (#51); see Migration 3
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_events_serial ON events(serial);
|
||||
CREATE INDEX IF NOT EXISTS idx_events_timestamp ON events(timestamp);
|
||||
@@ -172,7 +173,7 @@ class SeismoDb:
|
||||
row = conn.execute(
|
||||
"SELECT sql FROM sqlite_master WHERE type='table' AND name='events'"
|
||||
).fetchone()
|
||||
if row and "UNIQUE(serial, timestamp)" not in row[0]:
|
||||
if row and "UNIQUE(serial, timestamp" not in row[0]: # neither key form yet
|
||||
log.info("_migrate: rebuilding events table — UNIQUE(serial, timestamp)")
|
||||
conn.executescript("""
|
||||
ALTER TABLE events RENAME TO events_old;
|
||||
@@ -315,6 +316,33 @@ class SeismoDb:
|
||||
""")
|
||||
log.info("_migrate: monitor_log table rebuilt OK")
|
||||
|
||||
# Migration 3 (#51, 2026-11-03): events UNIQUE (serial, timestamp) ->
|
||||
# (serial, timestamp, record_type). A unit records a waveform and a
|
||||
# histogram in the same second legitimately -- 209 times in prod's
|
||||
# 2026-09-30 store once histograms carry Blastware's start -- and the old
|
||||
# key could hold only one. The table is rebuilt from its own current
|
||||
# definition with only the key swapped, so every column added by the
|
||||
# migrations above, every row and every id is kept (Terra-View reads
|
||||
# rows by id); its indexes are recreated. One transaction.
|
||||
row = conn.execute(
|
||||
"SELECT sql FROM sqlite_master WHERE type='table' AND name='events'"
|
||||
).fetchone()
|
||||
if row and "UNIQUE(serial, timestamp)" in row[0]:
|
||||
log.info("_migrate: rebuilding events table — UNIQUE(serial, timestamp, record_type)")
|
||||
indexes = [r[0] for r in conn.execute(
|
||||
"SELECT sql FROM sqlite_master WHERE type='index' AND tbl_name='events' "
|
||||
"AND sql IS NOT NULL")]
|
||||
table = re.sub(r'^CREATE TABLE\s+("?)events\1', "CREATE TABLE events_rekeyed",
|
||||
row[0].replace("UNIQUE(serial, timestamp)",
|
||||
"UNIQUE(serial, timestamp, record_type)", 1))
|
||||
conn.executescript("BEGIN;\n" + table + ";\n"
|
||||
"INSERT INTO events_rekeyed SELECT * FROM events;\n"
|
||||
"DROP TABLE events;\n"
|
||||
"ALTER TABLE events_rekeyed RENAME TO events;\n"
|
||||
+ "".join(sql + ";\n" for sql in indexes)
|
||||
+ "COMMIT;")
|
||||
log.info("_migrate: events table re-keyed OK (%d indexes recreated)", len(indexes))
|
||||
|
||||
@staticmethod
|
||||
def _iso(dt: Optional[datetime.datetime]) -> Optional[str]:
|
||||
return dt.isoformat() if dt is not None else None
|
||||
@@ -385,7 +413,8 @@ class SeismoDb:
|
||||
device_family: Optional[str] = None,
|
||||
) -> tuple[int, int]:
|
||||
"""
|
||||
Insert triggered events. Silently skips duplicates (serial+timestamp).
|
||||
Insert triggered events. Silently skips duplicates (serial + timestamp +
|
||||
record_type: a waveform and a histogram may share a second, #51).
|
||||
Returns (inserted, skipped).
|
||||
|
||||
``waveform_records`` (optional): dict keyed by event waveform_key (hex)
|
||||
@@ -393,7 +422,7 @@ class SeismoDb:
|
||||
{"filename": str, "filesize": int, "a5_pickle_filename": str}
|
||||
|
||||
For events whose key is in this dict, the matching columns are
|
||||
populated. If a row with the same (serial, timestamp) already exists
|
||||
populated. If a row with the same (serial, timestamp, record_type) already exists
|
||||
(dedup hit), the matching waveform record is upserted onto the
|
||||
existing row so a re-download via the live endpoint refreshes the
|
||||
file metadata.
|
||||
@@ -436,18 +465,27 @@ class SeismoDb:
|
||||
# No validated event record: the time may be a second off,
|
||||
# so it is never allowed to move, merge into or duplicate
|
||||
# a row (_estimate_guard). The file is already stored.
|
||||
why = self._estimate_guard(conn, serial, rec.get("filename"), ts)
|
||||
why = self._estimate_guard(conn, serial, rec.get("filename"), ts,
|
||||
ev.record_type)
|
||||
if why:
|
||||
log.warning("insert_events: %s %s: %s", serial,
|
||||
rec.get("filename") or key, why)
|
||||
skipped += 1
|
||||
continue
|
||||
elif rec.get("filename") and ts and \
|
||||
self._restamp_by_file(conn, serial, rec["filename"], ts) is False:
|
||||
self._restamp_by_file(conn, serial, rec["filename"], ts,
|
||||
ev.record_type) is False:
|
||||
skipped += 1
|
||||
continue
|
||||
|
||||
try:
|
||||
if ev.record_type is None and conn.execute(
|
||||
"SELECT 1 FROM events WHERE serial = ? AND timestamp = ? "
|
||||
"AND record_type IS NULL", (serial, ts)).fetchone():
|
||||
# A UNIQUE key treats NULLs as distinct, so an untyped
|
||||
# event would never collide: it still refreshes the
|
||||
# untyped row at its second, as under the old key.
|
||||
raise sqlite3.IntegrityError("untyped event already stored")
|
||||
conn.execute(
|
||||
"""
|
||||
INSERT INTO events
|
||||
@@ -507,7 +545,7 @@ class SeismoDb:
|
||||
inserted += 1
|
||||
except sqlite3.IntegrityError:
|
||||
skipped += 1
|
||||
# UPSERT path: a row for this (serial, timestamp) already
|
||||
# UPSERT path: a row for this (serial, timestamp, record_type) already
|
||||
# exists. Refresh every device-authoritative field from
|
||||
# the new data so that a re-import with better data (e.g.
|
||||
# a watcher re-forward where the previous attempt missed
|
||||
@@ -560,7 +598,7 @@ class SeismoDb:
|
||||
shape_offset_axis = COALESCE(?, shape_offset_axis),
|
||||
shape_offset_pre = COALESCE(?, shape_offset_pre),
|
||||
shape_offset_spread = COALESCE(?, shape_offset_spread)
|
||||
WHERE serial = ? AND timestamp = ?
|
||||
WHERE serial = ? AND timestamp = ? AND record_type IS ?
|
||||
""",
|
||||
(
|
||||
pv.tran if pv else None,
|
||||
@@ -597,6 +635,7 @@ class SeismoDb:
|
||||
rec.get("shape_offset_spread") if rec else None,
|
||||
serial,
|
||||
ts,
|
||||
ev.record_type,
|
||||
),
|
||||
)
|
||||
|
||||
@@ -606,11 +645,11 @@ class SeismoDb:
|
||||
|
||||
@staticmethod
|
||||
def _estimate_guard(conn: sqlite3.Connection, serial: str, filename: Optional[str],
|
||||
ts: Optional[str]) -> Optional[str]:
|
||||
ts: Optional[str], record_type: Optional[str] = None) -> Optional[str]:
|
||||
"""Why an event whose time is only an estimate must not be written, or None.
|
||||
|
||||
An estimate (the decoder found no validated event record) may be a
|
||||
second off, and (serial, timestamp) is the table's key. So it never
|
||||
second off, and (serial, timestamp, record_type) is the table's key. So it never
|
||||
moves a row, never lands on another event's row, and never adds a second
|
||||
row for an event already stored -- each refusal is logged by the caller,
|
||||
and the event's file and sidecar are already in the store. Its own
|
||||
@@ -625,8 +664,8 @@ class SeismoDb:
|
||||
return (f"already stored under {', '.join(str(t) for t in own)}; its estimated "
|
||||
f"time {ts} does not move or duplicate it")
|
||||
holder = conn.execute(
|
||||
"SELECT blastware_filename FROM events WHERE serial = ? AND timestamp = ?",
|
||||
(serial, ts)).fetchone()
|
||||
"SELECT blastware_filename FROM events WHERE serial = ? AND timestamp = ? "
|
||||
"AND record_type IS ?", (serial, ts, record_type)).fetchone()
|
||||
if holder is not None and (named is None or holder[0] != named):
|
||||
return (f"its estimated time {ts} is held by {holder[0] or 'another event'}; "
|
||||
"not merged into it")
|
||||
@@ -634,8 +673,9 @@ class SeismoDb:
|
||||
|
||||
@staticmethod
|
||||
def _restamp_by_file(conn: sqlite3.Connection, serial: str, filename: str,
|
||||
ts: str) -> Optional[bool]:
|
||||
"""Move this file's row to `ts` when it sits under another time.
|
||||
ts: str, record_type: Optional[str] = None) -> Optional[bool]:
|
||||
"""Move this file's row to `ts` (and `record_type`) when it sits under
|
||||
another time or type.
|
||||
|
||||
The events table is unique on (serial, timestamp), so an event re-stored
|
||||
with a corrected time -- every Series-3 waveform after the event-time fix,
|
||||
@@ -646,6 +686,10 @@ class SeismoDb:
|
||||
stored as "imported.bw" -- so only a Blastware name is matched. Of
|
||||
several rows for one file, a reviewed one with a time moves first.
|
||||
|
||||
The type moves the same way: before v0.33.0 a row's type came from the
|
||||
filename, and with the type in the key (#51) a re-import under the file's
|
||||
own type would otherwise add a second row.
|
||||
|
||||
Returns True when the row was moved; None when there was nothing to move
|
||||
(no row for this file elsewhere, or this file's own row already holds
|
||||
`ts`), so the caller goes on as before; False when a different stored
|
||||
@@ -656,18 +700,20 @@ class SeismoDb:
|
||||
return None
|
||||
mine = conn.execute(
|
||||
"SELECT id, timestamp FROM events WHERE serial = ? AND blastware_filename = ? "
|
||||
"AND (timestamp IS NULL OR timestamp != ?) "
|
||||
"AND (timestamp IS NULL OR timestamp != ? OR record_type IS NOT ?) "
|
||||
"ORDER BY COALESCE(false_trigger, 0) DESC, timestamp IS NULL, rowid LIMIT 1",
|
||||
(serial, filename, ts),
|
||||
(serial, filename, ts, record_type),
|
||||
).fetchone()
|
||||
if mine is None:
|
||||
return None
|
||||
holder = conn.execute(
|
||||
"SELECT id, blastware_filename FROM events WHERE serial = ? AND timestamp = ?",
|
||||
(serial, ts),
|
||||
"SELECT id, blastware_filename FROM events WHERE serial = ? AND timestamp = ? "
|
||||
"AND record_type IS ?",
|
||||
(serial, ts, record_type),
|
||||
).fetchone()
|
||||
if holder is None:
|
||||
conn.execute("UPDATE events SET timestamp = ? WHERE id = ?", (ts, mine[0]))
|
||||
conn.execute("UPDATE events SET timestamp = ?, record_type = ? WHERE id = ?",
|
||||
(ts, record_type, mine[0]))
|
||||
log.info("insert_events: %s %s moved from %s to %s (corrected event time)",
|
||||
serial, filename, mine[1], ts)
|
||||
return True
|
||||
|
||||
+53
-1
@@ -32,6 +32,16 @@ Layout written to `<filename>.h5`:
|
||||
client str
|
||||
operator str
|
||||
sensor_location str
|
||||
job_number int (only when read; kept while not shown)
|
||||
job_number_enabled bool (Blastware prints the job number)
|
||||
battery_volts, triggered_by, trigger_sources, trigger_level_geo_ips,
|
||||
trigger_level_mic_psi, firmware_version, dsp_version, model,
|
||||
calibration_date (ISO), calibrated_by
|
||||
(each only when read from the event file)
|
||||
histogram_interval_sec int (histograms)
|
||||
/intervals (histograms, when read)
|
||||
half_period/<ch> uint16 samples per interval; Hz = (sample rate / 2) / it
|
||||
pvs_ips float32 each interval's vector sum, in/s
|
||||
peak_tran_ips float (from 0C; authoritative)
|
||||
peak_vert_ips float
|
||||
peak_long_ips float
|
||||
@@ -180,7 +190,7 @@ def write_event_hdf5(
|
||||
event: Event,
|
||||
*,
|
||||
serial: str,
|
||||
geo_range = "normal",
|
||||
geo_range = None,
|
||||
source_kind: str = "sfm-live",
|
||||
tool_version: Optional[str] = None,
|
||||
captured_at: Optional[datetime.datetime] = None,
|
||||
@@ -190,6 +200,9 @@ def write_event_hdf5(
|
||||
"""
|
||||
Persist a decoded Event as an HDF5 file with samples in physical units.
|
||||
|
||||
``geo_range`` left as None takes the event's own (``event.geo_range``,
|
||||
which a Blastware file's decode reads from its setup block), else Normal.
|
||||
|
||||
``geo_ips_per_count`` overrides the range-derived MiniMate count scale
|
||||
for sources whose counts differ — Thor IDF imports pass
|
||||
``micromate.idf_file._GEO_LSB_IPS`` (issue #42).
|
||||
@@ -202,6 +215,8 @@ def write_event_hdf5(
|
||||
pv = event.peak_values
|
||||
pi = event.project_info
|
||||
|
||||
if geo_range is None:
|
||||
geo_range = event.geo_range if getattr(event, "geo_range", None) is not None else "normal"
|
||||
geo_fs = _resolve_geo_full_scale(geo_range)
|
||||
geo_range_str = _normalise_range(geo_range)
|
||||
captured_at = captured_at or datetime.datetime.utcnow()
|
||||
@@ -252,6 +267,27 @@ def write_event_hdf5(
|
||||
attrs["client"] = (pi.client if pi else "") or ""
|
||||
attrs["operator"] = (pi.operator if pi else "") or ""
|
||||
attrs["sensor_location"] = (pi.sensor_location if pi else "") or ""
|
||||
if pi is not None and getattr(pi, "job_number", None) is not None:
|
||||
attrs["job_number"] = int(pi.job_number)
|
||||
attrs["job_number_enabled"] = bool(pi.job_number_enabled)
|
||||
# Read from a Blastware file's identity and setup blocks; absent when not read.
|
||||
for attr, value in (
|
||||
("battery_volts", getattr(event, "battery_volts", None)),
|
||||
("triggered_by", getattr(event, "triggered_by", None)),
|
||||
("trigger_sources", getattr(event, "trigger_sources", None)),
|
||||
("trigger_level_geo_ips", getattr(event, "trigger_level_geo", None)),
|
||||
("trigger_level_mic_psi", getattr(event, "trigger_level_mic_psi", None)),
|
||||
("histogram_interval_sec", getattr(event, "histogram_interval_sec", None)),
|
||||
):
|
||||
if value is not None:
|
||||
attrs[attr] = value
|
||||
di = getattr(event, "device_info", None)
|
||||
if di is not None:
|
||||
for attr in ("firmware_version", "dsp_version", "model", "calibrated_by"):
|
||||
if getattr(di, attr, None):
|
||||
attrs[attr] = getattr(di, attr)
|
||||
if getattr(di, "calibration_date", None) is not None:
|
||||
attrs["calibration_date"] = di.calibration_date.isoformat()
|
||||
attrs["peak_tran_ips"] = float(pv.tran if pv and pv.tran is not None else 0.0)
|
||||
attrs["peak_vert_ips"] = float(pv.vert if pv and pv.vert is not None else 0.0)
|
||||
attrs["peak_long_ips"] = float(pv.long if pv and pv.long is not None else 0.0)
|
||||
@@ -273,6 +309,22 @@ def write_event_hdf5(
|
||||
compression="gzip", compression_opts=4, shuffle=True,
|
||||
)
|
||||
|
||||
# /intervals — a histogram's per-interval detail as the file holds it:
|
||||
# each channel's half-period in samples (frequency = (sample rate / 2)
|
||||
# / half-period; 0 is Blastware's "N/A") and each interval's vector sum.
|
||||
half_periods = getattr(event, "interval_half_periods", None)
|
||||
interval_pvs = getattr(event, "interval_pvs", None)
|
||||
if half_periods or interval_pvs:
|
||||
igrp_iv = f.create_group("intervals")
|
||||
if half_periods:
|
||||
hgrp = igrp_iv.create_group("half_period")
|
||||
for ch, hps in half_periods.items():
|
||||
hgrp.create_dataset(ch, data=np.asarray(hps, dtype="uint16"),
|
||||
compression="gzip", compression_opts=4, shuffle=True)
|
||||
if interval_pvs:
|
||||
igrp_iv.create_dataset("pvs_ips", data=np.asarray(interval_pvs, dtype="float32"),
|
||||
compression="gzip", compression_opts=4, shuffle=True)
|
||||
|
||||
# /samples_int16 — optional raw ADC counts (preserved for analysis
|
||||
# tools that want pre-conversion data). Cheap to include.
|
||||
if include_int16:
|
||||
|
||||
@@ -412,8 +412,7 @@ class WaveformStore:
|
||||
try:
|
||||
event_hdf5.write_event_hdf5(
|
||||
hdf5_path, ev,
|
||||
serial=serial,
|
||||
geo_range="normal", # BW file doesn't carry the range; assume Normal
|
||||
serial=serial, # range: the event's own, read from the file's setup
|
||||
source_kind="bw-import",
|
||||
)
|
||||
hdf5_filename = hdf5_path.name
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+548
@@ -0,0 +1,548 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE18003</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>T003LCYV.JD0H</FileName>
|
||||
<HistogramStartTime>18:04:25</HistogramStartTime>
|
||||
<HistogramStartDate>2025-12-05</HistogramStartDate>
|
||||
<HistogramStopTime>20:30:00</HistogramStopTime>
|
||||
<HistogramStopDate>2025-12-05</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>145.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>7.0 Volts</BatteryLevel>
|
||||
<Calibration>March 14, 2025 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>I-80-North Fork Bridges-I80 E. Abutment</Project>
|
||||
<Client>Fay Company</Client>
|
||||
<UserName>Terra-Mechanics, Inc - Harrison</UserName>
|
||||
<Seis.Loc>Area 2 - Loc 3 - I-80 - East Abutment</Seis.Loc>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>0.035</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>0.090</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>0.045</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>11</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>43</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>37</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>20:10:25</TranPeakTime>
|
||||
<TranPeakDate>2025-12-05</TranPeakDate>
|
||||
<VertPeakTime>19:09:25</VertPeakTime>
|
||||
<VertPeakDate>2025-12-05</VertPeakDate>
|
||||
<LongPeakTime>20:09:25</LongPeakTime>
|
||||
<LongPeakDate>2025-12-05</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>0.099</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>19:09:25</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2025-12-05</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>124.7</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>18:19:25</MicLTime>
|
||||
<MicLDate>2025-12-05</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>2.4</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.7 Hz.</TranTestFreq>
|
||||
<TranTestRatio>3.5</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.6 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.1</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.4 Hz.</LongTestFreq>
|
||||
<LongTestRatio>3.9</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>20.1 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>767 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Passed</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2025-12-05 18:04:24 - 2025-12-05 20:30:00 "Event Recorded Timer Stop"</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>2025-12-05 18:05:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>13</Cell><Cell>0.070</Cell><Cell>23</Cell><Cell>0.030</Cell><Cell>17</Cell><Cell>0.075</Cell><Cell>0.003</Cell><Cell>121.5</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 18:06:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>7.6</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>47</Cell><Cell>0.074</Cell><Cell>0.003</Cell><Cell>119.1</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 18:07:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>14</Cell><Cell>0.080</Cell><Cell>34</Cell><Cell>0.030</Cell><Cell>34</Cell><Cell>0.084</Cell><Cell>0.002</Cell><Cell>118.3</Cell><Cell>3.6</Cell></Row>
|
||||
<Time>2025-12-05 18:08:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>7.8</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>21</Cell><Cell>0.064</Cell><Cell>0.003</Cell><Cell>121.0</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 18:09:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>5.3</Cell><Cell>0.055</Cell><Cell>47</Cell><Cell>0.020</Cell><Cell>18</Cell><Cell>0.059</Cell><Cell>0.004</Cell><Cell>122.8</Cell><Cell>2.1</Cell></Row>
|
||||
<Time>2025-12-05 18:10:25</Time>
|
||||
<Row>
|
||||
<Cell>0.030</Cell><Cell>43</Cell><Cell>0.080</Cell><Cell>43</Cell><Cell>0.035</Cell><Cell>43</Cell><Cell>0.088</Cell><Cell>0.003</Cell><Cell>121.0</Cell><Cell>4.2</Cell></Row>
|
||||
<Time>2025-12-05 18:11:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>12</Cell><Cell>0.085</Cell><Cell>43</Cell><Cell>0.035</Cell><Cell>47</Cell><Cell>0.092</Cell><Cell>0.003</Cell><Cell>119.8</Cell><Cell>2.1</Cell></Row>
|
||||
<Time>2025-12-05 18:12:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>3.2</Cell><Cell>0.055</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>20</Cell><Cell>0.061</Cell><Cell>0.003</Cell><Cell>119.4</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 18:13:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>5.5</Cell><Cell>0.055</Cell><Cell>73</Cell><Cell>0.025</Cell><Cell>37</Cell><Cell>0.062</Cell><Cell>0.002</Cell><Cell>117.6</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 18:14:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>11</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.035</Cell><Cell>43</Cell><Cell>0.072</Cell><Cell>0.004</Cell><Cell>121.8</Cell><Cell>18</Cell></Row>
|
||||
<Time>2025-12-05 18:15:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>13</Cell><Cell>0.075</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.081</Cell><Cell>0.002</Cell><Cell>118.6</Cell><Cell>3.5</Cell></Row>
|
||||
<Time>2025-12-05 18:16:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>12</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.072</Cell><Cell>0.003</Cell><Cell>120.0</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 18:17:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>11</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>39</Cell><Cell>0.065</Cell><Cell>0.003</Cell><Cell>119.9</Cell><Cell>2.6</Cell></Row>
|
||||
<Time>2025-12-05 18:18:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>13</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>43</Cell><Cell>0.077</Cell><Cell>0.003</Cell><Cell>119.7</Cell><Cell>12</Cell></Row>
|
||||
<Time>2025-12-05 18:19:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>28</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>34</Cell><Cell>0.073</Cell><Cell>0.005</Cell><Cell>124.7</Cell><Cell>2.4</Cell></Row>
|
||||
<Time>2025-12-05 18:20:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>12</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.066</Cell><Cell>0.003</Cell><Cell>119.4</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 18:21:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>9.8</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>39</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>121.0</Cell><Cell>5.1</Cell></Row>
|
||||
<Time>2025-12-05 18:22:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>20</Cell><Cell>0.075</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.079</Cell><Cell>0.003</Cell><Cell>119.0</Cell><Cell>2.5</Cell></Row>
|
||||
<Time>2025-12-05 18:23:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>17</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.020</Cell><Cell>51</Cell><Cell>0.063</Cell><Cell>0.004</Cell><Cell>122.1</Cell><Cell>2.0</Cell></Row>
|
||||
<Time>2025-12-05 18:24:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>7.6</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.020</Cell><Cell>39</Cell><Cell>0.064</Cell><Cell>0.003</Cell><Cell>120.6</Cell><Cell>4.4</Cell></Row>
|
||||
<Time>2025-12-05 18:25:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>7.5</Cell><Cell>0.075</Cell><Cell>37</Cell><Cell>0.030</Cell><Cell>30</Cell><Cell>0.082</Cell><Cell>0.002</Cell><Cell>118.2</Cell><Cell>5.0</Cell></Row>
|
||||
<Time>2025-12-05 18:26:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>16</Cell><Cell>0.060</Cell><Cell>26</Cell><Cell>0.025</Cell><Cell>24</Cell><Cell>0.064</Cell><Cell>0.003</Cell><Cell>121.4</Cell><Cell>3.6</Cell></Row>
|
||||
<Time>2025-12-05 18:27:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>21</Cell><Cell>0.080</Cell><Cell>37</Cell><Cell>0.030</Cell><Cell>43</Cell><Cell>0.084</Cell><Cell>0.003</Cell><Cell>120.1</Cell><Cell>3.4</Cell></Row>
|
||||
<Time>2025-12-05 18:28:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>20</Cell><Cell>0.045</Cell><Cell>24</Cell><Cell>0.020</Cell><Cell>20</Cell><Cell>0.048</Cell><Cell>0.002</Cell><Cell>118.1</Cell><Cell>2.6</Cell></Row>
|
||||
<Time>2025-12-05 18:29:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>20</Cell><Cell>0.060</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>23</Cell><Cell>0.065</Cell><Cell>0.003</Cell><Cell>120.1</Cell><Cell>2.1</Cell></Row>
|
||||
<Time>2025-12-05 18:30:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>6.3</Cell><Cell>0.045</Cell><Cell>22</Cell><Cell>0.020</Cell><Cell>30</Cell><Cell>0.051</Cell><Cell>0.002</Cell><Cell>115.9</Cell><Cell>2.6</Cell></Row>
|
||||
<Time>2025-12-05 18:31:25</Time>
|
||||
<Row>
|
||||
<Cell>0.030</Cell><Cell>24</Cell><Cell>0.070</Cell><Cell>39</Cell><Cell>0.030</Cell><Cell>39</Cell><Cell>0.073</Cell><Cell>0.004</Cell><Cell>122.8</Cell><Cell>2.3</Cell></Row>
|
||||
<Time>2025-12-05 18:32:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>5.4</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>120.9</Cell><Cell>3.1</Cell></Row>
|
||||
<Time>2025-12-05 18:33:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>11</Cell><Cell>0.050</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>17</Cell><Cell>0.057</Cell><Cell>0.003</Cell><Cell>121.3</Cell><Cell>13</Cell></Row>
|
||||
<Time>2025-12-05 18:34:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>22</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>30</Cell><Cell>0.066</Cell><Cell>0.004</Cell><Cell>122.0</Cell><Cell>3.0</Cell></Row>
|
||||
<Time>2025-12-05 18:35:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>20</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.035</Cell><Cell>18</Cell><Cell>0.077</Cell><Cell>0.003</Cell><Cell>120.6</Cell><Cell>4.8</Cell></Row>
|
||||
<Time>2025-12-05 18:36:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>5.1</Cell><Cell>0.045</Cell><Cell>22</Cell><Cell>0.020</Cell><Cell>30</Cell><Cell>0.051</Cell><Cell>0.002</Cell><Cell>116.7</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 18:37:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>16</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>120.2</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 18:38:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>13</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>23</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>119.3</Cell><Cell>2.3</Cell></Row>
|
||||
<Time>2025-12-05 18:39:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>3.7</Cell><Cell>0.055</Cell><Cell>47</Cell><Cell>0.020</Cell><Cell>43</Cell><Cell>0.059</Cell><Cell>0.003</Cell><Cell>121.3</Cell><Cell>2.2</Cell></Row>
|
||||
<Time>2025-12-05 18:40:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>19</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>37</Cell><Cell>0.068</Cell><Cell>0.004</Cell><Cell>123.1</Cell><Cell>11</Cell></Row>
|
||||
<Time>2025-12-05 18:41:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>22</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.070</Cell><Cell>0.002</Cell><Cell>118.1</Cell><Cell>17</Cell></Row>
|
||||
<Time>2025-12-05 18:42:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>27</Cell><Cell>0.055</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>39</Cell><Cell>0.062</Cell><Cell>0.002</Cell><Cell>118.6</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 18:43:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>6.3</Cell><Cell>0.060</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.065</Cell><Cell>0.002</Cell><Cell>116.9</Cell><Cell>6.3</Cell></Row>
|
||||
<Time>2025-12-05 18:44:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>12</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>43</Cell><Cell>0.072</Cell><Cell>0.004</Cell><Cell>122.5</Cell><Cell>4.1</Cell></Row>
|
||||
<Time>2025-12-05 18:45:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>2.6</Cell><Cell>0.060</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.066</Cell><Cell>0.004</Cell><Cell>122.0</Cell><Cell>5.7</Cell></Row>
|
||||
<Time>2025-12-05 18:46:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>6.2</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>11</Cell><Cell>0.064</Cell><Cell>0.004</Cell><Cell>121.9</Cell><Cell>1.7</Cell></Row>
|
||||
<Time>2025-12-05 18:47:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>14</Cell><Cell>0.070</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>43</Cell><Cell>0.076</Cell><Cell>0.004</Cell><Cell>122.1</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 18:48:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>34</Cell><Cell>0.070</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>18</Cell><Cell>0.076</Cell><Cell>0.003</Cell><Cell>120.1</Cell><Cell>15</Cell></Row>
|
||||
<Time>2025-12-05 18:49:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>3.5</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>57</Cell><Cell>0.070</Cell><Cell>0.004</Cell><Cell>121.8</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 18:50:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>18</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>24</Cell><Cell>0.069</Cell><Cell>0.002</Cell><Cell>117.6</Cell><Cell>2.5</Cell></Row>
|
||||
<Time>2025-12-05 18:51:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>10</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>47</Cell><Cell>0.070</Cell><Cell>0.004</Cell><Cell>122.0</Cell><Cell>2.5</Cell></Row>
|
||||
<Time>2025-12-05 18:52:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>4.2</Cell><Cell>0.050</Cell><Cell>22</Cell><Cell>0.020</Cell><Cell>14</Cell><Cell>0.056</Cell><Cell>0.003</Cell><Cell>119.1</Cell><Cell>2.7</Cell></Row>
|
||||
<Time>2025-12-05 18:53:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>1.9</Cell><Cell>0.055</Cell><Cell>47</Cell><Cell>0.020</Cell><Cell>34</Cell><Cell>0.059</Cell><Cell>0.004</Cell><Cell>122.1</Cell><Cell>4.3</Cell></Row>
|
||||
<Time>2025-12-05 18:54:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell><1.0</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>47</Cell><Cell>0.070</Cell><Cell>0.002</Cell><Cell>117.2</Cell><Cell>2.1</Cell></Row>
|
||||
<Time>2025-12-05 18:55:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>17</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>121.1</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 18:56:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell><1.0</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>57</Cell><Cell>0.065</Cell><Cell>0.003</Cell><Cell>119.8</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 18:57:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>15</Cell><Cell>0.070</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.074</Cell><Cell>0.003</Cell><Cell>120.9</Cell><Cell>4.7</Cell></Row>
|
||||
<Time>2025-12-05 18:58:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>5.9</Cell><Cell>0.050</Cell><Cell>22</Cell><Cell>0.020</Cell><Cell>28</Cell><Cell>0.051</Cell><Cell>0.002</Cell><Cell>117.1</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 18:59:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>13</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.077</Cell><Cell>0.002</Cell><Cell>117.4</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 19:00:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>27</Cell><Cell>0.055</Cell><Cell>85</Cell><Cell>0.030</Cell><Cell>17</Cell><Cell>0.058</Cell><Cell>0.003</Cell><Cell>120.2</Cell><Cell>1.8</Cell></Row>
|
||||
<Time>2025-12-05 19:01:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>17</Cell><Cell>0.055</Cell><Cell>43</Cell><Cell>0.020</Cell><Cell>43</Cell><Cell>0.059</Cell><Cell>0.004</Cell><Cell>123.1</Cell><Cell>3.7</Cell></Row>
|
||||
<Time>2025-12-05 19:02:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell><1.0</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>43</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>120.4</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:03:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>6.6</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>119.6</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:04:25</Time>
|
||||
<Row>
|
||||
<Cell>0.030</Cell><Cell>17</Cell><Cell>0.085</Cell><Cell>43</Cell><Cell>0.035</Cell><Cell>57</Cell><Cell>0.092</Cell><Cell>0.004</Cell><Cell>122.8</Cell><Cell>2.2</Cell></Row>
|
||||
<Time>2025-12-05 19:05:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>24</Cell><Cell>0.055</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>39</Cell><Cell>0.062</Cell><Cell>0.002</Cell><Cell>117.8</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:06:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>12</Cell><Cell>0.050</Cell><Cell>23</Cell><Cell>0.025</Cell><Cell>26</Cell><Cell>0.058</Cell><Cell>0.002</Cell><Cell>116.4</Cell><Cell>51</Cell></Row>
|
||||
<Time>2025-12-05 19:07:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>14</Cell><Cell>0.055</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>26</Cell><Cell>0.059</Cell><Cell>0.003</Cell><Cell>119.0</Cell><Cell>2.2</Cell></Row>
|
||||
<Time>2025-12-05 19:08:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>11</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.035</Cell><Cell>30</Cell><Cell>0.078</Cell><Cell>0.002</Cell><Cell>117.2</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 19:09:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>15</Cell><Cell>0.090</Cell><Cell>43</Cell><Cell>0.040</Cell><Cell>47</Cell><Cell>0.099</Cell><Cell>0.003</Cell><Cell>120.2</Cell><Cell>4.7</Cell></Row>
|
||||
<Time>2025-12-05 19:10:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>17</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>43</Cell><Cell>0.072</Cell><Cell>0.003</Cell><Cell>119.6</Cell><Cell>3.6</Cell></Row>
|
||||
<Time>2025-12-05 19:11:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>3.6</Cell><Cell>0.060</Cell><Cell>57</Cell><Cell>0.030</Cell><Cell>28</Cell><Cell>0.062</Cell><Cell>0.003</Cell><Cell>119.8</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:12:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>32</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.035</Cell><Cell>27</Cell><Cell>0.074</Cell><Cell>0.003</Cell><Cell>120.2</Cell><Cell>4.0</Cell></Row>
|
||||
<Time>2025-12-05 19:13:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>16</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>24</Cell><Cell>0.069</Cell><Cell>0.003</Cell><Cell>119.6</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:14:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>16</Cell><Cell>0.040</Cell><Cell>24</Cell><Cell>0.020</Cell><Cell>22</Cell><Cell>0.047</Cell><Cell>0.002</Cell><Cell>117.4</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:15:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>19</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.070</Cell><Cell>0.002</Cell><Cell>116.7</Cell><Cell>2.0</Cell></Row>
|
||||
<Time>2025-12-05 19:16:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>16</Cell><Cell>0.070</Cell><Cell>39</Cell><Cell>0.035</Cell><Cell>51</Cell><Cell>0.080</Cell><Cell>0.004</Cell><Cell>121.9</Cell><Cell>2.0</Cell></Row>
|
||||
<Time>2025-12-05 19:17:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>12</Cell><Cell>0.080</Cell><Cell>43</Cell><Cell>0.035</Cell><Cell>27</Cell><Cell>0.087</Cell><Cell>0.003</Cell><Cell>119.7</Cell><Cell>2.7</Cell></Row>
|
||||
<Time>2025-12-05 19:18:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>20</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.076</Cell><Cell>0.003</Cell><Cell>119.4</Cell><Cell>6.7</Cell></Row>
|
||||
<Time>2025-12-05 19:19:25</Time>
|
||||
<Row>
|
||||
<Cell>0.030</Cell><Cell>20</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.072</Cell><Cell>0.003</Cell><Cell>121.6</Cell><Cell>4.7</Cell></Row>
|
||||
<Time>2025-12-05 19:20:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell><1.0</Cell><Cell>0.065</Cell><Cell>39</Cell><Cell>0.025</Cell><Cell>26</Cell><Cell>0.069</Cell><Cell>0.003</Cell><Cell>119.9</Cell><Cell>4.1</Cell></Row>
|
||||
<Time>2025-12-05 19:21:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>4.7</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>22</Cell><Cell>0.065</Cell><Cell>0.002</Cell><Cell>117.9</Cell><Cell>1.5</Cell></Row>
|
||||
<Time>2025-12-05 19:22:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>23</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>37</Cell><Cell>0.070</Cell><Cell>0.002</Cell><Cell>118.2</Cell><Cell>2.2</Cell></Row>
|
||||
<Time>2025-12-05 19:23:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>16</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>39</Cell><Cell>0.071</Cell><Cell>0.003</Cell><Cell>120.0</Cell><Cell>2.9</Cell></Row>
|
||||
<Time>2025-12-05 19:24:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>4.0</Cell><Cell>0.045</Cell><Cell>34</Cell><Cell>0.020</Cell><Cell>18</Cell><Cell>0.050</Cell><Cell>0.003</Cell><Cell>118.7</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:25:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>2.9</Cell><Cell>0.055</Cell><Cell>23</Cell><Cell>0.025</Cell><Cell>17</Cell><Cell>0.062</Cell><Cell>0.002</Cell><Cell>118.5</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:26:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>47</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>47</Cell><Cell>0.075</Cell><Cell>0.004</Cell><Cell>122.7</Cell><Cell>2.7</Cell></Row>
|
||||
<Time>2025-12-05 19:27:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>9.7</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.035</Cell><Cell>28</Cell><Cell>0.074</Cell><Cell>0.003</Cell><Cell>121.1</Cell><Cell>2.0</Cell></Row>
|
||||
<Time>2025-12-05 19:28:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>57</Cell><Cell>0.090</Cell><Cell>47</Cell><Cell>0.040</Cell><Cell>51</Cell><Cell>0.097</Cell><Cell>0.003</Cell><Cell>121.3</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 19:29:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>11</Cell><Cell>0.050</Cell><Cell>22</Cell><Cell>0.020</Cell><Cell>34</Cell><Cell>0.056</Cell><Cell>0.002</Cell><Cell>114.8</Cell><Cell>2.3</Cell></Row>
|
||||
<Time>2025-12-05 19:30:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>20</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>47</Cell><Cell>0.072</Cell><Cell>0.003</Cell><Cell>119.1</Cell><Cell>51</Cell></Row>
|
||||
<Time>2025-12-05 19:31:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>13</Cell><Cell>0.055</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.061</Cell><Cell>0.004</Cell><Cell>122.0</Cell><Cell>2.6</Cell></Row>
|
||||
<Time>2025-12-05 19:32:25</Time>
|
||||
<Row>
|
||||
<Cell>0.015</Cell><Cell><1.0</Cell><Cell>0.015</Cell><Cell>18</Cell><Cell>0.015</Cell><Cell>12</Cell><Cell>0.026</Cell><Cell>0.001</Cell><Cell>108.0</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:33:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>2.9</Cell><Cell>0.050</Cell><Cell>21</Cell><Cell>0.025</Cell><Cell>22</Cell><Cell>0.058</Cell><Cell>0.002</Cell><Cell>117.2</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:34:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>8.3</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>24</Cell><Cell>0.066</Cell><Cell>0.003</Cell><Cell>121.5</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 19:35:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>5.8</Cell><Cell>0.040</Cell><Cell>23</Cell><Cell>0.020</Cell><Cell>23</Cell><Cell>0.047</Cell><Cell>0.002</Cell><Cell>114.4</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:36:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>12</Cell><Cell>0.055</Cell><Cell>43</Cell><Cell>0.020</Cell><Cell>39</Cell><Cell>0.059</Cell><Cell>0.003</Cell><Cell>121.0</Cell><Cell>2.8</Cell></Row>
|
||||
<Time>2025-12-05 19:37:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>13</Cell><Cell>0.055</Cell><Cell>22</Cell><Cell>0.030</Cell><Cell>20</Cell><Cell>0.066</Cell><Cell>0.002</Cell><Cell>117.6</Cell><Cell>3.1</Cell></Row>
|
||||
<Time>2025-12-05 19:38:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>7.3</Cell><Cell>0.050</Cell><Cell>39</Cell><Cell>0.020</Cell><Cell>32</Cell><Cell>0.056</Cell><Cell>0.004</Cell><Cell>122.2</Cell><Cell>2.5</Cell></Row>
|
||||
<Time>2025-12-05 19:39:25</Time>
|
||||
<Row>
|
||||
<Cell>0.030</Cell><Cell>23</Cell><Cell>0.070</Cell><Cell>43</Cell><Cell>0.035</Cell><Cell>47</Cell><Cell>0.077</Cell><Cell>0.003</Cell><Cell>120.3</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:40:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>18</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>51</Cell><Cell>0.070</Cell><Cell>0.004</Cell><Cell>121.8</Cell><Cell>2.0</Cell></Row>
|
||||
<Time>2025-12-05 19:41:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>32</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.035</Cell><Cell>17</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>120.1</Cell><Cell>14</Cell></Row>
|
||||
<Time>2025-12-05 19:42:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>17</Cell><Cell>0.060</Cell><Cell>26</Cell><Cell>0.025</Cell><Cell>23</Cell><Cell>0.065</Cell><Cell>0.002</Cell><Cell>116.1</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:43:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>20</Cell><Cell>0.060</Cell><Cell>23</Cell><Cell>0.030</Cell><Cell>24</Cell><Cell>0.070</Cell><Cell>0.002</Cell><Cell>116.9</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:44:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>13</Cell><Cell>0.075</Cell><Cell>47</Cell><Cell>0.035</Cell><Cell>51</Cell><Cell>0.081</Cell><Cell>0.003</Cell><Cell>121.5</Cell><Cell>6.0</Cell></Row>
|
||||
<Time>2025-12-05 19:45:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>18</Cell><Cell>0.050</Cell><Cell>21</Cell><Cell>0.025</Cell><Cell>22</Cell><Cell>0.056</Cell><Cell>0.002</Cell><Cell>117.2</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:46:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>22</Cell><Cell>0.055</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>18</Cell><Cell>0.059</Cell><Cell>0.003</Cell><Cell>119.6</Cell><Cell>3.0</Cell></Row>
|
||||
<Time>2025-12-05 19:47:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell><1.0</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>47</Cell><Cell>0.077</Cell><Cell>0.002</Cell><Cell>118.3</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:48:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>8.1</Cell><Cell>0.030</Cell><Cell>39</Cell><Cell>0.020</Cell><Cell>23</Cell><Cell>0.037</Cell><Cell>0.002</Cell><Cell>116.6</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:49:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>17</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>24</Cell><Cell>0.074</Cell><Cell>0.002</Cell><Cell>118.6</Cell><Cell>3.3</Cell></Row>
|
||||
<Time>2025-12-05 19:50:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>6.2</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.072</Cell><Cell>0.003</Cell><Cell>118.8</Cell><Cell>2.6</Cell></Row>
|
||||
<Time>2025-12-05 19:51:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>13</Cell><Cell>0.035</Cell><Cell>21</Cell><Cell>0.020</Cell><Cell>20</Cell><Cell>0.041</Cell><Cell>0.001</Cell><Cell>112.8</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:52:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>14</Cell><Cell>0.075</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>47</Cell><Cell>0.081</Cell><Cell>0.004</Cell><Cell>121.7</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 19:53:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>12</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>37</Cell><Cell>0.072</Cell><Cell>0.004</Cell><Cell>121.9</Cell><Cell>2.0</Cell></Row>
|
||||
<Time>2025-12-05 19:54:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>16</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>47</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>120.6</Cell><Cell>15</Cell></Row>
|
||||
<Time>2025-12-05 19:55:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>22</Cell><Cell>0.060</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.065</Cell><Cell>0.003</Cell><Cell>120.7</Cell><Cell>2.0</Cell></Row>
|
||||
<Time>2025-12-05 19:56:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>21</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>37</Cell><Cell>0.066</Cell><Cell>0.003</Cell><Cell>121.1</Cell><Cell>2.1</Cell></Row>
|
||||
<Time>2025-12-05 19:57:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>3.6</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>47</Cell><Cell>0.072</Cell><Cell>0.004</Cell><Cell>121.9</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:58:25</Time>
|
||||
<Row>
|
||||
<Cell>0.030</Cell><Cell>18</Cell><Cell>0.075</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.079</Cell><Cell>0.003</Cell><Cell>121.5</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 19:59:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>12</Cell><Cell>0.075</Cell><Cell>43</Cell><Cell>0.035</Cell><Cell>30</Cell><Cell>0.081</Cell><Cell>0.003</Cell><Cell>119.4</Cell><Cell>1.8</Cell></Row>
|
||||
<Time>2025-12-05 20:00:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>20</Cell><Cell>0.050</Cell><Cell>22</Cell><Cell>0.025</Cell><Cell>23</Cell><Cell>0.057</Cell><Cell>0.002</Cell><Cell>115.0</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:01:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>11</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>18</Cell><Cell>0.066</Cell><Cell>0.003</Cell><Cell>119.1</Cell><Cell>2.4</Cell></Row>
|
||||
<Time>2025-12-05 20:02:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>22</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>39</Cell><Cell>0.073</Cell><Cell>0.003</Cell><Cell>119.0</Cell><Cell>2.4</Cell></Row>
|
||||
<Time>2025-12-05 20:03:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>15</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>43</Cell><Cell>0.076</Cell><Cell>0.003</Cell><Cell>119.7</Cell><Cell>2.1</Cell></Row>
|
||||
<Time>2025-12-05 20:04:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>16</Cell><Cell>0.050</Cell><Cell>34</Cell><Cell>0.025</Cell><Cell>39</Cell><Cell>0.055</Cell><Cell>0.002</Cell><Cell>115.9</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:05:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>6.2</Cell><Cell>0.045</Cell><Cell>34</Cell><Cell>0.020</Cell><Cell>30</Cell><Cell>0.049</Cell><Cell>0.002</Cell><Cell>117.6</Cell><Cell>2.3</Cell></Row>
|
||||
<Time>2025-12-05 20:06:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>27</Cell><Cell>0.055</Cell><Cell>24</Cell><Cell>0.025</Cell><Cell>16</Cell><Cell>0.061</Cell><Cell>0.002</Cell><Cell>115.4</Cell><Cell>4.9</Cell></Row>
|
||||
<Time>2025-12-05 20:07:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>3.5</Cell><Cell>0.090</Cell><Cell>47</Cell><Cell>0.040</Cell><Cell>57</Cell><Cell>0.097</Cell><Cell>0.004</Cell><Cell>123.1</Cell><Cell>2.1</Cell></Row>
|
||||
<Time>2025-12-05 20:08:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>17</Cell><Cell>0.060</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>51</Cell><Cell>0.066</Cell><Cell>0.003</Cell><Cell>119.9</Cell><Cell>2.3</Cell></Row>
|
||||
<Time>2025-12-05 20:09:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>32</Cell><Cell>0.090</Cell><Cell>43</Cell><Cell>0.045</Cell><Cell>37</Cell><Cell>0.098</Cell><Cell>0.002</Cell><Cell>118.6</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 20:10:25</Time>
|
||||
<Row>
|
||||
<Cell>0.035</Cell><Cell>11</Cell><Cell>0.070</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.077</Cell><Cell>0.003</Cell><Cell>120.3</Cell><Cell>3.7</Cell></Row>
|
||||
<Time>2025-12-05 20:11:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>13</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>20</Cell><Cell>0.070</Cell><Cell>0.002</Cell><Cell>117.4</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:12:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>5.3</Cell><Cell>0.050</Cell><Cell>24</Cell><Cell>0.025</Cell><Cell>26</Cell><Cell>0.059</Cell><Cell>0.002</Cell><Cell>118.2</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:13:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>13</Cell><Cell>0.055</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.061</Cell><Cell>0.002</Cell><Cell>117.1</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:14:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>13</Cell><Cell>0.060</Cell><Cell>47</Cell><Cell>0.025</Cell><Cell>51</Cell><Cell>0.064</Cell><Cell>0.002</Cell><Cell>118.3</Cell><Cell>4.0</Cell></Row>
|
||||
<Time>2025-12-05 20:15:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>12</Cell><Cell>0.035</Cell><Cell>24</Cell><Cell>0.020</Cell><Cell>19</Cell><Cell>0.043</Cell><Cell>0.002</Cell><Cell>115.7</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:16:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>10</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>51</Cell><Cell>0.072</Cell><Cell>0.002</Cell><Cell>117.8</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:17:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>32</Cell><Cell>0.065</Cell><Cell>43</Cell><Cell>0.025</Cell><Cell>43</Cell><Cell>0.069</Cell><Cell>0.004</Cell><Cell>123.3</Cell><Cell>2.1</Cell></Row>
|
||||
<Time>2025-12-05 20:18:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>13</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>37</Cell><Cell>0.070</Cell><Cell>0.003</Cell><Cell>119.6</Cell><Cell>4.1</Cell></Row>
|
||||
<Time>2025-12-05 20:19:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>3.8</Cell><Cell>0.055</Cell><Cell>23</Cell><Cell>0.025</Cell><Cell>24</Cell><Cell>0.062</Cell><Cell>0.003</Cell><Cell>120.0</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:20:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>7.2</Cell><Cell>0.050</Cell><Cell>39</Cell><Cell>0.025</Cell><Cell>39</Cell><Cell>0.057</Cell><Cell>0.002</Cell><Cell>117.8</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:21:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>3.2</Cell><Cell>0.050</Cell><Cell>23</Cell><Cell>0.025</Cell><Cell>26</Cell><Cell>0.059</Cell><Cell>0.002</Cell><Cell>116.6</Cell><Cell>2.5</Cell></Row>
|
||||
<Time>2025-12-05 20:22:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>6.2</Cell><Cell>0.055</Cell><Cell>23</Cell><Cell>0.025</Cell><Cell>37</Cell><Cell>0.062</Cell><Cell>0.002</Cell><Cell>118.3</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:23:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>13</Cell><Cell>0.065</Cell><Cell>47</Cell><Cell>0.030</Cell><Cell>24</Cell><Cell>0.072</Cell><Cell>0.003</Cell><Cell>120.2</Cell><Cell>1.8</Cell></Row>
|
||||
<Time>2025-12-05 20:24:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>18</Cell><Cell>0.050</Cell><Cell>32</Cell><Cell>0.025</Cell><Cell>34</Cell><Cell>0.057</Cell><Cell>0.002</Cell><Cell>116.9</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:25:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>13</Cell><Cell>0.080</Cell><Cell>47</Cell><Cell>0.035</Cell><Cell>51</Cell><Cell>0.087</Cell><Cell>0.002</Cell><Cell>118.5</Cell><Cell>1.9</Cell></Row>
|
||||
<Time>2025-12-05 20:26:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>6.6</Cell><Cell>0.040</Cell><Cell>23</Cell><Cell>0.020</Cell><Cell>30</Cell><Cell>0.046</Cell><Cell>0.002</Cell><Cell>117.6</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:27:25</Time>
|
||||
<Row>
|
||||
<Cell>0.020</Cell><Cell>17</Cell><Cell>0.040</Cell><Cell>21</Cell><Cell>0.020</Cell><Cell>23</Cell><Cell>0.047</Cell><Cell>0.002</Cell><Cell>115.2</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:28:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>18</Cell><Cell>0.090</Cell><Cell>73</Cell><Cell>0.040</Cell><Cell>51</Cell><Cell>0.093</Cell><Cell>0.003</Cell><Cell>119.3</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2025-12-05 20:29:25</Time>
|
||||
<Row>
|
||||
<Cell>0.025</Cell><Cell>28</Cell><Cell>0.075</Cell><Cell>43</Cell><Cell>0.030</Cell><Cell>57</Cell><Cell>0.081</Cell><Cell>0.004</Cell><Cell>122.2</Cell><Cell>2.2</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+3207
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+167
@@ -0,0 +1,167 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE11010</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>M010HR6K.OA0H</FileName>
|
||||
<HistogramStartTime>17:02:34</HistogramStartTime>
|
||||
<HistogramStartDate>2019-01-08</HistogramStartDate>
|
||||
<HistogramStopTime>17:20:00</HistogramStopTime>
|
||||
<HistogramStopDate>2019-01-08</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>18.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>6.8 Volts</BatteryLevel>
|
||||
<Calibration>December 17, 2018 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>Wampum Ave-ECMS 29301-215 Joseph St</Project>
|
||||
<Client>Brayman Construction</Client>
|
||||
<UserName>Terra-Mechanics Inc - D. Bartholomae</UserName>
|
||||
<Seis.Loc>Loc, #1 - 215 Joseph Street</Seis.Loc>
|
||||
<GeoRange>
|
||||
<Value>1.250</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>0.008</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>0.009</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>0.005</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>11</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>73</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>16</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>17:11:34</TranPeakTime>
|
||||
<TranPeakDate>2019-01-08</TranPeakDate>
|
||||
<VertPeakTime>17:03:34</VertPeakTime>
|
||||
<VertPeakDate>2019-01-08</VertPeakDate>
|
||||
<LongPeakTime>17:11:34</LongPeakTime>
|
||||
<LongPeakDate>2019-01-08</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>0.009</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>17:11:34</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2019-01-08</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>134.1</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>17:03:34</MicLTime>
|
||||
<MicLDate>2019-01-08</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>9.7</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.2 Hz.</TranTestFreq>
|
||||
<TranTestRatio>4.3</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.6 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.4</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.2 Hz.</LongTestFreq>
|
||||
<LongTestRatio>3.8</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>20.1 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>583 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Passed</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2019-01-08 17:02:33 - 2019-01-08 17:20:00 "Event Recorded Modem Exit"</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>2019-01-08 17:03:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>47</Cell><Cell>0.009</Cell><Cell>73</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.015</Cell><Cell>134.1</Cell><Cell>9.7</Cell></Row>
|
||||
<Time>2019-01-08 17:04:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>21</Cell><Cell>0.007</Cell><Cell>27</Cell><Cell>0.002</Cell><Cell>85</Cell><Cell>0.007</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2019-01-08 17:05:34</Time>
|
||||
<Row>
|
||||
<Cell>0.004</Cell><Cell>20</Cell><Cell>0.004</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>0.003</Cell><Cell>119.1</Cell><Cell>7.5</Cell></Row>
|
||||
<Time>2019-01-08 17:06:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>34</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>51</Cell><Cell>0.003</Cell><Cell>0.000</Cell><Cell>81.94</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2019-01-08 17:07:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>51</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.003</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>39</Cell></Row>
|
||||
<Time>2019-01-08 17:08:34</Time>
|
||||
<Row>
|
||||
<Cell>0.004</Cell><Cell>12</Cell><Cell>0.004</Cell><Cell>16</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>13</Cell></Row>
|
||||
<Time>2019-01-08 17:09:34</Time>
|
||||
<Row>
|
||||
<Cell>0.002</Cell><Cell>51</Cell><Cell>0.002</Cell><Cell>64</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.003</Cell><Cell>0.000</Cell><Cell>81.94</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2019-01-08 17:10:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>12</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.004</Cell><Cell>0.000</Cell><Cell>81.94</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2019-01-08 17:11:34</Time>
|
||||
<Row>
|
||||
<Cell>0.008</Cell><Cell>11</Cell><Cell>0.005</Cell><Cell>13</Cell><Cell>0.005</Cell><Cell>16</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>19</Cell></Row>
|
||||
<Time>2019-01-08 17:12:34</Time>
|
||||
<Row>
|
||||
<Cell>0.006</Cell><Cell>13</Cell><Cell>0.004</Cell><Cell>14</Cell><Cell>0.004</Cell><Cell>51</Cell><Cell>0.007</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>20</Cell></Row>
|
||||
<Time>2019-01-08 17:13:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>57</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.003</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2019-01-08 17:14:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>47</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.003</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>13</Cell></Row>
|
||||
<Time>2019-01-08 17:15:34</Time>
|
||||
<Row>
|
||||
<Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.004</Cell><Cell>0.000</Cell><Cell>95.92</Cell><Cell>2.5</Cell></Row>
|
||||
<Time>2019-01-08 17:16:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>13</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>85</Cell><Cell>0.004</Cell><Cell>0.000</Cell><Cell>93.98</Cell><Cell>9.1</Cell></Row>
|
||||
<Time>2019-01-08 17:17:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>17</Cell><Cell>0.002</Cell><Cell>85</Cell><Cell>0.002</Cell><Cell>73</Cell><Cell>0.003</Cell><Cell>0.000</Cell><Cell>81.94</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2019-01-08 17:18:34</Time>
|
||||
<Row>
|
||||
<Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.004</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2019-01-08 17:19:34</Time>
|
||||
<Row>
|
||||
<Cell>0.003</Cell><Cell>73</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.003</Cell><Cell>20</Cell><Cell>0.004</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>6.1</Cell></Row>
|
||||
<Time>2019-01-08 17:20:00</Time>
|
||||
<Row>
|
||||
<Cell>0.002</Cell><Cell>37</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.002</Cell><Cell>>100</Cell><Cell>0.003</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>18</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+137
@@ -0,0 +1,137 @@
|
||||
<?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'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>>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 "Event Recorded Modem Exit"</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>>100</Cell><Cell>0.005</Cell><Cell>>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>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>100.0</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2018-02-10 11:43:13</Time>
|
||||
<Row>
|
||||
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.009</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2018-02-10 11:43:18</Time>
|
||||
<Row>
|
||||
<Cell>0.010</Cell><Cell>>100</Cell><Cell>0.015</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.016</Cell><Cell>0.006</Cell><Cell>126.4</Cell><Cell>>100</Cell></Row>
|
||||
<Time>2018-02-10 11:43:23</Time>
|
||||
<Row>
|
||||
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>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>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.011</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>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>>100</Cell></Row>
|
||||
<Time>2018-02-10 11:43:34</Time>
|
||||
<Row>
|
||||
<Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.007</Cell><Cell>0.000</Cell><Cell>87.96</Cell><Cell>>100</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+140
@@ -0,0 +1,140 @@
|
||||
<?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 "Event Recorded Modem Exit"</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>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>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>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>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>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>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>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>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>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>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>>100</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>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>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.005</Cell><Cell>>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>>100</Cell><Cell>0.020</Cell><Cell>2.9</Cell><Cell>0.005</Cell><Cell>>100</Cell><Cell>0.022</Cell><Cell>0.001</Cell><Cell>104.9</Cell><Cell>64</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+116
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE18190</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>T190LD42.T00H</FileName>
|
||||
<HistogramStartTime>13:29:24</HistogramStartTime>
|
||||
<HistogramStartDate>2025-12-08</HistogramStartDate>
|
||||
<HistogramStopTime>13:29:37</HistogramStopTime>
|
||||
<HistogramStopDate>2025-12-08</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>1.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>2048 sps</SampleRate>
|
||||
<BatteryLevel>6.7 Volts</BatteryLevel>
|
||||
<Calibration>June 13, 2025 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>I-80-North Fork-Area 3-462Richardsvilel</Project>
|
||||
<Client>Fay Company</Client>
|
||||
<UserName>Terra-Mechanics Inc.- Harrison</UserName>
|
||||
<SeisLoc>Loc #8 - Area 3- 462 Richardsville Road</SeisLoc>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>1.280</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>2.615</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>1.120</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>15.5</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>64</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>17.7</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>13:29:37</TranPeakTime>
|
||||
<TranPeakDate>2025-12-08</TranPeakDate>
|
||||
<VertPeakTime>13:29:37</VertPeakTime>
|
||||
<VertPeakDate>2025-12-08</VertPeakDate>
|
||||
<LongPeakTime>13:29:37</LongPeakTime>
|
||||
<LongPeakDate>2025-12-08</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>2.644</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>13:29:37</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2025-12-08</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>107.0</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>13:29:37</MicLTime>
|
||||
<MicLDate>2025-12-08</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>51</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.4 Hz.</TranTestFreq>
|
||||
<TranTestRatio>4.2</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.6 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.4</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.3 Hz.</LongTestFreq>
|
||||
<LongTestRatio>3.7</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>0.0 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>0 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Check</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2025-12-08 13:29:23 - 2025-12-08 13:29:37 "Event Recorded Modem Exit"</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>2025-12-08 13:29:37</Time>
|
||||
<Row>
|
||||
<Cell>1.280</Cell><Cell>15.5</Cell><Cell>2.615</Cell><Cell>64</Cell><Cell>1.120</Cell><Cell>17.7</Cell><Cell>2.644</Cell><Cell>0.001</Cell><Cell>107.0</Cell><Cell>51</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+116
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE18190</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>T190LD5Q.LD0H</FileName>
|
||||
<HistogramStartTime>11:00:49</HistogramStartTime>
|
||||
<HistogramStartDate>2025-12-09</HistogramStartDate>
|
||||
<HistogramStopTime>11:00:59</HistogramStopTime>
|
||||
<HistogramStopDate>2025-12-09</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>1.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>6.9 Volts</BatteryLevel>
|
||||
<Calibration>June 13, 2025 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>I-80-North Fork-Area 3-462Richardsvilel</Project>
|
||||
<Client>Fay Company</Client>
|
||||
<UserName>Terra-Mechanics Inc.- Harrison</UserName>
|
||||
<SeisLoc>Loc #8 - Area 3- 462 Richardsville Road</SeisLoc>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>2.140</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>OORANGE</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>2.830</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>85</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>34</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>11:00:59</TranPeakTime>
|
||||
<TranPeakDate>2025-12-09</TranPeakDate>
|
||||
<VertPeakTime>11:00:59</VertPeakTime>
|
||||
<VertPeakDate>2025-12-09</VertPeakDate>
|
||||
<LongPeakTime>11:00:59</LongPeakTime>
|
||||
<LongPeakDate>2025-12-09</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>OORANGE</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>11:00:59</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2025-12-09</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>106.0</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>11:00:59</MicLTime>
|
||||
<MicLDate>2025-12-09</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>85</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.4 Hz.</TranTestFreq>
|
||||
<TranTestRatio>4.4</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.6 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.5</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.3 Hz.</LongTestFreq>
|
||||
<LongTestRatio>3.9</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>20.5 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>691 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Passed</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2025-12-09 11:00:48 - 2025-12-09 11:00:59 "Event Recorded Modem Exit"</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>2025-12-09 11:00:59</Time>
|
||||
<Row>
|
||||
<Cell>2.140</Cell><Cell>>100</Cell><Cell>OORANGE</Cell><Cell>85</Cell><Cell>2.830</Cell><Cell>34</Cell><Cell>OORANGE</Cell><Cell>0.001</Cell><Cell>106.0</Cell><Cell>85</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+116
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE9557</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>K557I55Y.I20H</FileName>
|
||||
<HistogramStartTime>12:54:02</HistogramStartTime>
|
||||
<HistogramStartDate>2019-10-07</HistogramStartDate>
|
||||
<HistogramStopTime>12:54:28</HistogramStopTime>
|
||||
<HistogramStopDate>2019-10-07</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>1.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>6.4 Volts</BatteryLevel>
|
||||
<Calibration>January 18, 2019 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>Landmark - The Standard - Atherton Hotel</Project>
|
||||
<Client>Landmark Constructors</Client>
|
||||
<UserName>Terra-Mechanics, Inc. - D. Bartholomae</UserName>
|
||||
<SeisLocation>Loc 2- Atherton Hotel - 125 S. Atherton</SeisLocation>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>0.425</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>0.010</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>0.485</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>12:54:28</TranPeakTime>
|
||||
<TranPeakDate>2019-10-07</TranPeakDate>
|
||||
<VertPeakTime>12:54:28</VertPeakTime>
|
||||
<VertPeakDate>2019-10-07</VertPeakDate>
|
||||
<LongPeakTime>12:54:28</LongPeakTime>
|
||||
<LongPeakDate>2019-10-07</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>0.645</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>12:54:28</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2019-10-07</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>91.5</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>12:54:28</MicLTime>
|
||||
<MicLDate>2019-10-07</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>>100</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.9 Hz.</TranTestFreq>
|
||||
<TranTestRatio>3.4</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.4 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.7</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.7 Hz.</LongTestFreq>
|
||||
<LongTestRatio>3.9</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>20.1 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>585 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Passed</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2019-10-07 12:54:01 - 2019-10-07 12:54:28 "Event Recorded Modem Exit"</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>2019-10-07 12:54:28</Time>
|
||||
<Row>
|
||||
<Cell>0.425</Cell><Cell>>100</Cell><Cell>0.010</Cell><Cell>>100</Cell><Cell>0.485</Cell><Cell>>100</Cell><Cell>0.645</Cell><Cell>0.000</Cell><Cell>91.48</Cell><Cell>>100</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+117
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE18438</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>T438I4V5.DJ0H</FileName>
|
||||
<HistogramStartTime>16:48:55</HistogramStartTime>
|
||||
<HistogramStartDate>2019-10-01</HistogramStartDate>
|
||||
<HistogramStopTime>16:48:57</HistogramStopTime>
|
||||
<HistogramStopDate>2019-10-01</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>1.00</NumberofIntervals>
|
||||
<IntervalSize>1 minute</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>6.8 Volts</BatteryLevel>
|
||||
<Calibration>September 3, 2019 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<JobNumber>1</JobNumber>
|
||||
<Project>Univ of Pitt - Scaife Hall-UPMC - Loc 2</Project>
|
||||
<Client>P J Dick, Inc.</Client>
|
||||
<UserName>Terra-Mechanics, Inc. - D. Harrison</UserName>
|
||||
<Seis.Loc>Unit #2 - Station #2 - Loc 2</Seis.Loc>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>0.550</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>1.335</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>0.270</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>N/A</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>N/A</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>N/A</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>16:48:57</TranPeakTime>
|
||||
<TranPeakDate>2019-10-01</TranPeakDate>
|
||||
<VertPeakTime>16:48:57</VertPeakTime>
|
||||
<VertPeakDate>2019-10-01</VertPeakDate>
|
||||
<LongPeakTime>16:48:57</LongPeakTime>
|
||||
<LongPeakDate>2019-10-01</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>1.394</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>16:48:57</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2019-10-01</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>114.4</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>16:48:57</MicLTime>
|
||||
<MicLDate>2019-10-01</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>51</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.5 Hz.</TranTestFreq>
|
||||
<TranTestRatio>4.0</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.5 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.9</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.6 Hz.</LongTestFreq>
|
||||
<LongTestRatio>3.7</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>0.0 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>0 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Check</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2019-10-01 16:48:54 - 2019-10-01 16:48:57 "Event Recorded Modem Exit"</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>2019-10-01 16:48:57</Time>
|
||||
<Row>
|
||||
<Cell>0.550</Cell><Cell>N/A</Cell><Cell>1.335</Cell><Cell>N/A</Cell><Cell>0.270</Cell><Cell>N/A</Cell><Cell>1.394</Cell><Cell>0.002</Cell><Cell>114.4</Cell><Cell>51</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
+116
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Event>
|
||||
<FileVersion>8.0</FileVersion>
|
||||
<EventType>Full Histogram</EventType>
|
||||
<SerialNumber>BE9558</SerialNumber>
|
||||
<Version>V 10.72-8.17 MiniMate Plus</Version>
|
||||
<FileName>K558L4KY.440H</FileName>
|
||||
<HistogramStartTime>17:04:52</HistogramStartTime>
|
||||
<HistogramStartDate>2025-06-25</HistogramStartDate>
|
||||
<HistogramStopTime>17:05:39</HistogramStopTime>
|
||||
<HistogramStopDate>2025-06-25</HistogramStopDate>
|
||||
<Channels>
|
||||
<Channel>Tran</Channel>
|
||||
<Channel>Vert</Channel>
|
||||
<Channel>Long</Channel>
|
||||
<Channel>MicL</Channel>
|
||||
</Channels>
|
||||
<NumberofIntervals>1.00</NumberofIntervals>
|
||||
<IntervalSize>5 minutes</IntervalSize>
|
||||
<SampleRate>1024 sps</SampleRate>
|
||||
<BatteryLevel>6.3 Volts</BatteryLevel>
|
||||
<Calibration>June 13, 2025 by Instantel</Calibration>
|
||||
<Units>in/s and dB(L)</Units>
|
||||
<Project>Fay - Locks & Dam No3 -Loc 5 Synthomer</Project>
|
||||
<Client>Fay Company</Client>
|
||||
<UserName>Terra-Mechanics Inc - Harrison</UserName>
|
||||
<Seis.Loc>Location #5 Sythomer Plant</Seis.Loc>
|
||||
<GeoRange>
|
||||
<Value>10.000</Value>
|
||||
<Units>in/s</Units>
|
||||
</GeoRange>
|
||||
<TranPPV>
|
||||
<Value>2.315</Value>
|
||||
<Units>in/s</Units>
|
||||
</TranPPV>
|
||||
<VertPPV>
|
||||
<Value>2.715</Value>
|
||||
<Units>in/s</Units>
|
||||
</VertPPV>
|
||||
<LongPPV>
|
||||
<Value>5.115</Value>
|
||||
<Units>in/s</Units>
|
||||
</LongPPV>
|
||||
<TranZCFreq>
|
||||
<Value>10</Value>
|
||||
<Units>Hz</Units>
|
||||
</TranZCFreq>
|
||||
<VertZCFreq>
|
||||
<Value>85</Value>
|
||||
<Units>Hz</Units>
|
||||
</VertZCFreq>
|
||||
<LongZCFreq>
|
||||
<Value>19</Value>
|
||||
<Units>Hz</Units>
|
||||
</LongZCFreq>
|
||||
<TranPeakTime>17:05:39</TranPeakTime>
|
||||
<TranPeakDate>2025-06-25</TranPeakDate>
|
||||
<VertPeakTime>17:05:39</VertPeakTime>
|
||||
<VertPeakDate>2025-06-25</VertPeakDate>
|
||||
<LongPeakTime>17:05:39</LongPeakTime>
|
||||
<LongPeakDate>2025-06-25</LongPeakDate>
|
||||
<PeakVectorSum>
|
||||
<Value>5.559</Value>
|
||||
<Units>in/s</Units>
|
||||
</PeakVectorSum>
|
||||
<PeakVectorSumTime>17:05:39</PeakVectorSumTime>
|
||||
<PeakVectorSumDate>2025-06-25</PeakVectorSumDate>
|
||||
<Microphone>Linear Weighting</Microphone>
|
||||
<MicLPSPL>
|
||||
<Value>111.8</Value>
|
||||
<Units>dB(L)</Units>
|
||||
</MicLPSPL>
|
||||
<MicLTime>17:05:39</MicLTime>
|
||||
<MicLDate>2025-06-25</MicLDate>
|
||||
<MicLZCFreq>
|
||||
<Value>43</Value>
|
||||
<Units>Hz</Units>
|
||||
</MicLZCFreq>
|
||||
<TranTestFreq>7.7 Hz.</TranTestFreq>
|
||||
<TranTestRatio>3.9</TranTestRatio>
|
||||
<TranTestResults>Passed</TranTestResults>
|
||||
<VertTestFreq>7.5 Hz.</VertTestFreq>
|
||||
<VertTestRatio>3.8</VertTestRatio>
|
||||
<VertTestResults>Passed</VertTestResults>
|
||||
<LongTestFreq>7.5 Hz.</LongTestFreq>
|
||||
<LongTestRatio>3.7</LongTestRatio>
|
||||
<LongTestResults>Passed</LongTestResults>
|
||||
<MicLTestFreq>0.0 Hz.</MicLTestFreq>
|
||||
<MicLTestAmplitude>0 mv</MicLTestAmplitude>
|
||||
<MicLTestResults>Check</MicLTestResults>
|
||||
<UsbSummaryChannels>
|
||||
</UsbSummaryChannels>
|
||||
<MonitorLog>2025-06-25 17:04:51 - 2025-06-25 17:05:39 "Event Recorded Modem Exit"</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>2025-06-25 17:05:39</Time>
|
||||
<Row>
|
||||
<Cell>2.315</Cell><Cell>10</Cell><Cell>2.715</Cell><Cell>85</Cell><Cell>5.115</Cell><Cell>19</Cell><Cell>5.559</Cell><Cell>0.001</Cell><Cell>111.8</Cell><Cell>43</Cell></Row>
|
||||
</HistogramDataIntervals>
|
||||
</HistogramData>
|
||||
<HistogramDataUsbChannels>
|
||||
</HistogramDataUsbChannels>
|
||||
|
||||
</Event>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+3978
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+3975
File diff suppressed because it is too large.
Load diff
@@ -141,10 +141,12 @@ def test_a_report_fills_in_when_the_record_is_missing():
|
||||
assert (_dt(ev.timestamp), ev.timestamp_source) == (TRIGGER, "report")
|
||||
|
||||
|
||||
def test_a_histogram_keeps_its_footer_start_for_now():
|
||||
# Its record (marker fe f5) also holds Blastware's start -- that change is #51.
|
||||
def test_a_histogram_takes_its_event_records_start():
|
||||
# #51: its record (marker fe f5) holds Blastware's start; the footer's
|
||||
# 19:04:50 is a second early.
|
||||
ev = read_blastware_file(HISTOGRAM)
|
||||
assert (_dt(ev.timestamp), ev.timestamp_source) == (datetime.datetime(2026, 5, 10, 19, 4, 50), "footer")
|
||||
assert (_dt(ev.timestamp), ev.timestamp_source) == (datetime.datetime(2026, 5, 10, 19, 4, 51),
|
||||
"event_record")
|
||||
|
||||
|
||||
def test_the_sidecar_keeps_the_instruments_time_and_says_where_it_came_from():
|
||||
@@ -173,13 +175,16 @@ def test_an_imported_event_with_only_an_estimate_does_not_overwrite_its_neighbou
|
||||
from sfm.database import SeismoDb
|
||||
from sfm.waveform_store import WaveformStore
|
||||
store, db = WaveformStore(tmp_path / "waveforms"), SeismoDb(tmp_path / "seismo_relay.db")
|
||||
other = Event(index=0) # a different event at 14:23:43
|
||||
# A different waveform at 14:23:43. The key is unit + time + type (#51), so
|
||||
# "its neighbour" is an event of the same type at the same second.
|
||||
other = Event(index=0)
|
||||
other.timestamp = Timestamp(raw=b"", flag=0x10, year=2026, unknown_byte=0, month=10, day=26,
|
||||
hour=14, minute=23, second=43)
|
||||
other._waveform_key = bytes.fromhex("01110000")
|
||||
other.record_type = "Waveform"
|
||||
other.peak_values = PeakValues(tran=0.01, vert=0.02, long=0.03, peak_vector_sum=0.04, micl=None)
|
||||
db.insert_events([other], serial="BE9441", device_family="series3",
|
||||
waveform_records={"01110000": {"filename": "K441LTOF.ZJ0H"}})
|
||||
waveform_records={"01110000": {"filename": "K441LTOF.ZJ0W"}})
|
||||
|
||||
broken = bytes(_broken(lambda r, i: r.__setitem__(i + 1, 0x81))) # no validated record
|
||||
ev, rec = store.save_imported_bw(broken, source_path=Path(ZI0.name))
|
||||
@@ -189,6 +194,31 @@ def test_an_imported_event_with_only_an_estimate_does_not_overwrite_its_neighbou
|
||||
waveform_records={ev._waveform_key.hex(): rec}) == (0, 1)
|
||||
with sqlite3.connect(str(db.db_path)) as c:
|
||||
assert c.execute("SELECT blastware_filename, peak_vector_sum FROM events").fetchall() == \
|
||||
[("K441LTOF.ZJ0H", 0.04)]
|
||||
[("K441LTOF.ZJ0W", 0.04)]
|
||||
assert (tmp_path / "waveforms" / "BE9441" / "K441LTOF.ZI0").exists() # the data is kept
|
||||
assert any("not merged" in r.message for r in caplog.records)
|
||||
|
||||
|
||||
def test_an_estimate_beside_a_histogram_at_its_second_is_stored_alongside(tmp_path):
|
||||
# A waveform and a histogram may share a second (#51): the estimate is its
|
||||
# own row, and the histogram is untouched.
|
||||
import sqlite3
|
||||
from minimateplus.models import Event, PeakValues, Timestamp
|
||||
from sfm.database import SeismoDb
|
||||
from sfm.waveform_store import WaveformStore
|
||||
store, db = WaveformStore(tmp_path / "waveforms"), SeismoDb(tmp_path / "seismo_relay.db")
|
||||
hist = Event(index=0)
|
||||
hist.timestamp = Timestamp(raw=b"", flag=0x10, year=2026, unknown_byte=0, month=10, day=26,
|
||||
hour=14, minute=23, second=43)
|
||||
hist._waveform_key = bytes.fromhex("01110000")
|
||||
hist.record_type = "Histogram"
|
||||
hist.peak_values = PeakValues(tran=0.01, vert=0.02, long=0.03, peak_vector_sum=0.04, micl=None)
|
||||
db.insert_events([hist], serial="BE9441", device_family="series3",
|
||||
waveform_records={"01110000": {"filename": "K441LTOF.ZJ0H"}})
|
||||
broken = bytes(_broken(lambda r, i: r.__setitem__(i + 1, 0x81))) # no validated record
|
||||
ev, rec = store.save_imported_bw(broken, source_path=Path(ZI0.name))
|
||||
assert db.insert_events([ev], serial="BE9441", device_family="series3",
|
||||
waveform_records={ev._waveform_key.hex(): rec}) == (1, 0)
|
||||
with sqlite3.connect(str(db.db_path)) as c:
|
||||
rows = c.execute("SELECT record_type, peak_vector_sum FROM events ORDER BY record_type").fetchall()
|
||||
assert rows[0] == ("Histogram", 0.04) and rows[1][0] == "Waveform"
|
||||
@@ -206,3 +206,292 @@ def test_mic_peak_in_psi():
|
||||
# Blastware: MicL PSPL 106.0 dB(L) = 20 uPa x 10^(106/20) = 3.990 Pa = 5.787e-4 psi.
|
||||
ev = read_blastware_file(_FIX / "decode-checker-10-29-26/M529L4XQ.R30H")
|
||||
assert ev.peak_values.micl == pytest.approx(5.787e-4, rel=0.01)
|
||||
|
||||
|
||||
# ── The geophone range: Normal or Sensitive ─────────────────────────────────
|
||||
# In the setup's channel blocks, the byte 29 after each geophone label is the
|
||||
# range: 0x00 Normal (10 in/s full scale), 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), measured 2026-11-01. Until
|
||||
# now SFM assumed Normal, so a Sensitive event read 8x high.
|
||||
|
||||
from minimateplus.event_file_io import _setup_name_at # noqa: E402
|
||||
|
||||
|
||||
@pytest.mark.parametrize("rel,want", [
|
||||
("bw-import-fields-10-29-26/R352HIUI.F40W", 0),
|
||||
("geo-range-11-01-26/K557J1KB.RQ0W", 1), # waveform, XML GeoRange 1.250
|
||||
("geo-range-11-01-26/M010HR6K.OA0H", 1), # histogram, XML GeoRange 1.250
|
||||
])
|
||||
def test_geo_range_comes_from_the_file(rel, want):
|
||||
assert read_blastware_file(_FIX / rel).geo_range == want
|
||||
|
||||
|
||||
# (file, Blastware's Tran / Vert / Long PPV and Peak Vector Sum, from its XML)
|
||||
@pytest.mark.parametrize("rel,peaks", [
|
||||
("geo-range-11-01-26/K557J1KB.RQ0W", ("0.019", "0.055", "0.019", "0.061")),
|
||||
("geo-range-11-01-26/M010HR6K.OA0H", ("0.008", "0.009", "0.005", "0.009")),
|
||||
])
|
||||
def test_sensitive_range_peaks_are_not_8x(rel, peaks):
|
||||
pv = read_blastware_file(_FIX / rel).peak_values
|
||||
for got, want in zip((pv.tran, pv.vert, pv.long, pv.peak_vector_sum), peaks):
|
||||
assert abs(got - float(want)) <= 0.0005 + 1e-9, (got, want)
|
||||
|
||||
|
||||
def test_channels_that_disagree_give_no_range_and_a_problem():
|
||||
raw = bytearray((_FIX / "geo-range-11-01-26/K557J1KB.RQ0W").read_bytes())
|
||||
i = raw.find(b"\x00\x00\x01Vert", _setup_name_at(bytes(raw)))
|
||||
raw[i + 3 + 29] = 0x00 # Vert Normal, Tran / Long Sensitive
|
||||
ev = decode_blastware_bytes(bytes(raw), name=None)
|
||||
assert ev.geo_range is None
|
||||
assert any("range" in p for p in ev.decode_problems)
|
||||
|
||||
|
||||
def test_the_h5_takes_the_events_range(tmp_path):
|
||||
import h5py
|
||||
from sfm import event_hdf5
|
||||
ev = read_blastware_file(_FIX / "geo-range-11-01-26/K557J1KB.RQ0W")
|
||||
event_hdf5.write_event_hdf5(tmp_path / "e.h5", ev, serial="BE9557")
|
||||
with h5py.File(tmp_path / "e.h5", "r") as f:
|
||||
assert f.attrs["geo_range"] == "sensitive"
|
||||
assert abs(float(abs(f["samples/Vert"][:]).max()) - 0.055) <= 0.0005 + 1e-9
|
||||
|
||||
|
||||
def test_an_imported_file_and_the_backfill_store_its_range(tmp_path):
|
||||
import h5py
|
||||
import scripts.backfill_sidecars as backfill
|
||||
from sfm import event_hdf5
|
||||
from sfm.waveform_store import WaveformStore
|
||||
|
||||
src = _FIX / "geo-range-11-01-26/K557J1KB.RQ0W"
|
||||
store = WaveformStore(tmp_path / "waveforms")
|
||||
ev, _ = store.save_imported_bw(src.read_bytes(), source_path=src)
|
||||
h5 = store.hdf5_path_for("BE9557", src.name)
|
||||
with h5py.File(h5, "r") as f:
|
||||
assert f.attrs["geo_range"] == "sensitive"
|
||||
|
||||
# A file stored before this fix carries "normal"; the backfill rewrites it.
|
||||
event_hdf5.write_event_hdf5(h5, ev, serial="BE9557", geo_range="normal")
|
||||
assert backfill.main(["--store-root", str(tmp_path / "waveforms"),
|
||||
"--db-path", str(tmp_path / "seismo_relay.db"), "--force"]) == 0
|
||||
with h5py.File(h5, "r") as f:
|
||||
assert f.attrs["geo_range"] == "sensitive"
|
||||
|
||||
|
||||
# ── The job number ──────────────────────────────────────────────────────────
|
||||
# Series IV's 0x1A layout again: report flags at k - 9 (bit 0x02 = job number
|
||||
# shown) and the number, uint16 BE, at k - 8, kept while switched off. The flag
|
||||
# matches Blastware's JobNumber on 2,997 / 2,997 DL2 events that print one and
|
||||
# 66,986 / 66,986 that don't (measured 2026-11-02). Every printed value is 1;
|
||||
# hidden ones hold real numbers (802, 1012, 1013, 622).
|
||||
|
||||
@pytest.mark.parametrize("rel,enabled,number", [
|
||||
("decode-checker-10-29-26/T1905KDW.5F0W", True, 1), # XML JobNumber 1
|
||||
("job-number-11-02-26/T438I4V5.DJ0H", True, 1), # histogram, XML JobNumber 1
|
||||
("job-number-11-02-26/K557I55Y.I20H", False, 802), # no JobNumber in the XML
|
||||
("decode-checker-10-29-26/R352HFZ7.530H", False, 1),
|
||||
])
|
||||
def test_job_number_comes_from_the_file(rel, enabled, number):
|
||||
pi = read_blastware_file(_FIX / rel).project_info
|
||||
assert (pi.job_number_enabled, pi.job_number) == (enabled, number)
|
||||
|
||||
|
||||
def test_the_h5_carries_the_job_number(tmp_path):
|
||||
import h5py
|
||||
from sfm import event_hdf5
|
||||
ev = read_blastware_file(_FIX / "job-number-11-02-26/K557I55Y.I20H")
|
||||
event_hdf5.write_event_hdf5(tmp_path / "e.h5", ev, serial="BE9557")
|
||||
with h5py.File(tmp_path / "e.h5", "r") as f:
|
||||
assert (bool(f.attrs["job_number_enabled"]), int(f.attrs["job_number"])) == (False, 802)
|
||||
|
||||
|
||||
# ── Histograms: the codec follows the record type, and loud short blocks ─────
|
||||
_HD = "histogram-decode-11-02-26"
|
||||
|
||||
|
||||
def test_a_histogram_body_goes_to_the_histogram_codec():
|
||||
# BE9440, 2018, 5 s intervals. The waveform codec accepted this body when
|
||||
# it was tried first, and returned ~5x too many "samples". Blastware's
|
||||
# report: 6,976 intervals, PPV 0.180 / 0.195 / 0.215, PVS 0.270, start
|
||||
# 2018-04-26 07:53:41.
|
||||
ev = read_blastware_file(_FIX / _HD / "K440HDXX.XH0H")
|
||||
assert ev.record_type == "Histogram"
|
||||
assert len(ev.raw_samples["Tran"]) == 6976
|
||||
pv = ev.peak_values
|
||||
for got, want in zip((pv.tran, pv.vert, pv.long, pv.peak_vector_sum),
|
||||
(0.180, 0.195, 0.215, 0.270)):
|
||||
assert abs(got - want) <= 0.0005 + 1e-9, (got, want)
|
||||
ts = ev.timestamp
|
||||
assert (ts.year, ts.month, ts.day) == (2018, 4, 26)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("name,n", [
|
||||
("T193KR5M.X90H", 9), # 2 s; its 8th interval is 5.8 in/s of vector sum
|
||||
("K440HA3C.JM0H", 8), # 5 s
|
||||
])
|
||||
def test_a_loud_interval_does_not_hide_a_short_histogram(name, n):
|
||||
# A short (one-block) sub-minute histogram is found by its record layout.
|
||||
# An interval louder than 1.28 in/s has a vector sum squared above 65,535,
|
||||
# which the old "first word is 0000" test rejected.
|
||||
ev = read_blastware_file(_FIX / _HD / name)
|
||||
assert len(ev.raw_samples["Tran"]) == n
|
||||
|
||||
|
||||
# ── The footer is the file's last 26 bytes ──────────────────────────────────
|
||||
# Every DL2 file ends in a valid footer (70,041 / 70,041: 0e 08 and two valid
|
||||
# times). A few also hold an earlier "0e 08 + date" record, ~1.1 KB before
|
||||
# the end: the stop time followed by zeros. The first-match footer search took
|
||||
# it, so a histogram started at its own stop -- a day late on BE9558's daily
|
||||
# histograms -- and a waveform lost its stop and its trigger time.
|
||||
_FT = "footer-11-03-26"
|
||||
|
||||
|
||||
def test_a_histogram_starts_at_its_footer_not_at_an_earlier_stop_record():
|
||||
ts = read_blastware_file(_FIX / _FT / "K558L9XP.FK0H").timestamp
|
||||
# Blastware: 2025-10-07 19:14:08 (SFM read 2025-10-08 19:10:01)
|
||||
assert (ts.year, ts.month, ts.day, ts.hour, ts.minute) == (2025, 10, 7, 19, 14)
|
||||
|
||||
|
||||
def test_a_histogram_with_the_early_record_gets_its_time():
|
||||
ts = read_blastware_file(_FIX / _FT / "T003LCYV.JD0H").timestamp
|
||||
# Blastware: 2025-12-05 18:04:25 (SFM had no time at all)
|
||||
assert ts is not None
|
||||
assert (ts.year, ts.month, ts.day, ts.hour, ts.minute) == (2025, 12, 5, 18, 4)
|
||||
|
||||
|
||||
def test_a_waveform_with_the_early_record_is_timed_from_its_trigger():
|
||||
ev = read_blastware_file(_FIX / _FT / "K440I4LG.JK0W")
|
||||
ts = ev.timestamp
|
||||
# Blastware: 2019-09-26 11:14:08, record time 4 s (SFM read the stop, 11:14:12)
|
||||
assert (ts.year, ts.month, ts.day, ts.hour, ts.minute, ts.second) == (2019, 9, 26, 11, 14, 8)
|
||||
assert ev.timestamp_source in ("event_record", "estimate")
|
||||
|
||||
|
||||
# ── Group A: identity, battery, trigger ─────────────────────────────────────
|
||||
# The identity block before the setup name is what the live read gets from
|
||||
# SUB FE (DeviceInfo): serial k-202, firmware k-147, DSP version k-138,
|
||||
# calibration date k-132 and "by" k-128, manufacturer k-94, model k-72; the
|
||||
# battery is a uint16 of hundredths of a volt at k-190. Measured against every
|
||||
# DL2 report 2026-11-03 (serial, version, calibration 69,983 / 69,983).
|
||||
import datetime as _dt # noqa: E402
|
||||
|
||||
_SF = "setup-fields-11-03-26"
|
||||
|
||||
|
||||
def test_the_identity_block_is_read():
|
||||
# Blastware: BE18189, "V 10.72-8.17 MiniMate Plus",
|
||||
# "February 20, 2019 by Instantel", "6.8 Volts"
|
||||
ev = read_blastware_file(_FIX / _SF / "T189HUD6.QE0W")
|
||||
di = ev.device_info
|
||||
assert (di.serial, di.firmware_version, di.dsp_version, di.manufacturer, di.model) == (
|
||||
"BE18189", "S338.17", "10.72", "Instantel", "MiniMate Plus")
|
||||
assert di.firmware_minor == 17
|
||||
assert (di.calibration_date, di.calibrated_by) == (_dt.date(2019, 2, 20), "Instantel")
|
||||
assert abs(ev.battery_volts - 6.8) <= 0.05 + 1e-9
|
||||
|
||||
|
||||
def test_the_battery_is_kept_exact():
|
||||
# Blastware prints "6.3 Volts" for a stored 6.25: it rounds half up.
|
||||
assert read_blastware_file(_FIX / _SF / "K558L4KY.440H").battery_volts == 6.25
|
||||
|
||||
|
||||
# (file, Blastware's Trigger as the event record's bitmask, geo level in/s,
|
||||
# mic level psi or None, mic a trigger source)
|
||||
@pytest.mark.parametrize("rel,by,geo,mic_psi,mic_src", [
|
||||
(f"{_SF}/T189HUD6.QE0W", 0x0008, 0.050, 0.0072, True), # MicL, 128.0 dB(L)
|
||||
(f"{_SF}/T438L713.RY0W", 0x0002, 0.500, 0.0100, True), # Vert, 130.8 dB(L)
|
||||
(f"{_SF}/M529I6LG.3Y0W", 0x0004, 0.050, 0.005, True), # Long, 0.005 psi(L)
|
||||
("bw-import-fields-10-29-26/R352HIUI.F40W", 0x0001, 0.400, None, False), # Tran
|
||||
("decode-checker-10-29-26/T1905KDW.5F0W", 0x0200, None, None, None), # Manual
|
||||
])
|
||||
def test_the_trigger_comes_from_the_file(rel, by, geo, mic_psi, mic_src):
|
||||
ev = read_blastware_file(_FIX / rel)
|
||||
assert ev.triggered_by == by
|
||||
if geo is not None:
|
||||
assert abs(ev.trigger_level_geo - geo) <= 0.0005 + 1e-9
|
||||
if mic_psi is not None:
|
||||
assert abs(ev.trigger_level_mic_psi - mic_psi) <= 0.0005 + 1e-9 # psi to 3 places, as printed
|
||||
if mic_src is not None:
|
||||
assert bool(ev.trigger_sources & 0x08) == mic_src
|
||||
assert (ev.record_stop_mode, ev.mic_type) == (0, 2) # Fixed, Linear Weighting
|
||||
|
||||
|
||||
def test_the_h5_carries_the_setup_fields(tmp_path):
|
||||
import h5py
|
||||
from sfm import event_hdf5
|
||||
ev = read_blastware_file(_FIX / _SF / "T189HUD6.QE0W")
|
||||
event_hdf5.write_event_hdf5(tmp_path / "e.h5", ev, serial="BE18189")
|
||||
with h5py.File(tmp_path / "e.h5", "r") as f:
|
||||
a = f.attrs
|
||||
assert abs(float(a["battery_volts"]) - 6.8) <= 0.05 + 1e-9
|
||||
assert (int(a["triggered_by"]), int(a["trigger_sources"])) == (0x0008, ev.trigger_sources)
|
||||
assert abs(float(a["trigger_level_geo_ips"]) - 0.050) <= 0.0005 + 1e-9
|
||||
assert abs(float(a["trigger_level_mic_psi"]) - ev.trigger_level_mic_psi) < 1e-9
|
||||
assert (str(a["firmware_version"]), str(a["dsp_version"]), str(a["calibration_date"])) == (
|
||||
"S338.17", "10.72", "2019-02-20")
|
||||
|
||||
|
||||
# ── Group B: histogram interval detail ──────────────────────────────────────
|
||||
# Interval size is the setup's uint16 seconds at k - 40 (Series IV [8:10]); the
|
||||
# stop is the footer's. Each interval keeps its half-periods and its vector sum
|
||||
# (PVS^2). Frequency = (sample rate / 2) / half-period: 527,915 / 527,915 cells
|
||||
# at 1024 sps and 1,725 / 1,725 at 2048 (#50: the old fixed 512 halved every
|
||||
# 2048-sps frequency). Measured 2026-11-03.
|
||||
from minimateplus.histogram_codec import half_period_to_hz # noqa: E402
|
||||
|
||||
_HB = "histogram-intervals-11-03-26"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("rel,sr,freqs,pvs,stop", [
|
||||
# Blastware: 1 minute; Tran 32, Vert 47, Long 14, MicL 47 Hz; PVS 1.358; stop 12:49:33
|
||||
("decode-checker-10-29-26/T004JTRF.ME0H", 1024,
|
||||
{"Tran": 32, "Vert": 47, "Long": 14, "MicL": 47}, 1.358, (2022, 12, 28, 12, 49, 33)),
|
||||
# Blastware: 1 minute at 2048 sps; Tran 15.5, Vert 64, Long 17.7, MicL 51 Hz; PVS 2.644
|
||||
(f"{_HB}/T190LD42.T00H", 2048,
|
||||
{"Tran": 15.5, "Vert": 64, "Long": 17.7, "MicL": 51}, 2.644, (2025, 12, 8, 13, 29, 37)),
|
||||
])
|
||||
def test_histogram_interval_detail_comes_from_the_file(rel, sr, freqs, pvs, stop):
|
||||
ev = read_blastware_file(_FIX / rel)
|
||||
assert (ev.sample_rate, ev.histogram_interval_sec) == (sr, 60)
|
||||
for ch, hz in freqs.items():
|
||||
got = half_period_to_hz(ev.interval_half_periods[ch][0], ev.sample_rate)
|
||||
d = 1 if isinstance(hz, float) else 0
|
||||
assert abs(got - hz) <= 0.5 * 10 ** -d + 1e-9, (ch, got, hz)
|
||||
assert abs(ev.interval_pvs[0] - pvs) <= 0.0005 + 1e-9
|
||||
t = ev.stop_time
|
||||
assert (t.year, t.month, t.day, t.hour, t.minute, t.second) == stop
|
||||
|
||||
|
||||
def test_the_h5_carries_the_interval_detail(tmp_path):
|
||||
import h5py
|
||||
from sfm import event_hdf5
|
||||
ev = read_blastware_file(_FIX / _HB / "T190LD42.T00H")
|
||||
event_hdf5.write_event_hdf5(tmp_path / "e.h5", ev, serial="BE18190")
|
||||
with h5py.File(tmp_path / "e.h5", "r") as f:
|
||||
assert int(f.attrs["histogram_interval_sec"]) == 60
|
||||
assert list(f["intervals/half_period/Vert"][:]) == ev.interval_half_periods["Vert"]
|
||||
assert abs(float(f["intervals/pvs_ips"][0]) - 2.644) <= 0.0005 + 1e-9
|
||||
|
||||
|
||||
# ── #51: a histogram's start and stop from its own event record ─────────────
|
||||
# The footer's start runs a second early on 97%. The histogram's event record
|
||||
# (lead 00 28 05 00, source 04 00, marker fe f5) holds Blastware's start and
|
||||
# stop: 63,490 / 63,490 DL2 histograms each (2026-11-03).
|
||||
|
||||
def test_a_histogram_starts_at_its_event_records_start():
|
||||
ev = read_blastware_file(_FIX / "decode-checker-10-29-26/T004JTRF.ME0H")
|
||||
t, s = ev.timestamp, ev.stop_time
|
||||
# Blastware: start 2022-12-28 12:49:26, stop 12:49:33
|
||||
assert (t.year, t.month, t.day, t.hour, t.minute, t.second) == (2022, 12, 28, 12, 49, 26)
|
||||
assert (s.hour, s.minute, s.second) == (12, 49, 33)
|
||||
assert ev.timestamp_source == "event_record"
|
||||
|
||||
|
||||
def test_a_histogram_without_its_record_falls_back_to_the_footer_and_says_so():
|
||||
raw = bytearray((_FIX / "decode-checker-10-29-26/T004JTRF.ME0H").read_bytes())
|
||||
i = raw.find(b"\xfe\xf5")
|
||||
raw[i] = 0x00 # break the record's marker
|
||||
ev = decode_blastware_bytes(bytes(raw), name=None)
|
||||
assert ev.timestamp_source == "footer"
|
||||
assert ev.timestamp.second == 25 # the footer's start, a second early
|
||||
assert any("histogram event record" in p for p in ev.decode_problems)
|
||||
@@ -83,9 +83,12 @@ def test_a_waveform_read_under_another_name_keeps_its_time(tmp_path):
|
||||
datetime.datetime(2026, 10, 26, 14, 23, 42)
|
||||
|
||||
|
||||
def test_a_histogram_keeps_the_binarys_window_start():
|
||||
assert blastware_filename_time(HISTOGRAM.name) != datetime.datetime(2026, 5, 10, 19, 4, 50)
|
||||
assert _dt(read_blastware_file(HISTOGRAM).timestamp) == datetime.datetime(2026, 5, 10, 19, 4, 50)
|
||||
def test_a_histogram_now_agrees_with_its_filename():
|
||||
# #51: the start comes from the histogram's own event record, which is
|
||||
# Blastware's -- and so the filename's. The footer's window start (19:04:50)
|
||||
# was a second early.
|
||||
assert blastware_filename_time(HISTOGRAM.name) == datetime.datetime(2026, 5, 10, 19, 4, 51)
|
||||
assert _dt(read_blastware_file(HISTOGRAM).timestamp) == datetime.datetime(2026, 5, 10, 19, 4, 51)
|
||||
|
||||
|
||||
def test_an_import_no_longer_lands_a_waveform_on_its_histogram_twins_row(tmp_path):
|
||||
|
||||
@@ -28,7 +28,8 @@ def test_find_pairs_dedupes_and_pairs(tmp_path):
|
||||
def test_check_event_rows_and_attrs():
|
||||
out = run.check_event("M007HVWF.K30W", str(FIX / "M007HVWF.K30W"), str(FIX / "M007HVWF_K30W_XML.XML"))
|
||||
assert out["attrs"]["range"] == "1.250" and out["attrs"]["model"] == "MiniMate Plus"
|
||||
assert any(r[0] == "TranPPV" and r[1] == "mismatch" for r in out["results"])
|
||||
# clipped at its own 1.250 ceiling: accepted under the saturation carve-out
|
||||
assert ["TranPPV", "accepted"] in [r[:2] for r in out["results"]]
|
||||
|
||||
|
||||
def test_bad_input_is_one_error_row(tmp_path):
|
||||
@@ -128,7 +129,7 @@ def test_compare_to_marks_the_summary(tmp_path):
|
||||
def test_file_prints_one_event(tmp_path, capsys):
|
||||
assert run.main([str(FIX), str(FIX), "--file", "M007HVWF.K30W"]) == 0
|
||||
out = capsys.readouterr().out
|
||||
assert any("TranPPV" in line and "mismatch" in line for line in out.splitlines())
|
||||
assert any("TranPPV" in line and "accepted" in line for line in out.splitlines())
|
||||
|
||||
|
||||
# ── Final review fixes ──────────────────────────────────────────────────────
|
||||
|
||||
+207
-11
@@ -39,7 +39,8 @@ def test_event_type_comes_from_the_bytes():
|
||||
|
||||
def test_report_fields_stay_blank():
|
||||
s = sfm_side((FIX / "T1905KDW.5F0W").read_bytes())
|
||||
for tag in ("TranZCFreq", "TranPeakAcceleration", "BatteryLevel", "Calibration", "TranTestResults"):
|
||||
# (BatteryLevel and Calibration are read since 2026-11-03: test_the_setup_fields_match_blastware)
|
||||
for tag in ("TranZCFreq", "TranPeakAcceleration", "TranTestResults"):
|
||||
assert s.values.get(tag) is None
|
||||
|
||||
|
||||
@@ -66,7 +67,7 @@ def test_full_waveform_row_verdicts():
|
||||
"notes", "samples.Tran", "samples.Vert", "samples.Long"):
|
||||
assert res[f].verdict == "match", (f, res[f])
|
||||
assert res["TranZCFreq"].verdict in ("sfm_blank", "no_reference")
|
||||
assert res["BatteryLevel"].verdict == "sfm_blank"
|
||||
assert res["BatteryLevel"].verdict == "match" # 6.72 V, printed "6.7 Volts"
|
||||
assert "FileName" not in res
|
||||
|
||||
|
||||
@@ -86,9 +87,8 @@ def test_an_extra_reference_row_is_a_mismatch_with_detail():
|
||||
assert "row_length_disagreements=1" in res["samples.Tran"].detail
|
||||
|
||||
|
||||
def test_job_number_na_and_above_range():
|
||||
res = _results("T1905KDW.5F0W")
|
||||
assert res["JobNumber"].verdict == "sfm_blank"
|
||||
def test_zc_frequency_na_and_above_range():
|
||||
res = _results("T1905KDW.5F0W") # its JobNumber: test_the_job_number_matches_blastware
|
||||
assert res["TranZCFreq"].verdict == "no_reference" # N/A
|
||||
assert res["VertZCFreq"].verdict == "sfm_blank" # >100, SFM has no flag yet
|
||||
|
||||
@@ -96,7 +96,7 @@ def test_job_number_na_and_above_range():
|
||||
def test_mic_units_pick_the_conversion():
|
||||
res = _results("T004JTRF.ME0H") # psi(L)
|
||||
assert res["intervals.MicL Peak dB(L)"].verdict in ("match", "mismatch")
|
||||
assert res["intervals.Tran Freq Hz"].verdict == "sfm_blank"
|
||||
assert res["intervals.Tran Freq Hz"].verdict == "match" # read since 2026-11-03
|
||||
fields = set(_results("R352HFZ7.530H")) # no mic
|
||||
assert not any(f.startswith(("samples.MicL", "intervals.MicL")) for f in fields)
|
||||
|
||||
@@ -114,8 +114,23 @@ def test_clipped_normal_range_is_accepted():
|
||||
assert (res[f].verdict, res[f].carveout) == ("accepted", "saturation")
|
||||
|
||||
|
||||
def test_sensitive_range_8x_stays_a_mismatch():
|
||||
def test_a_clipped_sensitive_event_is_accepted_at_its_own_ceiling():
|
||||
# SFM reads the 1.250 range from the file; the clipped channels sit at 1.2506.
|
||||
res = _results("M007HVWF.K30W", CARVEOUTS)
|
||||
assert res["GeoRange"].verdict == "match" and res["samples.Tran"].verdict == "match"
|
||||
for f in ("TranPPV", "PeakVectorSum"):
|
||||
assert (res[f].verdict, res[f].carveout) == ("accepted", "saturation")
|
||||
|
||||
|
||||
def test_the_carveout_never_accepts_an_8x_value():
|
||||
# What SFM produced while it assumed Normal on a Sensitive unit: 8x high.
|
||||
# The saturation rule must leave it a mismatch.
|
||||
raw = (FIX / "M007HVWF.K30W").read_bytes()
|
||||
side = sfm_side(raw)
|
||||
side.values.update(TranPPV=10.005, VertPPV=10.005, LongPPV=10.005, PeakVectorSum=17.33)
|
||||
side.geo_ips_per_count = 10.0 / 32000
|
||||
res = {r.field: r for r in compare(side, parse_xml_report_file(FIX / "M007HVWF_K30W_XML.XML"),
|
||||
CARVEOUTS)}
|
||||
assert res["TranPPV"].verdict == "mismatch" and res["samples.Tran"].verdict == "mismatch"
|
||||
assert res["PeakVectorSum"].verdict == "mismatch"
|
||||
|
||||
@@ -133,13 +148,14 @@ def test_pvs_carveout_needs_oorange_from_blastware():
|
||||
|
||||
|
||||
def test_pvs_carveout_needs_the_clipped_channel_at_the_ceiling():
|
||||
# 1.250 range, Blastware PVS OORANGE; an UNclipped channel's 8x value happens to land
|
||||
# in the 1.250 band -- that must not let SFM's 8x vector sum through.
|
||||
# 1.250 range, Blastware PVS OORANGE, but no channel Blastware clamped: an
|
||||
# UNclipped channel's 8x value landing in the 1.250 band must not let a vector
|
||||
# sum through, even one inside the sqrt(3) bound.
|
||||
raw = (FIX / "M007HVWF.K30W").read_bytes()
|
||||
ref = parse_xml_report_file(FIX / "M007HVWF_K30W_XML.XML")
|
||||
ref.scalars["TranPPV"] = "0.157"
|
||||
ref.scalars.update(TranPPV="0.157", VertPPV="0.157", LongPPV="0.157")
|
||||
side = sfm_side(raw)
|
||||
side.values["TranPPV"] = 1.256
|
||||
side.values.update(TranPPV=1.256, PeakVectorSum=2.0)
|
||||
res = {r.field: r for r in compare(side, ref, CARVEOUTS)}
|
||||
assert res["PeakVectorSum"].verdict == "mismatch"
|
||||
|
||||
@@ -147,3 +163,183 @@ def test_pvs_carveout_needs_the_clipped_channel_at_the_ceiling():
|
||||
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"
|
||||
|
||||
|
||||
def test_a_sensitive_range_event_now_matches():
|
||||
gr = FIX.parent / "geo-range-11-01-26"
|
||||
raw = (gr / "K557J1KB.RQ0W").read_bytes()
|
||||
res = {r.field: r for r in compare(sfm_side(raw), parse_xml_report_file(gr / "K557J1KB_RQ0W_XML.XML"))}
|
||||
for f in ("GeoRange", "TranPPV", "VertPPV", "LongPPV", "PeakVectorSum",
|
||||
"samples.Tran", "samples.Vert", "samples.Long"):
|
||||
assert res[f].verdict == "match", (f, res[f])
|
||||
|
||||
|
||||
def test_the_job_number_matches_blastware():
|
||||
assert _results("T1905KDW.5F0W", CARVEOUTS)["JobNumber"].verdict == "match"
|
||||
|
||||
|
||||
def test_a_hidden_job_number_is_not_reported():
|
||||
# Flag off: Blastware prints no JobNumber, and SFM's side reports none either.
|
||||
assert sfm_side((FIX / "R352HFZ7.530H").read_bytes()).job_number is None
|
||||
|
||||
|
||||
def test_a_job_number_only_sfm_shows_is_a_mismatch():
|
||||
side = sfm_side((FIX / "R352HFZ7.530H").read_bytes())
|
||||
side.job_number = "1"
|
||||
res = {r.field: r for r in compare(side, parse_xml_report_file(FIX / "R352HFZ7_530H_XML.XML"))}
|
||||
assert res["JobNumber"].verdict == "mismatch"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("stem", ["T193KR5M.X90H", "K440HA3C.JM0H"])
|
||||
def test_a_loud_short_histogram_matches_blastware(stem):
|
||||
hd = FIX.parent / "histogram-decode-11-02-26"
|
||||
res = {r.field: r for r in compare(sfm_side((hd / stem).read_bytes()),
|
||||
parse_xml_report_file(hd / (stem.replace(".", "_", 1) + "_XML.XML")),
|
||||
CARVEOUTS)}
|
||||
for f in ("NumberofIntervals", "intervals.Tran Peak in/s", "intervals.Vert Peak in/s",
|
||||
"intervals.Long Peak in/s"):
|
||||
assert res[f].verdict == "match", (f, res[f])
|
||||
|
||||
|
||||
def _count_case(extra, drop_rows=0):
|
||||
jf = FIX.parent / "job-number-11-02-26"
|
||||
ref = parse_xml_report_file(jf / "T438I4V5_DJ0H_XML.XML")
|
||||
rows = len(ref.intervals)
|
||||
ref.scalars["NumberofIntervals"] = f"{rows + extra}.00"
|
||||
if drop_rows:
|
||||
ref.intervals = ref.intervals[:-drop_rows]
|
||||
side = sfm_side((jf / "T438I4V5.DJ0H").read_bytes())
|
||||
return {r.field: r for r in compare(side, ref, CARVEOUTS)}["NumberofIntervals"]
|
||||
|
||||
|
||||
def test_blastware_counting_the_monitoring_time_is_accepted():
|
||||
# Blastware's Number of Intervals is (stop - start) / interval. When the
|
||||
# unit never wrote the last minute, Blastware's own table lists one block
|
||||
# fewer, and SFM matches the table (T193KSWP.FF0H: 2,880 against 2,850 rows).
|
||||
r = _count_case(30)
|
||||
assert (r.verdict, r.carveout) == ("accepted", "interval-count-is-duration")
|
||||
|
||||
|
||||
def test_the_count_carveout_needs_blastwares_own_table_to_agree_with_sfm():
|
||||
assert _count_case(30, drop_rows=1).verdict == "mismatch"
|
||||
|
||||
|
||||
_GROUP_A = ("SerialNumber", "Version", "Calibration", "BatteryLevel", "Trigger",
|
||||
"GeoTriggerLevel", "MicTriggerLevel", "RecordStopMode", "Microphone", "Units")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("stem,printed", [
|
||||
("T189HUD6.QE0W", set(_GROUP_A)),
|
||||
("T438L713.RY0W", set(_GROUP_A)), # 130.8 dB(L): 0.01 psi at 6895 Pa/psi
|
||||
("K558L4KY.440H", {"SerialNumber", "Version", "Calibration", "BatteryLevel",
|
||||
"Microphone", "Units"}), # histogram; battery 6.25 -> "6.3"
|
||||
])
|
||||
def test_the_setup_fields_match_blastware(stem, printed):
|
||||
sf = FIX.parent / "setup-fields-11-03-26"
|
||||
res = {r.field: r for r in compare(sfm_side((sf / stem).read_bytes()),
|
||||
parse_xml_report_file(sf / (stem.replace(".", "_", 1) + "_XML.XML")),
|
||||
CARVEOUTS)}
|
||||
assert printed <= set(res)
|
||||
for f in printed:
|
||||
assert res[f].verdict == "match", (f, res[f])
|
||||
|
||||
|
||||
def test_a_manual_trigger_matches():
|
||||
res = _results("T1905KDW.5F0W", CARVEOUTS)
|
||||
assert res["Trigger"].verdict == "match"
|
||||
|
||||
|
||||
def _units_case(sfm_units):
|
||||
sf = FIX.parent / "setup-fields-11-03-26"
|
||||
ref = parse_xml_report_file(sf / "T189HUD6_QE0W_XML.XML")
|
||||
ref.scalars["Units"] = "in/s and psi(L)"
|
||||
side = sfm_side((sf / "T189HUD6.QE0W").read_bytes())
|
||||
if sfm_units is not None:
|
||||
side.values["Units"] = sfm_units
|
||||
return {r.field: r for r in compare(side, ref, CARVEOUTS)}["Units"]
|
||||
|
||||
|
||||
def test_dB_or_psi_is_blastwares_display_preference():
|
||||
# Blastware writes its report in its PC's current preference; DL2's reports
|
||||
# switch fleet-wide in 61 clean runs by write time, and no byte in the file
|
||||
# tells them apart.
|
||||
r = _units_case(None)
|
||||
assert (r.verdict, r.carveout) == ("accepted", "units-is-a-display-preference")
|
||||
|
||||
|
||||
def test_the_units_carveout_still_needs_the_mic():
|
||||
assert _units_case("in/s").verdict == "mismatch"
|
||||
|
||||
|
||||
def test_a_mic_trigger_level_is_read_in_the_unit_it_is_printed_in():
|
||||
# K441LA17.IN0W: Units "in/s and psi(L)", yet MicTriggerLevel "125.0 dB(L)".
|
||||
# The printed value states its own unit; that is the one to compare in.
|
||||
sf = FIX.parent / "setup-fields-11-03-26"
|
||||
ref = parse_xml_report_file(sf / "T189HUD6_QE0W_XML.XML") # 128.0 dB(L)
|
||||
ref.event_units = "in/s and psi(L)"
|
||||
res = {r.field: r for r in compare(sfm_side((sf / "T189HUD6.QE0W").read_bytes()), ref, CARVEOUTS)}
|
||||
assert res["MicTriggerLevel"].verdict == "match", res["MicTriggerLevel"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("path", [FIX / "T004JTRF.ME0H",
|
||||
FIX.parent / "histogram-intervals-11-03-26" / "T190LD42.T00H"])
|
||||
def test_histogram_interval_detail_matches_blastware(path):
|
||||
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 ("IntervalSize", "HistogramStopDate", "HistogramStopTime", "intervals.Tran Freq Hz",
|
||||
"intervals.Vert Freq Hz", "intervals.Long Freq Hz", "intervals.MicL Freq Hz",
|
||||
"intervals.Geo PVS in/s"):
|
||||
assert res[f].verdict == "match", (f, res[f])
|
||||
|
||||
|
||||
@pytest.mark.parametrize("halfp,sr,want", [
|
||||
(0, 1024, "N/A"), (5, 1024, ">100"), (5, 2048, ">200"), (1024, 1024, "<1.0"),
|
||||
])
|
||||
def test_blastwares_interval_frequency_words(halfp, sr, want):
|
||||
# N/A for a half-period of 0, ">100" / ">200" at 5 samples or fewer, "<1.0"
|
||||
# below 1 Hz -- on ~3.1 M DL2 cells, 2026-11-03.
|
||||
from minimateplus.decode_check import interval_frequency
|
||||
assert interval_frequency(halfp, sr) == want
|
||||
|
||||
|
||||
def _pvs_oorange(unclamp=False):
|
||||
hb = FIX.parent / "histogram-intervals-11-03-26"
|
||||
ref = parse_xml_report_file(hb / "T190LD5Q_LD0H_XML.XML") # Geo PVS OORANGE, Vert OORANGE
|
||||
if unclamp:
|
||||
cols = ref.interval_columns
|
||||
t, row = ref.intervals[0]
|
||||
row = list(row)
|
||||
row[cols.index("Vert Peak in/s")] = "0.500"
|
||||
ref.intervals[0] = (t, row)
|
||||
res = {r.field: r for r in compare(sfm_side((hb / "T190LD5Q.LD0H").read_bytes()), ref, CARVEOUTS)}
|
||||
return res["intervals.Geo PVS in/s"]
|
||||
|
||||
|
||||
def test_an_oorange_interval_vector_sum_is_saturation():
|
||||
# Blastware prints OORANGE for an interval's vector sum above the range when
|
||||
# it clamped a channel in that interval: 17 / 17 DL2 cells, SFM's sum
|
||||
# 10.01 .. 17.33 (= sqrt 3 x 10.005).
|
||||
r = _pvs_oorange()
|
||||
assert (r.verdict, r.carveout) == ("accepted", "saturation")
|
||||
|
||||
|
||||
def test_an_oorange_vector_sum_needs_a_clamped_channel_in_that_interval():
|
||||
assert _pvs_oorange(unclamp=True).verdict == "mismatch"
|
||||
|
||||
|
||||
_PEAK_TIMES = ("TranPeakDate", "TranPeakTime", "VertPeakDate", "VertPeakTime", "LongPeakDate",
|
||||
"LongPeakTime", "PeakVectorSumDate", "PeakVectorSumTime", "MicLDate", "MicLTime")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("path", [FIX / "T004JTRF.ME0H", # 1 interval
|
||||
FIX.parent / "footer-11-03-26" / "T003LCYV.JD0H", # 145
|
||||
FIX.parent / "histogram-decode-11-02-26" / "K440HA3C.JM0H"]) # 8 x 5 s
|
||||
def test_histogram_times_match_blastware(path):
|
||||
# #51: an interval's printed time is its end -- start + (n + 1) x interval,
|
||||
# capped at the stop -- and each peak's date and time are its interval's:
|
||||
# 2,308,524 / 2,308,524 rows and 2,000 / 2,000 peaks each on a DL2 sample.
|
||||
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 (("HistogramStartDate", "HistogramStartTime", "HistogramStopTime", "intervals.Time")
|
||||
+ tuple(t for t in _PEAK_TIMES if t in ref.scalars)):
|
||||
assert res[f].verdict == "match", (f, res[f])
|
||||
@@ -0,0 +1,123 @@
|
||||
"""An event is identified by unit + time + type (#51).
|
||||
|
||||
The events table was unique on (serial, timestamp): one event per unit per
|
||||
second. A unit records a waveform and a histogram in the same second
|
||||
legitimately -- 209 times in prod's 2026-09-30 store once histograms carry
|
||||
Blastware's start -- so the key is now (serial, timestamp, record_type).
|
||||
Agreed with Brian 2026-11-03.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
import os
|
||||
import sqlite3
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
from minimateplus.models import Event, PeakValues, Timestamp # noqa: E402
|
||||
from sfm.database import SeismoDb # noqa: E402
|
||||
|
||||
T = "2026-08-25T10:33:29"
|
||||
T_EARLY = "2026-08-25T10:33:28"
|
||||
|
||||
|
||||
def _event(when: str, rtype: str, key: str = "0111646a", pvs: float = 0.5) -> Event:
|
||||
t = datetime.datetime.fromisoformat(when)
|
||||
ev = Event(index=0)
|
||||
ev.timestamp = Timestamp(raw=b"", flag=0x10, year=t.year, unknown_byte=0, month=t.month,
|
||||
day=t.day, hour=t.hour, minute=t.minute, second=t.second)
|
||||
ev._waveform_key = bytes.fromhex(key)
|
||||
ev.record_type = rtype
|
||||
ev.peak_values = PeakValues(tran=0.1, vert=0.2, long=0.3, peak_vector_sum=pvs, micl=None)
|
||||
return ev
|
||||
|
||||
|
||||
def _store(db: SeismoDb, ev: Event, filename: str) -> tuple:
|
||||
return db.insert_events([ev], serial="BE12844", device_family="series3",
|
||||
waveform_records={ev._waveform_key.hex(): {"filename": filename}})
|
||||
|
||||
|
||||
def _rows(db: SeismoDb) -> list:
|
||||
with sqlite3.connect(str(db.db_path)) as c:
|
||||
c.row_factory = sqlite3.Row
|
||||
return [dict(r) for r in c.execute(
|
||||
"SELECT * FROM events ORDER BY timestamp, record_type")]
|
||||
|
||||
|
||||
def _key_sql(db: SeismoDb) -> str:
|
||||
with sqlite3.connect(str(db.db_path)) as c:
|
||||
return c.execute("SELECT sql FROM sqlite_master WHERE type='table' AND name='events'"
|
||||
).fetchone()[0]
|
||||
|
||||
|
||||
def test_a_waveform_and_a_histogram_can_share_a_second(tmp_path):
|
||||
db = SeismoDb(tmp_path / "seismo_relay.db")
|
||||
assert _store(db, _event(T, "Waveform"), "N844LQHB.ZT0W") == (1, 0)
|
||||
assert _store(db, _event(T, "Histogram", key="0111700a"), "N844LQHB.ZT0H") == (1, 0)
|
||||
assert [(r["timestamp"], r["record_type"]) for r in _rows(db)] == [
|
||||
(T, "Histogram"), (T, "Waveform")]
|
||||
|
||||
|
||||
def test_the_same_event_twice_is_still_one_row(tmp_path):
|
||||
db = SeismoDb(tmp_path / "seismo_relay.db")
|
||||
_store(db, _event(T, "Histogram"), "N844LQHB.ZT0H")
|
||||
assert _store(db, _event(T, "Histogram", pvs=0.8), "N844LQHB.ZT0H") == (0, 1)
|
||||
(row,) = _rows(db)
|
||||
assert row["peak_vector_sum"] == 0.8 # the upsert refreshed it
|
||||
|
||||
|
||||
def test_a_histogram_moves_onto_its_waveforms_second(tmp_path):
|
||||
# What the release backfill does: the histogram was stored a second early;
|
||||
# its corrected start is the waveform's second. The row moves in place.
|
||||
db = SeismoDb(tmp_path / "seismo_relay.db")
|
||||
_store(db, _event(T, "Waveform"), "N844LQHB.ZT0W")
|
||||
_store(db, _event(T_EARLY, "Histogram", key="0111700a"), "N844LQHB.ZS0H")
|
||||
(before,) = [r for r in _rows(db) if r["record_type"] == "Histogram"]
|
||||
assert _store(db, _event(T, "Histogram", key="0111700a"), "N844LQHB.ZS0H") == (0, 1)
|
||||
rows = _rows(db)
|
||||
assert [(r["timestamp"], r["record_type"]) for r in rows] == [(T, "Histogram"), (T, "Waveform")]
|
||||
assert [r["id"] for r in rows if r["record_type"] == "Histogram"] == [before["id"]]
|
||||
|
||||
|
||||
def test_a_re_typed_event_is_corrected_in_place(tmp_path):
|
||||
# Before v0.33.0 the type came from the filename; a re-import with the
|
||||
# file's own type must correct that row, not add a second one.
|
||||
db = SeismoDb(tmp_path / "seismo_relay.db")
|
||||
_store(db, _event(T, "Waveform"), "N844LQHB.ZT0H")
|
||||
(before,) = _rows(db)
|
||||
_store(db, _event(T, "Histogram"), "N844LQHB.ZT0H")
|
||||
(row,) = _rows(db)
|
||||
assert (row["id"], row["record_type"]) == (before["id"], "Histogram")
|
||||
|
||||
|
||||
def test_an_old_database_is_migrated_keeping_every_row_and_id(tmp_path):
|
||||
db = SeismoDb(tmp_path / "seismo_relay.db")
|
||||
_store(db, _event(T, "Waveform"), "N844LQHB.ZT0W")
|
||||
_store(db, _event(T_EARLY, "Histogram", key="0111700a"), "N844LQHB.ZS0H")
|
||||
old_rows = _rows(db)
|
||||
with sqlite3.connect(str(db.db_path)) as c: # put the old key back
|
||||
sql = _key_sql(db).replace("UNIQUE(serial, timestamp, record_type)",
|
||||
"UNIQUE(serial, timestamp)")
|
||||
c.executescript(f"""
|
||||
ALTER TABLE events RENAME TO events_new_key;
|
||||
{sql};
|
||||
INSERT INTO events SELECT * FROM events_new_key;
|
||||
DROP TABLE events_new_key;
|
||||
""")
|
||||
assert "UNIQUE(serial, timestamp)" in _key_sql(db)
|
||||
|
||||
db = SeismoDb(tmp_path / "seismo_relay.db") # opening migrates
|
||||
assert "UNIQUE(serial, timestamp, record_type)" in _key_sql(db)
|
||||
assert _rows(db) == old_rows
|
||||
assert _store(db, _event(T, "Histogram", key="0111700b"), "N844LQHC.ZT0H") == (1, 0)
|
||||
with sqlite3.connect(str(db.db_path)) as c:
|
||||
names = {r[0] for r in c.execute(
|
||||
"SELECT name FROM sqlite_master WHERE type='index' AND tbl_name='events'")}
|
||||
assert {"idx_events_serial", "idx_events_timestamp"} <= names
|
||||
|
||||
|
||||
def test_reopening_keeps_the_new_key(tmp_path):
|
||||
SeismoDb(tmp_path / "seismo_relay.db")
|
||||
db = SeismoDb(tmp_path / "seismo_relay.db")
|
||||
assert "UNIQUE(serial, timestamp, record_type)" in _key_sql(db)
|
||||
@@ -22,7 +22,7 @@ from minimateplus.models import Event
|
||||
|
||||
FIX = Path(__file__).parent / "fixtures"
|
||||
WAVEFORM = FIX / "fft-oracle-2026-09-14" / "N844LQHB.ZT0W" # footer ts2 = 2026-08-25 10:33:32
|
||||
HISTOGRAM = FIX / "ts-fix" / "K441LKZU.C30H" # window start 2026-05-10 19:04:50
|
||||
HISTOGRAM = FIX / "ts-fix" / "K441LKZU.C30H" # start 2026-05-10 19:04:51 (#51)
|
||||
|
||||
|
||||
def _tuple(ts):
|
||||
@@ -39,9 +39,10 @@ def test_waveform_timestamp_is_exact_trigger_from_binary():
|
||||
|
||||
def test_histogram_timestamp_is_window_start_unchanged():
|
||||
ev = read_blastware_file(HISTOGRAM)
|
||||
# Histogram event time = the window start (ts1); must NOT get the waveform
|
||||
# ts2 treatment (that would land ~24 h off).
|
||||
assert _tuple(ev.timestamp) == (2026, 5, 10, 19, 4, 50), _tuple(ev.timestamp)
|
||||
# Histogram event time = the window start, from its own event record (#51;
|
||||
# the footer's ts1 is a second earlier); must NOT get the waveform ts2
|
||||
# treatment (that would land ~24 h off).
|
||||
assert _tuple(ev.timestamp) == (2026, 5, 10, 19, 4, 51), _tuple(ev.timestamp)
|
||||
|
||||
|
||||
def test_a_report_does_not_override_the_instruments_event_record():
|
||||
|
||||
@@ -525,18 +525,28 @@ from minimateplus.histogram_codec import ( # noqa: E402
|
||||
|
||||
|
||||
def _mk_multi_block(intervals, seg=0, ctr=256):
|
||||
"""Build one multi-interval block from a list of 8-tuples."""
|
||||
b = bytearray()
|
||||
b += bytes([0x00, seg])
|
||||
b += int(ctr).to_bytes(2, "little")
|
||||
b += bytes([0x0A, 0x00])
|
||||
"""Build one multi-interval block from a list of 8-tuples (T, Tf, V, Vf, L,
|
||||
Lf, M, Mf) in the measured layout: big-endian from byte 5, each record ending
|
||||
in its PVS squared -- here the largest geo peak squared, which every real
|
||||
record is consistent with (34,502,955 / 34,502,955 DL2 intervals)."""
|
||||
b = bytearray([0x00, seg]) + int(ctr).to_bytes(2, "little") + bytes([0x0A])
|
||||
for iv in intervals:
|
||||
for v in iv:
|
||||
b += int(v).to_bytes(2, "big")
|
||||
b += (max(iv[0], iv[2], iv[4]) ** 2).to_bytes(4, "big")
|
||||
b += bytes(7)
|
||||
assert len(b) == 12 + 20 * len(intervals)
|
||||
return bytes(b)
|
||||
|
||||
|
||||
def _mk_legacy_le_block(intervals, seg=0, ctr=256):
|
||||
"""The retracted model's bytes: 8 x uint16 LITTLE-endian from byte 6."""
|
||||
b = bytearray([0x00, seg]) + int(ctr).to_bytes(2, "little") + bytes([0x0A, 0x00])
|
||||
for iv in intervals:
|
||||
for v in iv:
|
||||
b += int(v).to_bytes(2, "little")
|
||||
b += (0).to_bytes(2, "little")
|
||||
b += (5).to_bytes(2, "little")
|
||||
b += (0).to_bytes(2, "little") + (5).to_bytes(2, "little")
|
||||
b += bytes(6)
|
||||
assert len(b) == 12 + 20 * len(intervals)
|
||||
return bytes(b)
|
||||
|
||||
|
||||
@@ -569,7 +579,7 @@ def test_multi_interval_values_are_not_little_endian_from_byte_6():
|
||||
tests/test_histogram_multi_interval.py for the measured cases.
|
||||
"""
|
||||
ivs = [(0x0100, 1, 1, 1, 1, 1, 1, 1), (1, 1, 1, 1, 1, 1, 1, 1)]
|
||||
body = _mk_multi_block(ivs) + _mk_multi_block(ivs, ctr=257)
|
||||
body = _mk_legacy_le_block(ivs) + _mk_legacy_le_block(ivs, ctr=257)
|
||||
assert walk_multi_interval_blocks(body)[0]["t_peak"] != 0x0100
|
||||
|
||||
|
||||
@@ -685,3 +695,10 @@ def test_third_block_still_rejects_a_mismatched_counter():
|
||||
+ _mk_multi_block(ivs, ctr=257)
|
||||
+ _mk_multi_block(ivs, ctr=999)) # counter jumps — not consecutive
|
||||
assert detect_multi_interval_stride(body) != 12 + 20 * 4
|
||||
|
||||
|
||||
def test_half_period_to_hz_follows_the_sample_rate():
|
||||
"""#50: (sample rate / 2) / half-period, measured on 1,725 / 1,725 cells at
|
||||
2048 sps; the old fixed 512 halved them."""
|
||||
assert half_period_to_hz(6, 2048) == pytest.approx(1024 / 6)
|
||||
assert half_period_to_hz(6) == pytest.approx(512 / 6) # 1024 sps by default
|
||||
@@ -56,7 +56,7 @@ def _block(records, *, ctr=0x0100, seg=0, mic=True, last=False) -> bytes:
|
||||
assert len(r) == (8 if mic else 6)
|
||||
for v in r:
|
||||
b += int(v).to_bytes(2, "big")
|
||||
b += b"\x00\x00" + b"\x00\x2d" # the zero word, then one more
|
||||
b += (max(r[0], r[2], r[4]) ** 2).to_bytes(4, "big") # PVS², consistent as on real data
|
||||
b += b"\xfc\xf3\x00" + (TERMINAL if last else b"\x5a\x0a\x00\x00")
|
||||
return bytes(b)
|
||||
|
||||
|
||||
Reference in new issue
Block a user