Usage of radec2deg

Convert an RA/Dec string in sexagesimal format to RA and Dec in degrees. See also radec2rad, rad2radec, direction2radec, radec2direction and radecOffsetToRadec.

Return to directory of Todd's CASA extensions


CASA <158>: au.radec2deg(radecstring)
  • The string can be either comma or space delimited, or delimited with 'h', 'm', 's' and 'd', 'm', 's'
  • The dec portion of the string can be either : or . delimited.


CASA <3>: au.radec2deg('12:56:11.16658 -')
  Out[3]: [194.04652741666666, -5.7893123888888889]

-- ToddHunter - 2013-11-27
Topic revision: r2 - 2015-04-14, 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