Files
Support-Agent/labeling/auto/revue-croisee/2026-11-04/finition/wildstrubel/outils/serie.py
T

15 lines
650 B
Python
Raw Normal View History

"""Pose brute de la caméra et température du boîtier, à chaque recalage, entre T1 et T2.
Usage : serie.py T1 T2 (ex. 2026-10-04T12:00 2026-10-05T16:00)"""
import sys
from datetime import datetime
sys.path.insert(0, sys.path[0])
from donnees import pose, temperature
a, b = (datetime.fromisoformat(x) for x in sys.argv[1:3])
P, T = pose(), temperature()
print('heure pan tilt rot scale(-1)e6 temp')
for t in sorted(P):
if a <= t <= b:
p = P[t]
h = t.replace(minute=0)
print(f'{t:%m-%d %H:%M} {p[0]:+.5f} {p[1]:+.5f} {p[2]:+.5f} {(p[3]-1)*1e6:+8.1f} {T.get(h, float("nan")):.1f}')