galpy.potential.rhalf¶
- galpy.potential.rhalf(Pot, t=0.0, INF=inf)[source]¶
NAME:
rhalf
PURPOSE:
calculate the half-mass radius, the radius of the spherical shell that contains half the total mass
INPUT:
Pot - Potential instance or list thereof
t= (0.) time (optional; can be Quantity)
INF= (numpy.inf) radius at which the total mass is calculated (internal units, just set this to something very large)
OUTPUT:
half-mass radius
HISTORY:
2021-03-18 - Written - Bovy (UofT)