parseGencalAntpos
Return to directory of Todd's CASA extensions
Given a text file (such as a manual ALMA calibration script),
find the gencal command of antpos and return the 'antenna'
and 'parameter' parameters.
Usage:
au.parseGencalAntpos(filename)
Example:
CASA <2>: a=au.parseGencalAntpos('uid___A002_X99c183_X25b6.ms.scriptForCalibration.py')
CASA <3>: a[0]
Out[3]: 'DV20,DV18,DV22,DA51,DA49,DA62,DA61,DA60,DA45,DV10,DA47,DV08,DA63,DV13,DV21'
CASA <4>: str(a[1])
Out[4]: '[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]'
--
ToddHunter - 2016-01-27