
##############################################################################
# Data reduction script for VY CMa Band 7 325-GHz 12-m data: Part 2: Imaging
# VYCMa_Band7_325GHz_Imaging.py
# Tested using CASA Version 4.2.1 (r29048)
#
# NOTE - THIS DATASET DOES NOT HAVE ITS OWN BANDPASS CALIBRATOR AND SHOULD
# BE USED WITH CAUTION. IN THE PRESENT SCRIPT THE BANDPASS CALIBRATOR IS
# COPIED FROM THE NEXT DATASET (X1ba1). WHILE THIS PROVIDES A SATISFACTORY RESULT
# FOR THE BANDPASS AND AN IMPROVED SNR, SOME USERS MAY WANT TO OMIT THIS DATASET.
#
# Datasets used:
# uid___A002_X6cdf83_X1488 - observed Aug 16 2013 with 16 antennas
# Flux scale calibrator Ganymede*
# Bandpass calibrator (copy from next dataset) 
# Phase reference source J0648-3044 
# Target Vy Cma
#
# uid___A002_X6d0f96_X1ba1 - observed Aug 16 2013 with 20 antennas
# Flux scale calibrator J0522-364  
# Bandpass calibrator J0522-364
# Phase reference source J0648-3044 
# Target Vy Cma
#
# NOTE - THIS DATASET DOES NOT HAVE ITS OWN BANDPASS CALIBRATOR AND SHOULD
# BE USED WITH CAUTION. IN THE PRESENT SCRIPT THE BANDPASS CALIBRATOR IS
# COPIED FROM THE PREVIOUS DATASET (X1ba1). WHILE THIS PROVIDES A SATISFACTORY RESULT
# FOR THE BANDPASS AND AN IMPROVED SNR, SOME USERS MAY WANT TO OMIT THIS DATASET.
#
# uid___A002_X6d0f96_X1de2 - observed Aug 17 2013 with 20 antennas
# Flux scale calibrator  Pallas*
# Bandpass calibrator    (copy from previous dataset)
# Phase reference source J0648-3044
# Target                 Vy Cma
#
# * This part of the spectrum is strongly affected by tropospheric
# * water so the most accurate flux scale is in fact obtained by using
# * the values and spectral indices measured at 321-GHz for J0648-3044
# * and J0522-364
#
#
##############################################################################
"""
See accompanying README file for details of the necessary input files
and comments on the data.

Before running this script you should have run
VYCMa_Band7_325GHz_Calibration.py or obtained the calibrated
target dataset VYCMa_325.ms.  This script assumes that VYCMa_Band7_325.ms
has had all instrumental and reference source calibration applied, and
has been adjusted to the LSRK frame, as at the end of
VYCMa_Band7_325GHz_Calibration.py

"""
#----------------------------------------------------------------------------------
#----- Optional Steps -------------------------------------------------------------
#----------------------------------------------------------------------------------

#----- Set this option to False if you do not want to do interactive clean.
#----- Note that better results will be obtained if you do make masks interatively,
#----- expanding the area as fainter emission emerges
cleaninteractive=F

#----- Set this option to true if you want to make diagnostic plots along the way.
#----- Note that this will slow down the reduction.
#----- Default is no plots (you can make them later anyway).
calplots=T

#----------------------------------------------------------------------------------
#----- Some setup steps -----------------------------------------------------------
#----------------------------------------------------------------------------------

version = casalog.version()
print "You are using " + version
if (version < '4.2.1'):
    print "\033[91m YOUR VERSION OF CASA IS TOO OLD FOR THIS GUIDE."
    print "\033[91m PLEASE UPDATE IT BEFORE PROCEEDING."
else:
    print "Your version of CASA is appropriate for this guide."

# Repeat this if you are using copy and paste, and you re-start CASA
refantenna='DV15'

