Welcome to the Xarray Tutorial!

Welcome to the Xarray Tutorial!#

Xarray is an open source project and Python package that makes working with labelled multi-dimensional arrays simple, efficient, and fun!

📖 On this Jupyter Book website you’ll find easy-to-run tutorial notebooks for Xarray. Whether you’re new to Xarray or a seasoned user we hope you’ll learn something new and get a head start on your own projects by exploring this material!

Get started! 🚀

Learn how to navigate the tutorials and run code examples interactively

Get Started

Watch videos 🎬

Live walk-throughs of this material and more on Xarray’s YouTube Channel


Get involved 🙋

Ask questions and participate in the Xarray community!



✏️ To cite this material, you can use the recommended Xarray citation: [Hoyer and Hamman, 2017], [Hoyer et al., 2022].


This website is the result of many contributions from the Xarray community! We’re very grateful for everyone’s volunteered effort as well as sponsored development. Funding for SciPy 2022, SciPy 2023 tutorial material development specifically was supported by NASA’s Open Source Tools, Frameworks, and Libraries Program (award 80NSSC22K0345).



S. Hoyer and J. Hamman. Xarray: N-D labeled arrays and datasets in Python. Journal of Open Research Software, 2017. URL: https://doi.org/10.5334/jors.148, doi:10.5334/jors.148.


Stephan Hoyer, Clark Fitzgerald, Joe Hamman, and others. Xarray: v2022.3.0. May 2022. URL: https://doi.org/10.5281/zenodo.59499, doi:10.5281/zenodo.59499.