Source
######################################################################
# #
# Use Case Demo Script for Jupiter 6cm VLA #
# Trimmed down from Use Case jupiter6cm_usecase.py #
# #
# Assumes you have already flagged using jupiter6cm_flagdemo.py #
# Will do calibration steps #
# #
# Updated STM 2008-05-26 (Beta Patch 2.0) new cal parameters #
# Updated STM 2008-06-12 (Beta Patch 2.0) for summer school demo #
# #
######################################################################
import time
import os
#
#=====================================================================
#
# This script has some interactive commands: scriptmode = True
# if you are running it and want it to stop during interactive parts.
scriptmode = True
#=====================================================================
#
# Set up some useful variables - these will be set during the script
# also, but if you want to restart the script in the middle here
# they are in one place:
prefix = 'jupiter6cm.demo'
msfile = prefix + '.ms'
#
#=====================================================================
#
# Special prefix for this calibration demo output
#
calprefix = prefix + '.cal'
# Clean up old files
os.system('rm -rf '+calprefix+'*')
#
#=====================================================================
# Calibration variables
#
# spectral windows to process
usespw = ''
usespwlist = ['0','1']
# prior calibration to apply
usegaincurve = True
gainopacity = 0.0
# reference antenna 11 (11=VLA:N1)
calrefant = '11'
gtable = calprefix + '.gcal'
ftable = calprefix + '.fluxscale'
atable = calprefix + '.accum'