Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

CONUS404: Monthly Precipitation over the Contiguous US

Authors
Affiliations
NSF NCAR
NSF NCAR
NSF NCAR
GDEX Cookbook logo

Overview

CONUS404 is a 4-km, hourly, 43-year hydroclimate reanalysis of the contiguous United States, produced by NCAR and the USGS by dynamically downscaling ERA5 with the WRF model in a convection-permitting configuration (Rasmussen et al., 2023). GDEX hosts it as dataset d559000.

The native data is ~377,000 hourly NetCDF files; GDEX exposes them through a single kerchunk reference, so we can slice the record with one xarray call and stream only the bytes we need — here, over HTTPS.

We map total precipitation for a single month over CONUS — a scaled-down view of the multi-year climatology in Rasmussen et al. (2023, Fig. 3), kept light enough to run interactively.

  1. Open CONUS404 2D output from a kerchunk reference over HTTPS

  2. Select one month of hourly precipitation

  3. Sum to a monthly total

  4. Map it over CONUS on the model’s Lambert Conformal grid

Prerequisites

ConceptsImportanceNotes
ERA5 Reanalysis Data WorkflowHelpfulThe kerchunk reference access pattern
xarrayNecessaryLabeled N-D arrays
DaskNecessaryParallel / out-of-core compute
CartopyNecessaryMapping
  • Time to learn: 30 minutes


Imports

Spin up a Dask cluster

Summing a month of hourly 4-km precipitation streams a few GB of chunks. A LocalCluster reads them in parallel and keeps memory bounded.

/home/runner/micromamba/envs/gdex-cookbook/lib/python3.12/site-packages/distributed/node.py:195: UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 41955 instead
  warnings.warn(
Loading...

CONUS404 on GDEX

GDEX publishes a kerchunk reference for all 2D CONUS404 variables (wrf2d) — precipitation, 2-m temperature, surface fluxes, and more. We open it over HTTPS and pull out hourly accumulated precipitation, PREC_ACC_NC (mm), along with the static 2D lat/lon needed for mapping.

CPU times: user 12.8 s, sys: 3.12 s, total: 15.9 s
Wall time: 27.6 s
Loading...
CPU times: user 16.6 s, sys: 3.12 s, total: 19.7 s
Wall time: 4min 40s

Mapping the monthly total

CONUS404 sits on a Lambert Conformal grid. We coarsen 4× for plotting (to spare Cartopy memory) and use the NCL precip3_16lev palette.

/home/runner/micromamba/envs/gdex-cookbook/lib/python3.12/site-packages/cartopy/io/__init__.py:263: DownloadWarning: Downloading: https://naturalearth.s3.amazonaws.com/50m_physical/ne_50m_coastline.zip
  warnings.warn(f'Downloading: {url}', DownloadWarning)
/home/runner/micromamba/envs/gdex-cookbook/lib/python3.12/site-packages/cartopy/io/__init__.py:263: DownloadWarning: Downloading: https://naturalearth.s3.amazonaws.com/50m_cultural/ne_50m_admin_0_boundary_lines_land.zip
  warnings.warn(f'Downloading: {url}', DownloadWarning)
/home/runner/micromamba/envs/gdex-cookbook/lib/python3.12/site-packages/cartopy/io/__init__.py:263: DownloadWarning: Downloading: https://naturalearth.s3.amazonaws.com/50m_cultural/ne_50m_admin_1_states_provinces_lakes.zip
  warnings.warn(f'Downloading: {url}', DownloadWarning)
<Figure size 1100x700 with 2 Axes>

Summary

We opened CONUS404’s 2D output from a single kerchunk reference over OSDF, summed one month of hourly precipitation, and mapped the total across CONUS on the model’s native Lambert Conformal grid. Scoping to one month keeps the stream small — loop the reduction over months or water years to rebuild the published multi-year climatology.