Usage of radec2direction

Return to directory of Todd's CASA extensions

Convert a sexagesimal string into a direction dictionary suitable to substitute for the result of a call to me.direction(). See also direction2radec and rad2radec.

Usage:

au.radec2direction(radecstring)
Convert a sexagesimal string into a direction dictionary suitable to substitute for the result of a call to me.direction().
  • The string can be either comma or space delimited.
  • The dec portion of the string can be either : or . delimited.

Example:

CASA <157>: au.radec2direction('12:56:11.16658 -05.47.21.5246')
  Out[157]:
{'m0': {'unit': 'rad', 'value': 3.3867508054822797},
 'm1': {'unit': 'rad', 'value': -0.10104256261260948},
 'refer': 'J2000',
 'type': 'direction'}

-- ToddHunter - 2013-01-03
Topic revision: r1 - 2013-01-03, 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