galpy.util.coords.Rz_to_uv

galpy.util.coords.Rz_to_uv(R, z, delta=1.0, oblate=False)[source]

Calculate prolate or oblate confocal u and v coordinates from R, z, and delta.

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

  • z (float or numpy.ndarray) – Height.

  • 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:

(u, v)

Return type:

tuple

Notes

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

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