galpy.util.coords.XYZ_to_galcencyl¶
-
galpy.util.coords.
XYZ_to_galcencyl
(X, Y, Z, Xsun=1.0, Zsun=0.0, _extra_rot=True)[source]¶ NAME:
XYZ_to_galcencylPURPOSE:
transform XYZ coordinates (wrt Sun) to cylindrical Galactocentric coordinatesINPUT:
X - X
Y - Y
Z - Z
Xsun - cylindrical distance to the GC
Zsun - Sun’s height above the midplane
_extra_rot= (True) if True, perform an extra tiny rotation to align the Galactocentric coordinate frame with astropy’s definition
OUTPUT:
R,phi,zHISTORY:
2010-09-24 - Written - Bovy (NYU)