yt.lagos.Halo.get_sphere

Halo.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.

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.lagos.AMRSphereBase

The empty data source.

Examples

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

Previous topic

yt.lagos.Halo.get_size

Next topic

yt.lagos.Halo.maximum_density

This Page