galpy.util.coords.cyl_to_spher

galpy.util.coords.cyl_to_spher(R, Z, phi)[source]

Convert from cylindrical to spherical coordinates

Parameters:
  • R (float or numpy.ndarray) – Cylindrical R coordinate.

  • Z (float or numpy.ndarray) – Cylindrical Z coordinate.

  • phi (float or numpy.ndarray) – Cylindrical phi coordinate.

Returns:

Containing (r,theta,phi)

Return type:

numpy.ndarray

Notes

  • 2016-05-16 - Written - Aladdin