xoa.geo.GeoKDTree.query_radius

xoa.geo.GeoKDTree.query_radius#

GeoKDTree.query_radius(target, radius, units='m', output='index', workers=1)[source]#

Find the neighbors of target points within a distance

Parameters:
Returns:

  • list – With output="index", a list with one item per target point, in the flattened order, which is a dict of indices along a neighbor dimension for each dimension of the longitudes and latitudes of obj. They are suited for pointwise selection with xarray.DataArray.isel().

  • xarray.DataArray – With output="dist", the distance to the closest target on the points of obj that are within radius of at least one target, and nan elsewhere. With output="mask", the boolean array of these points.