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:
maximeandClaude Opus 5.5 committed 2026-11-17 12:25:48 +01:00
1 parent 4fd623b3e1
commit 528336f9e5
51 files changed
+433 -657

No files matched your search

@@ -0,0 +1,78 @@
# Labels: WYOMING, 2026-11-06T08:05Z → 2026-11-16T06:27Z (UTC)
Measurements of the range: 2026-11-06T08:15Z → 2026-11-16T06:15Z, 15 min, 951 instants. 16 sensors: 3 references (RD, target_12, target_13), 13 targets. No image quality metrics (export columns peak to snr empty). One image per hour, on the hour. Temperature: only `temperature_deg_c` is filled; I call it the housing temperature (`labeling-rules.md` §5). No earlier labels (`labeling/auto/WYOMING.jsonl` does not exist).
**Revision after the user's remark on the weather.** I added the MeteoSwiss hourly weather at Genève-Cointrin (station GVE, 4.9 km from "Genève", the place given for WYOMING in `~/aimsight-data/extraction/stations.txt`). I fetched it with `python3 weather/meteoswiss.py "Genève" 2026-11-05 2026-11-16T07:00` from `~/aimsight-data`, into `work/weather_geneve.csv` (05/11 → 16/11 07:00, for the scripts). Since the instructions now require it, the weather of the exact range is also in `work/weather.csv` (`python3 weather/meteoswiss.py "Genève" 2026-11-06T08:05 2026-11-16T06:27`; stderr: station GVE Genève / Cointrin, 4.9 km, 411 m; 238 hours). It is the weather a few km away; the images prevail. What it changed:
1. The housing temperature follows the **outside air** (r = +0.82, no lag) and not the sun (r = +0.02 with radiation, −0.11 with sunshine). Under the bise (13–14/11) the housing cools more than the air, and the shift of the nearest prism follows the housing then too (r = +0.96 with the housing, +0.83 with the air, best at lag 0 h). The moving element therefore follows the camera's own temperature within the hour, which a massive pier would not. This strengthens "thermal movement of the camera mount" for the 8 cycles.
2. (Withdrawn after the expert's review: the agitation episodes are no longer labelled, see §1.) The agitation of the far prisms follows the **cold of the air** (r = −0.63 with the air temperature, +0.05 with the wind). It hits only the long, low sight lines over the river. I now label it apart, as 2 **Visibility** episodes (turbulence over the warmer water, "consistent with"). The one-measurement jump of target_12/13 at 14/11 21:00 is the strongest moment of the bise episode and is named in it; the one of 07/11 05:00 has its own Displacement label again since the 07/11 morning episode was removed.
3. The two dawn transients (08/11, 14/11) fall at the coldest air of a clear night, at sunrise, inside the agitation. A bending of the long sight lines over the river now competes with a fast camera movement. Neither is established, so I moved them from Thermal displacement to **Displacement** (cause not established, both hypotheses stated).
4. The occultation of target_14 (11/11) covers the rain of that morning and ends soon after it stops: water on the prism is likely, and the description says so. The 11/11 07:15 jump falls at the start of the rain, which is now cited as possible. For the 11/11 14:45 passage the rising gusts were checked: the nearer prisms do not move in the raw image, which rules out a camera shake.
**The key to the hint (unchanged).** RD has no spot of its own. Its position falls on a dark part of the nearest pier, next to target_01's prism (`fig_rd_target01.png`). RD and target_01 have the same `error_value` at every instant and the same raw movement (`overview.py --rigid`), so RD is a pattern on target_01's prism: twins, the nearest prism. target_12 and target_13 are the farthest prisms. With temperature the nearest prism moves sideways against all the others, and the similarity fitted on RD + target_12/13 spreads this over the image. target_14, target_15 and target_02, which lie in the image between RD and the far references, take it in their corr_x. target_01, being RD's own prism, does not.
## 1. My labels
### Thermal cycles: 06/11 09:15 → 07/11 07:30; 07/11 07:30 → 08/11 07:00; 08/11 07:00 → 09/11 09:45; 09/11 09:45 → 10/11 04:45; 10/11 04:45 → 13/11 09:30; 13/11 09:30 → 14/11 07:00; 14/11 07:00 → 15/11 04:15; 15/11 04:15 → 16/11 06:15
- **Phenomenon of the catalogue**: "The camera drifts away when the temperature of its housing drops, without a daily cycle" / "The camera moves through a thermal effect". The poor compensation is a new variant: the reference network mixes the nearest and the farthest prisms, so a small movement of the mount becomes a parallax that passes into the targets between them.
- **Precedents**: CLARIDEN-5, -13, -27, -43 (reviewed): a sheltered station without a daily cycle, cut at the turning points of the housing temperature. NORDEND-83/88 (reviewed): "thermal cycle of the camera, poorly compensated", outward and return in one label, labels following each other without rest.
- **Family**: Thermal displacement. The shift follows the housing temperature and comes back with it at equal temperature: dx_RD +0.47…+0.58 at 26.8–27 °C on 07/11, 09/11, 10/11 and 11/11, and −0.05…+0.05 near 24.4 °C on 06/11, 08/11 and 13/11, with up to ~0.3 px of hysteresis. It follows the housing better than the air, at lag 0, and the housing follows the outside air, not the sun.
- **Measured**: `metrics.py` 05/11 → 16/11: r(temperature, cam_scale) = +0.97, r(cam_pan) = −0.94, r(tgt_corr_y) = +0.84. `overview.py --rigid 2026-11-06T09:00Z`: RD and target_01 dx −0.86…+0.73 px. target_02, target_14 and target_15 move less than ±0.41, and the far targets less than ±0.3. `scripts/table.py`: corr_x of target_14 from +0.69 (14/11 06:00) to −0.66 (11/11 12:00), target_01 within ±0.16. Turning points at 15 min: 06/11 09:15, 07/11 07:30, 08/11 07:00, 09/11 09:45, 10/11 04:45, 13/11 09:30, 14/11 07:00, 15/11 04:15. 10/11 → 13/11 stays one label: a plateau on 11/11 and a flat stop on 12/11, with no change of direction. `scripts/weather.py`: r(dx_RD, housing) = +0.96, r(dx_RD, air) = +0.83, r(housing, air) = +0.82, r(housing, radiation) = +0.02. The lag of dx_RD on the housing is best at 0 h. Weather of each cycle (MeteoSwiss): grey and mild 06/11; sunny midday then a clear calm night near 0 °C 07–08/11; sunny morning 08/11; mild, overcast, rain at times 10–12/11; bise (NE, gusts to ~50 km/h, dry air) from the night of 12–13/11 to 14/11; SW wind and mild air 15/11.
- **Images**: 06/11 12:00 whole image (`fig_scene_20261106T1200Z.jpg`); zone thumbnails 06/11 12:00, 14/11 03:00 (`fig_rd_target01.png`); far piers 07/11 07:00, 08/11 06:00/07:00/08:00, 11/11 07:00/08:00/14:00/15:00: nothing in front.
- **Confidence**: high on the family and on what moves; medium on the exact cut points (±1 measurement) and on the mechanism (camera mount most likely).
### Visibility: none (all removed, according to the expert)
- I had labelled four episodes of agitation of the far prisms in cold air (06/11 09:45 → 15:00; 07/11 02:45 → 10:00; 07/11 20:45 → 08/11 13:00; 13/11 02:45 → 15/11 14:00). The expert sees nothing in the data or the images; all four are removed. The statistics behind them stay in `scripts/agitation.py` (hourly median of |corr_y step| of target_07…11 a few hundredths of a pixel higher in cold air, r = −0.63 with the air temperature, nothing with the wind). They are a correlation, not a disturbance seen on the curves.
- The two one-measurement jumps of target_12/13 that I had merged into these episodes have their own Displacement labels again: 07/11 04:45 → 05:15 and 14/11 20:45 → 21:15.
### Displacement: 08/11 06:45 → 08:30 and 14/11 07:00 → 08:30 (dawn transients)
- **Phenomenon of the catalogue**: none fits exactly. Close to "A step of the camera that the compensation does not erase", but this one returns.
- **Precedents**: none with this signature.
- **Family**: Displacement (cause not established). Both come at dawn after the two coldest nights, at the coldest air hour, and end as the sun comes out (sunshine from the 08:00 hour at Cointrin both days). Two hypotheses remain: (a) a lateral bending of the long sight lines through the cold air over the water, since all the far prisms shift together and the near one does not; (b) a fast camera movement as the housing warms abruptly (+1.4 °C and +0.8 °C in the 07:00 hour, with no change in power or load in `metrics.py`).
- **Measured**: `scripts/far.py`: far prisms 03–13 raw x −0.51/−0.67/−0.38 at 08/11 07:15/07:30/07:45, back at 08:00. corr_x target_14 +0.36 (06:45) → −0.75 (07:15) → −0.09 (08:15) → +0.14 (08:30). On 14/11: far x +0.32 → −0.30 (07:45) → +0.06 (08:00); corr_x target_14 0.68 → −0.04 (07:45) → 0.40 (08:30).
- **Images**: 08/11 07:00 (haze over the river, sun on the facades), 14/11 07:00 (sun on the facades). No image during the shift.
- **Confidence**: high on the event, low on the cause.
### Displacement: 11/11 07:00 → 07:30
- target_12/13 jump alone, `error_value` 0.26/0.21 against ~0.08; corr_y of 03–11 −0.08…−0.18; back at the next measurement. The air is mild (11.7 °C, not a cold-air agitation hour); the rain begins in that hour. Cause not established (rain veiling the far references, or a partial passage). Images 07:00 and 08:00: nothing in front. Confidence: high on the event, low on the cause.
### Obstruction: 07/11 13:00 → 13:30, 15/11 14:00 → 14:30, 11/11 14:30 → 15:00
- "A pass-by hides the targets for the length of one measurement", deduced from the signature: one measurement, a group rejected, points jumping, all back at the next. On 11/11 14:45 everything beyond a given pier is lost (target_07–13, references included: no pose, the corr of 02–06 meaningless). The raw positions of the nearer prisms barely move (target_06 ≤ 0.45 px), which rules out a camera shake by the gusts rising then (Cointrin 17.6 → 28 km/h). A crossing of the line of sight, such as a boat on the river, fits that geometry but is not seen. On 07/11 and 15/11 there was some wind (gusts 18 and 33 km/h); nothing else moved. Confidence: medium (no image at the instants).
### No data: 10/11 08:15 → 09:00
- 08:30 and 08:45 are missing for all sensors, and ALASKA and NADELHORN miss exactly the same instants. WYOMING `last_sync` lists 08:45, BusVoltage is 14.1 V, and the images at 08:00 and 09:00 exist. Common cause outside the station, not established. Confidence: high.
### Obstruction: 11/11 09:30 → 14:15 (target_14)
- "An obstacle covers part of the spot". On the 12:00 thumbnail part of target_14's spot is darkened; it is whole at 07:00, 10:00, 13:00 and 15:00, and target_15 is always intact (`fig_target14_occultation.png`). `error_value` 0.077 → 0.252 (12:00) → 0.071 (13:45). corr_x(14) − corr_x(15) −0.32 at 12:00; corr_y −0.21 at 12:00, back by 14:15. Rain at Cointrin 07:00–12:00 (1.9 mm at its heaviest, in the 09:00 hour) and none from 13:00, matching the rise and the end: water on the prism is likely. Family Obstruction, since a single spot is hidden (`families.md`: "under a single spot, it is an obstacle"). Confidence: high on the occultation, medium on the water.
## 2. What I left without a label
- 06/11 09:45–15:00: a slight agitation of the far targets (hourly |corr_y step| 0.025–0.040 at 10:00, 11:00, 14:00, against 0.010–0.020 around it), air 8–10 °C. Labelled Visibility in my second version, removed: according to the expert, nothing shows in the data or the images. Too weak to be told from the ordinary noise.
- 14/11 10:15: target_12/13 opposite raw jumps and corr_y of 07–10 +0.10…+0.14 for one measurement; too small to stand out from the noise of these days.
- The agitation of the far targets in cold air (07–08/11, 13–15/11): a few hundredths of a pixel more from one measurement to the next; not labelled, according to the expert.
- 09/11 night (air 8.1–8.8 °C): agitation of the far targets 0.02–0.03, just above the mild-day level. Below what I bounded as episodes; borderline.
- 10/11 00:00–09:00: the raw y steps of target_12/13 rise during the night rain (up to 0.18 at 03:00) while the far targets' corr stay calm; nothing on the curves.
- `error_value` flags on target_14/15 alone (07/11, 08/11, 15/11), with corr within ±0.07; the slight rise of target_14's `error_value` from 10/11 10:45 to 11/11 08:00, without corr effect.
- The camera pose is missing from 16/11 00:30 to the end while the corr go on: an export matter.
- Tiny one-step deviations of RD/target_12/13 corr (references, own noise).
## 3. The documentation
- **Indications from the expert**: 06/11 09:45 → 15:00, no disturbance in the data or the images; 07/11 02:45 → 10:00, too sensitive; then all the Visibility agitation labels removed, the expert seeing nothing in the data. Lesson: an agitation of a few hundredths of a pixel, found by statistics (steps per hour, correlation with the air) and not visible on the curves, is not labelled. The expert also questioned the thermal cycle 06/11 09:15 → 07/11 07:30. I kept it: corr_x of target_14/15 move by 11–15 noises, the same signature as the other cycles in smaller, and `labeling-rules.md` §1 (D-117, 5-noise rule) asks for it; it awaits the expert's decision. Lesson: an agitation episode is labelled only when it stands clearly above the noise on the curves themselves, not on a correlation with the air temperature alone.
- **Indication from the user**: the weather data. It was not in the station folder, nor in `tools/GUIDE.md`, `tools/DATA.md` or the labeling knowledge, so I had not looked for it. It sits in `~/aimsight-data/weather/meteoswiss.py`, with the place of each station in `~/aimsight-data/extraction/stations.txt`, and is shown by the Data page. `tools/GUIDE.md` should get a weather tool or a line (air temperature, rain, wind, sunshine at the nearest MeteoSwiss station). `reading-rules.md` §3 says the housing temperature is "a witness for the lens and the mount, not for the structure nor the air". Here it follows the air closely (r = +0.82) except under the bise, which is worth recording.
- **What helped**: `families.md` "Thermal displacement or Displacement" (return at equal temperature); the CLARIDEN tunnel precedents for cutting without a daily rhythm; `reading-rules.md` §2 and §5 (`--rigid` first); `tools/DATA.md` (`x, y` are not the centroid), which made "RD is a pattern beside its prism" plausible; `reading-rules.md` §6 "a twin of a reference".
- **What was missing**: a WYOMING row in `stations.md`. It should say: a bridge seen from beneath its deck along a river, in Genève; targets on the piers; RD the twin of target_01 (same prism, nearest pier); target_12/target_13 the farthest prisms; the targets between them in the image (target_02, target_14, target_15) take the thermal parallax; only `temperature_deg_c`; one image per hour. Two phenomena are missing from the catalogue: "references at very different depths, so a small movement of the mount becomes a deformation passed into the targets between them", and "agitation of the long sight lines over water when the air is colder than the water, without the `error_value` rising".
- **Contradicted or unclear**: the catalogue line "Atmospheric turbulence… `error_value` up", and the boundary "without the `error_value` rising, an agitation… is the camera heating". Here the agitation is in the air (it follows the cold air, only on the long sight lines over the water) with a flat `error_value`. I chose Visibility against the letter of that boundary and said so in each label.
- The hint "parallax does not fit target_01": target_01 is RD's own prism, so it moves with the reference and cannot show the parallax that RD passes into the others.
- **Instructions changed during the session** (the weather fetched every time; labels detailed for retrieval; a short report in plain words on an imposed outline, with a GIF when the cause is seen over time). Labels kept as they were (already detailed); report rewritten on the new outline, with a GIF of target_14 on 11/11 07:00 → 15:00 (`target14_occultation_20261111.gif`, zone 1990,725,300,80) and the main figure redrawn in plain words.
## Difficulties
- `tools/GUIDE.md` §Conventions limits Bash to the tools without scripts or loops, while the request allows scripts; I followed the request.
- The weather source was not documented in my instructions at the start; the user pointed to it, and the instructions now require it (section "The weather").
- Hourly images only, no image quality metrics: the brief events have no image at their instant.
## Sources read
`instructions/analyst.md`; `tools/GUIDE.md`; `tools/DATA.md`; `labeling/families.md`; `labeling/labeling-rules.md`; `labeling/reading-rules.md`; `labeling/stations.md`; precedents (`labeling/scripts/precedents.py`, three queries); `request.json`; WYOMING data through `inventory.py`, `overview.py` (default and `--rigid`), `metrics.py` (temperatures; power, current, load), `summary.py`, `ranges.py --rolling 4 --instants 2`, `thumbnails.py`, whole images 06/11 12:00, 08/11 07:00, 14/11 07:00; raw CSVs of ALASKA, NADELHORN and the other stations on 10/11 08:00–08:49; WYOMING `last_sync`, `BusVoltage`; the MeteoSwiss weather (`~/aimsight-data/weather/README.md`, `meteoswiss.py`, `extraction/stations.txt`, `app/server/station.py` for the link); my scripts `scripts/table.py`, `far.py`, `instants.py`, `weather.py`, `agitation.py`, `figure.py`, `figure_weather.py`.
Binary file not shown.

After

Width:  |  Height:  |  Size: 619 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

@@ -0,0 +1,18 @@
{"start": "2026-11-06T09:15Z", "end": "2026-11-07T07:30Z", "family": "Thermal displacement", "description": "Thermal movement, poorly compensated. The housing temperature rises from late morning with the outside air (MeteoSwiss Genève-Cointrin: a grey, mild day) and the pose follows it (scale up, pan down); in the raw image the nearest prism, that of the reference RD and of its twin target_01, drifts sideways against all the other prisms, which hardly move. The compensation carries this drift into the targets between RD and the far references target_12 and target_13: the corr_x of target_14, target_15 and target_02 go down clearly, those of the far targets a little, target_01 hardly moves since it is the prism of RD. The curves stay shifted in the evening, then come back during the night as the air and the housing cool, until the turning point of the next morning. Deduced cause: the shift follows the housing temperature within the hour and comes back with it, the housing following the outside air and not the sun; a small thermal movement of the camera mount, seen as parallax between the nearest prism and the far ones, is likely. This is not a movement of the structure: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-07T07:30Z", "end": "2026-11-08T07:00Z", "family": "Thermal displacement", "description": "Thermal movement, poorly compensated. The housing temperature rises strongly in the morning with the outside air (MeteoSwiss Genève-Cointrin: a sunny spell around midday) and the pose follows it (scale up, pan down): the nearest prism, that of the reference RD and of its twin target_01, drifts sideways in the image against the other prisms, and the compensation passes it into the corr_x of target_14, target_15 and target_02, which go down clearly, the far targets a little. From the afternoon the air and the housing cool steadily through a clear, calm night close to freezing; the pose and the curves go back past their level and keep going the other way: by the end of the night target_14, target_15 and target_02 are clearly above their level. The abrupt shift of the morning of the 8th is labelled apart. Deduced cause: the shift follows the housing temperature within the hour and comes back with it at equal temperature; a small thermal movement of the camera mount, seen as parallax between the nearest prism and the far ones, is likely. Not a movement of the structure: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-08T07:00Z", "end": "2026-11-09T09:45Z", "family": "Thermal displacement", "description": "Thermal movement, poorly compensated. After the cold night the housing temperature rises again quickly in the morning with the outside air (MeteoSwiss Genève-Cointrin: sunny morning) and stays high until the next morning; the pose follows it (scale up, pan down), the nearest prism, that of the reference RD and of its twin target_01, drifts sideways in the image against the other prisms, and the compensation passes this drift into the corr_x of target_14, target_15 and target_02, which go clearly below their level, the far targets a little. In the evening and the mild night the curves come back only partly, then stay still until the start of the next warming. The abrupt shift of the morning of the 8th is labelled apart. Deduced cause: the shift follows the housing temperature within the hour and comes back with it; a small thermal movement of the camera mount, seen as parallax between the nearest prism and the far ones, is likely. Not a movement of the structure: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-09T09:45Z", "end": "2026-11-10T04:45Z", "family": "Thermal displacement", "description": "Thermal movement, poorly compensated. The housing temperature rises again from mid-morning with the outside air, the pose follows it (scale up, pan down) and the nearest prism, that of the reference RD and of its twin target_01, drifts sideways in the image against the other prisms; through the compensation the corr_x of target_14, target_15 and target_02 go down clearly, the far targets a little. The housing stays warm in the afternoon and evening, then cools a little during the night and the curves come back part of the way, until the turning point of the next morning. Deduced cause: the shift follows the housing temperature within the hour and comes back with it; a small thermal movement of the camera mount, seen as parallax between the nearest prism and the far ones, is likely. Not a movement of the structure: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-10T04:45Z", "end": "2026-11-13T09:30Z", "family": "Thermal displacement", "description": "Thermal movement over several days, poorly compensated. In a mild, overcast and at times rainy spell (MeteoSwiss Genève-Cointrin), the housing temperature rises on the 10th, stays high all night, rises again on the 11th to the warmest of the range, comes down in the evening and stays flat all the 12th; then the bise sets in during the night to the 13th, with a cold dry wind, and the housing cools quickly. The pose follows it (scale and pan), and the nearest prism, that of the reference RD and of its twin target_01, drifts sideways in the image against the other prisms; through the compensation the corr_x of target_14, target_15 and target_02 go down strongly until the afternoon of the 11th, then come back, stay still on the 12th, and go past their level in the cold morning of the 13th, where they are clearly above it. The corr_y of the far targets follow the temperature too, up while warm, down in the cold morning of the 13th, target_03 and target_04 more than the others, with their error_value rising. The gap of the 10th, the occultation of target_14 and the two jumps of the 11th are labelled apart. Deduced cause: the shift follows the housing temperature within the hour and comes back with it at equal temperature; a small thermal movement of the camera mount, seen as parallax between the nearest prism and the far ones, is likely. Not a movement of the structure: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-13T09:30Z", "end": "2026-11-14T07:00Z", "family": "Thermal displacement", "description": "Thermal movement, poorly compensated. Under the bise (MeteoSwiss Genève-Cointrin: cold dry wind from the north-east, some sun around midday), the housing temperature warms up a little in the late morning, then drops again in the evening and all night to the coldest of the range. The pose follows it (scale down, pan up), the nearest prism, that of the reference RD and of its twin target_01, drifts sideways in the image against the other prisms, and the compensation carries it into the corr_x of target_14, target_15 and target_02, which come back part of the way in the afternoon then rise strongly above their level all night; the corr_y of the far targets target_03 to target_11 stay below their level. Deduced cause: the shift follows the housing temperature within the hour and comes back with it; a small thermal movement of the camera mount, seen as parallax between the nearest prism and the far ones, is likely. Not a movement of the structure: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-14T07:00Z", "end": "2026-11-15T04:15Z", "family": "Thermal displacement", "description": "Thermal movement, poorly compensated. After the cold night the housing temperature rises in the morning with the outside air and the sun (MeteoSwiss Genève-Cointrin), stays moderate all day, then cools in the evening and the night as the wind drops and light rain begins. The pose follows it (scale and pan), the nearest prism, that of the reference RD and of its twin target_01, drifts sideways in the image against the other prisms, and through the compensation the corr_x of target_14, target_15 and target_02 come back part of the way toward their level in the morning, then rise again above it in the night; the corr_y of the far targets stay below their level in the day and come back in the evening. The abrupt shift of the morning and the one-measurement jump of the evening are labelled apart. Deduced cause: the shift follows the housing temperature within the hour and comes back with it; a small thermal movement of the camera mount, seen as parallax between the nearest prism and the far ones, is likely. Not a movement of the structure: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-15T04:15Z", "end": "2026-11-16T06:15Z", "family": "Thermal displacement", "description": "Thermal movement, poorly compensated. After the night rain, a mild south-west wind sets in (MeteoSwiss Genève-Cointrin) and the housing temperature rises clearly from the morning to the afternoon, then cools slowly in the evening and the night. The pose follows it (scale up, pan down), the nearest prism, that of the reference RD and of its twin target_01, drifts sideways in the image against the other prisms, and through the compensation the corr_x of target_14, target_15 and target_02 go from above their level to clearly below it in the afternoon, then come back only part of the way during the night; the corr_y of the far targets come back to their level. At the end of the range the curves are still a little shifted and the camera pose is no longer exported, while the measurements go on. Deduced cause: the shift follows the housing temperature within the hour and comes back with it; a small thermal movement of the camera mount, seen as parallax between the nearest prism and the far ones, is likely. Not a movement of the structure: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-07T04:45Z", "end": "2026-11-07T05:15Z", "family": "Displacement", "description": "One-measurement jump of the far targets target_03 to target_11, in corr_x and a little in corr_y, then back: in the raw image these targets do not move, while the far references target_12 and target_13 jump alone for this measurement, without their error_value rising and without rejection; the compensation passes their jump into the targets close to them in the image, target_14, target_15 and target_02 hardly move. No image at this instant. The air is cold and very humid, calm (MeteoSwiss Genève-Cointrin). Cause not established (a disturbance of the long line of sight to the far references over the river is possible). This is not a movement of the targets: points to ignore.", "review": "2026-11-17"}
{"start": "2026-11-07T13:00Z", "end": "2026-11-07T13:30Z", "family": "Obstruction", "description": "target_03 and target_04, on neighbouring piers, are rejected for one measurement, the point of target_03 having jumped far away, then back at the next; the other targets and the references do not move. Cause deduced from the signature of a passage in front of these two targets for the length of one measurement; no image at this instant. Points missing for one measurement: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-08T06:45Z", "end": "2026-11-08T08:30Z", "family": "Displacement", "description": "Sudden shift and return, at dawn after the coldest clear night: for three measurements all the far prisms, references target_12 and target_13 included, shift sideways together in the raw image, while the nearest prism, that of the reference RD and target_01, does not follow; the compensation cannot represent it and the corr_x of target_14, target_15, target_02 and target_01 drop sharply, the corr_y of the far targets target_03 to target_09 rise, the error_value rises on several of them without any rejection; everything is back within the hour, as the sun comes out (MeteoSwiss Genève-Cointrin). The 07:00 image shows a haze over the river and the sun on the facades, nothing in front of the targets. Cause not established: a bending of the long lines of sight through the cold air over the river at sunrise, or a fast movement of the camera as its housing warms up suddenly, are both possible; no image falls during the shift. Points not to be trusted during this hour; not a movement of the structure.", "review": "2026-11-17"}
{"start": "2026-11-10T08:15Z", "end": "2026-11-10T09:00Z", "family": "No data", "description": "Two measurements missing for all sensors. ALASKA and NADELHORN miss the same two measurements: a common cause outside the station (transmission or reception of the data), not a station failure; it is not established. The station runs: a synchronization falls in the gap, the voltage is normal, the images of the hour before and after exist (one image per hour). Nothing to do on the station.", "review": "2026-11-17"}
{"start": "2026-11-11T07:00Z", "end": "2026-11-11T07:30Z", "family": "Displacement", "description": "One-measurement jump of the corr_y of the far targets target_03 to target_11, then back: in the raw image these targets do not move, while the far references target_12 and target_13 jump alone, their error_value clearly up but far from the threshold, that of target_03 and target_11 a little up too; the compensation passes the jump of these references into the targets close to them in the image. No image at this instant, nothing in front on the images of the hour before and after. Cause not established: the rain begins at that hour (MeteoSwiss Genève-Cointrin) and could veil the far references for a moment, a passage partly in front of the far end of the bridge is possible too. Not a movement: points to ignore.", "review": "2026-11-17"}
{"start": "2026-11-11T09:30Z", "end": "2026-11-11T14:15Z", "family": "Obstruction", "description": "target_14 alone: its error_value rises gradually from mid-morning, peaks around noon and falls back in the early afternoon, with a dip in between; its corr_x goes down and its corr_y down too, more than its neighbour target_15, then both come back with the error_value. In the raw image only target_14 slides, the other prisms do not. On the 12:00 thumbnail, part of the spot of target_14 is darkened, the rest intact; before and after the spot is whole. The episode covers the rain of the morning (MeteoSwiss Genève-Cointrin) and ends soon after it stops: water on the prism, a drop or a drip from the deck, is likely, though not seen as such. Ignore the curve of target_14 over the range; not a movement.", "review": "2026-11-17"}
{"start": "2026-11-11T14:30Z", "end": "2026-11-11T15:00Z", "family": "Obstruction", "description": "For one measurement the far references target_12 and target_13 and the far targets target_07 to target_11 are rejected, their points jumping in all directions, the compensation has no reference left and the camera pose is missing; the corr of target_02 to target_06, kept, jump strongly and those of target_01 and target_14 a little: the points of this measurement make no sense. All back at the next measurement. The raw positions of the nearer prisms hardly move, which rules out a shake of the camera by the gusts rising at that hour (MeteoSwiss Genève-Cointrin); everything beyond a given pier is lost at once. Cause deduced from the signature of a passage across the line of sight, in front of the far end of the bridge, for the length of one measurement; no image at this instant, nothing in front on those of 14:00 and 15:00. Points to ignore: nothing to do.", "review": "2026-11-17"}
{"start": "2026-11-14T07:00Z", "end": "2026-11-14T08:30Z", "family": "Displacement", "description": "Sudden shift and return, at dawn after the coldest night of the bise, the same signature as on the 8th: for three measurements all the far prisms, references target_12 and target_13 included, shift sideways together in the raw image, while the nearest prism, that of the reference RD and target_01, does not follow; the corr_x of target_14, target_15, target_02 and target_01 drop sharply toward their level, then rise again part of the way when the far prisms come back, as the sun comes out (MeteoSwiss Genève-Cointrin). The 07:00 image shows the sun on the facades, nothing in front of the targets. Cause not established: a bending of the long lines of sight through the cold air over the river at sunrise, or a fast movement of the camera as its housing warms up suddenly, are both possible; no image falls during the shift. Points not to be trusted during this hour; not a movement of the structure.", "review": "2026-11-17"}
{"start": "2026-11-14T20:45Z", "end": "2026-11-14T21:15Z", "family": "Displacement", "description": "One-measurement jump of the corr_y of the targets target_02 to target_11, with a smaller one in corr_x, then back: in the raw image these targets do not move, while the far references target_12 and target_13 jump alone for this measurement, without their error_value rising; the compensation passes their jump into the targets. No image at this instant. A cold, calm night under clearing bise (MeteoSwiss Genève-Cointrin). Cause not established (a disturbance of the long line of sight to the far references over the river is possible). Not a movement: points to ignore.", "review": "2026-11-17"}
{"start": "2026-11-15T14:00Z", "end": "2026-11-15T14:30Z", "family": "Obstruction", "description": "target_03 is rejected for one measurement, its point jumping far away, and the error_value of target_04 and target_15 rises at the same instant, the corr_x of target_04 jumping a little; everything is back at the next measurement and the references do not move. Cause deduced from the signature of a passage for the length of one measurement; no image at this instant. Point missing for one measurement: nothing to do.", "review": "2026-11-17"}
@@ -0,0 +1,59 @@
# WYOMING: a thermal parallax brought in by the nearest reference
You asked why target_14, target_15 and target_02 behave strangely from 6 to 16 November, and whether it is parallax, which target_01, the closest target, does not seem to show.
## In short
Yes, it is parallax, and target_01 fits it: the reference RD is placed on target_01's own prism, so target_01 moves with the reference and shows nothing. target_14, target_15 and target_02 are off by up to almost a pixel, depending on the temperature; the far targets much less. No real movement of the structure is seen.
## What happened
**Thermal parallax, all along the range.** The camera looks along the bridge under its deck. Its three references are the nearest prism (RD, the same prism as target_01) and the two farthest (target_12, target_13). When the camera's temperature changes, the nearest prism shifts sideways in the image against all the others. That is what a small movement of the camera mount does to objects at very different distances. The correction cannot represent it: it spreads the shift of the nearest prism over the image. target_14, target_15 and target_02 sit between the references in the image, so they get most of it. Their corrected curves in x go down when it is warm (most on the 11th) and up when it is cold (8th, 13th–14th), and come back at equal temperature. The camera temperature follows the outside air, not the sun, and the shift follows the camera temperature within the hour. It is the camera mount, likely; a massive pier would lag by hours.
![thermal parallax](fig_thermal_parallax.png)
Middle: RD and target_01 (one prism) move with the temperature (top) while 02, 14 and 15 stay still in the image. Bottom: their corrected curves take the opposite of that shift; target_01 stays flat.
**Two shifts at dawn, 8 and 14 November around 07:15–08:15.** After the two coldest clear nights, all the far prisms shift sideways together for three measurements, then come back. The curves of 02, 14 and 15 jump by up to almost a pixel for an hour. The cause is unknown: either the sight lines are bent through the cold air over the river at sunrise, or the camera moves fast as it warms up.
**Brief jumps from the far references, 7 Nov 05:00, 11 Nov 07:15, 14 Nov 21:00.** target_12 and target_13 jump alone for one measurement. Through the correction, all the far targets jump with them. The cause is unknown; on the 11th the rain was just starting.
**Passages.** On 7 Nov 13:15 and 15 Nov 14:15, target_03 (and target_04 on the 7th) is lost for one measurement. On 11 Nov 14:45 everything beyond one pier is lost at once, references included, and that measurement means nothing. Likely something crossing the line of sight; it is not seen, as there is one image per hour.
**target_14 partly covered, 11 Nov 09:30–14:15.** Part of its spot goes dark around noon, during the morning rain; its curve slides and comes back when the rain stops. Water on the prism is likely.
![target_14 on 11 November](target14_occultation_20261111.gif)
Look at the left spot (target_14) at 12:00: part of it darkens; target_15, on the right, stays whole.
**Two measurements missing, 10 Nov 08:30 and 08:45.** The same minutes are missing on ALASKA and NADELHORN, so the cause is outside the station.
## What to do
On the configuration: as long as the correction rests on the nearest prism (RD) and the farthest ones, the targets in between will carry this thermal parallax. Remove RD from the references, or add a reference at the distance of target_02, target_14 and target_15. Until then, read the curves of these three against the camera temperature.
## Not established
- Camera mount or the support of the nearest prism: a look at the camera mount on site would settle it.
- The cause of the dawn shifts and of the jumps of the far references: an image at each measurement, or the water temperature, would help.
## Labels
| Start (UTC) | End (UTC) | Family | Targets | In a few words |
|---|---|---|---|---|
| 06/11 09:15 | 07/11 07:30 | Thermal displacement | 02, 14, 15 (RD/01) | small warming, back at night |
| 07/11 07:30 | 08/11 07:00 | Thermal displacement | 02, 14, 15 (RD/01) | warm midday, freezing night |
| 08/11 07:00 | 09/11 09:45 | Thermal displacement | 02, 14, 15 (RD/01) | warming after the cold night |
| 09/11 09:45 | 10/11 04:45 | Thermal displacement | 02, 14, 15 (RD/01) | daily warming, partial return |
| 10/11 04:45 | 13/11 09:30 | Thermal displacement | 02, 14, 15, 03, 04 (RD/01) | mild spell, then the bise |
| 13/11 09:30 | 14/11 07:00 | Thermal displacement | 02, 14, 15, far targets (RD/01) | bise, coldest night |
| 14/11 07:00 | 15/11 04:15 | Thermal displacement | 02, 14, 15 (RD/01) | partial warming, cooling again |
| 15/11 04:15 | 16/11 06:15 | Thermal displacement | 02, 14, 15 (RD/01) | warming, not back at the end |
| 07/11 04:45 | 07/11 05:15 | Displacement | 03–11 (via 12, 13) | far references jump alone |
| 07/11 13:00 | 07/11 13:30 | Obstruction | 03, 04 | passage, one measurement |
| 08/11 06:45 | 08/11 08:30 | Displacement | all, most 02, 14, 15 | dawn shift of the far prisms |
| 10/11 08:15 | 10/11 09:00 | No data | all | gap shared with other stations |
| 11/11 07:00 | 11/11 07:30 | Displacement | 03–11 (via 12, 13) | far references jump, rain starting |
| 11/11 09:30 | 11/11 14:15 | Obstruction | 14 | spot partly covered, rain |
| 11/11 14:30 | 11/11 15:00 | Obstruction | 07–13, all through the correction | passage at the far end |
| 14/11 07:00 | 14/11 08:30 | Displacement | all, most 02, 14, 15 | dawn shift of the far prisms |
| 14/11 20:45 | 14/11 21:15 | Displacement | 02–11 (via 12, 13) | far references jump alone |
| 15/11 14:00 | 15/11 14:30 | Obstruction | 03 | passage, one measurement |
@@ -0,0 +1,6 @@
{
"station": "WYOMING",
"start": "2026-11-06T08:05Z",
"end": "2026-11-16T06:27Z",
"hints": "The behaviour of target 14, 15 and 02 is weird. I was thinking about a parallax motion but it does not fit with target 01 that is the closest"
}
@@ -0,0 +1,43 @@
"""Per hour: agitation of the far group (median over target_07..target_11 of |corr_y step| between consecutive
measurements) and of the far references (|raw y step| of target_12, target_13), against MeteoSwiss wind, humidity,
air temperature; then correlations. Also the lag between dx_RD and the housing temperature.
usage: python3 agitation.py
"""
import csv, statistics, sys
sys.path.insert(0, "tools/scripts")
import data
D = "labeling/auto/analyses/WYOMING_2026-11-06T0805_2026-11-16T0627/work/"
start, end = data.parse_time("2026-11-06T08:15Z"), data.parse_time("2026-11-16T06:15Z")
meas = data.load("data/WYOMING")
w = {data.parse_time(r["time_utc"]): r for r in csv.DictReader(open(D + "weather_geneve.csv"))}
FAR = ["target_%02d" % i for i in range(7, 12)]
hours = {}
for s in FAR + ["target_12", "target_13"]:
v = [m for m in meas[s] if start <= m["t"] <= end]
for a, b in zip(v, v[1:]):
h = b["t"].replace(minute=0, second=0, microsecond=0)
if s in FAR:
if a["corr_y"] is not None and b["corr_y"] is not None:
hours.setdefault(h, {}).setdefault("tgt", []).append(abs(b["corr_y"] - a["corr_y"]))
elif not data.rejected(a) and not data.rejected(b):
hours.setdefault(h, {}).setdefault("ref", []).append(abs(b["y"] - a["y"]))
rows = []
for h in sorted(hours):
if h in w and "tgt" in hours[h] and "ref" in hours[h]:
f = lambda k: float(w[h][k]) if w[h][k] else None
rows.append((h, statistics.median(hours[h]["tgt"]), statistics.median(hours[h]["ref"]), f("wind_speed_kmh"),
f("wind_gust_kmh"), f("humidity_pct"), f("temperature_c"), f("global_radiation_wm2")))
by_day = {}
for r in rows:
by_day.setdefault(r[0].strftime("%m-%d"), []).append(r)
print("day agit_tgt agit_ref wind gust (daily medians)")
for d, rs in by_day.items():
print(d, "%.3f %.3f %.1f %.1f" % tuple(statistics.median([x[i] for x in rs]) for i in (1, 2, 3, 4)))
def corr(i, j):
p = [(r[i], r[j]) for r in rows if r[i] is not None and r[j] is not None]
return statistics.correlation(*zip(*p))
for name, j in (("wind", 3), ("gust", 4), ("humidity", 5), ("air", 6), ("radiation", 7)):
print(f"r(agit_tgt, {name}) = {corr(1, j):+.2f}; r(agit_ref, {name}) = {corr(2, j):+.2f}")
print(f"r(agit_tgt, agit_ref) = {corr(1, 2):+.2f}; n = {len(rows)}")
@@ -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))
@@ -0,0 +1,30 @@
"""Figure for the report: housing temperature, raw sideways shift of the nearest prism (RD, target_01) against the far
prisms, and corr_x of target_02, target_14, target_15, target_01, hourly medians from table.py's output.
usage: .venv/bin/python figure.py TABLE OUT.png
"""
import sys
from datetime import datetime
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
rows = [l.rstrip("\n").split("\t") for l in open(sys.argv[1])]
head, rows = rows[0], [r for r in rows[1:] if r[0] >= "11-06T08"]
col = {h: i for i, h in enumerate(head)}
t = [datetime.strptime("2026-" + r[0], "%Y-%m-%dT%H:%M") for r in rows]
def v(name):
return [float(r[col[name]]) if r[col[name]] != "-" else None for r in rows]
fig, ax = plt.subplots(3, 1, figsize=(13, 9), sharex=True)
ax[0].plot(t, v("temp"), "k"); ax[0].set_ylabel("camera housing\ntemperature [°C]")
ax[1].plot(t, v("dx_RD"), label="RD (reference, same prism as target_01)"); ax[1].plot(t, v("dx_01"), label="target_01")
for s in ("02", "14", "15"):
ax[1].plot(t, v("dx_" + s), label="target_" + s)
ax[1].set_ylabel("sideways shift in the image,\nagainst the far prisms [px]"); ax[1].legend(fontsize=8)
for s in ("02", "14", "15", "01"):
ax[2].plot(t, v("cx" + s), label="target_" + s)
ax[2].set_ylabel("corrected curve in x [px]"); ax[2].legend(fontsize=8)
for a in ax:
a.grid(alpha=.3)
fig.suptitle("WYOMING: the nearest prism shifts with the temperature, and the targets between the references take the shift (hourly, UTC)")
fig.tight_layout(); fig.savefig(sys.argv[2], dpi=90); print(sys.argv[2])
@@ -0,0 +1,35 @@
"""Report figure: MeteoSwiss Genève-Cointrin air temperature, wind, sunshine against the housing temperature, the
nearest prism's shift (dx_RD) and the hourly agitation of the far targets (from agitation.py's computation).
usage: .venv/bin/python figure_weather.py OUT.png
"""
import csv, statistics, sys
sys.path.insert(0, "tools/scripts")
import data
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
D = "labeling/auto/analyses/WYOMING_2026-11-06T0805_2026-11-16T0627/"
src = open(D + "scripts/agitation.py").read().split("by_day = {}")[0]
ns = {}
exec(src, ns)
rows = ns["rows"]
t = [r[0] for r in rows]
tab = {l.split("\t")[0]: l.rstrip("\n").split("\t") for l in open(D + "work/table_1h.txt")}
house = [float(tab[x.strftime("%m-%dT%H:%M")][1]) for x in t]
dx = [float(tab[x.strftime("%m-%dT%H:%M")][4]) for x in t]
w = {data.parse_time(r["time_utc"]): r for r in csv.DictReader(open(D + "work/weather_geneve.csv"))}
sun = [float(w[x]["sunshine_min"] or 0) for x in t]
fig, ax = plt.subplots(4, 1, figsize=(13, 10), sharex=True)
ax[0].plot(t, house, "k", label="housing temperature"); a2 = ax[0].twinx()
a2.plot(t, [r[6] for r in rows], "tab:red", label="air, Genève-Cointrin"); ax[0].set_ylabel("housing [°C]"); a2.set_ylabel("air [°C]", color="tab:red")
ax[1].plot(t, dx, "tab:blue"); ax[1].set_ylabel("RD = target_01 raw x\nminus far prisms [px]")
ax[2].plot(t, [r[1] for r in rows], "tab:purple", label="far targets 07-11, |corr_y step|")
ax[2].plot(t, [r[2] for r in rows], "tab:orange", alpha=.6, label="refs 12/13, |raw y step|"); ax[2].set_ylabel("agitation [px]"); ax[2].legend(fontsize=8)
ax[3].plot(t, [r[3] for r in rows], "tab:green", label="wind [km/h]"); ax[3].bar(t, sun, width=0.04, color="gold", label="sunshine [min/h]")
ax[3].set_ylabel("wind, sun"); ax[3].legend(fontsize=8)
for a in ax:
a.grid(alpha=.3)
fig.suptitle("WYOMING against the MeteoSwiss weather of Genève-Cointrin (hourly, UTC)")
fig.tight_layout(); fig.savefig(sys.argv[1], dpi=90); print(sys.argv[1])
@@ -0,0 +1,31 @@
"""At chosen instants (and the measurement before and after): per sensor, corr_x and corr_y minus the median of the
4 measurements on each side (without the instants +-1), error_value; R = rejected.
usage: python3 instants.py T1,T2,...
"""
import statistics, sys
from datetime import timedelta
sys.path.insert(0, "tools/scripts")
import data
meas = data.load("data/WYOMING")
by = {s: {m["t"].replace(second=0, microsecond=0): m for m in v} for s, v in meas.items()}
q = timedelta(minutes=15)
for txt in sys.argv[1].split(","):
t0 = data.parse_time(txt)
print("=== around", txt)
for t in (t0 - q, t0, t0 + q):
cells = []
for s in sorted(by):
if t not in by[s]:
cells.append(s[-2:] + ":-"); continue
m = by[s][t]
if data.rejected(m):
cells.append(s[-2:] + ":R"); continue
nb = [by[s].get(t0 + k * q) for k in list(range(-6, -1)) + list(range(2, 7))]
nb = [n for n in nb if n and n["corr_x"] is not None]
dx = m["corr_x"] - statistics.median([n["corr_x"] for n in nb])
dy = m["corr_y"] - statistics.median([n["corr_y"] for n in nb])
flag = "*" if max(abs(dx), abs(dy)) > 0.08 else ""
cells.append("%s:%+.2f/%+.2f%s" % (s[-2:], dx, dy, flag))
print(t.strftime("%dT%H:%M"), " ".join(cells))
@@ -0,0 +1,48 @@
"""Per step: temperature, raw x/y of near sensors minus the far group (translation only), corr_x of chosen targets.
usage: python3 table.py START END [STEP_MIN] (UTC, from the aimsight-app root)
"""
import statistics, sys
from datetime import timedelta
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])
step = int(sys.argv[3]) if len(sys.argv) > 3 else 60
meas = data.load(F)
temp = dict(data.load_temperature(F)) or {}
if not temp:
temp = dict(data.load_metrics(F).get("temperature_deg_c", []))
cam = {p["t"].replace(second=0, microsecond=0): p for p in data.load_camera(F)}
FAR = ["target_%02d" % i for i in range(3, 14)]
NEAR = ["RD", "target_01", "target_02", "target_14", "target_15"]
by = {s: {m["t"].replace(second=0, microsecond=0): m for m in v} 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 meas.items()}
ts = sorted(by["RD"])
print("time\ttemp\tscale_e4\tpan_e3\t" + "\t".join("dx_" + s[-2:] for s in NEAR) + "\t" + "\t".join("dy_" + s[-2:] for s in NEAR[:2]) + "\tcx02\tcx14\tcx15\tcx01\tev_RD\tev_01")
t = start
while t <= end:
sel = [u for u in ts if t <= u < t + timedelta(minutes=step)]
if sel:
row = []
def med(f):
v = [f(u) for u in sel]
v = [x for x in v if x is not None]
return statistics.median(v) if v else None
def far(u, c, k):
return statistics.median([by[s][u][c] - base[s][k] for s in FAR if u in by[s] and by[s][u]["corr_x"] is not None] or [0])
th = t.replace(minute=0)
row.append(temp.get(th))
row.append(med(lambda u: (cam[u]["scale"] - 1) * 1e4 if u in cam else None))
row.append(med(lambda u: cam[u]["pan"] * 1e3 if u in cam else None))
for s in NEAR:
row.append(med(lambda u: by[s][u]["x"] - base[s][0] - far(u, "x", 0) if u in by[s] else None))
for s in NEAR[:2]:
row.append(med(lambda u: by[s][u]["y"] - base[s][1] - far(u, "y", 1) if u in by[s] else None))
for s in ["target_02", "target_14", "target_15", "target_01"]:
row.append(med(lambda u: by[s][u]["corr_x"] if u in by[s] else None))
for s in ["RD", "target_01"]:
row.append(med(lambda u: by[s][u]["error_value"] if u in by[s] else None))
print(t.strftime("%m-%dT%H:%M") + "\t" + "\t".join("-" if v is None else "%.2f" % v for v in row))
t += timedelta(minutes=step)
@@ -0,0 +1,42 @@
"""Join the MeteoSwiss hourly weather (work/weather_geneve.csv) with table.py's hourly output (work/table_1h.txt):
prints the joined table (every N hours) and correlations of dx_RD, temp (housing) with the weather columns, plus lags.
usage: python3 weather.py [EVERY]
"""
import csv, statistics, sys
D = "labeling/auto/analyses/WYOMING_2026-11-06T0805_2026-11-16T0627/work/"
every = int(sys.argv[1]) if len(sys.argv) > 1 else 1
w = {r["time_utc"][5:16]: r for r in csv.DictReader(open(D + "weather_geneve.csv"))}
rows = [l.rstrip("\n").split("\t") for l in open(D + "table_1h.txt")]
head, rows = rows[0], rows[1:]
c = {h: i for i, h in enumerate(head)}
W = ["temperature_c", "sunshine_min", "global_radiation_wm2", "precipitation_mm", "humidity_pct", "wind_speed_kmh", "wind_direction_deg"]
joined = []
for r in rows:
k = r[0]
if k in w:
def f(x):
try: return float(x)
except ValueError: return None
joined.append((k, f(r[c["temp"]]), f(r[c["dx_RD"]]), f(r[c["cx14"]]), *[f(w[k][x]) for x in W]))
print("time housing dx_RD cx14 air sun rad rain hum wind wdir")
for i, j in enumerate(joined):
if i % every == 0 and j[0] >= "11-06T08":
print(" ".join("-" if v is None else (v if isinstance(v, str) else "%.1f" % v) for v in j))
def corr(a, b):
p = [(x, y) for x, y in zip(a, b) if x is not None and y is not None]
xs, ys = zip(*p)
return statistics.correlation(xs, ys), len(p)
sel = [j for j in joined if j[0] >= "11-06T08"]
cols = {"housing": 1, "dx_RD": 2, "air": 4, "sun": 5, "rad": 6, "hum": 8, "wind": 9}
for a in ("housing", "dx_RD"):
for b in ("air", "rad", "sun", "hum", "wind") + (("housing",) if a == "dx_RD" else ()):
r, n = corr([s[cols[a]] for s in sel], [s[cols[b]] for s in sel])
print(f"r({a}, {b}) = {r:+.2f} (n={n})")
# lag: dx_RD against air temperature shifted by L hours (air earlier)
for L in (0, 1, 2, 3, 4, 6):
a = [s[2] for s in sel[L:]]; b = [s[4] for s in sel[:len(sel) - L]]
print(f"lag {L} h: r(dx_RD, air earlier) = {corr(a, b)[0]:+.2f}; r(housing, air earlier) = {corr([s[1] for s in sel[L:]], b)[0]:+.2f}")
Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB