libpysal.cg.fast_threshold¶
-
libpysal.cg.
fast_threshold
(pts, dist, radius=6371.0)[source]¶ Find all neighbors on a sphere within a threshold distance
- Parameters
- pointslist
python:list
of
lat-lontuples
(Note
,has
to
be
a
python:list
,even
for
one
point
) - dist: float
threshold distance
- radius: float
sphere’s radius
- pointslist
- Returns
- dict:
key is id of point, value is a list of ids for other points within dist of key point