galpy.util.conversion.dens_in_criticaldens

galpy.util.conversion.dens_in_criticaldens(vo, ro, H=70.0)[source]

Convert density to units of the critical density.

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

  • ro (float) – Length unit in kpc.

  • H (float, optional) – Hubble constant in km/s/Mpc. Default is 70.0.

Returns:

Conversion from units where vo=1. at ro=1. to units of the critical density.

Return type:

float

Notes

  • 2014-01-28 - Written - Bovy (IAS)