Rain climatology¶

dpc_radar.climatology ¶
How rare is this rain, here? A rain climatology of Italy from eight years of radar.
Fifty millimetres in an hour are a storm of every summer in Genoa and a rare
one in Bari. :func:rarity says how rare a rain is at a place, for a window of
1, 3, 6 or 24 hours::
from dpc_radar import rarity, return_level, return_period
rarity(24, 8.93, 44.41, 100.0).return_period # 1.7 Genoa: most years
rarity(24, 16.87, 41.12, 100.0) # Bari: 32 years, between 9 and 50 or more
return_level(24, 8.93, 44.41, 10) # Level(mm=203.1, low=166.6, high=264.1)
years = return_period(srt1) # the return period of every pixel of a frame
Two answers, in a :class:Rarity:
percentile: the share of the windows of those years with less rain (99.9: one window in a thousand had more). It counts, it assumes nothing, and it stops at 99.99.return_period: once in how many years the highest window of the year passes that rain, from a GEV distribution fitted to the highest window of each year, with the 90 % interval of the fit (low,high). It is 1 for the rain of every year and stops at :data:MAX_RETURN_YEARS.
:func:return_level is the same read backwards: the millimetres of a return
period. :func:return_period does it for every pixel of an accumulation frame.
What it is made of. The IT-DPC-SRI history (:mod:dpc_radar.history), from
2018 to 2025: the rain of every hour at 1 km, without the corrupted frames,
summed over the windows that end at every hour. The map ships with the package
(1.6 MB) in cells of 5 km: about 35,000 cells with a fit, wherever the mosaic
has data in at least six of the eight years. In every cell the location of the
GEV is the mean of its pixels, the spread over the location is the one of the
55 km around it, and the shape is one for the whole of Italy (0.20 for 1 h,
0.19 for 3 h, 0.17 for 6 h, 0.13 for 24 h): eight values a pixel cannot say
more. tools/build_climatology.py builds it and measures it.
Why eight years and not sixteen. The history is not one series. The highest hour of the year, over the location of the fit, has a median of 0.64 to 0.90 in the years 2010-2017 (1.14 in 2014, the year with most corrupted frames) and of 1.09 to 1.35 since 2018: until 2017 the mosaic read about two thirds of what it reads now. A fit on all the years puts 61 % of the pixels over their 2-year level in five months of 2026. So the map stands on the years that read like today, and pays for it with a wider doubt.
How far to trust it (measured; the tables are in the reference):
- Fitted on six years and asked about the other two, the levels are passed more often than they say: the 2-year level by 52 % of the pixels in a year (it should be 50), the 5-year by 24 % (20), the 10-year by 14 % (10), the 20-year by 8 % (5). What it calls "10 years" came about every 7, "20 years" every 13. Beyond that nothing can be checked with eight years: 50 years is an extrapolation, and no number is given further.
- On the hourly radar frames of June-November 2026 (
SRT1), which it was not built on, the 10-year level of 1 h was passed in five months by 12 % of the pixels, about what a held-out year does; the one of 24 h by 20 %: on long windows the frames of 2026 read more than the history. - The interval is the doubt of eight years only (the years drawn again, a hundred times). It does not know the errors of the radar.
It is in radar millimetres. The history is radar alone, and the radar alone
is not a rain gauge: in 2026 it read 20 % more rain than the «Merging»
(:mod:dpc_radar.bias), much more in some places, less in others. So:
- do not compare these levels with those of rain gauges (the official depth-duration-frequency curves): in the Po valley the radar reads 60 mm in an hour once in ten years;
- on a radar-only frame (
SRT1, :func:dpc_radar.radar_total) the return period inherits the faults of the frame: in the 24 hours to 2 November 2026 09:00 UTC the radar alone was over the 10-year level on 35,000 km², the «Merging» on 19,000, and the highest radar pixel (382 mm) had 7 mm in the «Merging». Clean the frame first (:meth:dpc_radar.RainGrid.quality) and look at :func:dpc_radar.reliability; - on a «Merging» frame (
CUM3,CUM6,CUM24) the answer leans to "less rare" where the radar reads more than the gauges, which is most of the land.
Where the radar is blind the map has less rain than falls, and outside the
mosaic it has nothing (None, NaN). What the cleaning of the history did not
catch is in the map: a ray of clutter west of the radar of Sicily shows in it.
It is not a design rainfall and it does not replace the official alert.
Level
dataclass
¶
The rain of a return period at a place, in mm, with its 90 % interval.
Rarity
dataclass
¶
How rare mm of rain in window hours are at a place.
return_period is in years, between 1 ("every year") and
:data:MAX_RETURN_YEARS ("that or more"); low and high are its
90 % interval. percentile is the share of the windows of those
years with less rain, between 90 ("90 or less") and 99.99 ("that or more").
All None where the climatology has no data.
Climatology
dataclass
¶
The climatology as arrays on a grid of 5 km cells (NaN: not known).
parts[window][band] for every window of :data:WINDOWS and band of
:data:BANDS: the GEV of the highest window of the year (loc and
scale in mm, shape positive for a heavy tail), the years it
stands on, the percentiles in mm, and the 90 % interval of the 2- and
50-year levels as ratios to the level of the fit.
level ¶
level(window: int, lon: float, lat: float, years: float) -> Level | None
The rain in window hours passed once in years years at a point.
years between 1 (not included) and :data:MAX_RETURN_YEARS; None
where the climatology has no data.
rarity ¶
rarity(window: int, lon: float, lat: float, mm: float) -> Rarity
How rare mm of rain in window hours are at a point.
like ¶
like(grid: RainGrid, window: int | None = None) -> np.ndarray
The return period, in years, of the rain of every pixel of an accumulation frame.
The window is the one of the product (SRT1: 1 h, CUM3: 3 h, ...)
unless window says how many hours the millimetres of the frame were
summed over (:func:dpc_radar.radar_total of 24 hourly frames: 24).
Between 1 and :data:MAX_RETURN_YEARS; NaN where the frame or the
climatology has no data.
climatology
cached
¶
climatology() -> Climatology
The climatology shipped with the package (read once).
rarity ¶
rarity(window: int, lon: float, lat: float, mm: float) -> Rarity
How rare mm of rain in window hours (1, 3, 6 or 24) are at a point.
return_level ¶
return_level(window: int, lon: float, lat: float, years: float) -> Level | None
The rain in window hours passed once in years years at a point.
return_period ¶
return_period(grid: RainGrid, window: int | None = None) -> np.ndarray
The return period in years of the rain of every pixel of an accumulation frame.
window: the hours the frame was summed over, when not those of its product.
The measure, in full¶
uv run --extra history --with scipy python -m tools.build_climatology
--history <italian-radar-dpc-sri.zarr> --work <folder> --drift --measure
--archive <folder>.
The history is not one series¶
For every year, the highest window of the year of every pixel over the location of the fit (2018–2025) at that pixel; the median over the pixels with a fit. 1 is "this year read like the map".
| Year | 1 h | 3 h | 6 h | 24 h |
|---|---|---|---|---|
| 2010 | 0.76 | 0.74 | 0.73 | 0.70 |
| 2011 | 0.64 | 0.68 | 0.69 | 0.67 |
| 2012 | 0.71 | 0.73 | 0.74 | 0.77 |
| 2013 | 0.90 | 0.80 | 0.75 | 0.69 |
| 2014 | 1.14 | 1.20 | 1.24 | 1.19 |
| 2015 | 0.75 | 0.77 | 0.78 | 0.85 |
| 2016 | 0.84 | 0.85 | 0.86 | 0.83 |
| 2017 | 0.74 | 0.76 | 0.76 | 0.78 |
| 2018 | 1.22 | 1.15 | 1.11 | 1.13 |
| 2019 | 1.30 | 1.29 | 1.29 | 1.24 |
| 2020 | 1.35 | 1.30 | 1.28 | 1.25 |
| 2021 | 1.16 | 1.11 | 1.08 | 1.06 |
| 2022 | 1.13 | 1.08 | 1.05 | 0.99 |
| 2023 | 1.11 | 1.10 | 1.09 | 1.11 |
| 2024 | 1.23 | 1.21 | 1.20 | 1.18 |
| 2025 | 1.09 | 1.18 | 1.25 | 1.35 |
The step is between 2017 and 2018, in every window. 2014 stands out among the
early years: it is also the year with most corrupted frames (250), and what
suspect does not catch is likely still in it.
Held-out years¶
The eight years in four blocks of two. For every block, the map is fitted on the other six years, and the two years left out are counted: the share of pixel-years whose highest window passes the level. "Same years" is the share in the six years of the fit.
| Window | Level | Expected | Held-out years | Same years |
|---|---|---|---|---|
| 1 h | 2 years | 0.500 | 0.515 | 0.529 |
| 1 h | 5 years | 0.200 | 0.240 | 0.213 |
| 1 h | 10 years | 0.100 | 0.135 | 0.097 |
| 1 h | 20 years | 0.050 | 0.075 | 0.039 |
| 3 h | 2 years | 0.500 | 0.521 | 0.536 |
| 3 h | 5 years | 0.200 | 0.242 | 0.212 |
| 3 h | 10 years | 0.100 | 0.136 | 0.094 |
| 3 h | 20 years | 0.050 | 0.075 | 0.037 |
| 6 h | 2 years | 0.500 | 0.522 | 0.536 |
| 6 h | 5 years | 0.200 | 0.243 | 0.212 |
| 6 h | 10 years | 0.100 | 0.136 | 0.091 |
| 6 h | 20 years | 0.050 | 0.076 | 0.035 |
| 24 h | 2 years | 0.500 | 0.523 | 0.534 |
| 24 h | 5 years | 0.200 | 0.242 | 0.213 |
| 24 h | 10 years | 0.100 | 0.138 | 0.091 |
| 24 h | 20 years | 0.050 | 0.080 | 0.031 |
A level that says "once in N years" should be passed by 1/N of the pixels in a year. The levels are passed more often than that out of the years of the fit, and the gap grows with the return period: six years say little about twenty. The map in the package is fitted on all eight, so it should do a little better than this, and there is no ninth year to say how much.
The hourly frames of 2026¶
The SRT1 frames kept from 9 June to 16 November 2026 (3829
hours), summed over the same windows, where the radar is
reliable (score from 0.5). They are a different product from
the history (the hourly rain of the DPC, not the sum of the intensity frames)
and they are five months, not a year.
| Window | Pixels | Highest window over the location of the fit | Over the 2-year level | 5-year | 10-year | 20-year | 50-year |
|---|---|---|---|---|---|---|---|
| 1 h | 574276 | 1.17 | 0.501 | 0.234 | 0.121 | 0.061 | 0.025 |
| 3 h | 573194 | 1.22 | 0.541 | 0.279 | 0.157 | 0.087 | 0.037 |
| 6 h | 571469 | 1.19 | 0.531 | 0.279 | 0.164 | 0.096 | 0.045 |
| 24 h | 573834 | 1.22 | 0.550 | 0.307 | 0.203 | 0.135 | 0.073 |
For one hour the frames of 2026 pass the levels about as often as a held-out
year of the history (12 % against 14 % at 10 years). For 24 hours they pass
them more often in five months than a held-out year does in twelve (20 %
against 14 %): use the 24 h return period of a sum of SRT1 frames with that
in mind.
One day¶
The 24 hours to 2 November 2026 09:00 UTC, the widest rain of the archive against the map (the image at the top).
| 2 years or more | 10 years or more | 50 years or more | |
|---|---|---|---|
radar alone (24 SRT1 hours), where the radar is reliable |
69,264 km² | 28,323 km² | 13,302 km² |
«Merging» (8 CUM3 frames), same pixels |
30,572 km² | 13,763 km² | 8,221 km² |
Where the radar alone says 10 years or more it has 100 mm on average and the «Merging» 47. Its highest pixel has 382 mm, and the «Merging» 7 mm in the same place. Most of the area is over the Tyrrhenian Sea, where there are no gauges and the «Merging» is the radar with another calibration.