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.

NA-CORDEX Regional Climate Diagnostics

Authors
Affiliations
NSF NCAR
NSF NCAR
NSF NCAR
GDEX Cookbook logo

Overview

NA-CORDEX (North American Coordinated Regional Downscaling Experiment) provides regional climate model output over North America, dynamically downscaling global models to higher resolution. GDEX hosts it as dataset d316010.

This notebook makes quick diagnostic plots — first, middle, and last timesteps across several model runs — to sanity-check a NA-CORDEX variable straight from GDEX’s OSDF-hosted Zarr stores. We use daily maximum near-surface air temperature (tmax) on the NAM-44i (~0.5°) grid for the evaluation scenario.

  1. Spin up a Dask LocalCluster

  2. Open a NA-CORDEX Zarr store directly over OSDF

  3. Build diagnostic plotting helpers

  4. Plot first, middle, and last timesteps across model runs

Prerequisites

ConceptsImportanceNotes
CESM2 Large Ensemble workflowHelpfulSame OSDF direct-zarr + LocalCluster pattern
xarrayNecessaryLabeled N-D arrays
DaskNecessaryParallel / out-of-core compute
matplotlibNecessaryPlotting
  • Time to learn: 30 minutes

Imports

Spin up a Dask cluster

NA-CORDEX runs are large multi-member daily datasets. A LocalCluster parallelizes the reads and the per-member reductions while keeping 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 36175 instead
  warnings.warn(
Loading...
Loading...

Diagnostic plotting helpers

Three small helpers: one to draw a single map with its min/max annotated, one to find the first and last timesteps that actually contain data (NA-CORDEX runs have different valid date ranges), and one to assemble a grid of first/middle/last maps for several members.

Plotting first, middle, and last timesteps

This is the lightest of the diagnostics — it reads only a handful of 2D slices per member (plus a per-member finite-value scan to find valid dates).

<Figure size 1800x1200 with 12 Axes>
CPU times: user 6.5 s, sys: 1.64 s, total: 8.14 s
Wall time: 1min 59s

Summary

We opened NA-CORDEX daily maximum temperature directly from GDEX’s OSDF Zarr store, spun up a LocalCluster, and produced first/middle/last diagnostic maps across several regional-model runs — a quick way to sanity-check a multi-member dataset.

What’s next?

Continue to the CONUS404 workflow for another high-resolution GDEX dataset.