Notebooks and example apps¶
The fastest way to understand the library is to watch it work on a real storm.
Notebooks¶
Each notebook is saved with its results: read it on GitHub, or open it in Colab and run it with nothing to install.
| Notebook | What it shows | Run it | |
|---|---|---|---|
| 1 | Your first rain map of Italy | The latest frame, the rain on your city, and why «no data» is not «no rain». | Colab |
| 2 | Anatomy of a storm | The flood of Melito di Porto Salvo (10 October 2026) hour by hour, and what the radar alone lost. | Colab |
| 3 | Trust, but verify | A published frame with 7,348 mm of false rain, and the check that rejects it. | Colab |
| 4 | Hourly rain from your own archive | Save the frames before they are gone, then read rain per hour corrected with the gauges. | Colab |
| 5 | The official alert, next to the radar | What the bulletin announced and what fell, zone by zone. | Colab |

Notebook 3: the frame published on 11 October 2026 at 09:30 UTC, the one before it, and the pixels that jumped. The check rejects it.

Notebook 4: the same hours at Melito di Porto Salvo. Radar alone never reaches 30 mm in an hour; corrected with the gauges, two hours do.

Notebook 5: the alert issued on 9 October for the day after, and the rain that fell.
Notebooks 2, 4 and 5 read frames of 10 October 2026, which the DPC keeps until about March 2027. After that, change the date at the top to a recent storm.
The demo¶
A live map of the rain over all of Italy, on OpenStreetMap. Click a point, an alert zone, a storm or a radar, and a card shows the rain there: now and in the last 24 hours, how rare it is, the next two hours, the official alert, how far the radar can be trusted. Every card shows the Python that gives it.
git clone https://github.com/agent-engineering-studio/dpc-radar
cd dpc-radar
docker compose up # with Docker alone
scripts/init.sh && make demo # or with uv
Then open http://localhost:3000. More in Run it on your machine.

Play shows how the rain moved in the last frames:

Example apps¶
Three programs in
examples/, each one file.
| Program | What it does | Run it |
|---|---|---|
rain_at.py |
the rain at a place: now, last 3–24 hours, official alert | uv run python examples/rain_at.py 12.50 41.90 --name Roma |
storm_watch.py |
tells you when a violent shower enters an area | uv run python examples/storm_watch.py --rate 30 |
nightly_archive.py |
keeps your archive up to date; made for cron | uv run python examples/nightly_archive.py ~/radar-archive |
The theory, in one picture¶

The radar beam climbs with distance, mountains hide part of it, melting snow echoes like a downpour, and rain that forms low falls under the beam. The home page explains each point in plain words, and why the «Merging» with the rain gauges is the number to trust for totals.