Skip to content

Reliability map

The reliability map and its three parts

dpc_radar.reliability

Where the radar can be trusted: a static map of Italy, one value per km.

A radar that reads zero is not always a dry sky. Far from the sites the beam passes kilometres above the ground, behind a mountain it is cut, and some radars are off for weeks: there the mosaic shows little or nothing while it rains. On 10 October 2026 it missed a cloudburst on Lipari this way.

:func:reliability answers "how much can I trust the radar here?" with a score between 0 and 1 and the parts it is made of:

  • visibility: how low the radar sees. From the sites (:data:SITES) and a terrain model, the height above the ground of the lowest beam that reaches the point without being cut by a mountain (beam_height, metres): 1 up to 1500 m, 0 from 5000 m, where the beam passes above most of the rain;
  • coverage: the share of the hourly frames in which the mosaic has data at the point (the radars that cover it were on). Where the mosaic never has data, as in the west of Sicily, it is 0 and so is the score;
  • agreement: how close the radar alone (SRT1) is to the «Merging» of radar and rain gauges (CUM3) over the same months, as the smaller of the two ratios. None where too little rain fell to tell, over the open sea, where there are no gauges to compare with, and around a rain gauge that reports rain under a dry radar most of the time (near Foggia, in 504 of 573 wet windows): such a gauge says nothing about the radar. A window in which a gauge went wrong (the gauge_only rule of :mod:dpc_radar.quality) is left out around it, as in :mod:dpc_radar.bias.

The score is the lowest of the parts that are known: a point is as good as its weakest side. visibility is drawn with every radar on; the months a radar was off are in coverage. Below :data:RELIABLE_FROM a radar zero must not be read as "dry".

The map ships with the package as a small GeoTIFF on the 1 km grid of the radar mosaic; tools/build_reliability.py builds it again. It is an estimate made from outside: the DPC does not publish a quality map, nor the position of the gauges that enter the «Merging» (so the density of gauges, which would be a fourth part, is not here). coverage and agreement describe the months the map was built on (see ReliabilityMap.built_on), not for ever.

RadarSite dataclass

One radar of the national network.

source says where the position comes from: "dpc" the Department's own table; "mosaic" the range circle fitted on the no-data mask of the mosaic (within about 1 km); "literature" a published table, for radars whose circle is always hidden under the others. range_km is the radius of the circle in the mosaic ("literature" sites: assumed). code is the name the DPC gives the radar in its status file (:mod:dpc_radar.status); None if the file does not list it.

Reliability dataclass

How much to trust the radar at a point. Every part is 0-1 or None (not known).

reliable property

reliable: bool | None

Can a reading here be trusted? None outside the map.

ReliabilityMap dataclass

The map as arrays on the 1 km grid of the mosaic (NaN: not known).

at

at(lon: float, lat: float) -> Reliability

The reliability at a point; all None outside the mosaic.

like

like(grid: RainGrid, part: Part = 'score') -> np.ndarray

The score (or another part of the map) on the pixels of grid.

Any product: 1 km or 0.01°. NaN where not known.

reliability_map cached

reliability_map() -> ReliabilityMap

The map shipped with the package (read once).

reliability

reliability(lon: float, lat: float) -> Reliability

How much to trust the radar at a point: a score and its parts.

nearest_site

nearest_site(lon: float, lat: float) -> tuple[RadarSite, float]

The nearest radar and its distance in km along the great circle.