pynbody.analysis.halo

pynbody.analysis.halo#

Functions for calculating crucial properties of halos, such as their center, shape, and virial radius.

Also contains functions for transforming the simulation so that a given halo is centered.

Functions

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

Transform the ancestor snapshot so that the provided snapshot is centred

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

Deprecated wrapper around shape(), for backwards compatibility.

hybrid_center(sim[, r])

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

shape(sim[, nbins, rmin, rmax, bins, ndim, ...])

Calculates the shape of the provided particles in homeoidal shells, over a range of nbins radii.

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.