yt.analysis_modules.halo_finding.halo_objects.FOFHalo.get_sphere

FOFHalo.get_sphere(center_of_mass=True)

Returns a sphere source.

This will generate a new, empty sphere source centered on this halo, with the maximum radius of the halo. This can be used like any other data container in yt.

Parameters:

center_of_mass : bool, optional

True chooses the center of mass when calculating the maximum radius. False chooses from the maximum density location for HOP halos (it has no effect for FOF halos). Default = True.

Returns:

sphere : yt.data_objects.api.YTSphereBase

The empty data source.

Examples

>>> sp = halos[0].get_sphere()