Find nearest neighbors between numpy arrays
I have 2 numpy arrays array_1
, containing the original xy information and array_2
containing a long list of xy coordinates from the grid. My task is to add the closest xy pair from array_2
to array_1
.
After matching, I'm going to take all the points in the radius of the nearest point and change the grid value. (i.e. grid value = 1 if within grid value radius = 2)
I am starting writing in python and for the first time a poster. Thanks for any help.
+3
source to share
No one has answered this question yet
See similar questions:
or similar: