auto: labels requalified under the 5-noise rules (only what stands out from the noise): 32 analyses refined, the 6 paused periods verified, the long labels requalified with the fixes the period analysts found; 1153 -> 961 labels
- 32 analyses: each label kept, rewritten or removed by its analyst (section Requalification of the report; mm magnitudes where the targets have them) - SNCF01 x3, WILDSTRUBEL 2026-09-01 -> 2026-10-06 x3: verified from their existing labels under the new rules - long labels (no analysis): auto/analyses/long-labels/<STATION>/; NORDEND-169 and -195 run to 07/11, so NORDEND-283 and -284 (their continuation) are removed - reading-rules.md, stations.md: the citations of removed or rewritten labels point to their successor, or to [expert] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c779de7720
commit
ddb17c2189
321 files changed
+18464
-3426
No files matched your search
@@ -0,0 +1,37 @@
|
||||
"""Per-instant table: pose + corr of chosen sensors minus a reference night level (in own noises).
|
||||
usage: table.py START END SENSORS [every_n]"""
|
||||
import sys, statistics
|
||||
sys.path.insert(0, "tools/scripts")
|
||||
import data
|
||||
from datetime import timedelta
|
||||
S, E = data.parse_time(sys.argv[1]), data.parse_time(sys.argv[2])
|
||||
sens = sys.argv[3].split(",")
|
||||
every = int(sys.argv[4]) if len(sys.argv) > 4 else 1
|
||||
by = data.load("data/SNCF01")
|
||||
cam = {p["t"]: p for p in data.load_camera("data/SNCF01")}
|
||||
W0, W1 = data.parse_time("2026-10-22T10:30Z"), data.parse_time("2026-11-01T00:00Z")
|
||||
lvl, noi = {}, {}
|
||||
for s in sens:
|
||||
for c in ("corr_x", "corr_y"):
|
||||
v = [m[c] for m in by[s] if W0 <= m["t"] <= W1 and m[c] is not None]
|
||||
d = [abs(b - a) for a, b in zip(v, v[1:])]
|
||||
noi[s, c] = statistics.median(d)
|
||||
# level: median of night measurements 00-05 UTC in window
|
||||
n = [m[c] for m in by[s] if W0 <= m["t"] <= W1 and m[c] is not None and m["t"].hour < 5]
|
||||
lvl[s, c] = statistics.median(n)
|
||||
ts = sorted({m["t"] for m in by[sens[0]] if S <= m["t"] <= E})
|
||||
hdr = "time pan*1e3 tilt*1e3 rot*1e3 scl*1e6 | " + " ".join(f"{s}.x {s}.y" for s in sens)
|
||||
print(hdr)
|
||||
idx = {s: {m["t"]: m for m in by[s]} for s in sens}
|
||||
for i, t in enumerate(ts):
|
||||
if i % every: continue
|
||||
p = cam.get(t.replace(second=0, microsecond=0))
|
||||
ps = " ".join(f"{p[k]*f:7.2f}" for k, f in (("pan",1e3),("tilt",1e3),("rotation",1e3),("scale",1e6))) if p else " no pose"
|
||||
if p: ps = ps[:-7] + f"{(p['scale']-1)*1e6:7.0f}"
|
||||
cells = []
|
||||
for s in sens:
|
||||
m = idx[s].get(t)
|
||||
for c in ("corr_x", "corr_y"):
|
||||
v = m[c] if m else None
|
||||
cells.append(" r " if v is None else f"{(v-lvl[s,c])/noi[s,c]:+5.0f}")
|
||||
print(t.strftime("%d %H:%M"), ps, "|", " ".join(cells))
|
||||
Reference in new issue
Block a user