auto: the long labels requalified as analyses like the others, <STATION>_<start>_<end>/ with request.json (ex long-labels/<STATION>/); their labels carry the analysis; work/ out of git

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-18 07:16:59 +01:00
1 parent ddb17c2189
commit 764af7d8ec
132 files changed
+125 -9256

No files matched your search

@@ -0,0 +1,18 @@
"""Summarise ranges.py output: per sensor and column, measurements beyond k noises within [start,end), max |noises|, max |value|."""
import re, sys
f, start, end = sys.argv[1], sys.argv[2], sys.argv[3]
rx = re.compile(r'^(\S+?)\s*(2026-\d\d-\d\dT\d\d:\d\dZ)\s+(2026-\S+)\s+(\d+)\s+([+-][\d.e+-]+)\s+([+-]?[\d.]+)\s+(\S+)\s+(\d+)')
col = None; st = {}
for line in open(f):
m = re.match(r'^(corr_\w+): ranges', line)
if m: col = m.group(1); continue
m = rx.match(line)
if not m or col is None: continue
s, a, b, n, v, z = m.group(1), m.group(2), m.group(3), int(m.group(4)), float(m.group(5)), float(m.group(6))
if b < start or a >= end: continue
d = st.setdefault((s, col), [0, 0, 0.0, 0.0, 0])
d[0] += n; d[1] += 1
if abs(z) > abs(d[2]): d[2] = z; d[3] = v
d[4] = max(d[4], n)
for (s, c), d in sorted(st.items()):
print(f"{s:22s} {c:10s} meas>{5}: {d[0]:4d} in {d[1]:3d} ranges, longest {d[4]:3d}, extreme {d[2]:+6.1f} noises ({d[3]:+.3f})")