Skip to content
dpc

dpc

Pypi •[email protected] • November 29, 2026

Async Python client for the Italian Civil Protection (DPC) open radar data: SRI, Merging (CUM), history and criticality bulletins

pip install dpc-radar==0.7.0

dpc-radar is a small, typed Python library for the open radar data of the Italian Civil Protection Department ( Dipartimento della Protezione Civile , DPC). A national network of weather radars, together with thousands of rain gauges, measures rain over all of Italy, and the DPC publishes a new map every 5 minutes , free for anyone. This library lets you use those maps from a script: which frame is the latest, how to download it, and how to read the API's answers, including its surprises.

On top of the frames it answers the questions that come : can this frame be trusted, does the radar see this place, how rare is this rain here, where are the storms going, what will fall in the two hours, what does the official bulletin say. As Python, as a command line, and as tools for an assistant.

Try it now, nothing to install: open the first notebook in Colab and draw today's rain map of Italy in five minutes.

Or run all of it on your machine: docker compose up gives you the library and a live map of the rain on

The radar of Italy, in 30 seconds

What a storm looks like

How a radar measures rain, in plain words

The open data behind it

Who is it for, and what you can build

Run it on your machine

Notebooks and example apps

Keep the «Merging», read fifteen years of history

Every frame since 2010, with an account

Where the radar can be trusted

How far the radar alone is from the «Merging»

How rare is this rain, here

Storms, and a list of the rare ones

The rain of the two hours

The official alert, as data

Ask an assistant, write a report

The traps we already fell into

Roadmap, and where AI helps

Data licence and credits

The radar of Italy, in 30 seconds

A weather radar sends out a pulse of microwaves and listens for the echo. Raindrops reflect it: the stronger the echo, the heavier the rain. The DPC joins the radars that cover Italy into one national map , and then corrects the radar with what the rain gauges on the ground really collected. The correction is called the «Merging» .

What you can do with it, for example:

know how much it has rained in a place in the last 3, 6, 12 or 24 hours;

see a storm arriving , 5 minutes at a time;

feed flood and landslide models with rain that was measured, not forecast;

keep your own archive : the DPC keeps only five months.

Italy is a country of short, steep valleys. A storm can pour a month of rain on one of them in a few hours, and leave the one dry. A forecast says what will probably happen over a wide area. A measurement says what is happening, here, now. On 10 October 2026 the forecast for Melito di Porto Salvo was 20 mm; the measurement was 192.

The measurement exists, it is public, and it is free. What is missing is the last step: getting it into a program without a week of work. That is what this library does, and these are the benefits.

Three things we care , beyond the code:

Honest numbers. The library never invents a value. Where the radar did not look, it says so.

Measured claims. Every cleaning rule runs on a benchmark of known cases before it ships; the failures are published with the successes.

Public money, public data, public code. The radars are paid by everyone. The more people can read their data, the more it is worth.

What a storm looks like

On 10 October 2026 a storm hit the area around Reggio Calabria, in the toe of Italy. This is the rain of those 24 hours, from one frame of the «Merging» CUM24 product:

The radar sees the storm while it happens . Here is the rain intensity (SRI, in mm per hour) at four moments of the same day:

Look at the arcs west of Sardinia at 06:00. Rings centred on a single radar usually mean an artefact, not a storm: the radar picks up echoes from the sea or from bent beams. Check a frame against the one before it before you trust it ( the traps ).

Look at the arcs west of Sardinia at 06:00. Rings centred on a single radar usually mean an artefact, not a storm: the radar picks up echoes from the sea or from bent beams. Check a frame against the one before it before you trust it ( the traps ).

And this is the same storm in one place , hour by hour. At Melito di Porto Salvo most of the rain fell before dawn, between midnight and 05:00 UTC, with up to 21 mm in a single hour :

Radar alone, or radar corrected with the gauges? At Melito the gauges («Merging») measured 192 mm in the day, and the radar alone saw only 115 mm , 60 % of it. Over the whole box, though, the radar read 12 % more than the gauges. The radar is wrong in both directions, depending on the place. That is why the «Merging» exists: it keeps the radar's picture and corrects it to what the gauges collected.

