Example recipe Python


This is an example recipe calling a simple diagnostic script written in Python. The recipe produces time series plots of global mean temperature and for the temperature in Amsterdam. It also produces a map of global temperature in January 2020.

For detailed instructions on obtaining input data, please refer to Obtaining input data. However, in case you just quickly want to run through the example, you can use the following links to obtain the data from ESGF:

Please refer to the terms of use for CMIP5 and CMIP6 data.

Available recipes and diagnostics

Recipes are stored in esmvaltool/recipes/

  • examples/recipe_python.yml

Diagnostics are stored in esmvaltool/diag_scripts/

  • examples/diagnostic.py: visualize cubes and store provenance information

User settings in recipe

  1. Script examples/diagnostic.py

    Required settings for script


  • tas (atmos, monthly, longitude, latitude, time)

Example plots


Fig. 156 Air temperature in January 2000 (BCC-ESM1 CMIP6).


Fig. 157 Amsterdam air temperature (multimodel mean of CMIP5 CanESM2 and CMIP6 BCC-ESM1).