Skip to content

Return distance to the nearest neighbor in query results #26

Open

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().

Activity

  1. added this to the 0.2.0 milestone on Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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