Zoom out, and five months of frames tell the story of a season. Averaged over all of Italy's land, 10 October was not even the wettest day of the autumn: 21 October was (19.4 mm on average against 7.1). A storm that devastates one valley can be a small bar on a national chart.

Every image above is made from real DPC frames by docs/make_images.py , with the functions of this library. The second notebook rebuilds this storm step by step.

How a radar measures rain, in plain words

You do not need this section to use the library. You need it to know how far to trust the numbers .

1. A radar listens to echoes

A weather radar is a dish that turns. It sends a short pulse of microwaves, a few centimetres long, and listens. If the pulse meets raindrops, a tiny part of it bounces back.

How long the echo takes to come back says how far the rain is.

How strong it is says how much water is up there. This strength is called reflectivity .

The dish turns all the way round, tilts up a little, and turns again. In a few minutes it has scanned the sky for 200 km around. That is why a new map comes out every five minutes.

2. From echo to millimetres: an estimate, not a measurement

Here is the weak point. The echo does not depend only on how much water there is, but very strongly on how big the drops are: one 4 mm drop sends back as much echo as four thousand 1 mm drops. The radar cannot count drops. It uses a formula built on the average rain, and the classic one (Marshall and Palmer, 1948) gives these rates:

If today's drops are larger or smaller than average, the rain is wrong, even with a perfect radar. Hail is the extreme case: a few stones echo like a flood.

3. The radar looks high above your head

The beam leaves almost flat, but the Earth curves away under it. ① At 100 km the beam is 1.5 km above the radar; ② at 200 km it is 4 km up. What the radar sees there is not what reaches the ground:

③ Mountains block the beam. Behind a ridge the radar sees less, or nothing. Italy is mostly mountains.

④ Melting snow looks like a downpour. High up, rain is often snow. As it melts it gets a coat of water and echoes much more than the rain it becomes. On the map it is a ring of false heavy rain.

⑤ Rain can form under the beam. Against a slope, moist air rises and the drops grow in the last kilometre before the ground. The radar, looking higher, misses that water. This is the likely story of Melito, where it saw 115 mm of 192.

Heavy rain hides what is behind it. The pulse loses strength crossing a storm, so a second storm further away looks weaker than it is.

Not every echo is rain. Hills, the sea, wind farms, and on some days the air itself, which bends the beam down to the ground. These are the arcs and disks that appear on the map where no cloud is.

4. The rain gauge: true, but only where it stands

A rain gauge is a funnel on a pole that collects the rain and weighs or counts it. It measures the water that really reached the ground. But it samples a patch as wide as a dinner plate, and the gauge may be ten kilometres away. A summer storm can pass between two gauges and leave both dry. The cloudburst over Lipari on the same 10 October was like that, and there even the radar missed it.

5. The «Merging»: the best of both

So each instrument has what the other lacks:

The DPC combines them: the radar gives the shape of the rain, the gauges fix the amount . The result is the «Merging», published as CUM3 , CUM6 , CUM12 and CUM24 . It is the closest thing to «how much it really rained, everywhere» that Italy has, and it is open.

6. What this means when you use the data

For totals (how many millimetres), use a «Merging». Use the radar-only products ( SRI , SRT1 ) for timing : is it raining now, when did it start, where is the storm going.

A None is information: nobody measured there. Never turn it into zero.

Rain far from every radar and behind mountains is less sure than rain on a plain near a radar.

A value that is absurd (thousands of millimetres) or a shape that is too regular (a ring, a disk, a smooth bell) is a fault, not weather. check catches the first kind.

A map of measured rain is not a forecast and not an alert . It tells what fell, not what will.

Which one should I use?

Is it raining now, and how hard? → SRI .

How much rain fell in the last hour? → SRT1 .

How much rain fell in the last day? → CUM24 (or CUM3 – CUM12 for shorter windows). The gauges make it the most accurate, but it arrives every 30 minutes, not every 5.

One open doubt on SRT1 . This page calls it radar only. The ARCO Data Hub serves the very same frames (equal pixel by pixel on 30 hours of 2026) under the name SRT1_adj , «radar estimate adjusted with rain gauges». One of the two descriptions is imprecise, and it has not been checked with the DPC. What has been measured: on ten episodes of 2026, three hours of SRT1 were between 43 % and 118 % of the «Merging» CUM3 of the same hours. Whatever adjustment SRT1 carries, it is not the «Merging»: for totals, use the CUM products.

