galpy.util.coords.cyl_to_spher_vec

galpy.util.coords.cyl_to_spher_vec(vR, vT, vz, R, z)[source]

Transform vectors from cylindrical to spherical coordinates. vtheta is positive from pole towards equator.

Parameters:
  • vR (float or numpy.ndarray) – Galactocentric cylindrical radial velocity

  • vT (float or numpy.ndarray) – Galactocentric cylindrical rotational velocity

  • vz (float or numpy.ndarray) – Galactocentric cylindrical vertical velocity

  • R (float or numpy.ndarray) – Galactocentric cylindrical radius

  • z (float or numpy.ndarray) – Galactocentric cylindrical height

Returns:

Containing:
  • vr : Galactocentric spherical radial velocity

  • vT : Galactocentric spherical rotational velocity

  • vtheta : Galactocentric spherical polar velocity

Return type:

tuple

Notes

  • 2020-07-01 - Written - James Lane (UofT)