diff --git a/scripts/thermal_displacement.py b/scripts/thermal_displacement.py index 494a596..0aab52c 100644 --- a/scripts/thermal_displacement.py +++ b/scripts/thermal_displacement.py @@ -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]}) diff --git a/thresholds.md b/thresholds.md index 396ce12..703b9c1 100644 --- a/thresholds.md +++ b/thresholds.md @@ -52,7 +52,8 @@ The detectors must detect everything (the user, 2026-10-26, D-068): a setting ch | | `REPRO` | 0.6 | pure noise ≈ 0 | | | `SHARE` | 0.5 | NORDEND October just under (9/19) | | | `WARM` | 0.3 | —; only says there is a cycle (at least `MIN_WARM_HOURS` warm hours), its bounds are at `EDGE` | -| | `EDGE` | 0.1 | bounds of the wave: start and return of the profile, the return after midnight if needed, at most to the next day's start; wf-improve Thermal displacement, mod. 1, S1 (NORDEND, JUNGFRAU, SNCF01: labelled evenings and nights, the wave stopped at the last warm hour; at 0.15 and 0.2, fewer nights found, FLORIDA overflows in the evening anyway) | +| | `EDGE` | 0.1 | start of the wave, going back from the peak (the return: `RETURN`); wf-improve Thermal displacement, mod. 1, S1 (NORDEND, JUNGFRAU, SNCF01: labelled evenings and nights, the wave stopped at the last warm hour; at 0.15 and 0.2, fewer nights found, FLORIDA overflows in the evening anyway) | +| | `RETURN` | 0.05 | return of the wave, the return after midnight if needed, at most to the next day's start: the cooling tail is slower than the warm-up; wf-improve NORDEND 2026-11-05, S1 (NORDEND, JUNGFRAU: labelled nights after the return reached `EDGE`; `EDGE` itself at 0.05, start included, made FLORIDA and SNCF01 overflow) | | | `DAY_MATCH` | 0.5 | — | | | `NIGHT` | 8 h | — | | | `R2_MIN` | 0.3 | 24 h sinusoid: PS des Coudres 14 axes out of 22 above, CLARIDEN 0 out of 48; no longer asked for the camera (raw positions) since WILDSTRUBEL, batch 01 (1 target out of 7, the wrong pointings crush the fit) |