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.

Input Data Access

  • This notebook illustrates how to make diagnostic plots using the NA-CORDEX dataset hosted on NCAR’s Geoscience Data Exchange (GDEX)

  • https://gdex.ucar.edu/datasets/d316010/

  • This data is open access and can be accessed via 2 protocols

    1. HTTPS (if you have access to NCAR’s HPC)

    1. OSDF using an intake-ESM catalog.

https://osdata.gdex.ucar.edu/d316010/catalogs/d316010-osdf.json
/glade/derecho/scratch/harshah

Create a PBS cluster

/glade/u/home/harshah/.conda/envs/osdf/lib/python3.11/site-packages/distributed/node.py:188: UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 34989 instead
  warnings.warn(
Loading...

Load NA CORDEX data from GDEX using an intake catalog

Loading...

Load data into xarray

Loading...
<ArrowExtensionArray> ['osdf:////ncar-gdex/d316010/day/tmax.eval.day.NAM-44i.raw.zarr'] Length: 1, dtype: large_string[pyarrow]
Loading...

--> The keys in the returned dictionary of datasets are constructed as follows:
	'variable.frequency.scenario.grid.bias_correction'
Loading...

Dataset dictionary keys:
 dict_keys(['tmax.day.eval.NAM-44i.raw'])
Loading...

Functions for Plotting

Helper Function to Create a Single Map Plot

Helper Function for Finding Dates with Available Data

Function Producing Maps of First, Middle, and Final Timesteps

Function Producing Statistical Map Plots

Function Producing Time Series Plots

Also show which dates have no available data values, as a rug plot.

Produce Diagnostic Plots

Plot First, Middle, and Final Timesteps for Several Output Runs (less compute intensive)

<Figure size 1800x1200 with 12 Axes>
CPU times: user 2.48 s, sys: 221 ms, total: 2.7 s
Wall time: 44.7 s