galpy.util.conversion.get_physical¶
-
galpy.util.conversion.
get_physical
(obj, include_set=False)[source]¶ NAME:
get_physicalPURPOSE:
return the velocity and length units for converting between physical and internal units as a dictionary for any galpy object, so they can easily be fed to galpy routinesINPUT:
obj - a galpy object or list of such objects (e.g., a Potential, list of Potentials, Orbit, actionAngle instance, DF instance)
include_set= (False) if True, also include roSet and voSet, flags of whether the unit is explicitly set in the object
OUTPUT:
Dictionary {‘ro’:length unit in kpc,’vo’:velocity unit in km/s}; note that this routine will always return these conversion units, even if the obj you provide does not have units turned onHISTORY:
2019-08-03 - Written - Bovy (UofT)