The open data behind it

Everything this library reads is published by a public body, free, with no account and no key.

What the licences ask of you, in one line: say where the data comes from («Dipartimento della Protezione Civile»), and if you publish something made from the radar data, it under the same licence .

Two limits to know before you plan a project:

The API has a short memory. A frame older than five months is gone. If you will need last winter's rain year, start your archive today.

The fifteen-year history is radar only. It has no gauge correction, so it under-estimates: use it to learn patterns , not to quote totals.

One source is outside that rule, and optional: the ARCO Data Hub keeps every frame of the mosaic since 2010, live, and asks for a free account.

Who is it for, and what you can build

Researchers and students in hydrology, meteorology and geology who want measured rain in a notebook or a pipeline: the rain behind a landslide, a year of storms over a catchment, a training set for a model.

Civil protection, utilities and engineers who watch rivers, slopes, roads or drains: a message when a violent shower enters your area, the rain of the last six hours on every pumping station, a report after each event that can be repeated and checked.

Farmers and insurers : how much really fell on a field, not at the nearest weather station twenty kilometres away.

Data journalists and civic developers who want to show what fell during a storm, with a source anyone can check, to the alert that had been issued.

Teachers : five notebooks that turn a storm in the news into a lesson on measurement, error and open data.

Run it on your machine

Everything in one go: the library with every extra, the command line and a demo: a live map of the rain, ready for the site of a public body.

With Docker , and nothing else to install:

Then open . The first run takes a few minutes, to build the images.

Without Docker , with uv (it installs Python too) and Node 20 or later:

The demo is a page built with Bootstrap Italia , the interface kit of the Italian public administration: a map on OpenStreetMap with the rain of now or of the last 1 to 24 hours, and beside it the card of a place. Play shows how the rain moved: the last thirteen frames, one after the other.

It is made for the site of a municipality. Give it the coordinates and the name of the place ( DPC_RADAR_LAT , DPC_RADAR_LON , DPC_RADAR_PLACE , or ?lat=…&lon=…&place=… in the address) and it opens there, with the card of the place already open; with none it opens on Gioia del Colle, in Apulia. layer=24 in the address, or DPC_RADAR_LAYER , chooses what the map shows first.

Click anything and a card says what the library knows it, with the lines of Python that give it. The radars are drawn when you tick them, and the page is in Italian or in English ( IT | EN , top right):

A small API ( demo/api.py , Starlette) asks the library; the page ( demo/web , .js and Leaflet) draws what it answers.

What else you can run:

Three variables change the defaults: DPC_RADAR_DAYS (how many days of frames, 2), DPC_RADAR_PORT (the port of the demo, 3000) and DPC_RADAR_DATA (the data folder: ./data without Docker, the volume radar-data with it). The frames go to dpc-radar/ inside it, or inside DATA_ROOT when it is set (see Where the data lives ). The demo is a demo of the library, not an alert service.

Notebooks and example apps

Five notebooks, from the first map to the official alert. Each one is saved with its results , so you can read it on GitHub like an article, or open it in Colab and run it on today's rain.

Two results from them. The same hours at Melito, radar alone and corrected with the gauges: the worst hour goes from 21 to 63 mm, and passes the 30 mm that count as a flash-flood signal (notebook 4). And the alert issued the day before, to the rain that fell (notebook 5):

And three small programs in examples/ , each one file (the fourth, in the browser, is the demo ):

Python 3.12 or newer. It depends on httpx , numpy and rasterio .

No account and no key: the DPC data are open.

2. Get the latest frame

3. Read the rain at a place

sample reads the median of the 3×3 pixels around each point, never one pixel, and answers None where the radar has no data: not measured is not the same as dry.

4. Check a frame before you trust it

A frame older than five months is gone: radar.at(...) returns ABSENT instead of raising, and never retries it.

check only sees what moves between two frames. quality asks more, and says why it does not trust a pixel:

