! Started logfile: 1606+106_S.log on Fri Apr 18 07:23:06 2008
observe 1606+106_S.edt
! Reading UV FITS file: 1606+106_S.edt
! AN table 1: 35 integrations on 136 of 136 possible baselines.
! AN table 2: 21 integrations on 136 of 136 possible baselines.
! AN table 3: 20 integrations on 136 of 136 possible baselines.
! AN table 4: 6 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0882353 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  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1141 lines of history.
! 
! Reading 3936 visibilities.
![@gonzo7-0.4 1606+106_S]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
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.400x0.400 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 430 telescope corrections were flagged in sub-array 1.
!  A total of 242 telescope corrections were flagged in sub-array 2.
!  A total of 288 telescope corrections were flagged in sub-array 3.
!  A total of 86 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 436 telescope corrections were flagged in sub-array 1.
!  A total of 242 telescope corrections were flagged in sub-array 2.
!  A total of 288 telescope corrections were flagged in sub-array 3.
!  A total of 86 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 425 telescope corrections were flagged in sub-array 1.
!  A total of 242 telescope corrections were flagged in sub-array 2.
!  A total of 288 telescope corrections were flagged in sub-array 3.
!  A total of 86 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 433 telescope corrections were flagged in sub-array 1.
!  A total of 248 telescope corrections were flagged in sub-array 2.
!  A total of 308 telescope corrections were flagged in sub-array 3.
!  A total of 86 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.697947Jy  sigma=0.006830
! Fit after  self-cal, rms=0.694006Jy  sigma=0.006768
! 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=2.81 mas, bmaj=5.735 mas, bpa=-5.195 degrees
! Estimated noise=1680.6 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 = 1.14914 Jy
! Total flux subtracted in 50 components = 1.14914 Jy
! Clean residual min=-0.093721 max=0.347566 Jy/beam
! Clean residual mean=0.000214 rms=0.025727 Jy/beam
! Combined flux in latest and established models = 1.14914 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.14914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.578381Jy  sigma=0.005601
! Fit after  self-cal, rms=0.578358Jy  sigma=0.005601
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.336041 Jy
! Total flux subtracted in 50 components = 0.336041 Jy
! Clean residual min=-0.063373 max=0.132799 Jy/beam
! Clean residual mean=-0.000045 rms=0.016188 Jy/beam
! Combined flux in latest and established models = 1.48518 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 10 components and 1.48518 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363409Jy  sigma=0.003491
! Fit after  self-cal, rms=0.363303Jy  sigma=0.003491
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.131268 Jy
! Total flux subtracted in 50 components = 0.131268 Jy
! Clean residual min=-0.054301 max=0.065715 Jy/beam
! Clean residual mean=-0.000149 rms=0.014300 Jy/beam
! Combined flux in latest and established models = 1.61645 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 11 components and 1.61645 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309913Jy  sigma=0.003052
! Fit after  self-cal, rms=0.309705Jy  sigma=0.003050
! 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=3.495 mas, bmaj=6.375 mas, bpa=-5.709 degrees
! Estimated noise=1238.93 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.0726807 Jy
! Component: 100  -  total flux cleaned = 0.103102 Jy
! Total flux subtracted in 100 components = 0.103102 Jy
! Clean residual min=-0.045034 max=0.062948 Jy/beam
! Clean residual mean=-0.000416 rms=0.013354 Jy/beam
! Combined flux in latest and established models = 1.71955 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 20 components and 1.71955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290229Jy  sigma=0.002960
! Fit after  self-cal, rms=0.290028Jy  sigma=0.002958
! 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 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        1.00     HN        1.00     KB        1.00*    
!   KK        0.96     KP        1.07     LA        0.98     MK        0.79     
!   NL        0.93     NY        1.00*    OV        1.10     PT        0.97     
!   SC        0.95     TS        1.00*    WF        0.94     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.12     FD        1.15     HN        1.00*    KB        1.00*    
!   KK        1.03     KP        0.81     LA        1.01     MK        0.85     
!   NL        1.00*    NY        1.00*    OV        1.16     PT        1.07     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        1.00*    HN        1.00*    KB        1.09     
!   KK        1.11     KP        1.00*    LA        1.00*    MK        0.90     
!   NL        1.00*    NY        1.29     OV        1.26     PT        1.00*    
!   SC        1.00*    TS        1.04     WF        1.00*    WZ        1.00*    
!   ZC        2.60     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        0.81     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        0.89     NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        0.79     TS        1.00*    WF        1.07     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        0.96     HN        0.99     KB        1.00*    
!   KK        1.02     KP        1.02     LA        0.93     MK        1.00*    
!   NL        0.94     NY        1.00*    OV        1.13     PT        0.92     
!   SC        0.86     TS        1.00*    WF        1.00     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.13     FD        1.11     HN        1.00*    KB        1.00*    
!   KK        1.00     KP        0.91     LA        1.01     MK        0.91     
!   NL        1.00*    NY        1.00*    OV        1.17     PT        1.08     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.11     FD        1.00*    HN        1.00*    KB        0.99     
!   KK        1.08     KP        1.00*    LA        1.00*    MK        0.92     
!   NL        1.00*    NY        1.22     OV        1.25     PT        1.00*    
!   SC        1.00*    TS        1.01     WF        1.00*    WZ        1.00*    
!   ZC        2.27     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        0.80     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        0.92     NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.05     TS        1.00*    WF        1.11     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.97     HN        0.99     KB        1.00*    
!   KK        1.03     KP        1.00     LA        0.98     MK        0.93     
!   NL        0.98     NY        1.00*    OV        1.14     PT        0.95     
!   SC        0.90     TS        1.00*    WF        1.00     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.14     FD        1.15     HN        1.00*    KB        1.00*    
!   KK        1.03     KP        0.83     LA        1.04     MK        0.93     
!   NL        1.00*    NY        1.00*    OV        1.14     PT        1.06     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.16     FD        1.00*    HN        1.00*    KB        1.04     
!   KK        1.15     KP        1.00*    LA        1.00*    MK        0.88     
!   NL        1.00*    NY        1.42     OV        1.24     PT        1.00*    
!   SC        1.00*    TS        1.12     WF        1.00*    WZ        1.00*    
!   ZC        1.98     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        0.88     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        0.87     NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.02     TS        1.00*    WF        1.09     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.00*    HN        0.97     KB        1.00*    
!   KK        1.05     KP        1.00     LA        0.98     MK        0.95     
!   NL        1.00     NY        1.00*    OV        1.16     PT        0.95     
!   SC        0.89     TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.14     FD        1.00*    HN        1.00*    KB        1.00*    
!   KK        1.04     KP        0.86     LA        1.03     MK        0.93     
!   NL        1.00*    NY        1.00*    OV        1.17     PT        1.07     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        1.00*    HN        1.00*    KB        1.30     
!   KK        1.09     KP        1.00*    LA        1.00*    MK        0.90     
!   NL        1.00*    NY        1.39     OV        1.27     PT        1.00*    
!   SC        1.00*    TS        0.87     WF        1.00*    WZ        1.00*    
!   ZC        1.04     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        0.84     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        0.94     NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        0.99     TS        1.00*    WF        1.08     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Fit before self-cal, rms=0.290028Jy  sigma=0.002958
! Fit after  self-cal, rms=0.297046Jy  sigma=0.002097
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.593 mas, bmaj=6.527 mas, bpa=-9.518 degrees
! Estimated noise=1286.44 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.020522 Jy
! Component: 100  -  total flux cleaned = 0.029967 Jy
! Total flux subtracted in 100 components = 0.029967 Jy
! Clean residual min=-0.031024 max=0.038130 Jy/beam
! Clean residual mean=-0.000194 rms=0.008116 Jy/beam
! Combined flux in latest and established models = 1.74952 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 1.74952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295104Jy  sigma=0.002093
! Fit after  self-cal, rms=0.295189Jy  sigma=0.002091
! 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.00446787 Jy
! Component: 100  -  total flux cleaned = 0.00474317 Jy
! Total flux subtracted in 100 components = 0.00474317 Jy
! Clean residual min=-0.031346 max=0.037937 Jy/beam
! Clean residual mean=-0.000232 rms=0.008084 Jy/beam
! Combined flux in latest and established models = 1.75427 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 30 components and 1.75427 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294820Jy  sigma=0.002089
! Fit after  self-cal, rms=0.185774Jy  sigma=0.001171
! Inverting map and beam 
! Estimated beam: bmin=3.588 mas, bmaj=6.528 mas, bpa=-9.398 degrees
! Estimated noise=1287.26 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 (-7.2, 9.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.011009 Jy
! Component: 100  -  total flux cleaned = 0.0128463 Jy
! Total flux subtracted in 100 components = 0.0128463 Jy
! Clean residual min=-0.006920 max=0.007169 Jy/beam
! Clean residual mean=-0.000134 rms=0.001602 Jy/beam
! Combined flux in latest and established models = 1.76711 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 50 components and 1.76711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185152Jy  sigma=0.001161
! Fit after  self-cal, rms=0.185155Jy  sigma=0.001160
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1606+106_S
! Writing UV FITS file: 1606+106_S.uvf
! Writing 50 model components to file: 1606+106_S.mod
! wwins: Wrote 2 windows to 1606+106_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.588 x 6.528 at -9.398 degrees (North through East)
! Clean map  min=-0.0067972  max=1.5341 Jy/beam
! Writing clean map to FITS file: 1606+106_S.fits
! Writing difmap environment to: 1606+106_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1606+106_S]
device 1606+106_Suv.ps/vps,1,2
! Attempting to open device: '1606+106_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1606+106_Sim.ps/vps
! Attempting to open device: '1606+106_Sim.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=3.588 mas, bmaj=6.528 mas, bpa=-9.398 degrees
! Estimated noise=1287.26 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.588 x 6.528 at -9.398 degrees (North through East)
! Clean map  min=-0.0067972  max=1.5341 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1606+106_S.log closed on Fri Apr 18 07:23:26 2008