thesteps=[]
step_title = {0: 'List the data set and plot the visibility spectrum',
              1: 'Make first image of maser peak',
              2: 'Self-calibrate cycle 1, phase-only, re-image',
              3: 'Self-calibrate cycle 2, phase-only, re-image',
              4: 'Self-calibrate cycle 3, amp & phase, re-image',
              5: 'Self-calibrate cycle 4, amp & phase, re-image',
              6: 'Make low-res cubes to identify continuum \n(this step can be omitted if you trust our channel selection)',
              7: 'Image continuum',
              8: 'Subtract continuum',
              9: 'Image a line in spw 0',
              10: 'Image a line in spw 1',
}
 
# The Python variable 'mysteps' will control which steps
# are executed when you start the script using
#   execfile('scriptForCalibration.py')
# e.g. setting
#   mysteps = [2,3,4]# before starting the script will make the script execute
# only steps 2, 3, and 4
# Setting mysteps = [] will make it execute all steps.

try:
  print 'List of steps to be executed ...', mysteps
  thesteps = mysteps
except:
  print 'global variable mysteps not set.'
if (thesteps==[]):
  thesteps = range(0,len(step_title))
  print 'Executing all steps: ', thesteps


######################################################
#  Do listobs and write info to a text file; plot spectrum and brightest channel
mystep = 0 
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]

  os.system('rm VYCMa_Band7_325_listobs.txt')
  listobs(vis='VYCMa_Band7_325.ms', listfile='VYCMa_Band7_325_listobs.txt', verbose=True)
  print '<< Printed listobs output to VYCMa_Band7_325_listobs.txt'

  for s in ['0','1']:
      os.system('rm -rf VYCMa_Band7_325_spw'+s+'_1st-vis-spectrum.png')
      plotms(vis='VYCMa_Band7_325.ms', 
             xaxis='frequency', yaxis='amp',
             selectdata=T, spw=s, 
             avgtime='1e8',avgscan=T,
             coloraxis='baseline',
             showgui=F,
             plotfile='VYCMa_Band7_325_spw'+s+'_1st-vis-spectrum.png')

# You will notice the very bright maser line in spw 0:1962
# * DA50 scans 50~69 has fast phase

  os.system('rm -rf VYCMa_Band7_325_0-1962_1st_amp.png')
  plotms(vis='VYCMa_Band7_325.ms', 
         xaxis='time', yaxis='amp',
         selectdata=T, 
         antenna='DV15&*',
         spw='0:1962',
         coloraxis='baseline',
         showgui=F,
         plotfile='VYCMa_Band7_325_0-1962_1st_amp.png')

  os.system('rm -rf VYCMa_Band7_325_0-1962_1st_phase.png')
  plotms(vis='VYCMa_Band7_325.ms', 
         xaxis='time', yaxis='phase',
         selectdata=T, 
         antenna='DV15&*',
         spw='0:1962',
         coloraxis='baseline',
         showgui=F,
         plotfile='VYCMa_Band7_325_0-1962_1st_phase.png')

# From listobs, the scan numbers are  8,11,15,18,22,25,29  30,47,48,69
# You may want to plot baselines iteratively to check, but it turns out that
# * DA50 scans 50~69 has fast phase but it turns out it can be corrected

######################################################
#  Make first image of maser peak, omitting dubious data
# * DA50 scans 50~69 has fast phase
mystep = 2
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]

  os.system('rm -rf VYCMa_Band7_325_0_1962.clean*')
  clean(vis = 'VYCMa_Band7_325.ms',
        imagename='VYCMa_Band7_325_0_1962.clean',
        field='Vy Cma', 
        spw='0:1962',
        antenna='!DA50',
        mode='channel',start=1962,nchan=1,
        cell='0.01arcsec',npercycle=10,imsize=512,
        psfmode='hogbom',
        mask='ellipse[[257pix,275pix],[59pix,49pix],90deg]',
        interactive=cleaninteractive,
        niter=100)

# Get image statistics
  imin='VYCMa_Band7_325_0_1962.clean.image'
  noise=imstat(imagename=imin,
               box='250,50,500,200')['rms'][0]

  peak=imstat(imagename=imin,
              box='200,200,330,330')['max'][0]

  print 'rms %8.3f, peak %8.3f, snr %5i' % (noise, peak, peak/noise)   
