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.

GMST from CESM2 LENS data

Access CESM2 LENS data from NCAR’s Geoscience Data Exchange (GDEX) and compute GMST

Introduction

  • Python package imports and useful function definitions

/glade/derecho/scratch/harshah

Set up Dask Cluster

  • Setting up a dask cluster. You will need an NCAR HPC account to do this.

Data Loading

Loading...
Loading...
<ArrowExtensionArray> ['https://osdata.gdex.ucar.edu/d010092/atm/monthly/cesm2LE-historical-cmip6-TREFHT.zarr', 'https://osdata.gdex.ucar.edu/d010092/atm/monthly/cesm2LE-historical-smbb-TREFHT.zarr', 'https://osdata.gdex.ucar.edu/d010092/atm/monthly/cesm2LE-ssp370-cmip6-TREFHT.zarr', 'https://osdata.gdex.ucar.edu/d010092/atm/monthly/cesm2LE-ssp370-smbb-TREFHT.zarr'] Length: 4, dtype: large_string[pyarrow]

--> The keys in the returned dictionary of datasets are constructed as follows:
	'component.experiment.frequency.forcing_variant'
Loading...
Loading...
dict_keys(['atm.ssp370.monthly.smbb', 'atm.historical.monthly.smbb', 'atm.ssp370.monthly.cmip6', 'atm.historical.monthly.cmip6'])
Loading...

Make a quick plot to check data transfer

CPU times: user 113 ms, sys: 14.5 ms, total: 128 ms
Wall time: 952 ms
<Figure size 640x480 with 2 Axes>

Section 4: Data Analysis

  • Perform the Global Mean Surface Temperature computation

Merge datasets and compute Global Mean surrface temperature anomaly

  • Warning! This section takes about a min to run!

  • Config: 3 dask workers with 8GiB memory.

Loading...

Compute (spatially weighted) Global Mean

Loading...
CPU times: user 63.7 ms, sys: 3.81 ms, total: 67.5 ms
Wall time: 69 ms
Loading...

Compute anomaly and plot

Loading...
CPU times: user 25.6 ms, sys: 4.01 ms, total: 29.6 ms
Wall time: 32.6 ms
<Figure size 640x480 with 1 Axes>