! Started logfile: 1606+106_X.log on Sat Mar 31 22:41:47 2007
observe 1606+106_X.edt
! Reading UV FITS file: 1606+106_X.edt
! AN table 1: 64 integrations on 105 of 105 possible baselines.
! AN table 2: 5 integrations on 105 of 105 possible baselines.
! AN table 3: 15 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.116327 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1606+106
! 
! 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 1241 lines of history.
! 
! Reading 4104 visibilities.
![@gonzo6-0.1 1606+106_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 = 6.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 788 telescope corrections were flagged in sub-array 1.
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  A total of 225 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 788 telescope corrections were flagged in sub-array 1.
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  A total of 225 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 788 telescope corrections were flagged in sub-array 1.
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 788 telescope corrections were flagged in sub-array 1.
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.355076Jy  sigma=0.006190
! Fit after  self-cal, rms=0.357258Jy  sigma=0.006247
! 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.5086 mas, bmaj=2.541 mas, bpa=-6.36 degrees
! Estimated noise=1677.14 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.877779 Jy
! Total flux subtracted in 50 components = 0.877779 Jy
! Clean residual min=-0.077796 max=0.249838 Jy/beam
! Clean residual mean=0.001844 rms=0.031447 Jy/beam
! Combined flux in latest and established models = 0.877779 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.877779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.442624Jy  sigma=0.007752
! Fit after  self-cal, rms=0.442596Jy  sigma=0.007751
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.254011 Jy
! Total flux subtracted in 50 components = 0.254011 Jy
! Clean residual min=-0.061190 max=0.117151 Jy/beam
! Clean residual mean=0.000926 rms=0.019238 Jy/beam
! Combined flux in latest and established models = 1.13179 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 9 components and 1.13179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267565Jy  sigma=0.004630
! Fit after  self-cal, rms=0.267572Jy  sigma=0.004628
! Inverting map 
! Added new window around map position (-1.3, 0.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.128851 Jy
! Total flux subtracted in 50 components = 0.128851 Jy
! Clean residual min=-0.054549 max=0.080764 Jy/beam
! Clean residual mean=0.000456 rms=0.014789 Jy/beam
! Combined flux in latest and established models = 1.26064 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 20 components and 1.26064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205004Jy  sigma=0.003370
! Fit after  self-cal, rms=0.203818Jy  sigma=0.003358
! 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.7395 mas, bmaj=3.479 mas, bpa=-7.663 degrees
! Estimated noise=808.056 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.7, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.117986 Jy
! Component: 100  -  total flux cleaned = 0.173418 Jy
! Total flux subtracted in 100 components = 0.173418 Jy
! Clean residual min=-0.033057 max=0.044454 Jy/beam
! Clean residual mean=-0.000634 rms=0.008589 Jy/beam
! Combined flux in latest and established models = 1.43406 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 38 components and 1.43406 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.145073Jy  sigma=0.002029
! Fit after  self-cal, rms=0.141639Jy  sigma=0.001986
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.94     HN        1.08     KB        1.00*    
!   KP        0.98     LA        1.02     MK        1.00*    NL        1.09     
!   NY        1.00*    OV        0.94     PT        1.01     SV        1.00*    
!   WF        1.01     WZ        1.02     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.07     HN        0.97     KB        1.00*    
!   KP        1.00*    LA        0.90     MK        1.00*    NL        1.00     
!   NY        1.00*    OV        1.00*    PT        0.88     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.90     HN        1.08     KB        1.00*    
!   KP        0.96     LA        0.99     MK        1.00*    NL        1.09     
!   NY        1.00*    OV        0.93     PT        0.99     SV        1.00*    
!   WF        1.01     WZ        1.04     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.09     HN        0.99     KB        1.00*    
!   KP        1.00*    LA        0.87     MK        1.00*    NL        1.00     
!   NY        1.00*    OV        1.00*    PT        0.91     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.96     HN        1.04     KB        1.00*    
!   KP        0.94     LA        1.00     MK        1.00*    NL        1.07     
!   NY        1.00*    OV        0.96     PT        0.99     SV        1.00*    
!   WF        1.00     WZ        1.04     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.11     HN        0.93     KB        1.00*    
!   KP        1.00*    LA        0.87     MK        1.00*    NL        1.02     
!   NY        1.00*    OV        1.00*    PT        0.88     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     HN        1.04     KB        1.00*    
!   KP        0.97     LA        1.02     MK        1.00*    NL        1.08     
!   NY        1.00*    OV        0.97     PT        1.00     SV        1.00*    
!   WF        1.00     WZ        1.05     TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.10     HN        0.98     KB        1.00*    
!   KP        1.00*    LA        0.86     MK        1.00*    NL        0.96     
!   NY        1.00*    OV        1.00*    PT        0.89     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SV        0.00*    
!   WF        0.00*    WZ        0.00*    TC        0.00*    
! 
! 
! Fit before self-cal, rms=0.141639Jy  sigma=0.001986
! Fit after  self-cal, rms=0.096782Jy  sigma=0.001266
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7539 mas, bmaj=3.878 mas, bpa=-8.202 degrees
! Estimated noise=805.833 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.000431481 Jy
! Component: 100  -  total flux cleaned = -0.00194485 Jy
! Total flux subtracted in 100 components = -0.00194485 Jy
! Clean residual min=-0.008575 max=0.010088 Jy/beam
! Clean residual mean=0.000082 rms=0.002126 Jy/beam
! Combined flux in latest and established models = 1.43211 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 53 components and 1.43211 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.094681Jy  sigma=0.001223
! Fit after  self-cal, rms=0.094470Jy  sigma=0.001221
! 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 (-3.7, 3.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00387283 Jy
! Component: 100  -  total flux cleaned = 0.00307225 Jy
! Total flux subtracted in 100 components = 0.00307225 Jy
! Clean residual min=-0.007071 max=0.005574 Jy/beam
! Clean residual mean=0.000058 rms=0.001636 Jy/beam
! Combined flux in latest and established models = 1.43519 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 65 components and 1.43519 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.093434Jy  sigma=0.001200
! Fit after  self-cal, rms=0.090680Jy  sigma=0.001158
! Inverting map and beam 
! Estimated beam: bmin=0.7553 mas, bmaj=3.876 mas, bpa=-8.202 degrees
! Estimated noise=805.298 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.00182408 Jy
! Component: 100  -  total flux cleaned = 0.00240555 Jy
! Total flux subtracted in 100 components = 0.00240555 Jy
! Clean residual min=-0.006385 max=0.004851 Jy/beam
! Clean residual mean=-0.000024 rms=0.001351 Jy/beam
! Combined flux in latest and established models = 1.43759 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 81 components and 1.43759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.090211Jy  sigma=0.001148
! Fit after  self-cal, rms=0.090183Jy  sigma=0.001148
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1606+106_X
! Writing UV FITS file: 1606+106_X.uvf
! Writing 81 model components to file: 1606+106_X.mod
! wwins: Wrote 4 windows to 1606+106_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7553 x 3.876 at -8.202 degrees (North through East)
! Clean map  min=-0.0061145  max=1.1414 Jy/beam
! Writing clean map to FITS file: 1606+106_X.fits
! Writing difmap environment to: 1606+106_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1606+106_X]
device 1606+106_Xuv.ps/vps,1,2
! Attempting to open device: '1606+106_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1606+106_Xim.ps/vps
! Attempting to open device: '1606+106_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.7553 mas, bmaj=3.876 mas, bpa=-8.202 degrees
! Estimated noise=805.298 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7553 x 3.876 at -8.202 degrees (North through East)
! Clean map  min=-0.0061145  max=1.1414 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6-0.1]
quit
! Quitting program
! Log file 1606+106_X.log closed on Sat Mar 31 22:42:04 2007