Xoak: Xarray extension for indexing irregular grids¶
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):
Scikit-Learn:
BallTree
andKDTree
, which support various distance metrics.pys2index:
S2PointIndex
for efficient indexing of lat/lon point data, based on s2geometry.
Xoak also provides a mechanism for easily adding and registering custom index adapters.