Usage of radecOffsetToRadec

Return to directory of Todd's CASA extensions

Convert an RA/Dec position and offsets into a new RA/Dec position. See also rad2radec, direction2radec, and radec2direction.

Usage:

au.radecOffsetToRadec(radec, rao, deco, replaceDotsWithColons=True, mas=False, prec=5)
Inputs:
  • radec: either a sexagesimal string ('hh:mm:ss.s dd:mm:ss') or a tuple of radians
  • rao, deco: offset in arcseconds (floating point values)
  • replaceDotsWithColons: change CASA's default Dec string from xx.yy.zz to xx:yy:zz
  • mas: if True, then treat rao and deco as milliarcseconds
  • prec: desired number of digits of precision after the seconds decimal point
Returns:
  • a sexagesimal string

Example:

CASA <3>: au.radecOffsetToRadec('18:00:00, -10:00:00',34,34)
18:00:02.26667, -009:59:26.000000
  Out[3]: '18:00:02.26667, -009:59:26.000000'

-- ToddHunter - 2013-09-28
Topic revision: r4 - 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