galpy.util.coords.lb_to_radec¶
- galpy.util.coords.lbd_to_XYZ(l, b, d, degree=False)[source]¶
Transform from spherical Galactic coordinates to rectangular Galactic coordinates (works with vector inputs)
- Parameters:
l (float or numpy.ndarray) – Galactic longitude (rad)
b (float or numpy.ndarray) – Galactic latitude (rad)
d (float or numpy.ndarray) – Distance (arbitrary units)
degree (bool, optional) – If True, l and b are in degrees. Default is False.
- Returns:
[X,Y,Z] in whatever units d was in. For vector inputs [:,3]
- Return type:
tuple or numpy.ndarray
Notes
2009-10-24 - Written - Bovy (NYU)
2014-06-14 - Re-written w/ numpy functions for speed and w/ decorators for beauty - Bovy (IAS)