On the frame of 7 October 2026, 06 UTC, it prints 0.996 {'jump': 0, 'beyond_record': 0, 'outlier': 0, 'gauge_only': 356} : 356 pixels of rain from a gauge that was stuck.

These are rules, not a trained model: there are too few labelled cases to train one. Each has a threshold measured on the 2,550 frames kept from June to November 2026. In those months the last rule found rain gauges reporting rain under a dry sky in 154 of 1,270 three-hour frames, mostly at the same seven places. Where the radar is blind, as on Lipari, a gauge is all there is and its rain is kept.

With pip install matplotlib :

Every step is also a plain function, if you have your own HTTP stack: products.last_product_url , parse_last_product , products.download_body , parse_download , is_expired , then RainGrid.from_geotiff(raw, product, time) .

Keep the «Merging», read fifteen years of history

The DPC keeps five months of frames. The «Merging», the rain corrected with the gauges, has no public archive: whatever you do not save in time is gone. dpc_radar.archive keeps your own copy and turns it into hourly rain at any point.

The same from the shell, ready for cron : it fetches what the folder lacks and says how it went in one line.

It keeps two products: CUM3 (radar and gauges, every three hours) and SRT1 (radar alone, every hour). The rain of one hour is the radar's hour rescaled so that the three hours add up to the «Merging»: the gauges say how much, the radar says when . Oldest frames are fetched first, since they are the to disappear; frames the DPC no longer has are written down and never asked again.

For the years before, there is IT-DPC-SRI : the national radar mosaic from 2010 to 2025, every 5–15 minutes, published on Zenodo as one 50 GB archive. Unpack it once, and read it with the same call:

It is radar only : where both exist, compare it with the «Merging». Fewer than one frame in a thousand is corrupted, and hourly reads those as missing. And it is not one series : until 2017 the mosaic read two thirds of what it reads since 2018, so do not carry a threshold across that year.

With no folder given, the library keeps its data in one place: $DATA_ROOT/dpc-radar when DATA_ROOT is set (the root shared with Limen and the other libraries, each in a folder of its own), otherwise $XDG_CACHE_HOME/dpc-radar or ~/.cache/dpc-radar . default_directory() says which.

init fills it, and can be run again: it downloads only what is missing. MergingArchive() and SriHistory() with no argument read from there.

init(directory=None, *, days=2, history=False, client=None, retries=3, concurrency=32) takes your httpx.AsyncClient , and retries=0 leaves the retrying to you. A file that fails is counted in the InitReport and fetched on the run; only a disk that cannot be written raises. IT-DPC-SRI comes file by file from ECMWF's object store ( history.mirror ), the same store as on Zenodo, a frame in 0.14 s instead of a single 50 GB download at 0.1 MB/s.

Every frame since 2010, with an account

The DPC API forgets after five months, and IT-DPC-SRI stops in 2025. The ARCO Data Hub of Fondazione Bruno Kessler keeps the mosaics as stores that grow every five minutes: the frame of any day since 2010, and the one of ten minutes ago. dpc_radar.arco reads them one frame at a time, as the same RainGrid the rest of the library works on.

It is not open like the DPC API. It needs a free account and the subscription to each dataset, it asks for fair use ( frames stops at 288 frames unless you raise limit ), and it is run by a research foundation, not by the DPC: nothing else in the library depends on it. The data are CC BY-SA 4.0, credit «FBK in cooperation with Dipartimento Protezione Civile Nazionale».

Three states, not two. NaN is not measured; no echo is measured, and nothing was there: -inf in a reflectivity (0 dBZ is a weak echo), 0 in a height. And the time axis is not regular ( SRI every 15 minutes in 2010, SRT1 hourly until 2020): ask arco.times(name, start, end) which frames exist. The other traps are in the reference .

Where the radar can be trusted

A radar that reads zero is not always a dry sky. On 10 October 2026 a cloudburst hit Lipari and the mosaic showed almost nothing: the nearest beams pass 3,500 m above the island. reliability says so before the storm:

The score is the lowest of three parts, each between 0 and 1:

reliability_map().like(grid) gives the score on the pixels of any frame, and SITES lists the 24 radars. The map is an estimate made from outside: the DPC publishes neither a quality map nor the gauges of the «Merging». Seven radar positions come from the DPC's own table; the others were found by fitting their range circles on the mosaic. coverage and agreement describe the five months the map was built on.

