halotools.empirical_models.halo_mass_to_halo_radius(mass, cosmology, redshift, mdef)[source]

Spherical overdensity radius as a function of the input mass.

Note that this function is independent of the form of the density profile.

See Halo Mass and Radius Definitions for details.

mass: array_like

Total halo mass in \(M_{\odot}/h\); can be a number or a numpy array.


Instance of an Astropy cosmology object.

redshift: array_like

Can either be a scalar, or a numpy array of the same dimension as the input mass.

mdef: str

String specifying the halo mass definition, e.g., ‘vir’ or ‘200m’.

radius: array_like

Halo radius in physical Mpc/h; has the same dimensions as input mass.

See also


Spherical overdensity radius from mass.