# Check hail history near an address

> Use NOAA hail reports and radar estimates to check a past storm near a building. Replay a Denver example from the original NOAA files.

Source: https://docs.invariant-ai.com/check-hail-history-by-address

To check a past hailstorm near an address, [match the address to the intended building](https://docs.invariant-ai.com/verify-building-by-address), then save its coordinates and the time window you want to check. Compare hail reports within a stated radius with the nearest cells in a radar grid. A nearby report describes its published location. A radar cell provides an estimate across a grid area. Keep both with the original units and timestamps.

## Replay the May 30, 2024 Denver storm

The two illustrative points are about 4.15 km apart. The replay selects hail records from episode `191135` in the dated [NOAA Storm Events](https://www.ncei.noaa.gov/access/storm-events-database/) bulk file. NOAA published the record times in `MST-7`, a fixed UTC−07:00 offset. Denver’s civil time during the storm was UTC−06:00. The report window starts at 8 p.m. local on May 30 and excludes midnight, which corresponds to 02:00 through 06:00 UTC on May 31.

Download the three compressed sources and the Python example. The example checks each archive’s SHA-256 and uses [ecCodes](https://pypi.org/project/eccodes/) to read the nearest grid cell from each GRIB2 file. The commands use Python 3.12 and the tested decoder version.

```bash
mkdir -p noaa
curl -fLsS --max-time 90 -o noaa/StormEvents_details-ftp_v1.0_d2024_c20261119.csv.gz \
  'https://www.ncei.noaa.gov/pub/data/swdi/stormevents/csvfiles/StormEvents_details-ftp_v1.0_d2024_c20261119.csv.gz'
curl -fLsS --max-time 45 -o noaa/MRMS_MESH_Max_240min_00.50_20240531-020000.grib2.gz \
  'https://noaa-mrms-pds.s3.amazonaws.com/CONUS/MESH_Max_240min_00.50/20240531/MRMS_MESH_Max_240min_00.50_20240531-020000.grib2.gz'
curl -fLsS --max-time 45 -o noaa/MRMS_MESH_Max_240min_00.50_20240531-060000.grib2.gz \
  'https://noaa-mrms-pds.s3.amazonaws.com/CONUS/MESH_Max_240min_00.50/20240531/MRMS_MESH_Max_240min_00.50_20240531-060000.grib2.gz'
curl -fLsS --max-time 30 -o denver-hail-replay.py \
  'https://docs.invariant-ai.com/examples/denver-hail-replay.py'
python3.12 -m venv .venv
.venv/bin/python -m pip install 'eccodes==2.50.0'
.venv/bin/python denver-hail-replay.py noaa > hail-evidence.json
```

To change the search radius or sample another coordinate for the same storm, use `--radius-km 1 --point 39.788 -104.889`. Repeat `--point` to compare coordinates. This example is pinned to the selected episode and the two dated radar windows. Save the source versions used for each new event you investigate.

## Compare reports with their separate radar estimates

| Point | Hail records within 5 km, 8 p.m. to midnight local | Largest nearby report | Nearest radar cell, 8 p.m. to midnight local |
| --- | --- | --- | --- |
| A, 39.788° N, 104.889° W | 10 | 2.75 in, 0.80 km away | 36 mm, about 1.42 in |
| B, 39.752° N, 104.902° W | 11 | The same 2.75 in report, 4.62 km away | 14 mm, about 0.55 in |

The report counts are matched records within each radius. Both radii include event `1176829`, so one report contributes to both results. In the earlier radar file ending at 8 p.m. local, both cells returned `-1`, which the [NOAA product table](https://www.nssl.noaa.gov/projects/mrms/operational/tables.php) defines as missing for this product. The no-coverage code is `-3`. Leave the estimate blank for either code and keep the raw status. The 240-minute product reports the largest estimated hail size at that cell during its trailing window.

## Record the conclusion for the property

Save the building reference, the report IDs and distances, the radar cell and estimate, the time basis, and any gaps. Use the [published Denver study](https://invariant-ai.com/blog/hail-history-by-address-for-underwriting#dataset) to see the source extracts and compare the results with address products. An inspection or documented observation is needed to establish what happened to a particular roof.

For long-run exposure, fetch Earth’s [`hail_annual_frequency`](https://docs.invariant-ai.com/fields/hail_annual_frequency). It returns FEMA’s [area-weighted annual frequency](https://www.fema.gov/sites/default/files/documents/fema_national-risk-index_technical-documentation.pdf) for the containing tract, in events per year. Keep it in a separate field from the NOAA report and radar evidence for a specific date.