Which radars are on now. The DPC viewer reads a file that says, every five minutes, which radars are on:

Take it as a hint, not as proof. The file is public but not documented, and it has no licence. On 17 November 2026 it was right Monte Lauro and Monte Pettinascura (off, and missing from the mosaic), but it gave Milano Linate as off while the mosaic had data all around it, and Catania as on while its circle was empty. The library never uses it to mark data as good or bad. More in the documentation .

How far the radar alone is from the «Merging»

The radar-only products ( SRI , SRT1 ) come every 5 minutes, the «Merging» every 30. So it is tempting to use the radar alone. From June to November 2026 it read 20 % more rain than the «Merging» (33 % more on land) and passed 30 mm in three hours 70 % more often . Not everywhere in the same direction:

The factor is the rain of CUM3 over the rain of the three SRT1 hours of the same window, summed over five months and over 9 km. Measured by correcting every month with the map of the other months:

What it is not. It cannot find rain the radar did not see: zero times a factor is zero. It corrects how much, not where. It lowers heavy rain : where the «Merging» has 30 mm or more, the radar alone reads 0.91 of it and the corrected radar 0.75, and in July and August it passes 30 mm half to two thirds as often as the «Merging». Use it for totals and for how often a threshold is passed over a season, not for the peak of one storm. In Sicily it helps little. It was measured on three-hour windows of 2026, and it is not applied to the 2010–2025 history : there is no «Merging» of those years to test it on. A model with more inputs (gradient boosting) was tried and dropped: the same mean error, but it almost never reached 100 mm. The full table , by region, by intensity and by month, is in the reference.

How rare is this rain, here

A hundred millimetres in a day are a rain of most years in Genoa and one of a generation in Bari. rarity says how rare a rain of 1, 3, 6 or 24 hours is at a place, from a map that ships with the package:

The map is a GEV distribution of the highest window of each year, in cells of 5 km, fitted on the hourly rain of the IT-DPC-SRI history from 2018 to 2025 . Not from 2010: until 2017 the mosaic read two thirds of what it reads now, and a map on all sixteen years calls ordinary today's rain rare.

How far to trust it. Eight years are few. Fitted on six and asked the other two, what the map calls "10 years" came every 7 and "20 years" every 13; nothing is given beyond 50 years. It is in radar millimetres : the radar alone reads more than the rain gauges over most of the land, so these levels are not those of the official rainfall curves, and a radar-only frame brings its faults with it (in the image, the radar alone finds twice the area of the «Merging»). Clean the frame with quality first. The tables are in the reference.

Storms, and a list of the rare ones

storms turns a frame into objects: every patch of rain over a threshold, with its centre, area and peak. track follows them from frame to frame.

rare_events reads hourly frames in order, sums them over 1, 3, 6 and 24 hours and keeps the patches over the level of their place ( rarity ), where the radar is reliable. Rain that lasts is one Event , the rarest first: where, when, how many millimetres against which level, and whether the «Merging» confirms it.

On the 160 days of 2026 in our archive it finds 1,689 events over the 10-year level on land, 339 of them at the 50-year ceiling; the «Merging» confirms 1,054 and 214. The flood of Melito di Porto Salvo of 10 October is there, at rank 172; Lipari is not, because the radar is nearly blind there. The list is a CSV .

How far to trust it. These are candidates , not verified events: the radar says where to look, the news says what happened. The list is long because a "10-year" rain falls somewhere in Italy most weeks, and because on the hourly frames of 2026 the levels are passed two to five times more often than their name says: read the return period as a ranking. June is full of one-hour summer storms, where hail makes the radar read too much. The tables are in the reference.

The rain of the two hours

The radar shows rain that has already fallen. nowcast moves the latest SRI frame forward along the motion the rain had in the last half hour: a forecast every five minutes, up to two hours.

Everything is a Forecast , never a RainGrid : it carries when it was issued and how far ahead it looks, and it cannot be taken for observed rain.

