Skip to content
Snippets Groups Projects
Commit 711d36a0 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 68688009
Branches
No related tags found
No related merge requests found
......@@ -89,6 +89,8 @@ class LonLatGrid:
xy = np.stack([lons, lats], axis=1)
dist, indices = self.kd.query(np.deg2rad(xy))
dist = dist[0]
indices = indices[0]
dist *= 6370000 # convert unit radius to meters
valid = (indices < self.map_indexes.size) & (dist < self.closeness_threshold)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment