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