logo

For users

  • Getting Started
    • Overview: Why xarray?
    • Installation
    • Quick overview
    • Frequently Asked Questions
  • User Guide
    • Terminology
    • Data Structures
    • Indexing and selecting data
    • Interpolating data
    • Computation
    • GroupBy: Group and Bin Data
    • Reshaping and reorganizing data
    • Combining data
    • Time series data
    • Weather and climate data
    • Working with pandas
    • Reading and writing files
    • Parallel computing with Dask
    • Plotting
    • Configuration
    • Testing your code
    • Working with numpy-like arrays
  • Gallery
    • 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
  • Tutorials & Videos
  • API Reference
  • How do I ...
  • Getting Help
  • Ecosystem

For developers/contributors

  • Contributing Guide
  • Xarray Internals
    • Internal Design
    • Interoperability of Xarray
    • Integrating with duck arrays
    • Alternative chunked array types
    • Extending xarray using accessors
    • How to add a new backend
    • How to create a custom index
    • Zarr Encoding Specification
  • Development Roadmap
  • Team
  • Developers Meeting
  • What’s New
  • GitHub repository

Community

  • GitHub discussions
  • StackOverflow
Theme by the Executable Book Project
Contents
  • Notebook Examples
  • External Examples

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

Working with numpy-like arrays

next

Toy weather data

By Author name not set
© Copyright 2014-2024, xarray Developers.
Last updated on 2024-09-13.

Xarray is a fiscally sponsored project of NumFOCUS, a nonprofit dedicated to supporting the open-source scientific computing community.
Theme by the Executable Book Project