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.

Multi-model GMST from CMIP6 zarr (~27 GCMs)

Section 1: Introduction

  • Load python packages

  • Load catalog url

/tmp/ipykernel_2120/3841926957.py:6: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from tqdm.autonotebook import tqdm

Section 2: Select Dask Cluster

Select the Dask cluster type

The default will be LocalCluster as that can run on any system.

If running on a HPC computer with a PBS Scheduler, set to True. Otherwise, set to False.

If running on Jupyter server with Dask Gateway configured, set to True. Otherwise, set to False.

Python function for a PBS cluster

Python function for a Gateway Cluster

Python logic for a Local Cluster

This uses True/False boolean logic based on the variables set in the previous cells

Loading...

Section 3: Data Loading

  • Load catalog and select data subset

Loading...
['esm-ssp585-ssp126Lu', 'ssp126-ssp370Lu', 'ssp370-ssp126Lu', 'ssp585', 'ssp245', 'ssp370-lowNTCF', 'ssp370SST-ssp126Lu', 'ssp370SST', 'ssp370pdSST', 'ssp370SST-lowCH4', 'ssp370SST-lowNTCF', 'ssp126', 'ssp119', 'ssp370', 'esm-ssp585', 'ssp245-nat', 'ssp245-GHG', 'ssp460', 'ssp434', 'ssp534-over', 'ssp245-aer', 'ssp245-stratO3', 'ssp245-cov-fossil', 'ssp245-cov-modgreen', 'ssp245-cov-strgreen', 'ssp245-covid', 'ssp585-bgc']
Loading...
Loading...
Loading...
100%|████████████████████████████████████████████████████████████████████████████████████████| 27/27 [00:03<00:00,  7.38it/s]
CPU times: user 11.2 s, sys: 1.37 s, total: 12.6 s
Wall time: 1min 55s
/tmp/ipykernel_2120/2886188115.py:5: FutureWarning: In a future version of xarray the default value for join will change from join='outer' to join='exact'. This change will result in the following ValueError: cannot be aligned with join='exact' because index/labels/sizes are not equal along these coordinates (dimensions): 'year' ('year',) The recommendation is to set join explicitly for this case.
  big_ds = xr.concat([ds.reset_coords(drop=True)
Loading...

Observational time series data for comparison with ensemble spread

  • The observational data we will use is the HadCRUT5 dataset from the UK Met Office

  • The data has been downloaded to NCAR’s Geoscience Data Exchange (GDEX) from https://www.metoffice.gov.uk/hadobs/hadcrut5/

  • We will use an OSDF file system to access this copy from the GDEX

<pelicanfs.core.OSDFFileSystem object at 0x74c9486ebed0>
Loading...
Loading...

Section 4: Data Analysis

  • Calculate Global Mean Surface Temperature Anomaly (GMSTA)

  • Grab some observations/ ERA5 reanalysis data

  • Convert xarray datasets to dataframes

  • Use Seaborn to plot GMSTA

Loading...
Loading...
Loading...
<Figure size 1115x500 with 1 Axes>