How to filter numpy array by list of indices?
The fastest way to do this is X[tuple(index.T)], where X is the ndarray with the elements and index is the ndarray of indices wished to be retrieved.
I have a numpy array, filtered__rows, comprised of LAS data [x, y, z, intensity, classification].  I have created a cKDTree of points and have found nearest neighbors, query_ball_point, which is a list of indices for the point and its neighbors.
Is there a way to filter filtered__rows to create an array of only points whose index is in the list returned by query_ball_point?