! Started logfile: 1116+128_X.log on Wed Aug  2 18:19:06 2006
observe 1116+128_X.edt
! Reading UV FITS file: 1116+128_X.edt
! AN table 1: 18 integrations on 190 of 190 possible baselines.
! AN table 2: 53 integrations on 190 of 190 possible baselines.
! AN table 3: 76 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.135696 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1116+128
! 
! 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 1409 lines of history.
! 
! Reading 15160 visibilities.
![@gonzo8-0.1 1116+128_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 = 8.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 328 telescope corrections were flagged in sub-array 1.
!  A total of 749 telescope corrections were flagged in sub-array 2.
!  A total of 1229 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 332 telescope corrections were flagged in sub-array 1.
!  A total of 751 telescope corrections were flagged in sub-array 2.
!  A total of 1243 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 328 telescope corrections were flagged in sub-array 1.
!  A total of 750 telescope corrections were flagged in sub-array 2.
!  A total of 1236 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 332 telescope corrections were flagged in sub-array 1.
!  A total of 754 telescope corrections were flagged in sub-array 2.
!  A total of 1229 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.469345Jy  sigma=0.007214
! Fit after  self-cal, rms=0.467081Jy  sigma=0.007211
! 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.5336 mas, bmaj=1.373 mas, bpa=-10.11 degrees
! Estimated noise=882.238 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.413396 Jy
! Total flux subtracted in 50 components = 0.413396 Jy
! Clean residual min=-0.024730 max=0.115443 Jy/beam
! Clean residual mean=0.000304 rms=0.007415 Jy/beam
! Combined flux in latest and established models = 0.413396 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.413396 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248968Jy  sigma=0.003785
! Fit after  self-cal, rms=0.248976Jy  sigma=0.003785
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.108401 Jy
! Total flux subtracted in 50 components = 0.108401 Jy
! Clean residual min=-0.018690 max=0.049631 Jy/beam
! Clean residual mean=0.000275 rms=0.005091 Jy/beam
! Combined flux in latest and established models = 0.521797 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 0.521797 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.193366Jy  sigma=0.002856
! Fit after  self-cal, rms=0.193044Jy  sigma=0.002854
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0581329 Jy
! Total flux subtracted in 50 components = 0.0581329 Jy
! Clean residual min=-0.015460 max=0.032466 Jy/beam
! Clean residual mean=0.000259 rms=0.004188 Jy/beam
! Combined flux in latest and established models = 0.57993 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 27 components and 0.57993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171714Jy  sigma=0.002479
! Fit after  self-cal, rms=0.171404Jy  sigma=0.002476
! Inverting map 
! Added new window around map position (-0.3, 1.7).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0389395 Jy
! Total flux subtracted in 50 components = 0.0389395 Jy
! Clean residual min=-0.014602 max=0.021025 Jy/beam
! Clean residual mean=0.000247 rms=0.003732 Jy/beam
! Combined flux in latest and established models = 0.61887 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 43 components and 0.61887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159367Jy  sigma=0.002268
! Fit after  self-cal, rms=0.158963Jy  sigma=0.002265
! 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.6379 mas, bmaj=1.546 mas, bpa=-8.703 degrees
! Estimated noise=547.875 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.0555097 Jy
! Component: 100  -  total flux cleaned = 0.0920623 Jy
! Total flux subtracted in 100 components = 0.0920623 Jy
! Clean residual min=-0.009640 max=0.029972 Jy/beam
! Clean residual mean=0.004837 rms=0.004456 Jy/beam
! Combined flux in latest and established models = 0.710932 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 48 model components to the UV plane model.
! The established model now contains 89 components and 0.710932 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138488Jy  sigma=0.001919
! Fit after  self-cal, rms=0.137714Jy  sigma=0.001910
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00*    GC        0.99     HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.87     
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        0.97     
!   NY        1.00*    TS        0.96     WZ        1.00*    PT        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.97     GC        1.00*    HN        0.99     
!   LA        0.91     NL        0.99     OV        0.94     SC        0.96     
!   WF        0.91     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.99     MA        1.00*    MC        1.11     MK        1.03     
!   NY        1.06     TS        1.00*    WZ        1.00*    PT        0.99     
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        0.93     GC        0.97     HN        0.91     
!   LA        0.96     NL        1.00     OV        1.00     SC        1.01     
!   WF        0.84     GG        1.00*    HH        1.00*    KK        0.88     
!   KP        1.02     MA        1.00*    MC        1.00*    MK        0.97     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GC        1.02     HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.90     
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        0.97     
!   NY        1.00*    TS        0.95     WZ        1.00*    PT        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        0.96     GC        1.00*    HN        0.98     
!   LA        0.90     NL        1.00     OV        0.98     SC        1.36     
!   WF        0.91     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.96     MA        1.00*    MC        1.09     MK        1.04     
!   NY        1.04     TS        1.00*    WZ        1.00*    PT        1.00     
! 
!  A total of 84 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.95     GC        0.97     HN        0.91     
!   LA        0.95     NL        1.04     OV        0.99     SC        1.28     
!   WF        0.85     GG        1.00*    HH        1.00*    KK        0.89     
!   KP        0.97     MA        1.00*    MC        1.00*    MK        0.95     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GC        1.04     HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.88     
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        1.04     
!   NY        1.00*    TS        0.94     WZ        1.00*    PT        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.98     GC        1.00*    HN        0.98     
!   LA        0.88     NL        1.01     OV        0.99     SC        0.92     
!   WF        0.94     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.99     MA        1.00*    MC        1.13     MK        1.02     
!   NY        1.06     TS        1.00*    WZ        1.00*    PT        0.93     
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.93     GC        0.96     HN        0.91     
!   LA        1.31     NL        0.99     OV        0.98     SC        1.01     
!   WF        0.87     GG        1.00*    HH        1.00*    KK        0.96     
!   KP        0.93     MA        1.00*    MC        1.00*    MK        0.90     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.00*    GC        0.99     HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.89     
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        1.05     
!   NY        1.00*    TS        0.97     WZ        1.00*    PT        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.91     GC        1.00*    HN        0.98     
!   LA        0.91     NL        1.00     OV        0.99     SC        0.92     
!   WF        0.91     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.97     MA        1.00*    MC        1.18     MK        1.01     
!   NY        1.06     TS        1.00*    WZ        1.00*    PT        1.00     
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.94     GC        0.94     HN        0.92     
!   LA        0.92     NL        0.97     OV        1.01     SC        0.99     
!   WF        0.87     GG        1.00*    HH        1.00*    KK        0.88     
!   KP        0.97     MA        1.00*    MC        1.00*    MK        0.89     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Fit before self-cal, rms=0.137714Jy  sigma=0.001910
! Fit after  self-cal, rms=0.113764Jy  sigma=0.001711
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6429 mas, bmaj=1.585 mas, bpa=-9.448 degrees
! Estimated noise=545.555 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.8, 2.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0278732 Jy
! Component: 100  -  total flux cleaned = 0.0435144 Jy
! Total flux subtracted in 100 components = 0.0435144 Jy
! Clean residual min=-0.006862 max=0.025916 Jy/beam
! Clean residual mean=0.002595 rms=0.003386 Jy/beam
! Combined flux in latest and established models = 0.754447 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 125 components and 0.754447 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.107238Jy  sigma=0.001600
! Fit after  self-cal, rms=0.106665Jy  sigma=0.001592
! Inverting map 
! Added new window around map position (2.4, 6.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0266055 Jy
! Component: 100  -  total flux cleaned = 0.0444848 Jy
! Total flux subtracted in 100 components = 0.0444848 Jy
! Clean residual min=-0.005648 max=0.016880 Jy/beam
! Clean residual mean=0.002028 rms=0.002669 Jy/beam
! Combined flux in latest and established models = 0.798931 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 160 components and 0.798931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.100297Jy  sigma=0.001464
! Fit after  self-cal, rms=0.099948Jy  sigma=0.001460
! 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)
! Added new window around map position (4.8, 9.3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0170442 Jy
! Component: 100  -  total flux cleaned = 0.0302521 Jy
! Total flux subtracted in 100 components = 0.0302521 Jy
! Clean residual min=-0.005573 max=0.013524 Jy/beam
! Clean residual mean=0.001632 rms=0.002232 Jy/beam
! Combined flux in latest and established models = 0.829183 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 44 model components to the UV plane model.
! The established model now contains 197 components and 0.829183 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.096944Jy  sigma=0.001399
! Fit after  self-cal, rms=0.094398Jy  sigma=0.001353
! Inverting map and beam 
! Estimated beam: bmin=0.6434 mas, bmaj=1.588 mas, bpa=-9.431 degrees
! Estimated noise=545.189 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)
! Added new window around map position (0.5, 7.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0137342 Jy
! Component: 100  -  total flux cleaned = 0.0244148 Jy
! Total flux subtracted in 100 components = 0.0244148 Jy
! Clean residual min=-0.004575 max=0.010213 Jy/beam
! Clean residual mean=0.001035 rms=0.001744 Jy/beam
! Combined flux in latest and established models = 0.853598 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 50 model components to the UV plane model.
! The established model now contains 239 components and 0.853598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092322Jy  sigma=0.001311
! Fit after  self-cal, rms=0.092274Jy  sigma=0.001310
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1116+128_X
! Writing UV FITS file: 1116+128_X.uvf
! Writing 239 model components to file: 1116+128_X.mod
! wwins: Wrote 6 windows to 1116+128_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6434 x 1.588 at -9.431 degrees (North through East)
! Clean map  min=-0.0045723  max=0.53693 Jy/beam
! Writing clean map to FITS file: 1116+128_X.fits
! Writing difmap environment to: 1116+128_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1116+128_X]
device 1116+128_Xuv.ps/vps,1,2
! Attempting to open device: '1116+128_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1116+128_Xim.ps/vps
! Attempting to open device: '1116+128_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.6434 mas, bmaj=1.588 mas, bpa=-9.431 degrees
! Estimated noise=545.189 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6434 x 1.588 at -9.431 degrees (North through East)
! Clean map  min=-0.0045723  max=0.53693 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 1116+128_X.log closed on Wed Aug  2 18:19:37 2006