PRISM Storm Analysis
Python and QGIS tools that total precipitation over any US watershed, for one storm or any run of days, and check the result against rain gauges, streamflow, and snowpack.
How much water fell on a watershed during a storm? PRISM, Oregon State University’s gridded climate dataset, gives daily precipitation on an 800 m grid for the whole country. These tools take a watershed code or any outline and a range of dates, download and clip each day’s grid, and add up the depth and the volume of water that fell, cell by cell.
The first use was the San Juan River basin (HUC 1408, 64,558 km²) in late 2026, when two storms crossed it about ten days apart. The remnants of Hurricane Trudy brought rain for most of October 20–27, and the San Juan at Pagosa Springs crested on October 23: 4.685 km³ of water, about 3.8 million acre-feet, with a basin mean of 72.6 mm. The remnants of Tropical Cyclone Vance and an atmospheric river followed on November 1–3 with another 2.833 km³ and a basin mean of 43.9 mm, nearly all of it rain; November 2 alone delivered 2.137 km³. From October 20 to November 3 the basin took 7.987 km³ in all, a mean of 123.7 mm. These are early PRISM releases, which PRISM revises for about six months, so the totals will move a little.
The 3D map above shows both storms as H3 hexagons. Its slider totals any run of days, from a single day to the whole sixteen.
How it works
Each day’s PRISM grid is downloaded once and cached, clipped to the basin on its native grid, and stacked into a NetCDF cube. Volumes use each cell’s true area on the ellipsoid, so nothing is reprojected or resampled before the totals. Any window inside the cube can then be totaled by date, by HUC10 or HUC12 subbasin, or split into rain and snow with PRISM’s daily mean temperature.
Every run ends with quality checks on completeness, grid consistency, physical limits, and whether the totals reconcile. It also writes a manifest of what was downloaded and produced, with checksums. PRISM revises each day’s grid up to eight times over about six months, so a refresh downloads only the days with a newer release and records how much each revision moved the total.
Checked against the ground
The comparisons use data that PRISM’s grids don’t: rain gauges from COOP, CoCoRaHS, airports, and SNOTEL, 15-minute streamflow at every USGS gauge in the basin, and snow-water gained at SNOTEL stations. Gauges whose basins hold large reservoirs are flagged, since a dam can store most of a storm’s runoff.
For Trudy (October 20–27), storm totals at 92 rain gauges in the basin and a 10 km buffer put PRISM 4.2% below the gauges, with r = 0.96; at the eight gauges PRISM did not use, it ran 0.8% below. For Vance (November 1–3), 73 gauges put it 1.3% below, with r = 0.96, and 10.6% below the six independent gauges. Most gauges are PRISM inputs, so the overall agreement is optimistic; the independent gauges are the fairer test. Both storm reports have the full comparison. The whole workflow was also run on three very different basins, the Upper Skagit in Washington and British Columbia, the Elkhorn in Nebraska, and the Upper St. Johns in Florida, to test borders, time zones, flat wetlands, and canals.
Code and tests
The tools are command-line Python scripts with offline tests that run on GitHub Actions. They work for any watershed in the contiguous US, chosen by name, by USGS hydrologic unit code, or from any polygon file. The code is on GitHub.
What a run produces
One basin, one storm window. The San Juan River basin (HUC 1408), 64,558 km² across four states, for the first of its two storms, the remnants of Hurricane Trudy in late October 2026.

Two storms, one basin
The same map for each storm and for both together. The volumes are the run's totals, with ranges that combine the gauge comparison, the basin boundary, and PRISM's revisions; every day here is still an early PRISM release.

Day by day
Single PRISM days from the same map, each the 24 hours ending at 12:00 UTC on its date: 6 a.m. to 6 a.m. MDT, then 5 a.m. to 5 a.m. MST after the November 1 time change. Each view scales its columns and colors to that day's wettest hex, so the captions, not the heights, compare the days.
Checking the numbers
A gridded total is an estimate. Each run compares it with what was measured on the ground, then reports the volume with a range instead of a single number. These checks are from the report for the November 1–3 storm; all three days are still PRISM's first release. Each chart opens at its place in that report.












