galpy.util.bovy_coords.XYZ_to_galcenrect¶
-
galpy.util.bovy_coords.
XYZ_to_galcenrect
(X, Y, Z, Xsun=1.0, Zsun=0.0)¶ NAME:
XYZ_to_galcenrectPURPOSE:
transform XYZ coordinates (wrt Sun) to rectangular Galactocentric coordinatesINPUT:
X - X
Y - Y
Z - Z
Xsun - cylindrical distance to the GC
Zsun - Sun’s height above the midplane
OUTPUT:
(Xg, Yg, Zg)HISTORY:
2010-09-24 - Written - Bovy (NYU)
2016-05-12 - Edited to properly take into account the Sun’s vertical position; dropped Ysun keyword - Bovy (UofT)