improve: S1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-16 11:56:56 +01:00
1 parent e7c03e7304
commit 3ea6b3e419
2 files changed
+10 -6

No files matched your search

+8 -5
View File
@@ -17,9 +17,11 @@ Method, per target (global references excluded) and per axis (corr_x, corr_y):
"Thermal expansion" from the start to the hour of the largest gap from the night level (the peak), then "Thermal
contraction" until the return. The warm hours say there is a cycle (at least MIN_WARM_HOURS of them); its bounds
are read lower, at EDGE times the amplitude: the start, going back from the peak while the gap stays ≥ EDGE (at most
to the calmest hour of the profile); the return, going down from the peak until it goes back under EDGE, after
to the calmest hour of the profile); the return, going down from the peak until it goes back under RETURN, after
midnight if needed, at most to the next day's start: a slow return at night chains the cycles (wf-improve session
Thermal displacement, mod. 1, S1). The direction (a rising or falling curve) depends on the target's orientation:
Thermal displacement, mod. 1, S1). RETURN is half of EDGE: the warm-up is quick, the cooling tail slow, and the
labelled nights went on after the return reached EDGE (wf-improve NORDEND 2026-11-05, S1: NORDEND, JUNGFRAU; EDGE
itself at 0.05 made FLORIDA and SNCF01 overflow in the morning). The direction (a rising or falling curve) depends on the target's orientation:
it is not looked at, only the gap from the night level.
Reading: the cycle is almost everywhere in the raw positions (common mode) and the compensation removes it, except at
PS des Coudres where it stays in corr, with the same shape as in the raw positions.
@@ -62,7 +64,8 @@ DAY_MATCH = 0.5 # likeness of a day to the others to give it its episode
NIGHT = 8 # flattest consecutive hours of the profile = night level
R2_MIN = 0.3 # draft of 2026-10-24: PS des Coudres 14 axes out of 22 above, CLARIDEN 0 out of 48
MIN_WARM_HOURS = 2 # WILDSTRUBEL, batch 01; NIEDERHORN (E-005) has only one warm hour (noon)
EDGE = 0.1 # bounds of the wave (start, return), as a share of the amplitude; WARM says whether there is a cycle
EDGE = 0.1 # start of the wave, as a share of the amplitude; WARM says whether there is a cycle
RETURN = 0.05 # return of the wave, lower: the cooling tail is slow (wf-improve NORDEND 2026-11-05, S1)
SLIDE_K = 3 # common slide, in noises (median of the steps) away from the median of the day before
COLD = 4 # the camera moves with the cold, in one-hour noises away from the day before (pose, temperature)
W = 2 * math.pi / 86400 # angular frequency of a 24 h cycle, in rad/s
@@ -259,8 +262,8 @@ def _episodes(measurements, cols, name, camera):
a = peak # start: going back from the peak while the profile stays above EDGE, up to the calmest hour
while (a - 1) % 24 != rest and e[(a - 1) % 24] >= EDGE:
a -= 1
b = peak + 1 # return: until the profile goes back under EDGE, at most to the next start
while b < a + 24 and e[b % 24] >= EDGE:
b = peak + 1 # return: until the profile goes back under RETURN, at most to the next start
while b < a + 24 and e[b % 24] >= RETURN:
b += 1
last = max(m["t"] for ms in measurements.values() for m in ms)
days = sorted({d for c in concerned for d in c[3]})