Logo
0.15.1

Getting Started

  • Overview: Why xarray?
  • Frequently Asked Questions
  • Quick overview
  • Examples
    • Toy weather data
    • Calculating Seasonal Averages from Timeseries of Monthly Means
    • Compare weighted and unweighted mean temperature
    • Working with Multidimensional Coordinates
    • Visualization Gallery
    • ROMS Ocean Model Example
    • GRIB Data Example
    • Using apply_ufunc
      • Applying unvectorized functions with apply_ufunc
    • External Examples
      • Managing raster data with rioxarray
      • Xarray with dask
      • Xarray and dask on the cloud with Pangeo
  • Installation

User Guide

  • Terminology
  • Data Structures
  • Indexing and selecting data
  • Interpolating data
  • Computation
  • GroupBy: split-apply-combine
  • 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

Help & reference

  • What’s New
  • How do I …
  • API reference
  • xarray Internals
  • Development roadmap
  • Contributing to xarray
  • Xarray related projects
xarray
  • Docs »
  • Examples
  • View page source

Examples¶

  • Toy weather data
    • Examine a dataset with pandas and seaborn
    • Probability of freeze by calendar month
    • Monthly averaging
    • Calculate monthly anomalies
    • Calculate standardized monthly anomalies
    • Fill missing values with climatology
  • Calculating Seasonal Averages from Timeseries of Monthly Means
    • Some calendar information so we can support any netCDF calendar.
    • A few calendar functions to determine the number of days in each month
    • Open the Dataset
    • Now for the heavy lifting:
  • Compare weighted and unweighted mean temperature
    • Data
    • Creating weights
    • Weighted mean
    • Plot: comparison with unweighted mean
  • Working with Multidimensional Coordinates
    • Plotting
    • Multidimensional Groupby
  • Visualization Gallery
    • Multiple plots and map projections
    • Centered colormaps
    • Control the plot’s colorbar
    • Multiple lines from a 2d DataArray
    • imshow() and rasterio map projections
    • Parsing rasterio geocoordinates
  • ROMS Ocean Model Example
    • Load in ROMS dataset as an xarray object
    • Add a lazilly calculated vertical coordinates
    • A naive vertical slice
    • A plan view
  • GRIB Data Example

Using apply_ufunc¶

  • Applying unvectorized functions with apply_ufunc
    • Load data
    • No errors are raised so our interpolation is working.
    • apply_ufunc
    • exclude_dims
    • Core dimensions
    • Vectorization with np.vectorize
    • Parallelization with dask
    • High performance vectorization: gufuncs, numba & guvectorize

External Examples¶

  • Managing raster data with rioxarray
  • Xarray with dask
  • Xarray and dask on the cloud with Pangeo
Next Previous

© Copyright 2014-2020, xarray Developers Last updated on 2020-05-04.

Built with Sphinx using a theme provided by Read the Docs.