def plotPhase(vis, device='2/xs'): miriad.smauvplt({ 'vis': vis, 'device': device, 'interval': '1e3', 'stokes': 'i,v', 'axis': 'time,pha', 'nxy': '2,2' })
miriad.smauvspec({ 'vis': 'tmp.4', 'device': '1/xw', 'interval': '1e3', 'stokes': 'i', 'axis': 'freq,amp', 'nxy': '2,3' }) input("Return to continue") miriad.showChannels('tmp.3', subtitle='SplitCont') miriad.uvlin({ 'vis': 'tmp.3', 'out': '{}.{}'.format(vis, lab), 'chans': free, 'mode': 'chan0', # this says 'store a single average value only' 'order': 0 }) miriad.smauvplt({ 'vis': '{}.{}'.format(vis, lab), 'device': '2/xs', 'stokes': 'i,v', 'axis': 'time,pha', 'nxy': '2,2' }) print("Started with:", vis + '.' + sb) print("Output:", vis + '.' + lab)