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

Use a KD-tree for nearest neighbor interpolation #293

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukem12345
Copy link
Member

Currently, the Halfar-EBM-Water docs page uses a simple double-nested for loop for nearest-neighbor interpolation. This PR reduces the time to set up initial conditions by using a KDTree for pre-processing. Euclidean distances are still used, which is fine, due to the resolution of the data.

@lukem12345 lukem12345 added the documentation Improvements or additions to documentation label Dec 15, 2024
@lukem12345 lukem12345 self-assigned this Dec 15, 2024
@lukem12345 lukem12345 marked this pull request as ready for review December 15, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant