galpy.util.conversion.mass_in_msol

galpy.util.conversion.mass_in_msol(vo, ro)[source]

Convert a mass to Msolar.

Parameters:
  • vo (float) – Velocity unit in km/s.

  • ro (float) – Length unit in kpc.

Returns:

Conversion from units where vo=1. at ro=1.

Return type:

float

Notes

  • 2013-09-01 - Written - Bovy (IAS)