docs: histogram timing from its own event record (D.6.10), and the unit + time + type key
The reference gains D.6.10: the histogram's embedded event record (lead 00 28 05 00, source 04 00, marker fe f5, start, stop) and the interval and peak-time rules, with 'histograms stay on ts1' retracted in place. CLAUDE.md 'Where things stand' records the new events key -- any lookup by event needs the type -- and 47 of 88; the README roadmap follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
1 parent
d75dc6f5f1
commit
d4cfb07fce
3 files changed
+49
-13
No files matched your search
@@ -45,16 +45,27 @@ Read this first when picking the project back up.
|
||||
- **Byte layouts** of every field read from the file:
|
||||
`docs/instantel_protocol_reference.md` Appendix **D.6**.
|
||||
|
||||
**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.
|
||||
**Where the decoder stands on `dev`** (2026-11-03, run `20261103-213557`):
|
||||
**47 of 88 fields match on every event**, up from about 6 before v0.33.0.
|
||||
Everything below on `dev` shares one release and one backfill. Groups A, B
|
||||
and C are done, which also fixed #50 and #51.
|
||||
- 🔑 **Events are keyed unit + time + type:** `UNIQUE(serial, timestamp,
|
||||
record_type)` (#51, Migration 3 in `sfm/database.py`, `dev`).
|
||||
- A waveform and its histogram may share a second: 209 times in prod's
|
||||
2026-09-30 store.
|
||||
- Any lookup "by event" must include the type.
|
||||
- An untyped event still dedups against an untyped row.
|
||||
- Rehearsed on a copy of the prod snapshot: rows and ids kept, 9,852
|
||||
histograms moved +1 s in place.
|
||||
- ✅ **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
|
||||
- group B (`dev`, D.6.9): interval frequencies, vector sums, size, stop
|
||||
- group C (`dev`, D.6.10): histogram start and stop from the histogram's
|
||||
own event record, interval times, and the peak dates and times
|
||||
- 🔑 **"Units" means three different things — keep them apart** (reference
|
||||
D.6.6):
|
||||
- **Recorded data:** the mic samples and interval peaks in the file, as
|
||||
@@ -81,9 +92,6 @@ Read this first when picking the project back up.
|
||||
- ✅ **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; 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)
|
||||
@@ -91,7 +99,7 @@ Read this first when picking the project back up.
|
||||
- ~~**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.
|
||||
- ~~**C. #51 timing**~~ ✅ done on `dev`.
|
||||
- **D. Blastware's waveform calculations:** ZC frequency, acceleration,
|
||||
displacement, time of peak.
|
||||
- **E. Sensor check results.**
|
||||
|
||||
Reference in new issue
Block a user