yt.analysis_modules.halo_finding.halo_objects.Halo.center_of_mass

Halo.center_of_mass(*args, **kwargs)[source]

Calculate and return the center of mass.

The center of mass of the halo is directly calculated and returned.

Examples

>>> com = halos[0].center_of_mass()