#rms   4.447, peak  246.801, snr    55

######################################################
#  Self-calibrate, phase-only first, using all data
mystep = 3
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]

  os.system('rm -rf cal-VYCMa_325_1962.ph1')
  gaincal(vis = 'VYCMa_Band7_325.ms',
          field='Vy Cma',
          refant=refantenna,
          caltable='cal-VYCMa_325_1962.ph1',
          spw='0:1962',
          calmode='p',
          solint='60s')

  if (calplots):
      os.system('rm -rf cal-VYCMa_325_1962.ph1*.png')
      for ant in range(3):
          plotcal(caltable='cal-VYCMa_325_1962.ph1',
              xaxis = 'time', yaxis = 'phase',
              antenna=str(ant*8)+'~'+str(ant*8+7),    
              subplot=421,
              fontsize=7.0,
              iteration='antenna',
              figfile='cal-VYCMa_325_1962.ph1_ant'+str(ant*8)+'-'+str(ant*8+7)+'.png')

  applycal(vis = 'VYCMa_Band7_325.ms',
           field='Vy Cma',
           spw='0,1',
           spwmap=['0,0'],
           gaintable='cal-VYCMa_325_1962.ph1',
           calwt = F,
           flagbackup = F)

  os.system('rm -rf VYCMa_Band7_325_0_1962_ph1.clean*')
  clean(vis = 'VYCMa_Band7_325.ms',
        imagename='VYCMa_Band7_325_0_1962_ph1.clean',
        field='Vy Cma', 
        spw='0:1962',
        mode='channel',start=1962,nchan=1,
        cell='0.01arcsec',npercycle=50,imsize=512,
        psfmode='hogbom',
        mask='ellipse[[258pix,281pix],[63pix,59pix],90deg]',
        interactive=cleaninteractive,
        niter=250)

# Get image statistics
  imin='VYCMa_Band7_325_0_1962_ph1.clean.image'
  noise=imstat(imagename=imin,
               box='250,50,500,200')['rms'][0]

  peak=imstat(imagename=imin,
              box='200,200,330,330')['max'][0]

  print 'rms %8.3f, peak %8.3f, snr %5i' % (noise, peak, peak/noise)   
#rms    1.763, peak  290.343, snr   164


######################################################
#  Self-calibrate cycle 2, phase-only, shorter solint, using all data
mystep = 4
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]

  os.system('rm -rf cal-VYCMa_325_1962.ph2')
  gaincal(vis = 'VYCMa_Band7_325.ms',
          field='Vy Cma',
          refant=refantenna,
          caltable='cal-VYCMa_325_1962.ph2',
          spw='0:1962',
          calmode='p',
          solint='30s')

  if (calplots):
      os.system('rm -rf cal-VYCMa_325_1962.ph2*.png')
      for ant in range(3):
          plotcal(caltable='cal-VYCMa_325_1962.ph2',
              xaxis = 'time', yaxis = 'phase',
              antenna=str(ant*8)+'~'+str(ant*8+7),    
              subplot=421,
              fontsize=7.0,
              iteration='antenna',
              figfile='cal-VYCMa_325_1962.ph2_ant'+str(ant*8)+'-'+str(ant*8+7)+'.png')

  applycal(vis = 'VYCMa_Band7_325.ms',
           field='Vy Cma',
           spw='0,1',
           spwmap=['0,0'],
           gaintable='cal-VYCMa_325_1962.ph2',
           calwt = F,
           flagbackup = F)

  os.system('rm -rf VYCMa_Band7_325_0_1962_ph2.clean*')
  clean(vis = 'VYCMa_Band7_325.ms',
        imagename='VYCMa_Band7_325_0_1962_ph2.clean',
        field='Vy Cma', 
        spw='0:1962',
        mode='channel',start=1962,nchan=1,
        cell='0.01arcsec',npercycle=50,imsize=512,
        psfmode='hogbom',
        mask='ellipse[[256pix,277pix],[68pix,57pix],90deg]',
        interactive=cleaninteractive,
        niter=500)

