print ""
print "* TEST " + str(testNum) + ": default test; using ngc4826 tutorial data and calibration"
print """
- This data has multiple spws with variable numbers of channels.
- This data has only one correlation, YY
> Using default input values where possible
"""

prefix = regressionDir+'/test'+str(testNum)+'/'
msname = prefix+"ngc4826.tutorial.ms"  
caltableName = prefix+"ngc4826.tutorial.16apr98.gcal"
outputFilename = prefix+'listcal.ngc4826.default.out'
standardFileName = localData + 'listcal.default.out'

# Use existing data or load data from scratch?
if (not lt.resetData([msname,caltableName], automate)):
    print "Using preexisting data." 
    lt.removeOut(outputFilename)
else:
    print "Building data from scratch."
    tstutl.maketestdir(prefix) # create test dir, overwrite preexisting
    load_ngc4826(prefix,msname,caltableName) # Build data from scratch

# Setup listcal input and run
default(listcal)
vis                 =     msname        #  Name of input visibility file
caltable            = caltableName      #  Input calibration table to list
field               =         ''        #  Field name or index; ''==>all
antenna             =         ''        #  Antenna name or index; ''==>all; antenna='3'
spw                 =         ''        #  Spectral window and channel: ''==>all;
                                        #   spw='5:0~10'
Esempio n. 2
0
# Using ngc4826 data.  This data contains multiple spectral windows with
# variable numbers of channels; only one correlation, YY.
#
testNum += 1
print ""
print "* TEST " + str(testNum) + ": using ngc4826 tutorial data"
print ""

prefix = regressionDir+'/test'+str(testNum)+'/'
msname = prefix+"ngc4826.tutorial.ms"  
outputFilename = prefix+'listvis.ngc4826.short.out'
localData = pathName + '/data/regression/ngc4826/'
standardFilename = localData+'listvis.short.out'

#Remove existing data or load data from scratch?
if (not lt.resetData([msname], automate)):
    print "Using preexisting data."
    lt.removeOut(outputFilename)
else:
    print "Building data from scratch."
    tstutl.maketestdir(prefix) # create test dir, overwrite preexisting
    load_ngc4826(prefix,msname) # Build data from scratch

# Setup listvis input and run
default(listvis)
vis                 = msname            #  Name of input visibility file
options             =       'ap'        #  List options: ap only
datacolumn          =     'data'        #  Column to list: data, corrected, model, residual
field               =         ''        #  Field names or index to be listed: ''==>all
spw                 =  '0~1:0~9'        #  Spectral window:channels: '\*'==>all, spw='1:5~57'
selectdata          =       True        #  Other data selection parameters