Skip to content

Return distance to the nearest neighbor in query results #26

Open
@benbovy

Description

@benbovy

This has been suggested in #11 and might be useful for further processing.

The API could look like this:

ds_sel = ds.xoak.sel(..., distances=None)

where distances may also accept a string that would then correspond to the name of a new data variable in ds_sel holding distance values.

Alternatively, we could add another method to the accessor if we want to keep xarray.Dataset.xoak.sel() close to the original xarray.Dataset.sel().

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions