radial_profiles.rescale_profile_by_mass#

radial_profiles.rescale_profile_by_mass(profile, mass, radius)[source]#

Rescale a density profile by a total mass within some radius.

Parameters:
  • profile (RadialProfile object) – The profile object to rescale.

  • mass (float) – The input mass in Msun.

  • radius (float) – The input radius that the input mass corresponds to in kpc.