NAME:
vrpmllpmbb_to_vxvyvz
PURPOSE:
Transform velocities in the spherical Galactic coordinate frame to the rectangular Galactic coordinate frame (can take vector inputs)
INPUT:
vr - line-of-sight velocity (km/s)
pmll - proper motion in the Galactic longitude (mu_l * cos(b))(mas/yr)
pmbb - proper motion in the Galactic lattitude (mas/yr)
l - Galactic longitude
b - Galactic lattitude
d - distance (kpc)
XYZ - (bool) If True, then l,b,d is actually X,Y,Z (rectangular Galactic coordinates)
degree - (bool) if True, l and b are in degrees
OUTPUT:
(vx,vy,vz) in (km/s,km/s,km/s)
For vector inputs [:,3]
HISTORY:
2009-10-24 - Written - Bovy (NYU)
2014-06-14 - Re-written w/ numpy functions for speed and w/ decorators for beauty - Bovy (IAS)