Skip to main content
Ctrl+K
 - Home  - Home
  • Get Started
  • User Guide
  • Tutorial
  • Gallery
  • API Reference
  • Get Help
  • Development
  • Release Notes
  • GitHub
  • Get Started
  • User Guide
  • Tutorial
  • Gallery
  • API Reference
  • Get Help
  • Development
  • Release Notes
  • GitHub

Section Navigation

  • Toy weather data
  • Calculating Seasonal Averages from Time Series of Monthly Means
  • Compare weighted and unweighted mean temperature
  • Working with Multidimensional Coordinates
  • Visualization Gallery
  • ROMS Ocean Model Example
  • GRIB Data Example
  • Applying unvectorized functions with apply_ufunc
  • Blank template
  • Gallery

Gallery#

Here’s a list of examples on how to use xarray. We will be adding more examples soon. Contributions are highly welcomed and appreciated. So, if you are interested in contributing, please consult the Contributing to xarray guide.

Notebook Examples#

Toy weather data

Toy weather data

examples/weather-data.html
Calculating Seasonal Averages from Timeseries of Monthly Means

Calculating Seasonal Averages from Timeseries of Monthly Means

examples/monthly-means.html
Compare weighted and unweighted mean temperature

Compare weighted and unweighted mean temperature

examples/area_weighted_temperature.html
Working with Multidimensional Coordinates

Working with Multidimensional Coordinates

examples/multidimensional-coords.html
Visualization Gallery

Visualization Gallery

examples/visualization_gallery.html
GRIB Data Example

GRIB Data Example

examples/ERA5-GRIB-example.html
Applying unvectorized functions with apply_ufunc

Applying unvectorized functions with apply_ufunc

examples/apply_ufunc_vectorize_1d.html

External Examples#

Managing raster data with rioxarray

Managing raster data with rioxarray

https://corteva.github.io/rioxarray/stable/examples/examples.html
Xarray and dask on the cloud with Pangeo

Xarray and dask on the cloud with Pangeo

https://gallery.pangeo.io/
Xarray with Dask Arrays

Xarray with Dask Arrays

https://examples.dask.org/xarray.html_
Project Pythia Foundations Book

Project Pythia Foundations Book

https://foundations.projectpythia.org/core/xarray.html

previous

Testing your code

next

Toy weather data

On this page
  • Notebook Examples
  • External Examples
Edit on GitHub

© Copyright 2014-2025, xarray Developers.

Created using Sphinx 7.4.7.

Last updated on 2025-07-09.

Built with the PyData Sphinx Theme 0.16.1.