pynbody.analysis.halo

Contents

pynbody.analysis.halo#

halo#

Functions for dealing with and manipulating halos in simulations.

Functions

center(sim[, mode, return_cen, ...])

Transform the ancestor snapshot so that the provided snapshot is centred

halo_shape(sim[, N, rin, rout, bins])

Computes the shape of a halo as a function of radius by fitting homeoidal shells.

hybrid_center(sim[, r])

Determine the center of the halo by finding the shrink-sphere-center near the potential minimum

shrink_sphere_center(sim[, r, ...])

Return the center according to the shrinking-sphere method of Power et al (2003)

vel_center(sim[, cen_size, return_cen, move_all])

Recenter the snapshot on the center of mass velocity inside a sphere of specified radius

virial_radius(sim[, cen, overden, r_max, ...])

Calculate the virial radius of the halo centered on the given coordinates.