galpy.potential.rhalf¶

galpy.potential.
rhalf
(Pot, t=0.0, INF=inf)[source]¶ NAME:
rhalfPURPOSE:
calculate the halfmass radius, the radius of the spherical shell that contains half the total massINPUT:
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:
halfmass radiusHISTORY:
20210318  Written  Bovy (UofT)