NAME:
lbd_to_XYZ
PURPOSE:
transform from spherical Galactic coordinates to rectangular Galactic coordinates (works with vector inputs)
INPUT:
l - Galactic longitude (rad)
b - Galactic lattitude (rad)
d - distance (arbitrary units)
degree - (bool) if True, l and b are in degrees
OUTPUT:
[X,Y,Z] in whatever units d was in
For vector inputs [:,3]
HISTORY:
2009-10-24- Written - Bovy (NYU)