! Started logfile: 2216+178_X.log on Tue Aug  7 10:28:12 2007
observe 2216+178_X.edt
! Reading UV FITS file: 2216+178_X.edt
! AN table 1: 57 integrations on 105 of 105 possible baselines.
! AN table 2: 12 integrations on 105 of 105 possible baselines.
! AN table 3: 12 integrations on 105 of 105 possible baselines.
! AN table 4: 77 integrations on 105 of 105 possible baselines.
! AN table 5: 70 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0391395 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2216+178
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1066 lines of history.
! 
! Reading 3748 visibilities.
![@gonzo7-0.1 2216+178_X]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.8
float solint
solint = 3.6/6.0
logical doflt
doflt = true
logical doamp
float new_peak
float flux_cutoff
mapsize field_size,field_cell
! Map grid = 1024x1024 pixels with 0.100x0.100 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 712 telescope corrections were flagged in sub-array 1.
!  A total of 160 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 1074 telescope corrections were flagged in sub-array 4.
!  A total of 924 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 712 telescope corrections were flagged in sub-array 1.
!  A total of 160 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 975 telescope corrections were flagged in sub-array 4.
!  A total of 841 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 766 telescope corrections were flagged in sub-array 1.
!  A total of 149 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 1019 telescope corrections were flagged in sub-array 4.
!  A total of 866 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 718 telescope corrections were flagged in sub-array 1.
!  A total of 149 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 1019 telescope corrections were flagged in sub-array 4.
!  A total of 921 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.845992Jy  sigma=0.008795
! Fit after  self-cal, rms=0.832990Jy  sigma=0.008768
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvweight 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6069 mas, bmaj=0.6851 mas, bpa=52.27 degrees
! Estimated noise=2714.75 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.130668 Jy
! Total flux subtracted in 50 components = 0.130668 Jy
! Clean residual min=-0.014857 max=0.036442 Jy/beam
! Clean residual mean=-0.000031 rms=0.003647 Jy/beam
! Combined flux in latest and established models = 0.130668 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.130668 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.120494Jy  sigma=0.001001
! Fit after  self-cal, rms=0.120494Jy  sigma=0.001001
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0262663 Jy
! Total flux subtracted in 50 components = 0.0262663 Jy
! Clean residual min=-0.013380 max=0.012644 Jy/beam
! Clean residual mean=0.000014 rms=0.003074 Jy/beam
! Combined flux in latest and established models = 0.156934 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.156934 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.113270Jy  sigma=0.000956
! Fit after  self-cal, rms=0.113263Jy  sigma=0.000956
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Uniform Weighting CLEAN ***"
! *** Finished Uniform Weighting CLEAN *** 
print "****************************************"
! **************************************** 
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6415 mas, bmaj=0.7212 mas, bpa=64.77 degrees
! Estimated noise=1432.91 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00337955 Jy
! Component: 100  -  total flux cleaned = -0.00492728 Jy
! Total flux subtracted in 100 components = -0.00492728 Jy
! Clean residual min=-0.010285 max=0.011235 Jy/beam
! Clean residual mean=0.000020 rms=0.002232 Jy/beam
! Combined flux in latest and established models = 0.152007 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 7 components and 0.152007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111181Jy  sigma=0.000942
! Fit after  self-cal, rms=0.111127Jy  sigma=0.000942
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 63 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HH        0.84     HN        1.00*    
!   KB        0.90     KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.87     FD        1.31     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.86     KP        1.17     LA        1.08     
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        1.10     
!   PT        1.34     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.91     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.95     LA        0.83     
!   MK        1.00*    NL        1.30     NY        1.00*    OV        0.89     
!   PT        0.94     SC        1.12     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.27     HH        0.90     HN        1.02     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.48     
!   MK        1.00*    NL        1.10     NY        0.94     OV        1.00*    
!   PT        1.00*    SC        1.06     WZ        1.11     
! 
! 
! Correcting IF 2.
!  A total of 63 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HH        0.92     HN        1.00*    
!   KB        0.92     KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        0.88     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.04     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.25     KP        1.01     LA        1.06     
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        1.32     
!   PT        1.32     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.84     HH        0.93     HN        1.18     
!   KB        1.00*    KK        1.00*    KP        1.01     LA        1.02     
!   MK        1.01     NL        0.96     NY        0.88     OV        0.93     
!   PT        1.13     SC        1.35     WZ        1.03     
! 
!  A total of 48 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.66     HH        1.05     HN        1.07     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        0.97     
!   MK        1.00*    NL        1.02     NY        0.75     OV        1.00*    
!   PT        1.00*    SC        1.18     WZ        1.03     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HH        0.84     HN        1.00*    
!   KB        0.91     KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        0.95     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        0.87     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        0.89     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.36     KP        1.31     LA        0.98     
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.92     
!   PT        1.02     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.80     HH        0.82     HN        0.99     
!   KB        1.00*    KK        1.00*    KP        0.94     LA        0.91     
!   MK        1.00*    NL        0.97     NY        0.92     OV        0.78     
!   PT        0.84     SC        1.15     WZ        1.01     
! 
!  A total of 96 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.68     HH        0.96     HN        0.98     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00     
!   MK        1.00*    NL        1.01     NY        1.06     OV        1.00*    
!   PT        1.00*    SC        1.13     WZ        1.25     
! 
! 
! Correcting IF 4.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HH        0.81     HN        1.00*    
!   KB        0.80     KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        0.88     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        0.91     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.84     FD        1.15     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        0.99     KP        1.25     LA        1.06     
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        1.25     
!   PT        0.90     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.01     HH        0.89     HN        1.12     
!   KB        1.00*    KK        1.00*    KP        0.84     LA        0.74     
!   MK        1.00*    NL        1.21     NY        0.91     OV        1.04     
!   PT        0.80     SC        1.11     WZ        0.90     
! 
!  A total of 69 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.10     HH        0.93     HN        1.11     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.18     
!   MK        1.00*    NL        0.99     NY        0.62     OV        1.00*    
!   PT        1.00*    SC        1.03     WZ        1.01     
! 
! 
! Fit before self-cal, rms=0.111127Jy  sigma=0.000942
! Fit after  self-cal, rms=0.108916Jy  sigma=0.000921
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.5822 mas, bmaj=0.6989 mas, bpa=81.84 degrees
! Estimated noise=1679.83 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00322801 Jy
! Component: 100  -  total flux cleaned = 0.00305977 Jy
! Total flux subtracted in 100 components = 0.00305977 Jy
! Clean residual min=-0.006470 max=0.006612 Jy/beam
! Clean residual mean=-0.000028 rms=0.001460 Jy/beam
! Combined flux in latest and established models = 0.155067 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 15 components and 0.155067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108753Jy  sigma=0.000920
! Fit after  self-cal, rms=0.108843Jy  sigma=0.000919
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000131257 Jy
! Component: 100  -  total flux cleaned = -0.000254791 Jy
! Total flux subtracted in 100 components = -0.000254791 Jy
! Clean residual min=-0.006444 max=0.006532 Jy/beam
! Clean residual mean=-0.000027 rms=0.001446 Jy/beam
! Combined flux in latest and established models = 0.154812 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 17 components and 0.154812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108790Jy  sigma=0.000919
! Fit after  self-cal, rms=0.318615Jy  sigma=0.000901
! Inverting map and beam 
! Estimated beam: bmin=0.5826 mas, bmaj=0.6951 mas, bpa=82.03 degrees
! Estimated noise=1740.01 mJy/beam.
doamp = false
solint = solint / (6.0/3.6)
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00493969 Jy
! Component: 100  -  total flux cleaned = 0.00694799 Jy
! Total flux subtracted in 100 components = 0.00694799 Jy
! Clean residual min=-0.007329 max=0.006639 Jy/beam
! Clean residual mean=-0.000054 rms=0.001500 Jy/beam
! Combined flux in latest and established models = 0.16176 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 21 components and 0.16176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318447Jy  sigma=0.000900
! Fit after  self-cal, rms=0.316879Jy  sigma=0.000899
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2216+178_X
! Writing UV FITS file: 2216+178_X.uvf
! Writing 21 model components to file: 2216+178_X.mod
! wwins: Wrote 1 windows to 2216+178_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5826 x 0.6951 at 82.03 degrees (North through East)
! Clean map  min=-0.0068054  max=0.16874 Jy/beam
! Writing clean map to FITS file: 2216+178_X.fits
! Writing difmap environment to: 2216+178_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2216+178_X]
device 2216+178_Xuv.ps/vps,1,2
! Attempting to open device: '2216+178_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2216+178_Xim.ps/vps
! Attempting to open device: '2216+178_Xim.ps/vps'
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
loglevs -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=0.5826 mas, bmaj=0.6951 mas, bpa=82.03 degrees
! Estimated noise=1740.01 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5826 x 0.6951 at 82.03 degrees (North through East)
! Clean map  min=-0.0068054  max=0.16874 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 2216+178_X.log closed on Tue Aug  7 10:28:30 2007