Behroozi_relation¶
-
cosmo_utils.mock_catalogues.shmr_funcs.
Behroozi_relation
(log_mstar, z=0.0, return_mhalo_h0=False, mstar_h0=False)[source] [edit on github]¶ Returns the halo mass of a central galaxy as a function of its stellar mass.
Parameters: log_mstar :
float
,`np.ndarray`, or array-likeValue or array of values of base-10 logarithm of stellar mass in h=1 solar mass units.
z : int, float,
np.ndarray
or array-likeRedshift of the halo hosting the galaxy. If passing an array, it must be of the same length as the input
log_mstar
.return_mhalo_h0 :
bool
, optionalIf True, the function returns the halo masses in
h=1
units. This variable is set to False by default.mstar_h0 :
bool
, optionalIf True, the stellar mass in
log_mstar
is converted fromh=1
units toh=0.7
units. This variable is set to False by default.Returns: log_halo_mass : float or
np.ndarray
Array or float containing 10-base logarithm of halo mass in
h=1
solar mass units.Notes
The parameter values in Behroozi+10 were fit to data assuming
h=0.7
, but all halotools inputs are inh=1
units. Thus we will transform our input stellar mass toh=0.7
units, evaluate using the Behroozi parameters, and then transform back toh=1
units before returning the result.