# Get image statistics
  imin='VYCMa_Band7_325_0_1962_ph2.clean.image'
  noise=imstat(imagename=imin,
               box='250,50,500,200')['rms'][0]

  peak=imstat(imagename=imin,
              box='200,200,330,330')['max'][0]

  print 'rms %8.3f, peak %8.3f, snr %5i' % (noise, peak, peak/noise)   
#rms    1.713, peak  294.787, snr   172


######################################################
#  Self-calibrate cycle 3, a&p, using all data
mystep = 5
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]

  os.system('rm -rf cal-VYCMa_325_1962.ap1')
  gaincal(vis = 'VYCMa_Band7_325.ms',
          field='Vy Cma',
          refant=refantenna,
          caltable='cal-VYCMa_325_1962.ap1',
          spw='0:1962',
          gaintable='cal-VYCMa_325_1962.ph2',
          spwmap=['0,0'],
          calmode='ap',
          solint='120s')

  if (calplots):
      os.system('rm -rf cal-VYCMa_325_1962.ap1*.png')
      for ant in range(3):
          plotcal(caltable='cal-VYCMa_325_1962.ap1',
              xaxis = 'time', yaxis = 'amp',
              antenna=str(ant*8)+'~'+str(ant*8+7),    
              subplot=421,
              fontsize=7.0,
              iteration='antenna',
              figfile='cal-VYCMa_325_1962.ap1_ant'+str(ant*8)+'-'+str(ant*8+7)+'.png')

  applycal(vis = 'VYCMa_Band7_325.ms',
           field='Vy Cma',
           spw='0,1',
           spwmap=[['0,0'],['0,0']],
           gaintable=['cal-VYCMa_325_1962.ph2','cal-VYCMa_325_1962.ap1'],
           calwt = F,
           flagbackup = F)

#
  os.system('rm -rf VYCMa_Band7_325_0_1962_ap1.clean*')
  clean(vis = 'VYCMa_Band7_325.ms',
        imagename='VYCMa_Band7_325_0_1962_ap1.clean',
        field='Vy Cma', 
        spw='0:1962',
        mode='channel',start=1962,nchan=1,
        cell='0.01arcsec',npercycle=50,imsize=512,
        psfmode='hogbom',
        mask=['ellipse[[260pix,280pix],[75pix,67pix],90deg]','ellipse[[303pix,264pix],[85pix,42pix],0deg]'],
        interactive=cleaninteractive,
        niter=500)

# Get image statistics
  imin='VYCMa_Band7_325_0_1962_ap1.clean.image'
  noise=imstat(imagename=imin,
               box='250,50,500,200')['rms'][0]

  peak=imstat(imagename=imin,
              box='200,200,330,330')['max'][0]

  print 'rms %8.3f, peak %8.3f, snr %5i' % (noise, peak, peak/noise)   
#rms     0.498, peak  293.494, snr   589

######################################################
#  Self-calibrate cycle 4, ap, short solint, using all data
mystep = 6
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]

  os.system('rm -rf cal-VYCMa_325_1962.ap2')
  gaincal(vis = 'VYCMa_Band7_325.ms',
          field='Vy Cma',
          refant=refantenna,
          caltable='cal-VYCMa_325_1962.ap2',
          spw='0:1962',
          gaintable='cal-VYCMa_325_1962.ph2',
          spwmap=['0,0'],
          calmode='ap',
          solint='30s')

  if (calplots):
      os.system('rm -rf cal-VYCMa_325_1962.ap2*.png')
      for ant in range(3):
          plotcal(caltable='cal-VYCMa_325_1962.ap2',
              xaxis = 'time', yaxis = 'amp',
              antenna=str(ant*8)+'~'+str(ant*8+7),    
              subplot=421,
              fontsize=7.0,
              iteration='antenna',
              figfile='cal-VYCMa_325_1962.ap2_ant'+str(ant*8)+'-'+str(ant*8+7)+'.png')

  applycal(vis = 'VYCMa_Band7_325.ms',
           field='Vy Cma',
           spw='0,1',
           spwmap=[['0,0'],['0,0']],
           gaintable=['cal-VYCMa_325_1962.ph2','cal-VYCMa_325_1962.ap2'],
           calwt = F,
           flagbackup = F)

# 
  os.system('rm -rf VYCMa_Band7_325_0_1962_ap2.clean*')
  clean(vis = 'VYCMa_Band7_325.ms',
        imagename='VYCMa_Band7_325_0_1962_ap2.clean',
        field='Vy Cma', 
        spw='0:1962',
        mode='channel',start=1962,nchan=1,
        cell='0.01arcsec',npercycle=100,imsize=512,
        psfmode='hogbom',
        mask='ellipse[[272pix,288pix],[129pix,96pix],0deg]',
        interactive=cleaninteractive,
        niter=1000)

# Get image statistics
  imin='VYCMa_Band7_325_0_1962_ap2.clean.image'
  noise=imstat(imagename=imin,
               box='250,50,500,200')['rms'][0]

  peak=imstat(imagename=imin,
              box='200,200,330,330')['max'][0]

  print 'rms %8.3f, peak %8.3f, snr %5i' % (noise, peak, peak/noise)   
# rms    0.379, peak  294.602, snr   777



#####################################
#  Image whole cube at lower resolution to identify line-free channels 
# This step can be omitted if you trust our selection below.
mystep = 7
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]

  for s in ['0','1']:
      os.system('rm -rf VYCMa_Band7_325_spw'+s+'_5ap2.clean*')
      clean(vis = 'VYCMa_Band7_325.ms',
            imagename='VYCMa_Band7_325_spw'+s+'_5ap2.clean',
            field='Vy Cma', 
            spw=s,
            mode='channel',width=5,
            cell='0.02arcsec',imsize=512,usescratch=T,
            psfmode='hogbom',
            interactive=cleaninteractive,
            niter=1000)

# The following is our best guess at a selection

contchans='0:5~469;655~939;1305~1479;2050~2289;2375~2599;2915~3164;3220~3389;3685~3754,1:5~44;170~254;1975~2154;2254~2339;3600~3829'

##############################################
# Image continuum
mystep = 8
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]

  os.system('rm -rf VYCMa_Band7_325_contap2.clean*')
  clean(vis = 'VYCMa_Band7_325.ms',
        imagename='VYCMa_Band7_325_contap2.clean',
        field='Vy Cma', 
        spw=contchans,
        mode='mfs',
        multiscale=[0,4,8,12] ,
        mask=['ellipse[[218pix,255pix],[64pix,52pix],90deg]','ellipse[[281pix,359pix],[140pix,70pix],20deg]'],
        cell='0.01arcsec',imsize=512,
        psfmode='hogbom',interactive=cleaninteractive)

  exportfits(imagename='VYCMa_Band7_325_contap2.clean.image',
             fitsimage='VYCMa_Band7_325_contap2.clean.fits')

#####################################
#  Subtract continuum 
mystep = 9
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]

  os.system('rm -rf VYCMa_Band7_325.ms.contsub')
  uvcontsub(vis = 'VYCMa_Band7_325.ms',field='V*',fitorder=1,
            combine='spw',solint='30s',spw='',fitspw=contchans)

#----------------------------------------------------------------------------------
#----- Image maser and line emission and make moment maps -------------------------
#----------------------------------------------------------------------------------

# Some lines from  Kaminski et al. 2013 ApJS 209 38 are imaged below.
# However, note that it is possible that the named line may be blended with other lines,
# especially for the thermal lines. Conversely, it is possible (especially
# for the maser) that faint wings exceed the range imaged.
#

#####################################
#  Image H2O  	5(1,5)-4(2,2) 	 line spw 0
mystep = 10
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]
# Line frequencies taken from Kaminski et al. 2013 ApJS 209 38

# High resolution for maser
  os.system('rm -rf VYCMa_Band7_325.15_H2O.clean*')
  clean(vis = 'VYCMa_Band7_325.ms.contsub',
        imagename='VYCMa_325.15_H2O.clean',
        field='Vy Cma', 
        spw='0',
        mode='channel',start=1825,nchan=255,
        restfreq='325.152919GHz',
        cell='0.01arcsec',imsize=512,
        psfmode='hogbom',
        weighting='briggs',robust=0.5,
        threshold='10mJy',
        mask=['ellipse[[218pix,255pix],[64pix,52pix],90deg]','ellipse[[281pix,359pix],[140pix,70pix],20deg]'],
        interactive=cleaninteractive,
        usescratch=T,
        niter=1000)

# Make moment map
  thisimage='VYCMa_325.15_H2O.clean.image'
  chanstat=imstat(imagename=thisimage,box='250,50,500,100',chans='3')
  rms1= chanstat['rms'][0]
  chanstat=imstat(imagename=thisimage,box='250,50,500,100',chans='252')
  rms2= chanstat['rms'][0]
  rms=0.5*(rms1+rms2)
  print 'rms in a channel = '+str(rms)

  os.system('rm -rf '+thisimage+'.mom0')
  immoments(imagename = thisimage,
         moments = [0],
         axis = 'spectral',
         includepix = [rms*2,1000.],
         outfile = thisimage+'.mom0')

# Export as fits
  exportfits(imagename=thisimage+'.mom0',
           fitsimage=thisimage+'.mom0.fits')

  exportfits(imagename='VYCMa_325.15_H2O.clean.image',
             fitsimage='VYCMa_325.15_H2O.clean.fits')

# Note that since the dynamic range of the maser cube is 500~1000 around the peak,
# implying a noise level more than an order of magnitude
# higher than that for the fainter line wings, we don't make a first moment map.
# However, it may be possible  to obtain a meaningful first moment map with 
# additional data selection and/or blanking

#####################################
#  Image NaCl 24-23  line spw 1
mystep = 11
if(mystep in thesteps):
  casalog.post('Step '+str(mystep)+' '+step_title[mystep],'INFO')
  print 'Step ', mystep, step_title[mystep]
# Line frequencies taken from Kaminski et al. 2013 ApJS 209 38

# Lower resolution for weaker lines
  os.system('rm -rf VYCMa_312.11_NaCl.clean*')
  clean(vis = 'VYCMa_Band7_325.ms.contsub',
        imagename='VYCMa_312.11_NaCl.clean',
        field='Vy Cma', 
        spw='1',
        mode='channel',start=60,nchan=20,width=5,
        restfreq='312.1099004GHz',
        cell='0.01arcsec',imsize=512,
        psfmode='hogbom',
        threshold='4mJy',
        mask='ellipse[[284pix,263pix],[150pix,115pix],20deg]',
        interactive=cleaninteractive,
        usescratch=T,
        niter=1000)

# Make moment maps
  thisimage='VYCMa_312.11_NaCl.clean.image'
  chanstat=imstat(imagename=thisimage,box='250,50,500,100',chans='5')
  rms1= chanstat['rms'][0]
  chanstat=imstat(imagename=thisimage,box='250,50,500,100',chans='14')
  rms2= chanstat['rms'][0]
  rms=0.5*(rms1+rms2)
  print 'rms in a channel = '+str(rms)

  os.system('rm -rf '+thisimage+'.mom0')
  immoments(imagename = thisimage,
         moments = [0],
         axis = 'spectral',
         includepix = [rms*3,100.],
         outfile = thisimage+'.mom0')

  os.system('rm -rf '+thisimage+'.mom1')
  immoments(imagename = thisimage,
         moments = [1],
         axis = 'spectral',
         includepix = [rms*4,100.],
         outfile = thisimage+'.mom1')

# Export as fits
  exportfits(imagename=thisimage+'.mom0',
           fitsimage=thisimage+'.mom0.fits')

  exportfits(imagename=thisimage+'.mom1',
           fitsimage=thisimage+'.mom1.fits')

  exportfits(imagename='VYCMa_312.11_NaCl.clean.image',
             fitsimage='VYCMa_312.11_NaCl.clean.image.fits')

#----------------------------------------------------------------------------------
#----- End of imaging script.
#----------------------------------------------------------------------------------
