August 1, 2019 | Published by

Xarray is the python library which is widely used for analysing Earth System Data stored in netCDF files. Instead of a one hour video conference presentation on this library, CMS has prepared eight short videos (most are between 5 and 7 minutes) that can be watched at your own pace before the training

All notebooks for this CMS Introduction to Xarray module series can be found by following this link to the GitHub library. Links to individual notebooks aligned with the eight parts of this introduction to Xarray can be found under each video below.

There are also two problem notebooks which you can work through to test your grasp of the concepts in the training videos. Follow the links to:

To run the example notebooks, or complete the problems you will need access to a python distribution with the appropriate packages installed. If you have attended the Basic Python training, the conda environment you have already installed is suitable. If you missed the Basic Python sessions, the CLEX CMS team maintains a python conda environment with these packages already installed. Instructions on how to access this conda environment can be found, here, on the CMS Wiki.

Part 1 of an 8 part basic introduction to Xarray: Opening a dataset. Follow this link to download the jupyter notebook for this module.
Part 3 of an 8 part basic introduction to xarray: Plotting. Follow this link to download the jupyter notebook for this module.
Part 5 of an 8 part basic introduction to xarray: Grouping and resampling. Follow this link to download the jupyter notebook for this module.
Part 7 of an 8 part basic introduction to xarray: Opening multifile datasets. Follow this link to download the jupyter notebook for this module.
Part 2 of an 8 part basic introduction to xarray: Subsetting. Follow this link to download the jupyter notebook for this module.
Part 4 of an 8 part basic introduction to xarray: Calculating metrics. Follow this link to download the jupyter notebook for this module.
Part 6 of an 8 part basic introduction to xarray: Masking. Follow this link to download the jupyter notebook for this module.
Part 8 of an 8 part basic introduction to xarray: Saving netCDF files. Follow this link to download the jupyter notebook for this module.