getRADecForSource

Return to directory of Todd's CASA extensions

Calls msmd.sourcedirs and extracts the RA/Dec for the specified source ID, in sexagesimal format. It chooses the first row where the SOURCE_ID column matches the requested source. It does not currently (CASA 4.4) support ephemeris objects. See also getRADecForField which uses ms.getfielddirmeas, which does support ephemeris objects.

Usage:

au.getRADecForSource(vis, source)
Inputs:
  • vis: measurement set
  • source: source ID (integer or string integer) or source name

Example:

CASA <6>: au.getRADecForSource('uid___A002_Xa56b1d_X174.ms',0)
  Out[6]: '02:38:38.93011, +016:36:59.274620'                 

-- ToddHunter - 2015-08-03
Topic revision: r2 - 2016-01-28, 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