Return to directory of Todd's CASA extensions

Convert a position (or list of positions) in RA/Dec from hours/degrees to sexagesimal string. See also deg2radec.


au.hours2radec(ra, dec=0, prec=5, verbose=True, hmsdms=False)
  • ra: RA in hours, or a tuple of RA in hours and Dec in degrees, or an array of RAs in hours
  • dec: Dec in degrees, or an array of Decs in degrees
  • prec: number of digits after the seconds decimal
  • hmsdms: if True, then format is HHhMMmSS.SSSs, +DDdMMmSS.SSSs
  • default format is HH:MM:SS.SSSSS, +DD:MM:SS.SSSS


CASA <11>: au.hours2radec(23.9, -1.45)
23:54:00.000000, -001:27:00.00000
  Out[11]: '23:54:00.000000, -001:27:00.00000'

-- ToddHunter - 2015-01-20
Topic revision: r1 - 2015-01-20, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback