galpy.util.coords.uv_to_Rz

galpy.util.coords.uv_to_Rz(u, v, delta=1.0, oblate=False)[source]

Calculate R and z from prolate confocal u and v coordinates.

Parameters:
  • u (float or numpy.ndarray) – Confocal u.

  • v (float or numpy.ndarray) – Confocal v.

  • delta (float or numpy.ndarray, optional) – Focus. Default is 1.0.

  • oblate (bool, optional) – If True, compute oblate confocal coordinates instead of prolate. Default is False.

Returns:

(R, z)

Return type:

tuple

Notes

  • 2012-11-27 - Written - Bovy (IAS)

  • 2017-10-11 - Added oblate coordinates - Bovy (UofT)