xoa.core.geo.SphericalKDTree.query# SphericalKDTree.query(lon, lat, k=1, max_dist=None, workers=1)[source]# Find the nearest neighbors of points Parameters: lon (array_like(m)) lat (array_like(m)) k (int) – Number of neighbors max_dist (float, None) – Maximal distance workers (int) – Number of threads, -1 for all Returns: array_like(m) or array_like(m, k) – Great circle distances, which are inf for missing neighbors array_like(m) or array_like(m, k) – Indices of neighbors