- 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>
18 lines
1.1 KiB
Python
18 lines
1.1 KiB
Python
"""Given label window and a level window, print Sellette 4/5 corr_x, corr_y in noises from the level, measurement by
|
|
measurement (every Nth) and the max of the 3-point running median."""
|
|
import sys, statistics as st
|
|
sys.path.insert(0, "tools/scripts")
|
|
import data
|
|
a, b, l0, l1 = map(data.parse_time, sys.argv[1:5])
|
|
S = data.load("data/FLORIDA/")
|
|
T0, T1 = data.parse_time("2026-10-11T09:45Z"), data.parse_time("2026-10-22T03:15Z")
|
|
for s in ("Sellette 4", "Sellette 5"):
|
|
for c in ("corr_x", "corr_y"):
|
|
v = [m[c] for m in data.filter_window(S[s], T0, T1) if m[c] is not None]
|
|
n = st.median(abs(x - y) for x, y in zip(v, v[1:]))
|
|
l = st.median(m[c] for m in data.filter_window(S[s], l0, l1) if m[c] is not None)
|
|
iv = [((m[c] - l) / n, data.iso(m["t"])[11:16]) for m in data.filter_window(S[s], a, b) if m[c] is not None]
|
|
sm = [(st.median(k for k, _ in iv[i - 1:i + 2]), iv[i][1]) for i in range(1, len(iv) - 1)]
|
|
mx = max(sm, key=lambda x: abs(x[0])) if sm else None
|
|
print(f"{s} {c}: n={len(iv)} max3med={mx[0]:+.1f}@{mx[1]} | " + " ".join(f"{t}:{k:+.0f}" for k, t in iv) if mx else f"{s} {c}: few")
|