From b6f19b17b6661c2c3837652fbbc8696459b4fa93 Mon Sep 17 00:00:00 2001 From: maxime Date: Tue, 17 Nov 2026 12:56:19 +0100 Subject: [PATCH] inventory: the weather (weather/) in what the data contain, its columns filled over the window; GUIDE.md says so Co-Authored-By: Claude Opus 5.5 --- GUIDE.md | 2 +- scripts/inventory.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/GUIDE.md b/GUIDE.md index 16736f8..f8484a2 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -36,7 +36,7 @@ python3 tools/scripts/inventory.py [--start T] [--end T] [--files] Names and counts, never values. Over the **whole period**: - files by type: beyond 5 per type, the count, the first and the last (`--files`: the full list, only to look for a specific file); -- **what each source contains** over the window: the columns of the export, of the pose and of `quality/`, with the number of rows that have a value ("empty" otherwise; an export column that not all sensors carry says how many carry it); the names of the system metrics of `metrics/`; the images and the difference images. The "Export image quality (peak to snr)" line says whether the six quality metrics are filled (then `quality.py`) or empty; +- **what each source contains** over the window: the columns of the export, of the pose, of `quality/` and of `weather/` (the MeteoSwiss weather, hourly; a station without a Swiss position has none), with the number of rows that have a value ("empty" otherwise; an export column that not all sensors carry says how many carry it); the names of the system metrics of `metrics/`; the images and the difference images. The "Export image quality (peak to snr)" line says whether the six quality metrics are filled (then `quality.py`) or empty; - images by runs of equal gaps between two images (within 5 min, over the window if given): one line per change of gap, a hole is dated by its two images; - camera poses (count, period, measurement instants without registration), period, cadence, missing measurements, sensors (reference or target, error threshold, rejected measurements). When `pattern_type` is empty, a sensor is a reference if it carries `reproj_err` or `inlier` (the "pattern_type empty for N sensors" line says so); - "Duplicate readings": an export (often named after the customer's project) whose readings are already in the others; with 0 different values, it changes nothing to the reading, otherwise the tools keep the one of the last file in name order. diff --git a/scripts/inventory.py b/scripts/inventory.py index 8156472..409d6aa 100644 --- a/scripts/inventory.py +++ b/scripts/inventory.py @@ -8,7 +8,7 @@ references retained by the compensation (inlier = 1; inlier empty over the windo and, dated, the runs of instants where references are not (which ones, and why: rejected, inlier value, empty). Camera movements (camera/): number of poses, period, and the measurement instants without a pose (no registration), over the whole period then over the window. Before the counts, what each source -contains (over the window, otherwise the whole period): the columns of the export, of the pose and of quality/, filled or empty (with, +contains (over the window, otherwise the whole period): the columns of the export, of the pose, of quality/ and of weather/, filled or empty (with, for an export column that not all sensors carry, how many carry it), the names of the system metrics of metrics/, the images and the differential images. Duplicate readings (same sensor, same instant in two exports, or twice in one) are counted per export. Images: per run of equal gaps between two images (within 5 min; @@ -112,7 +112,9 @@ def contents(folder, f, start=None, end=None): for p in f["others"]: others[os.path.relpath(p, folder).split(os.sep)[0]].append(p) for title, paths in (('"advanced" export', f["advanced"]), ("Camera pose (camera/)", f["camera"]), - ("Image quality (quality/)", others.pop("quality", []))): + ("Image quality (quality/)", others.pop("quality", [])), + ("Weather (weather/, nearest MeteoSwiss station, hourly; tools/DATA.md, no tool plots it)", + others.pop("weather", []))): if paths: n, count, who = filled(paths, start, end) everyone = set().union(*who.values())