15 lines
983 B
Python
15 lines
983 B
Python
import sys, os; sys.path.insert(0, os.path.dirname(__file__)); import common
|
|
from datetime import timedelta
|
|
d = common.get(); P = d["pose"]; M = d["meas"]; TT = d["temp"]
|
|
day = common.T(sys.argv[1] + "T00:00Z"); h0, h1 = int(sys.argv[2]), int(sys.argv[3])
|
|
t = day + timedelta(hours=h0)
|
|
print("time pan*1e3 tilt*1e3 rot*1e3 scale-1(e5) sig0e4 | PR18cx PR16cx PR15cx PR18cy | temp | rejected")
|
|
while t <= day + timedelta(hours=h1):
|
|
p = P.get(t); m = M.get(t, {})
|
|
f = lambda s, c: ("%7.3f" % m[s][c]) if s in m and m[s][c] is not None else " - "
|
|
rej = ",".join(s for s, v in m.items() if v["rej"])
|
|
tp = TT.get(t)
|
|
print(common.fmt(t), " %7.2f %8.2f %7.2f %8.1f %5.1f |" % (p["pan"]*1e3, p["tilt"]*1e3, p["rotation"]*1e3, (p["scale"]-1)*1e5, (p["sigma0"] or 0)*1e4) if p else " no pose |",
|
|
f("PR18","corr_x"), f("PR16","corr_x"), f("PR15","corr_x"), f("PR18","corr_y"), "|", ("%.1f" % tp) if tp else "", "|", rej)
|
|
t += timedelta(minutes=15)
|