Skip to content

Commit

Permalink
Implement new "most common" regridder.
Browse files Browse the repository at this point in the history
  • Loading branch information
BSchilperoort committed Sep 10, 2024
1 parent 8bdc636 commit 74829cc
Show file tree
Hide file tree
Showing 8 changed files with 1,058 additions and 302 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ With xarray-regrid it is possible to regrid between two rectilinear grids. The f
- Cubic
- "Most common value" (zonal statistics)

All regridding methods, except for the "most common value" can operate lazily on [Dask arrays](https://docs.xarray.dev/en/latest/user-guide/dask.html).
All regridding methods can operate lazily on [Dask arrays](https://docs.xarray.dev/en/latest/user-guide/dask.html).

Note that "Most common value" is designed to regrid categorical data to a coarse resolution. For regridding categorical data to a finer resolution, please use "nearest-neighbor" regridder.

Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ Multiple regridding methods are available:
* `conservative regridding <autoapi/xarray_regrid/regrid/index.html#xarray_regrid.regrid.Regridder.conservative>`_ (``.regrid.conservative``)

Additionally, a zonal statistics `method to compute the most common value <autoapi/xarray_regrid/regrid/index.html#xarray_regrid.regrid.Regridder.most_common>`_
is available (``.regrid.most_common``).
is available for DataArrays (``.regrid.most_common``).
This can be used to upscale very fine categorical data to a more course resolution.
Loading

0 comments on commit 74829cc

Please sign in to comment.