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.

Global Mean Surface Temperature

Authors
Affiliations
University at Albany (SUNY)
Argonne National Laboratory

Overview

This notebook computes timeseries of global mean surface air temperature from a collection of CMIP6 models, spanning the historical perido as well as the SSP245 and SSP585 future scenarios. We produce a figure that shows the multi-model mean surface temperature along with its standard deviation across the model ensemble.

The data access and processing in this notebook uses similar techniques to the ECS notebook. Please refer to that notebook for details.

Prerequisites

ConceptsImportanceNotes
Understanding of NetCDFHelpfulFamiliarity with metadata structure
Estimating Equilibrium Climate SensitivityHelpfulCMIP6 data access
SeabornHelpfulPlotting
  • Time to learn: 10 minutes


Imports

Loading...
['ssp585', 'ssp245', 'ssp370SST-lowCH4', 'ssp370-lowNTCF', 'ssp370SST-lowNTCF', 'ssp370SST-ssp126Lu', 'ssp370SST', 'ssp370pdSST', 'ssp119', 'ssp370', 'esm-ssp585-ssp126Lu', 'ssp126-ssp370Lu', 'ssp370-ssp126Lu', 'ssp126', 'esm-ssp585', 'ssp245-GHG', 'ssp245-nat', 'ssp460', 'ssp434', 'ssp534-over', 'ssp245-stratO3', 'ssp245-aer', 'ssp245-cov-modgreen', 'ssp245-cov-fossil', 'ssp245-cov-strgreen', 'ssp245-covid', 'ssp585-bgc']

There is currently a significant amount of data for these runs:

Loading...
/home/runner/micromamba/envs/cmip6-cookbook-dev/lib/python3.14/site-packages/google/auth/transport/grpc.py:43: FutureWarning: grpcio < 1.83.0 does not support Post-Quantum Cryptography (PQC). Support for non-PQC environments is deprecated. In April 2027, google-auth will raise its minimum requirements to enforce grpcio >= 1.83.0. For more details on Google Cloud's post-quantum security migration, visit: https://cloud.google.com/security/resources/post-quantum-cryptography
  warnings.warn(
CPU times: user 3.52 s, sys: 415 ms, total: 3.93 s
Wall time: 27.3 s

Calculate global means:

Loading...
CPU times: user 1min 1s, sys: 27.1 s, total: 1min 29s
Wall time: 1min 29s
/tmp/ipykernel_4480/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...
Loading...
<Figure size 1115x500 with 1 Axes>

Summary

In this notebook, we accessed data for historical, SSP245, and SSP585 runs from a collection of CMIP6 models and plotted the multimodel-mean global average surface air temperature for each run.

What’s next?

We will use CMIP6 data to analyze precipitation intensity under a warming climate.

Additional resources