yt.lagos.FOFHaloFinder.nearest_neighbors_3D

FOFHaloFinder.nearest_neighbors_3D(haloID, num_neighbors=7, search_radius=0.20000000000000001)

For a halo its nearest neighbors in 3D using the kd tree.

This will calculate the nearest neighbors of a halo, using the kD tree. Returns a list of the neighbors distances and ID with format [distance,haloID].

Parameters :

haloID : integer

The halo to find neighbors for.

num_neighbors : integer

How many neighbors to search for. Default = 7.

search_radius : float

How far away to look for neighbors in code units. Default = 0.2.

Examples

>>> neighbors = halos.nearest_neighbors_3D(0)

Previous topic

yt.lagos.FOFHaloFinder.nearest_neighbors_2D

Next topic

yt.lagos.FOFHaloFinder.write_out

This Page