xarray.Dataset.xoak.sel¶
- Dataset.xoak.sel(indexers=None, **indexers_kwargs)¶
Selection based on a ball tree index.
The index must have been already built using xoak.set_index().
It behaves mostly like
xarray.Dataset.sel()
andxarray.DataArray.sel()
methods, with some limitations:Orthogonal indexing is not supported
For vectorized (point-wise) indexing, you need to supply xarray objects
Use it for nearest neighbor lookup only (it implicitly assumes method=”nearest”)
This triggers
dask.compute()
if the given indexers and/or the index coordinates are chunked.