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

How to leverage initial guesses? #13

Open
willirath opened this issue Aug 3, 2020 · 1 comment
Open

How to leverage initial guesses? #13

willirath opened this issue Aug 3, 2020 · 1 comment

Comments

@willirath
Copy link
Contributor

We often know that the point we're querying is close to some location where we already know the nearest grid point. Examples are high-resolution observational tracks where the measurement device (ship, float, whatever) can only travel with very limited velocity.

Can we leverage something like the following?

Give me the nearest neighbour of (x, y). It's probably close to (i0, j0).

@benbovy
Copy link
Member

benbovy commented Sep 7, 2020

I think that the "hashing / buckets" approach using H3 cells described in #16 could probably help in this case.

We could choose a H3 cell resolution that is the closest to the expected distance to the nearest grid point. This would optimize the computation such that:

  • we only need to search one H3 cell and its direct neighbor cells
  • there shouldn't be too much grid points in this set of H3 cells (minimize computation of actual distances)

One limitation is that choosing a low resolution increases memory footprint of the index (if the H3 resolution is smaller than the model grid resolution, the size of the hash-table will be equivalent to the number of grid points).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants