parseAntenna

Return to directory of Todd's CASA extensions

Parse an antenna argument (integer or string or list) to emulate CASA task selections, given a measurement set. See parseAntennaASDM for the equivalent command for an ASDM. This works in all CASA versions (i.e., from 3.3 onward). See also parseFrequencyArgument. Note: full usage of the wildcard character (e.g. 'DV*') is not supported.

Usage:

au.parseAntenna(vis, antenna)
Inputs:
  • vis: name of measurement set
  • antenna: a string argument, as you would pass to a CASA task
Output:
  • list of antenna IDs

Example:

CASA <6>: au.parseAntenna('uid___A002_X7de05f_Xe69.ms','!PM01')
  Out[6]: [0, 2, 3]

-- ToddHunter - 2014-04-28
Topic revision: r4 - 2015-09-16, 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