find_rhalf3D_sphere
- deprojected_sersic_models.utils.find_rhalf3D_sphere(R=None, menc3D_sph=None, total_mass=None)[source]
Evalutation of the radius corresponding to the sphere that encloses half of the total mass for a Sersic profile of a given intrinsic axis ratio, effective radius, and Sersic index.
This is a utility function, where the Menc3D_sphere must have been pre-calculated.
Performs an interpolation to find the appropriate rhalf_sph, given arrays R and menc3D_sph.
- Parameters:
R (array_like) – Radii at which menc3D_sph is evaluated [kpc]
menc3D_sph (array_like) – Mass enclosed within a sphere (evaluated over the radii in r) [Msun]
total_mass (float) – Total mass of the component [Msun]
- Returns:
rhalf_sph – 3D radius enclosing half the total Sersic profile mass. [kpc]
- Return type: