galpy.util.bovy_coords.radec_to_lb¶
-
galpy.util.bovy_coords.
radec_to_lb
(ra, dec, degree=False, epoch=2000.0)¶ NAME:
radec_to_lbPURPOSE:
transform from equatorial coordinates to Galactic coordinatesINPUT:
ra - right ascension
dec - declination
degree - (Bool) if True, ra and dec are given in degree and l and b will be as well
epoch - epoch of ra,dec (right now only 2000.0 and 1950.0 are supported)
OUTPUT:
l,b
For vector inputs [:,2]
HISTORY:
2009-11-12 - Written - Bovy (NYU)
2014-06-14 - Re-written w/ numpy functions for speed and w/ decorators for beauty - Bovy (IAS)