How far to trust it. The rain is moved, not changed: a storm born after the last frame is not there, and one that dies still is. On 120 moments of heavy rain of 2021–2025 it beats the last frame left where it is at every threshold and lead, and it is still poor on peaks: for rain of 1 mm/h the CSI at one hour is 0.34 (0.27 without motion), for 10 mm/h it is 0.08 (0.05). So use chance rather than the map of millimetres: of the pixels it gave 40–60 % of 10 mm in the hour, 39 % got them. On the night of Melito the millimetres forecast for the town went from 4 to 45 from one half hour to the , and the chance of 20 mm stayed between 0.2 and 0.55. The tables are in the reference.

The official alert, as data

Every day by 16:00 the DPC publishes the criticality bulletin : the official alert level of each of Italy's ~190 alert zones, for today and tomorrow, for landslides, rivers and thunderstorms. It is already structured data (GeoJSON, CC BY 4.0); dpc_radar.bulletins reads it.

Levels are numbers: 0 none, 1 yellow, 2 orange, 3 red. This is the official alert: whatever you compute from the radar is not, and belongs to it, never in its place.

Ask an assistant, write a report

Facts for an assistant. dpc-radar is a data library and has no server of its own. dpc_radar.facts.Facts gives an assistant, or a tool server built on it, eight methods ( latest , rain_at , area_summary , storm_now , rain_ahead , official_alert , rarity , radar_status ) that answer with numbers computed from a frame, each with the product and the time it came from; dpc_radar.facts.ANSWER_RULES are the rules to give the model with them.

Then "how much has it rained on Messina in the last three hours?" is answered from the CUM3 frame of that moment, checked against the one before it; where the radar does not measure, the answer is null , not zero.

As a report. One command writes the report of a day of rain over a box:

It writes facts.json (every figure, with its frames), report.md , a map and an hourly chart: how much it rained on the radar alone and on the «Merging», where it rained most and how rare that was there, how far the radar can be trusted at that place, and the level the official bulletin had given it. For 10 October 2026: 206.7 mm at Melito di Porto Salvo on the «Merging», where the radar alone read 115 mm; six hours with a return period of 31 years; the zone on orange since the day before.

The text is written from a template, and every number in it is checked against facts.json before it is saved . The same check takes a text of your own, or of a language model ( --text , or dpc-radar check report.md facts.json ): a number that is not in the facts is refused. It catches an invented number, not one said of the wrong thing.

For coding agents. The site publishes llms.txt , llms-full.txt (the whole documentation as text) and an agent skill with the traps below as rules. Details: facts for assistants , event reports .

Two calls, and one surprise

The open API at radar-api.protezionecivile.it has two calls that matter. The first says which frame is the newest; the second gives a short-lived download link for one frame.

What a frame request can answer

Three layers. products is pure : it builds requests and reads answers, with no network. grid turns a GeoTIFF into an array you can sample and check. client wires them to your httpx.AsyncClient , so timeouts, retries and proxies stay under your control.

The traps we already fell into

Every line below cost a bug in a real early-warning system. The library handles the ones it can; the others are here so you don't have to find them yourself.

Every trap above is a case in the benchmark : real frames where we know the answer, and how each cleaning rule scores on them. The rule the library started from ( limen-max-step ) passes 14 of 33 checks; a frame-level check ( jump-sign ) passes 26, 28 with the reliability map, and quality 31: the two it misses are rain gauges wrong by a few millimetres, which one frame cannot tell from light rain.

Full reference:

Roadmap, and where AI helps

