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:
1 parent
ddb17c2189
commit
764af7d8ec
132 files changed
+125
-9256
No files matched your search
@@ -0,0 +1,42 @@
|
||||
# Requalification of the long labels: NIEDERHORN, 2026-10-01 → 2026-11-01 (UTC)
|
||||
|
||||
Evidence (in `work/`):
|
||||
- `inventory.txt`: `inventory.py` over the window, with the rejected measurements of each sensor.
|
||||
- `ranges_k5.txt` and `ranges_k5_roll1d.txt`: `ranges.py --k 5` on corr_x, corr_y and their mm, without and with `--rolling 1d`, for the 12 labelled targets.
|
||||
- `ranges_k5_roll1d_neighbours.txt`: the same for 8 healthy targets.
|
||||
- `specific_month.txt`: `scripts/specific.py`, the deviation of each target once the median of 16 healthy targets is removed, compared with the same figure for the healthy targets (leave-one-out).
|
||||
- `scripts/daynight.py`: the hour-of-day profile against the night level, printed in the terminal, not saved.
|
||||
|
||||
The month has 721 measurement instants. All 12 labels are Target issue labels of missing points. Under the new rules such a label is kept only in two cases: the target is rejected almost always, or the episode moves the other curves beyond the noise. For the partial ones I also checked the target's own kept points: do they leave 5 noises more than those of the healthy targets?
|
||||
|
||||
- **NIEDERHORN-2** (e03): **kept** as is. Rejected 721 / 721 (100 %); no corrected curve.
|
||||
- **NIEDERHORN-3** (e04): **kept** as is. Rejected 721 / 721 (100 %); no corrected curve.
|
||||
- **NIEDERHORN-4** (e05): **kept** as is. Rejected 721 / 721 (100 %); no corrected curve.
|
||||
- **NIEDERHORN-5** (e07): **kept** as is. Rejected 718 / 721 (almost 100 %); 3 isolated accepted points, within about 1 noise of each other.
|
||||
- **NIEDERHORN-6** (e08): **kept** as is. Rejected 720 / 721 (almost 100 %); a single accepted point.
|
||||
- **NIEDERHORN-7** (e11): **kept** as is. Rejected 721 / 721 (100 %); no corrected curve.
|
||||
- **NIEDERHORN-8** (e12): **kept** as is. Rejected 721 / 721 (100 %); no corrected curve.
|
||||
- **NIEDERHORN-9** (PWD_RMP_B15_017_C09): **removed**. Rejected 302 / 721 (42 %), at night only, and not a reference, so its rejections move no other curve.
|
||||
- Kept points with the healthy median removed: beyond 5 noises at 8 % of its measurements on corr_x and 27 % on corr_y, against 4–26 % and 5–36 % for the healthy targets. Its extreme corr_y deviation is −18 noises (−5.8 mm, 10-01 12:00); the healthy targets reach −29 to −60 noises (−5.7 to −11 mm) at the same kind of shared instant.
|
||||
- The "scattered daytime points that change level" after 28.10 are the afternoon rise of the daily thermal cycle: corr_y +13 to +16 of its own noises from 15:00 to 18:00 UTC (about +2.5 mm). Its neighbours of the same row do the same at the same hours (PWD_RMP_B12_017_C09 up to +11 noises, PWD_RMP_B15_018_C09 up to +6). These afternoons are covered by the Thermal displacement labels (NIEDERHORN-125, -129, -136, -139).
|
||||
- Result: missing points, nothing of its own beyond the noise.
|
||||
- **NIEDERHORN-10** (e01): **removed**. Rejected 260 / 721 (36 %), by day only, and not a reference.
|
||||
- Its afternoon rise on corr_x (hourly median up to about +15 noises at 18:00) has the same shape as its neighbours' e02 (up to +9) and e06 (up to +6.5), inside the daily thermal cycles.
|
||||
- Its largest point (+25 noises, 10-06 17:00) also shows on e02 (+22) and e06 (+18) at the same instant.
|
||||
- Result: no deviation of its own; missing points.
|
||||
- **NIEDERHORN-11** (PWD_IMP_B08_024_C09): **removed**. Rejected 154 / 721 (21 %): by day, mostly in the first half of the month.
|
||||
- With the healthy median removed it is beyond 5 noises at 17 % (corr_x) and 10 % (corr_y) of its measurements; the healthy targets show 4–26 % and 5–36 %.
|
||||
- Its extremes (−18 noises, −3.7 mm on corr_x on 10-24 19:00; −42 noises, −9.5 mm on corr_y on 10-29 10:00) fall at shared instants: −40 to −45 noises on PWD_RMP_B15_020_C09 and PWD_RMP_B15_019_C09 on 10-29 07:00–10:00, inside the Visibility label NIEDERHORN-127.
|
||||
- Result: missing points, near the threshold.
|
||||
- **NIEDERHORN-70** (PWD_RMP_B12_019_C09): **removed**. Rejected 142 / 390 over its range from 10-15 01:00 (36 %), at night, and not a reference.
|
||||
- Its largest kept point (corr_y +35 noises, +7.3 mm, 10-20 12:00) is the shared single measurement of the Obstruction label NIEDERHORN-93; the healthy PWD_RMP_B12_020_C09 jumps the same way (+36 noises) on such instants.
|
||||
- Elsewhere it is beyond 5 noises at 10 % (corr_x) and 8 % (corr_y) of its measurements, inside the healthy range.
|
||||
- **NIEDERHORN-79** (PWD_IMP_B07_018_C09): **removed**. Rejected 114 / 352 over its range from 10-17 03:00 (32 %), at night, and not a reference.
|
||||
- Its kept points (corr_x up to −18 noises, −3.7 mm) behave like its neighbour PWD_IMP_B07_017_C09 (−19 to −21 noises) and like the other healthy targets.
|
||||
- Result: no deviation of its own.
|
||||
|
||||
## Notes
|
||||
|
||||
- The catalogue still lists "a target rejected every night or every day" as a Target issue (`families.md`). The requalification instruction overrides it: a label of missing points stays only if the target is rejected almost always. The five removed targets are rejected 21 to 42 % of the time. Rejected targets that are not references do not affect the compensation.
|
||||
- My common-mode removal (the median of healthy targets spread across the image) does not cancel the shared movements fully. That is why the healthy targets still leave 5 noises often. So it was used only as a comparison between targets, never as an absolute threshold.
|
||||
- Sources read: `labeling/labeling-rules.md` in full; the Target issue and gap parts of `labeling/families.md`; the `ranges`, `overview` and conventions sections of `tools/GUIDE.md`; `tools/scripts/data.py` (`load`, `rejected`); `labeling/auto/NIEDERHORN.jsonl` (the October labels); the other long-label reports (BREITHORN, CLARIDEN, FLORIDA, JUNGFRAU, MICHIGAN) and FLORIDA's `analysis.md`. Not read: the NIEDERHORN period reports; no thumbnails were opened (the rates and curves were enough).
|
||||
@@ -0,0 +1,7 @@
|
||||
{"start": "2026-10-01T00:00Z", "end": "2026-11-01T00:00Z", "family": "Target issue", "description": "The target e03 is rejected at almost every measurement of the batch: its corrected curve does not exist (a few isolated points at most). Seen on the thumbnails: no spot is visible at its position on the thumbnails, day and night. It is not the weather: it is permanent, day and night. Act on the target or its configuration; ignore its curve.", "review": "2026-11-17"}
|
||||
{"start": "2026-10-01T00:00Z", "end": "2026-11-01T00:00Z", "family": "Target issue", "description": "The target e04 is rejected at almost every measurement of the batch: its corrected curve does not exist (a few isolated points at most). Seen on the thumbnails: no sharp spot is visible at its position on the thumbnails, only a small glow by day. It is not the weather: it is permanent, day and night. Act on the target or its configuration; ignore its curve.", "review": "2026-11-17"}
|
||||
{"start": "2026-10-01T00:00Z", "end": "2026-11-01T00:00Z", "family": "Target issue", "description": "The target e05 is rejected at almost every measurement of the batch: its corrected curve does not exist (a few isolated points at most). Seen on the thumbnails: no spot is visible at its position on the thumbnails, day and night. It is not the weather: it is permanent, day and night. Act on the target or its configuration; ignore its curve.", "review": "2026-11-17"}
|
||||
{"start": "2026-10-01T00:00Z", "end": "2026-11-01T00:00Z", "family": "Target issue", "description": "The target e07 is rejected at almost every measurement of the batch: its corrected curve does not exist (a few isolated points at most). Seen on the thumbnails: its spot is visible but between two very close neighbors; its recognition error stays above the threshold. It is not the weather: it is permanent, day and night. Act on the target or its configuration; ignore its curve.", "review": "2026-11-17"}
|
||||
{"start": "2026-10-01T00:00Z", "end": "2026-11-01T00:00Z", "family": "Target issue", "description": "The target e08 is rejected at almost every measurement of the batch: its corrected curve does not exist (a few isolated points at most). Seen on the thumbnails: its spot is visible but between two very close neighbors; its recognition error stays above the threshold. It is not the weather: it is permanent, day and night. Act on the target or its configuration; ignore its curve.", "review": "2026-11-17"}
|
||||
{"start": "2026-10-01T00:00Z", "end": "2026-11-01T00:00Z", "family": "Target issue", "description": "The target e11 is rejected at almost every measurement of the batch: its corrected curve does not exist (a few isolated points at most). Seen on the thumbnails: its spot is very large and dazzled at night, stuck to a small neighbor; its error stays above the threshold. It is not the weather: it is permanent, day and night. Act on the target or its configuration; ignore its curve.", "review": "2026-11-17"}
|
||||
{"start": "2026-10-01T00:00Z", "end": "2026-11-01T00:00Z", "family": "Target issue", "description": "The target e12 is rejected at almost every measurement of the batch: its corrected curve does not exist (a few isolated points at most). Seen on the thumbnails: its spot is very large and dazzled at night, stuck to a small neighbor; its error stays above the threshold. It is not the weather: it is permanent, day and night. Act on the target or its configuration; ignore its curve.", "review": "2026-11-17"}
|
||||
@@ -0,0 +1,13 @@
|
||||
# NIEDERHORN long labels: requalification
|
||||
|
||||
12 labels: 7 kept as is, 0 corrected, 5 removed.
|
||||
|
||||
Kept: NIEDERHORN-2 to -8. The targets e03, e04, e05, e07, e08, e11 and e12 are rejected at 718 to 721 of the 721 measurements of the month: almost always, a true Target issue. They have no curve, so no magnitude in mm.
|
||||
|
||||
Removed: these five targets are rejected only part of the time. None of them is a reference, so their rejections do not move the other targets. Their accepted points leave the noise no more than those of the healthy targets: these moments are the daily thermal cycles and the shared single measurements, which already have their own labels.
|
||||
|
||||
- **NIEDERHORN-9** (PWD_RMP_B15_017_C09): rejected at night, 42 % of the month. Its "scattered" afternoon points after 28.10 (about +2.5 mm vertically) follow the thermal cycle, like its neighbours.
|
||||
- **NIEDERHORN-10** (e01): rejected by day, 36 %. Its afternoon rise and its peak of 06.10 (+1 px; e01 has no mm conversion) are shared with e02 and e06.
|
||||
- **NIEDERHORN-11** (PWD_IMP_B08_024_C09): rejected by day, 21 %. Its largest swings (−3.7 mm horizontally, −9.5 mm vertically) fall on instants where the healthy targets move by 5 to 11 mm.
|
||||
- **NIEDERHORN-70** (PWD_RMP_B12_019_C09): rejected at night, 36 % from 15.10. Its largest point (+7.3 mm vertically, 20.10 12:00) is the shared obstruction NIEDERHORN-93, already labelled.
|
||||
- **NIEDERHORN-79** (PWD_IMP_B07_018_C09): rejected at night, 32 % from 17.10. Its swings (up to −3.7 mm horizontally) match its healthy neighbour PWD_IMP_B07_017_C09.
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"station": "NIEDERHORN",
|
||||
"start": "2026-10-01T00:00Z",
|
||||
"end": "2026-11-01T00:00Z",
|
||||
"hints": "Requalify the long labels of the station (work/existing.jsonl: those that no period analysis owns) under the new rules: keep, correct, remove."
|
||||
}
|
||||
@@ -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})")
|
||||
@@ -0,0 +1,22 @@
|
||||
"""Per sensor and column, over a window: accepted measurements by hour of day, median deviation from the night
|
||||
level (median of 20-03 UTC of the whole window), in own noises; and count of accepted points beyond K noises
|
||||
from the night level. Usage: daynight.py START END SENSORS [K]"""
|
||||
import sys, statistics
|
||||
sys.path.insert(0, "tools/scripts")
|
||||
import data, common
|
||||
start, end = data.parse_time(sys.argv[1]), data.parse_time(sys.argv[2])
|
||||
K = float(sys.argv[4]) if len(sys.argv) > 4 else 5
|
||||
by = data.load("data/NIEDERHORN")
|
||||
for s in sys.argv[3].split(","):
|
||||
ms = [m for m in data.filter_window(by[s], start, end)]
|
||||
for col in ("corr_x", "corr_y"):
|
||||
v = [(m["t"], m[col]) for m in ms if m[col] is not None]
|
||||
if len(v) < 10: continue
|
||||
noise = common.own_noise([x for _, x in v])
|
||||
night = [x for t, x in v if t.hour >= 20 or t.hour <= 3]
|
||||
lvl = statistics.median(night) if night else statistics.median([x for _, x in v])
|
||||
hours = {}
|
||||
for t, x in v: hours.setdefault(t.hour, []).append((x - lvl) / noise)
|
||||
prof = " ".join(f"{h:02d}:{statistics.median(hours[h]):+5.1f}({len(hours[h])})" for h in sorted(hours))
|
||||
beyond = sum(1 for _, x in v if abs(x - lvl) / noise > K)
|
||||
print(f"{s:20s} {col} n={len(v)} noise={noise:.4f} beyond{K:g}={beyond}\n {prof}")
|
||||
@@ -0,0 +1,46 @@
|
||||
"""For each studied target, over a window: corr minus the median of the healthy targets at the same instant
|
||||
(common mode removed), then its own noise (median abs consecutive diff of the raw corr, as ranges.py) and the
|
||||
measurements whose residual deviates from its rolling-1d median by more than K noises. Also the healthy targets,
|
||||
leave-one-out, for comparison. Usage: specific.py START END SENSOR[,SENSOR] [K]"""
|
||||
import sys, statistics
|
||||
from datetime import timedelta
|
||||
sys.path.insert(0, "tools/scripts")
|
||||
import data, common
|
||||
start, end = data.parse_time(sys.argv[1]), data.parse_time(sys.argv[2])
|
||||
studied = sys.argv[3].split(",")
|
||||
K = float(sys.argv[4]) if len(sys.argv) > 4 else 5
|
||||
by = data.load("data/NIEDERHORN")
|
||||
healthy = ["PWD_RMP_B12_020_C09","PWD_IMP_B08_025_C09","PWD_RMP_B15_018_C09","PWD_IMP_B07_017_C09","PWD_RMP_B12_018_C09",
|
||||
"PWD_RMP_B12_017_C09","PWD_RMP_B15_019_C09","PWD_RMP_B15_020_C09","PWD_RMP_B17_026_C09",
|
||||
"e02","e06","e09","e10","e13","e14","e15"]
|
||||
win = {s: [m for m in data.filter_window(ms, start, end)] for s, ms in by.items()}
|
||||
def series(s, col):
|
||||
return {m["t"]: m[col] for m in win[s] if m[col] is not None}
|
||||
for col in ("corr_x", "corr_y"):
|
||||
H = {s: series(s, col) for s in healthy}
|
||||
print(f"== {col} (K={K}, rolling ±1d, common mode = median of healthy targets)")
|
||||
for s in studied + healthy:
|
||||
own = series(s, col)
|
||||
if len(own) < 10:
|
||||
print(f"{s:22s} n={len(own)} (no curve)"); continue
|
||||
noise = common.own_noise([own[t] for t in sorted(own)])
|
||||
res = {}
|
||||
for t, v in own.items():
|
||||
others = [H[h][t] for h in healthy if h != s and t in H[h]]
|
||||
if len(others) >= 5:
|
||||
res[t] = v - statistics.median(others)
|
||||
ts = sorted(res)
|
||||
out = []
|
||||
for t in ts:
|
||||
nb = [res[u] for u in ts if u != t and abs((u - t).total_seconds()) <= 86400]
|
||||
if len(nb) < 5: continue
|
||||
d = (res[t] - statistics.median(nb)) / noise
|
||||
if abs(d) > K: out.append((t, d))
|
||||
ext = max(out, key=lambda x: abs(x[1])) if out else None
|
||||
kmm = None
|
||||
mm = [m for m in win[s] if m[col + "_mm"] is not None and m[col] not in (None, 0)]
|
||||
if mm: kmm = mm[0][col + "_mm"] / mm[0][col]
|
||||
days = len({t.date() for t, _ in out})
|
||||
e = f"extreme {ext[1]:+.1f} noises ({ext[1]*noise:+.3f} px" + (f", {ext[1]*noise*kmm:+.2f} mm" if kmm else "") + f") at {data.iso(ext[0])}" if ext else ""
|
||||
tag = "*" if s in studied else " "
|
||||
print(f"{tag}{s:22s} n={len(own):4d} noise={noise:.4f} beyond: {len(out):3d} ({100*len(out)/max(1,len(res)):4.1f} %) on {days:2d} days {e}")
|
||||
Reference in new issue
Block a user