halo_utils#

This module contains utility functions for parameterizing individual halos.

Module Contents#

Functions#

get_nfw_kwargs(halo_mass, stellar_mass, halo_z, z_src, ...)

get_concentration(halo_mass, stellar_mass[, m, A, ...])

Get the halo concentration from halo and stellar masses

halo_utils.get_nfw_kwargs(halo_mass, stellar_mass, halo_z, z_src, seed)[source]#
halo_utils.get_concentration(halo_mass, stellar_mass, m=-0.1, A=3.44, trans_M_ratio=430.49, c_0=3.19, seed=123, add_noise=True)[source]#

Get the halo concentration from halo and stellar masses using the fit in Childs et al 2018 for all individual halos, both relaxed and unrelaxed

Parameters#

trans_M_ratiofloat or np.array

ratio of the transition mass to the stellar mass