Add --false-color rendering mode for agentic interpretation

Maps raw cloud cover to six distinct stepped colour bands (clear green
through overcast red) on a dark navy background, with fine gradation
below 30% where conditions matter for astrophotography and two coarse
bands above. Skips OSM base map and alpha blending entirely.

The triangulation now stores raw cover values; scale_cloud_cover() is
applied post-blur only in the default blending mode, keeping its
behaviour identical.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Schuwi
2026-03-08 21:09:47 +01:00
parent 56f779990d
commit a2f5c902a3
3 changed files with 103 additions and 24 deletions

View File

@@ -47,6 +47,26 @@ The timestamp must match an ICON-D2 model run: every 3 hours starting at 00 UTC
| `--center-lon` | 13.08 | Map centre longitude (°E) |
| `--zoom` | 10 | OSM tile zoom level (higher = more detail, smaller area) |
| `--no-basemap` | — | Skip OSM tiles; use a plain green background |
| `--false-color` | — | False-colour mode: distinct stepped colour bands, no base map (see below) |
### False-colour mode
`--false-color` skips the OSM base layer and maps cloud cover directly to
semantically meaningful colour bands, making go/no-go decisions quick to read
at a glance — particularly useful for automated or agentic interpretation:
| Cover | Colour | Meaning |
|---|---|---|
| < 1% | Bright green | Clear sky |
| 15% | Light green | Near-clear |
| 515% | Yellow-green | Light cloud |
| 1530% | Amber | Marginal |
| 3060% | Orange | Cloudy |
| > 60% | Red | Overcast |
Areas outside the ICON-D2 data region are shown in dark navy.
The fine gradation below 30% reflects where cloud cover actually matters for
astrophotography; above 30% only two coarse bands are used.
### Examples
@@ -60,6 +80,9 @@ The timestamp must match an ICON-D2 model run: every 3 hours starting at 00 UTC
# Quick run without map tiles
./target/release/cloud_cover "2026-03-07T09:00:00Z" 6 --no-basemap
# False-colour mode for easy agentic interpretation
./target/release/cloud_cover "2026-03-07T09:00:00Z" 6 --false-color
```
## Output
@@ -76,8 +99,9 @@ Each run produces files in `cache/<date>_<hour>UTC/`:
Image titles show the forecast time converted to CET/CEST (Europe/Berlin). The first
frame is labelled "Conditions at …", subsequent frames "Prediction at … (+NNh)".
Cloud cover is rendered as a continuous blend from the base map (clear sky) toward a
light blue-white tone (overcast), matching the style familiar from weather apps.
In the default mode, cloud cover is rendered as a continuous blend from the base map
(clear sky) toward a light blue-white tone (overcast). With `--false-color`, a stepped
colour scale is used instead (see above), with no base map.
## How it works