xarray-contrib / xoak

xarray extension that provides tree-based indexes used for selecting irregular, n-dimensional data.
https://xoak.readthedocs.io
MIT License
57 stars 4 forks source link
grid indexing mesh xarray

xoak

Tests Coverage Documentation Status Binder

Xoak is an Xarray extension that allows point-wise selection of irregular, n-dimensional data encoded in coordinates with an arbitrary number of dimensions.

It provides a built-in index adapter for Scipy's cKDTree, as well as adapters for index structures implemented in these 3rd-party libraries (optional dependencies):

Xoak also provides a mechanism for easily adding and registering custom index adapters.

Install

Xoak can be installed using conda (or mamba):

$ conda install xoak -c conda-forge

or pip:

$ python -m pip install xoak

Xoak's optional dependencies can be installed using conda:

$ conda install scikit-learn pys2index -c conda-forge

Documentation

Documentation is hosted on ReadTheDocs: https://xoak.readthedocs.io/

License

MIT License, see LICENSE file.