thumbnail

(re)Gridding with xarray Cookbook

nightly-build Binder DOI

This small cookbook will introduce three python packages that grids and re-grids data, that can interface with the xarray ecosystem. This is a common workflow, as modeling (climate, ML, etc.) outputs might not be all on the same scale or same grid.

Motivation

Quick repo to check out a few different gridding packages within short notebooks.

Packages:

Verde

xESMF

pyresample

Pangeo thread covering an (no package) alternative to xESMF: https://discourse.pangeo.io/t/conservative-region-aggregation-with-xarray-geopandas-and-sparse/2715

Gio is a neat package for importing some subsurface formats into xarray datasets. This will not be covered in this cookbook, as it is a file converter than a (re)gridder.

Authors

Thomas Martin

Contributors

Structure

There are three notebooks, each one stands on there own, but reccomend doing them in the order below:

  1. xESMF

  2. Verde

  3. pyresample