Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a KNeighbors gridder #375

Closed
leouieda opened this issue Aug 25, 2022 · 0 comments · Fixed by #378
Closed

Create a KNeighbors gridder #375

leouieda opened this issue Aug 25, 2022 · 0 comments · Fixed by #378
Labels
enhancement Idea or request for a new feature
Milestone

Comments

@leouieda
Copy link
Member

leouieda commented Aug 25, 2022

The current nearest neighbour interpolation we have is the SciPy one and it's fairly limited. With a new dedicated gridder we can:

  1. Take advantage of pykdtree
  2. Support spherical coordinates with scikit-learn's BallTree (with haversine distance)
  3. Allow averaging k-nearest neighbours instead of just the 1
  4. Support weights in the averaging

The new class would sit in a verde/neighbours.py module.

@leouieda leouieda added the enhancement Idea or request for a new feature label Aug 25, 2022
@leouieda leouieda added this to the 1.8.0 milestone Aug 25, 2022
@leouieda leouieda changed the title Create a KNearest gridder Create a KNeighbors gridder Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Idea or request for a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant