galpy.util.bovy_coords.vxvyvz_to_galcenrect¶
-
galpy.util.bovy_coords.
vxvyvz_to_galcenrect
(vx, vy, vz, vsun=[0.0, 1.0, 0.0], Xsun=1.0, Zsun=0.0)¶ NAME:
vxvyvz_to_galcenrectPURPOSE:
transform velocities in XYZ coordinates (wrt Sun) to rectangular Galactocentric coordinates for velocitiesINPUT:
vx - U
vy - V
vz - W
vsun - velocity of the sun in the GC frame ndarray[3]
Xsun - cylindrical distance to the GC
Zsun - Sun’s height above the midplane
OUTPUT:
[:,3]= vXg, vYg, vZgHISTORY:
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)