Return to directory of Todd's CASA extensions

Parse an antenna argument to emulate plotms selection, given a list of unique antenna IDs present in the dataset If names are given, the msname argument is required (to translate names to IDs). See also parseFrequencyArgument and parseAntenna.


au.parseAntennaArgument(antenna, uniqueAntennaIds, msname='')
  • antenna: integer or string or list or name or comma-delimited name list
  • uniqueAntennaIds: a list of integers
  • msname: name of measurement set (only needed if antenna argument uses names)


CASA <2>: au.parseAntennaArgument('0~10,!4', [0,1,2,3,4,5,6,7,8,9,10])
  Out[2]: [0, 1, 2, 3, 5, 6, 7, 8, 9, 10]

-- ToddHunter - 2013-10-18

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > ParseAntennaArgument
Topic revision: 2014-04-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