galpy.potential.rhalf

galpy.potential.rhalf(Pot, t=0.0, INF=inf)[source]

Calculate the half-mass radius, the radius of the spherical shell that contains half the total mass.

Parameters:
  • Pot (Potential instance or list thereof) – Potential instance or list of instances.

  • t (float or Quantity, optional) – Time (default: 0.0).

  • INF (numeric, optional) – Radius at which the total mass is calculated (internal units, just set this to something very large) (default: numpy.inf).

Returns:

Half-mass radius.

Return type:

float

Notes

  • 2021-03-18 - Written - Bovy (UofT)