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]