xoa.core.geo.SphericalKDTree.query_ball_point

xoa.core.geo.SphericalKDTree.query_ball_point#

SphericalKDTree.query_ball_point(lon, lat, r, return_dist=False, workers=1)[source]#

Find the neighbors of points within a distance

Parameters:
  • lon (array_like(m))

  • lat (array_like(m))

  • r (float) – Maximal distance

  • return_dist (bool) – Also return the distances

  • workers (int) – Number of threads, -1 for all

Returns:

  • list – One array of indices per point, sorted by increasing indices

  • list – One array of great circle distances per point, if return_dist