A pyrap script for converting to circular polarisation

#!/usr/bin/python
import pyrap.tables as pt

oldms = '/data/scratch/adeller/L50631/quick/L50631_SAP000_SB120_uv.MS'
newms = '/data/scratch/adeller/L50631/quick/L50631_SAP000_SB120_uv.circ.MS'

# Copy to a new MS and update to circular
t = pt.table(oldms)
t.copy (newms)
t.close()
t=pt.taql ("update %s set DATA = mscal.stokes(DATA,'circ')" % newms)

# Update the polarization definition (the values represent RR,RL,LR,LL)
t=pt.taql (" update %s/POLARIZATION set CORR_TYPE=[5,6,7,8]" % newms)
t.close()
 
lbg/data_handling/circularconversion.txt · Last modified: 16-Apr-2012 14:41 by Adam Deller
[unknown button type]
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki