auto: the WYOMING analysis of 6-16 November and its labels; three old analyses removed (LENZSPITZE 1 Nov, NORDEND 4-7 and 5 Nov)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4fd623b3e1
commit
528336f9e5
51 files changed
+433
-657
No files matched your search
@@ -0,0 +1,25 @@
|
||||
"""Per 15-min measurement: median raw x and y shift of the far group (target_03..target_13) from its window median,
|
||||
RD and target_01 raw x shift, and corr_x of target_14, between hours H1 and H2 of each day.
|
||||
|
||||
usage: python3 far.py START END H1 H2
|
||||
"""
|
||||
import statistics, sys
|
||||
sys.path.insert(0, "tools/scripts")
|
||||
import data
|
||||
|
||||
F = "data/WYOMING"
|
||||
start, end = data.parse_time(sys.argv[1]), data.parse_time(sys.argv[2])
|
||||
h1, h2 = int(sys.argv[3]), int(sys.argv[4])
|
||||
meas = data.load(F)
|
||||
FAR = ["target_%02d" % i for i in range(3, 14)]
|
||||
by = {s: {m["t"].replace(second=0, microsecond=0): m for m in v} for s, v in meas.items()}
|
||||
win = {s: [m for m in v if start <= m["t"] <= end] for s, v in meas.items()}
|
||||
base = {s: (statistics.median([m["x"] for m in v]), statistics.median([m["y"] for m in v])) for s, v in win.items()}
|
||||
for t in sorted(by["RD"]):
|
||||
if not (start <= t <= end and h1 <= t.hour < h2):
|
||||
continue
|
||||
fx = statistics.median([by[s][t]["x"] - base[s][0] for s in FAR if t in by[s]])
|
||||
fy = statistics.median([by[s][t]["y"] - base[s][1] for s in FAR if t in by[s]])
|
||||
rd = by["RD"][t]["x"] - base["RD"][0]
|
||||
c14 = by["target_14"][t]["corr_x"]
|
||||
print(t.strftime("%m-%dT%H:%M"), "far_dx %+.2f far_dy %+.2f RD_dx %+.2f c14 %s" % (fx, fy, rd, "-" if c14 is None else "%+.2f" % c14))
|
||||
Reference in new issue
Block a user