Files
maximeandClaude Opus 5.5 6fbd7510b7 Etiqueteur: October labels for 8 stations; its folder moves to labeling/auto/etiqueteur/, analyses and scripts versioned (D-126)
Labels for CLARIDEN, FLORIDA, JUNGFRAU (gaps 06-20.10, 26.10-01.11), LENZSPITZE,
NIEDERHORN, NORDEND, SNCF01, WILDSTRUBEL. Figures and tool outputs stay out of git.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 16:33:41 +01:00

18 lines
948 B
Python

"""Température (sensor_thermal_deg_c) et tension aux heures de mesure (00,04,...,20 UTC), du 2026-10-14 au 2026-11-01."""
import csv, glob
def serie(name):
out = {}
for f in sorted(glob.glob(f"data/BREITHORN/metrics/BREITHORN_{name}_2026_1*.csv")):
for r in csv.DictReader(open(f)):
out[r["time_utc"][:13]] = r["metric"]
return out
T = serie("sensor_thermal_deg_c")
V = serie("BusVoltage")
days = sorted({k[:10] for k in T if "2026-10-14" <= k[:10] <= "2026-11-01"})
print("jour " + " ".join(f"{h:02d}h" .rjust(6) for h in range(0, 24, 2)) + " min max Vmin")
for d in days:
vals = [T.get(f"{d} {h:02d}", "") for h in range(0, 24, 2)]
day = [float(T[k]) for k in T if k.startswith(d) and T[k] != ""] or [0]
vv = [float(V[k]) for k in V if k.startswith(d) and V[k] != ""]
print(d + " " + " ".join(f"{v:>6}" for v in vals) + f" {min(day):5.1f} {max(day):5.1f} {min(vv) if vv else '':>5}")