yt.analysis_modules.halo_finding.halo_objects.RockstarHalo.center_of_mass

RockstarHalo.center_of_mass(*args, **kwargs)

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()