onepower.hmi.SOVirial_Mead.change_definition#

SOVirial_Mead.change_definition(m: ~numpy.ndarray, mdef, profile=None, c=None, z=0, cosmo=FlatLambdaCDM(name='Planck15', H0=<Quantity 67.74 km / (Mpc s)>, Om0=0.3075, Tcmb0=<Quantity 2.7255 K>, Neff=3.046, m_nu=<Quantity [0., 0., 0.06] eV>, Ob0=0.0486))#

Change the spherical overdensity mass definition.

This requires using a profile, for which the halomod package must be used.

Parameters:
  • m (float or array_like) – The halo mass to be changed, in \(M_\odot/h\). Must be broadcastable with c, if provided.

  • mdef (MassDefinition subclass instance) – The mass definition to which to change.

  • profile (halomod.profiles.Profile instance, optional) – An instantiated profile object from which to calculate the expected definition change. If not provided, a mocked NFW profile is used.

  • c (float or array_like, optional) – The concentration(s) of the halos given. If not given, the concentrations will be automatically calculated using the profile object.

Returns:

  • m_f (float or array_like) – The masses of the halos in the new definition.

  • r_f (float or array_like) – The radii of the halos in the new definition.

  • c_f (float or array_like) – The concentrations of the halos in the new definition.