! Started logfile: 1606+106_K.log on Tue May  3 09:54:13 2005
observe 1606+106_K.edt
! Reading UV FITS file: 1606+106_K.edt
! AN table 1: 15 integrations on 55 of 55 possible baselines.
! AN table 2: 48 integrations on 55 of 55 possible baselines.
! Apparent sampling: 0.529004 visibilities/baseline/integration-bin.
! Found source: 1606+106
! 
! There are 8 IFs, and a total of 8 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.37245e+10        8e+06          1        8e+06
!  02        2  2.37375e+10        8e+06          1        8e+06
!  03        3  2.37765e+10        8e+06          1        8e+06
!  04        4  2.38545e+10        8e+06          1        8e+06
!  05        5  2.39975e+10        8e+06          1        8e+06
!  06        6  2.41015e+10        8e+06          1        8e+06
!  07        7  2.41665e+10        8e+06          1        8e+06
!  08        8  2.41925e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 784 lines of history.
! 
! Reading 14664 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.02
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.4
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.0200x0.0200 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..8
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
! Reading IF 5 channels: 5..5
! Reading IF 6 channels: 6..6
! Reading IF 7 channels: 7..7
! Reading IF 8 channels: 8..8
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 30 telescope corrections were flagged in sub-array 1.
!  A total of 217 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  A total of 273 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  A total of 217 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  A total of 217 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 5.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  A total of 214 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 6.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  A total of 214 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 7.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  A total of 214 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 8.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  A total of 218 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.316808Jy  sigma=1.825497
! Fit after  self-cal, rms=0.315214Jy  sigma=1.818018
! 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.1917 mas, bmaj=0.4415 mas, bpa=-34.6 degrees
! Estimated noise=1.56461 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.813965 Jy
! Component: 100  -  total flux cleaned = 1.04948 Jy
! Total flux subtracted in 100 components = 1.04948 Jy
! Clean residual min=-0.033671 max=0.081470 Jy/beam
! Clean residual mean=0.001248 rms=0.010334 Jy/beam
! Combined flux in latest and established models = 1.04948 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 12 components and 1.04948 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.248517Jy  sigma=1.420131
! Fit after  self-cal, rms=0.248489Jy  sigma=1.419974
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0787964 Jy
! Component: 100  -  total flux cleaned = 0.117038 Jy
! Total flux subtracted in 100 components = 0.117038 Jy
! Clean residual min=-0.025059 max=0.034338 Jy/beam
! Clean residual mean=0.000631 rms=0.007123 Jy/beam
! Combined flux in latest and established models = 1.16652 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 43 components and 1.16651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.218877Jy  sigma=1.248518
! Fit after  self-cal, rms=0.218806Jy  sigma=1.248105
! 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.4
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2402 mas, bmaj=0.5109 mas, bpa=-30.8 degrees
! Estimated noise=1.10941 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0282584 Jy
! Component: 100  -  total flux cleaned = 0.0424031 Jy
! Component: 150  -  total flux cleaned = 0.0498431 Jy
! Component: 200  -  total flux cleaned = 0.0508839 Jy
! Total flux subtracted in 200 components = 0.0508839 Jy
! Clean residual min=-0.021734 max=0.039252 Jy/beam
! Clean residual mean=0.000601 rms=0.007091 Jy/beam
! Combined flux in latest and established models = 1.2174 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 65 components and 1.2174 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.215377Jy  sigma=1.228023
! Fit after  self-cal, rms=0.215325Jy  sigma=1.227719
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale false
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 0.986459
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.01     HN        1.08     KP        0.99     
!   LA        0.94     MK        1.02     NL        1.05     OV        1.03     
!   PT        1.00*    SC        1.01     TI        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 0.96421
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        1.00     HN        1.13     KP        1.03     
!   LA        0.93     MK        0.99     NL        1.01     OV        1.00     
!   PT        1.05     SC        0.97     TI        1.23     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.997185
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.95     HN        1.02     KP        0.99     
!   LA        0.94     MK        1.00     NL        1.05     OV        1.05     
!   PT        1.00*    SC        1.00     TI        1.00*    
! 
!  Amplitude normalization factor in sub-array 2: 0.990202
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        0.97     HN        1.11     KP        1.02     
!   LA        0.93     MK        0.94     NL        0.99     OV        1.00     
!   PT        1.10     SC        0.99     TI        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00837
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.88     HN        1.05     KP        0.97     
!   LA        0.97     MK        0.95     NL        1.01     OV        1.08     
!   PT        1.00*    SC        0.98     TI        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 0.987031
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        0.88     HN        1.09     KP        1.00     
!   LA        0.97     MK        0.93     NL        0.98     OV        1.03     
!   PT        1.06     SC        0.97     TI        1.17     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.00597
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.90     HN        1.14     KP        0.93     
!   LA        0.96     MK        0.95     NL        1.09     OV        0.98     
!   PT        1.00*    SC        0.99     TI        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 0.993735
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.91     HN        1.15     KP        0.91     
!   LA        0.95     MK        0.94     NL        1.04     OV        0.96     
!   PT        1.01     SC        0.96     TI        1.17     
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 1.0044
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.90     FD        1.01     HN        1.01     KP        0.95     
!   LA        0.95     MK        1.02     NL        1.06     OV        1.02     
!   PT        1.00*    SC        1.02     TI        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 0.98459
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.03     HN        1.06     KP        0.96     
!   LA        0.95     MK        1.01     NL        1.01     OV        1.00     
!   PT        1.07     SC        1.00     TI        1.15     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.997412
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.95     HN        1.08     KP        0.96     
!   LA        0.96     MK        1.05     NL        1.10     OV        0.87     
!   PT        1.00*    SC        1.00     TI        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 0.978611
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        0.96     HN        1.11     KP        0.99     
!   LA        0.97     MK        0.99     NL        1.07     OV        0.88     
!   PT        1.07     SC        0.96     TI        1.15     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 1.01174
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        0.86     HN        0.99     KP        0.96     
!   LA        1.00     MK        1.02     NL        1.10     OV        0.86     
!   PT        1.00*    SC        0.97     TI        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 0.994183
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.15     FD        0.90     HN        1.02     KP        0.97     
!   LA        0.98     MK        1.00     NL        1.07     OV        0.88     
!   PT        0.97     SC        0.97     TI        1.17     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.999879
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.90     HN        1.04     KP        0.97     
!   LA        0.97     MK        1.02     NL        1.13     OV        0.89     
!   PT        1.00*    SC        0.99     TI        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 0.983244
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.12     FD        0.89     HN        1.10     KP        0.97     
!   LA        0.99     MK        1.02     NL        1.10     OV        0.91     
!   PT        0.94     SC        0.97     TI        1.18     
! 
! 
! Fit before self-cal, rms=0.215325Jy  sigma=1.227719
! Fit after  self-cal, rms=0.192819Jy  sigma=1.109243
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2587 mas, bmaj=0.5237 mas, bpa=-26.74 degrees
! Estimated noise=1.11608 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0173338 Jy
! Component: 100  -  total flux cleaned = -0.0239097 Jy
! Component: 150  -  total flux cleaned = -0.0261275 Jy
! Component: 200  -  total flux cleaned = -0.0261231 Jy
! Total flux subtracted in 200 components = -0.0261231 Jy
! Clean residual min=-0.014918 max=0.031345 Jy/beam
! Clean residual mean=0.000365 rms=0.005103 Jy/beam
! Combined flux in latest and established models = 1.19128 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 79 components and 1.19128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.191482Jy  sigma=1.101177
! Fit after  self-cal, rms=0.191511Jy  sigma=1.101012
! Inverting map 
! Added new window around map position (-0.64, 0.66).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.028205 Jy
! Component: 100  -  total flux cleaned = 0.0426968 Jy
! Component: 150  -  total flux cleaned = 0.0502312 Jy
! Component: 200  -  total flux cleaned = 0.0528651 Jy
! Total flux subtracted in 200 components = 0.0528651 Jy
! Clean residual min=-0.014040 max=0.013151 Jy/beam
! Clean residual mean=0.000030 rms=0.003690 Jy/beam
! Combined flux in latest and established models = 1.24414 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 109 components and 1.24414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.187589Jy  sigma=1.075095
! Fit after  self-cal, rms=0.187187Jy  sigma=1.072873
! 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00587588 Jy
! Component: 100  -  total flux cleaned = 0.00892589 Jy
! Component: 150  -  total flux cleaned = 0.00945409 Jy
! Component: 200  -  total flux cleaned = 0.009936 Jy
! Total flux subtracted in 200 components = 0.009936 Jy
! Clean residual min=-0.016250 max=0.012216 Jy/beam
! Clean residual mean=-0.000028 rms=0.003522 Jy/beam
! Combined flux in latest and established models = 1.25408 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 121 components and 1.25408 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.186767Jy  sigma=1.070094
! Fit after  self-cal, rms=0.181186Jy  sigma=1.031908
! Inverting map and beam 
! Estimated beam: bmin=0.2616 mas, bmaj=0.5245 mas, bpa=-26.19 degrees
! Estimated noise=1.1191 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0128133 Jy
! Component: 100  -  total flux cleaned = 0.0195694 Jy
! Component: 150  -  total flux cleaned = 0.0213401 Jy
! Component: 200  -  total flux cleaned = 0.0220723 Jy
! Total flux subtracted in 200 components = 0.0220723 Jy
! Clean residual min=-0.008834 max=0.010047 Jy/beam
! Clean residual mean=0.000138 rms=0.002551 Jy/beam
! Combined flux in latest and established models = 1.27615 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 134 components and 1.27615 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.180341Jy  sigma=1.026423
! Fit after  self-cal, rms=0.180221Jy  sigma=1.025682
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1606+106_K
! Writing UV FITS file: 1606+106_K.uvf
! Writing 134 model components to file: 1606+106_K.mod
! wwins: Wrote 2 windows to 1606+106_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2616 x 0.5245 at -26.19 degrees (North through East)
! Clean map  min=-0.0088681  max=1.0477 Jy/beam
! Writing clean map to FITS file: 1606+106_K.fits
! Writing difmap environment to: 1606+106_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1606+106_Kuv.ps/vps,1,2
! Attempting to open device: '1606+106_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1606+106_Kim.ps/vps
! Attempting to open device: '1606+106_Kim.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.2616 mas, bmaj=0.5245 mas, bpa=-26.19 degrees
! Estimated noise=1.1191 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2616 x 0.5245 at -26.19 degrees (North through East)
! Clean map  min=-0.0088681  max=1.0477 Jy/beam
quit
! Quitting program
! Log file 1606+106_K.log closed on Tue May  3 09:54:40 2005