The plan of 2026 is done: every idea below is in the library, and what each one measured is on the roadmap ( #10 ). dpc-radar stands on its own: it needs no other project, and no project needs to change for you to use it. Its first user is Limen , an open early-warning system; what is still open on that side is tracked there ( limen#643 ).

One rule holds for every AI feature: the numbers come from the frames , computed by tested code. A language model may read the news and explain the numbers, never invent them, and nothing here replaces the official DPC alert.

Where this project calls a language model, the model is Claude , by Anthropic, through its API. Here is exactly where that happens, and where it does not.

Nothing calls a model unless you ask for it and you give it a key:

.env.example lists every variable the project reads. .env is never committed. With no key, the library, the command line and the demo work as they are.

What it found. On the first run (18 November 2026) Claude passed 26 of the 30 checks of that day, and it boxed four patches where the «Merging» had rain and the radar alone had none. Checked on 580 three-hour frames, three of them are rain gauges gone wrong, and they are now cases of the benchmark. The model pointed, and the frames said whether it was right: no number of the library comes from it.

For a public administration

In Italy, a public body that adopts AI follows the Linee Guida per l'adozione di IA nella Pubblica Amministrazione of AgID (version 1.0, 9 November 2026). The guidelines speak to the administration, not to a library: the risk class of a system, its impact assessment and the notice to its users are yours to write, for your use. This is what the project gives you to write them with.

The demo is a page for the site of a public body: built with Bootstrap Italia, it opens on the coordinates of a municipality ( DPC_RADAR_LAT , DPC_RADAR_LON , DPC_RADAR_PLACE ) or, with none, on Gioia del Colle in Apulia. How to host it, what stays with the body that publishes it, and the way into the software catalogue of Developers Italia ( publiccode.yml ) are in Riuso nella PA , in Italian.

Claude and Anthropic are trademarks of Anthropic, PBC. This project is not affiliated with Anthropic or endorsed by it.

Contributions of every size are welcome, from a typo to a new module. You don't need to be a meteorologist: most of the code is plain Python, HTTP and arrays.

The tests need no network : they run against answers recorded from the real API.

Good first issues: a notebook with a storm you remember, a recipe for your favourite HTTP library, a check of the radar against a rain gauge near you. See CONTRIBUTING.md . Questions, ideas and maps you made go in the organisation's discussions .

Data licence and credits

Radar data (SRI, SRT1, «Merging» CUM): © Dipartimento della Protezione Civile , open data under CC BY-SA 4.0 . Credit the DPC and data you derive from it under the same licence.

Criticality bulletins : DPC, CC BY 4.0 .

IT-DPC-SRI (the 2010–2025 history, read by the history module): Fondazione Bruno Kessler on DPC data, CC BY-SA 4.0, doi:10.5281/zenodo.18637608 .

ARCO Data Hub (read by the arco module, with an account): Fondazione Bruno Kessler in cooperation with the DPC, for the IT4LIA AI Factory, CC BY-SA 4.0; OPERA also credits the European Weather Radar Network.

The reliability map ( src/dpc_radar/data/reliability.tif ) is derived from the DPC radar data and so is under CC BY-SA 4.0, not Apache-2.0. Its terrain comes from the Terrain Tiles of Mapzen on AWS Open Data (SRTM, EU-DEM and other open sources; see their attribution ). Radar positions: DPC, Rete Radar Nazionale , technical annex.

The bias map ( src/dpc_radar/data/bias.tif ) is derived from the DPC radar data too: CC BY-SA 4.0.

The climatology ( src/dpc_radar/data/climatology.tif ) is derived from IT-DPC-SRI: CC BY-SA 4.0, credit the DPC and Fondazione Bruno Kessler.

The list of rare rain ( docs/data/rare-rain-2026.csv ) is derived from the DPC radar data: CC BY-SA 4.0. The names of the alert zones come from the criticality bulletins.

The status of the radars ( radar_status , dpc-radar sites ) is read from a file of the DPC radar viewer that declares no licence and is not part of the documented open data. The library reads it when asked and ships no copy of it.

Country borders in the images: Natural Earth , public domain.

This library is not affiliated with the DPC. It is not an alert system: for official warnings, see the DPC criticality bulletin and your regional civil protection.

The code is released under the Apache-2.0 licence.

Release files for dpc-radar 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .

Source distribution (sdist)

Built distribution (wheel)

Total release size: 5.1 MB

Release files / dpc_radar-0.7.0.tar.gz

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Release files / dpc_radar-0.7.0-py3-none-any.whl

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Security for dpc-radar 0.7.0

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Both files in this release have been uploaded with provenance metadata.

Attestation for dpc_radar-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Attestation for dpc_radar-0.7.0-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

Nov 29, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 25, 2026 2 release files Full provenance

Nov 23, 2026 2 release files Full provenance

Nov 17, 2026 2 release files Full provenance

Nov 5, 2026 2 release files Full provenance

Nov 5, 2026 2 release files Full provenance

Nov 4, 2026 2 release files Full provenance

Extracted Entities