! Started logfile: 1606+106_X.log on Thu Mar  1 09:01:23 2001
observe 1606+106_X.edt
! Reading UV FITS file: 1606+106_X.edt
! AN table 1: 56 integrations on 84 of 91 possible baselines.
! AN table 2: 60 integrations on 75 of 91 possible baselines.
! AN table 3: 80 integrations on 118 of 136 possible baselines.
! Apparent sampling: 0.216102 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 5582 lines of history.
! 
! Reading 16116 visibilities.
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 630 telescope corrections were flagged in sub-array 1.
!  A total of 589 telescope corrections were flagged in sub-array 2.
!  A total of 933 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 637 telescope corrections were flagged in sub-array 1.
!  A total of 604 telescope corrections were flagged in sub-array 2.
!  A total of 963 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 637 telescope corrections were flagged in sub-array 1.
!  A total of 607 telescope corrections were flagged in sub-array 2.
!  A total of 963 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 644 telescope corrections were flagged in sub-array 1.
!  A total of 607 telescope corrections were flagged in sub-array 2.
!  A total of 963 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.257089Jy  sigma=1.788570
! Fit after  self-cal, rms=0.256835Jy  sigma=1.786603
! 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.6141 mas, bmaj=1.247 mas, bpa=-7.507 degrees
! Estimated noise=1.45562 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.751755 Jy
! Total flux subtracted in 50 components = 0.751755 Jy
! Clean residual min=-0.030386 max=0.210896 Jy/beam
! Clean residual mean=-0.000103 rms=0.009847 Jy/beam
! Combined flux in latest and established models = 0.751755 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.751755 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379509Jy  sigma=2.647367
! Fit after  self-cal, rms=0.379461Jy  sigma=2.647005
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.206393 Jy
! Total flux subtracted in 50 components = 0.206393 Jy
! Clean residual min=-0.020569 max=0.090849 Jy/beam
! Clean residual mean=-0.000067 rms=0.006013 Jy/beam
! Combined flux in latest and established models = 0.958148 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 10 components and 0.958148 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250199Jy  sigma=1.733876
! Fit after  self-cal, rms=0.249871Jy  sigma=1.731545
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.100598 Jy
! Total flux subtracted in 50 components = 0.100598 Jy
! Clean residual min=-0.017827 max=0.066143 Jy/beam
! Clean residual mean=-0.000050 rms=0.004700 Jy/beam
! Combined flux in latest and established models = 1.05875 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 11 components and 1.05875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204242Jy  sigma=1.410485
! Fit after  self-cal, rms=0.203901Jy  sigma=1.408084
! Inverting map 
! Added new window around map position (-1.2, 0.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0662014 Jy
! Total flux subtracted in 50 components = 0.0662014 Jy
! Clean residual min=-0.015292 max=0.033499 Jy/beam
! Clean residual mean=-0.000040 rms=0.004033 Jy/beam
! Combined flux in latest and established models = 1.12495 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 16 components and 1.12495 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179378Jy  sigma=1.235209
! Fit after  self-cal, rms=0.178861Jy  sigma=1.231566
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0438171 Jy
! Total flux subtracted in 50 components = 0.0438171 Jy
! Clean residual min=-0.014207 max=0.023689 Jy/beam
! Clean residual mean=-0.000034 rms=0.003702 Jy/beam
! Combined flux in latest and established models = 1.16876 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 28 components and 1.16876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166332Jy  sigma=1.143689
! Fit after  self-cal, rms=0.166168Jy  sigma=1.142535
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0319873 Jy
! Total flux subtracted in 50 components = 0.0319873 Jy
! Clean residual min=-0.013315 max=0.018291 Jy/beam
! Clean residual mean=-0.000030 rms=0.003529 Jy/beam
! Combined flux in latest and established models = 1.20075 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 38 components and 1.20075 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158937Jy  sigma=1.092031
! Fit after  self-cal, rms=0.158859Jy  sigma=1.091496
! 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.7304 mas, bmaj=1.449 mas, bpa=-12.05 degrees
! Estimated noise=0.929483 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.0407512 Jy
! Component: 100  -  total flux cleaned = 0.0673797 Jy
! Total flux subtracted in 100 components = 0.0673797 Jy
! Clean residual min=-0.013449 max=0.015819 Jy/beam
! Clean residual mean=-0.000087 rms=0.003813 Jy/beam
! Combined flux in latest and established models = 1.26813 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 61 components and 1.26813 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148280Jy  sigma=1.017645
! Fit after  self-cal, rms=0.147898Jy  sigma=1.014985
! 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 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        1.07     HN        0.98     
!   KK        0.98     KP        1.04     LA        0.95     MK        1.00     
!   NL        0.97     OV        1.01     PT        0.80     SC        1.00     
!   WF        0.97     GN        1.21     
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        0.91     HN        1.01     
!   KP        0.97     LA        0.98     MC        1.01     NL        1.02     
!   ON        1.00     OV        1.02     PT        1.15     SC        0.96     
!   WF        1.01     GN        1.16     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.95     GC        1.00     HN        1.00     
!   KK        0.99     KP        0.96     LA        0.94     MC        1.01     
!   MK        1.01     NL        0.99     NY        1.15     ON        1.01     
!   OV        0.99     PT        0.98     SC        1.01     WF        0.99     
!   GN        1.14     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.99     GC        1.04     HN        0.99     
!   KK        0.98     KP        1.03     LA        0.95     MK        1.00     
!   NL        0.98     OV        1.00     PT        0.80     SC        1.01     
!   WF        0.95     GN        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.97     GC        0.88     HN        1.01     
!   KP        0.97     LA        0.97     MC        1.00     NL        1.04     
!   ON        0.98     OV        1.01     PT        1.16     SC        0.97     
!   WF        0.97     GN        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.95     GC        0.99     HN        1.00     
!   KK        0.99     KP        0.97     LA        0.95     MC        1.00     
!   MK        1.01     NL        0.99     NY        1.15     ON        0.99     
!   OV        0.97     PT        0.97     SC        1.01     WF        0.96     
!   GN        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.01     HN        0.97     
!   KK        0.98     KP        1.04     LA        0.94     MK        1.00     
!   NL        0.99     OV        1.01     PT        0.77     SC        0.99     
!   WF        0.99     GN        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.00*    HN        1.00     
!   KP        0.96     LA        0.97     MC        1.02     NL        1.04     
!   ON        0.94     OV        1.01     PT        1.14     SC        0.96     
!   WF        1.00     GN        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.96     GC        0.97     HN        1.00     
!   KK        1.00     KP        0.97     LA        0.94     MC        0.99     
!   MK        1.01     NL        0.99     NY        1.14     ON        0.95     
!   OV        0.97     PT        0.96     SC        1.00     WF        1.01     
!   GN        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GC        1.00     HN        1.00*    
!   KK        1.01     KP        1.03     LA        0.95     MK        1.00     
!   NL        0.98     OV        1.01     PT        0.80     SC        1.01     
!   WF        1.00     GN        1.00*    
! 
!  A total of 42 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        1.02     
!   KP        0.96     LA        0.96     MC        1.01     NL        1.04     
!   ON        0.94     OV        1.01     PT        1.17     SC        0.95     
!   WF        1.02     GN        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.95     GC        0.97     HN        1.00     
!   KK        0.99     KP        0.96     LA        0.94     MC        0.99     
!   MK        1.00     NL        0.99     NY        1.15     ON        0.96     
!   OV        0.97     PT        0.98     SC        1.00     WF        1.00     
!   GN        1.00*    
! 
! 
! Fit before self-cal, rms=0.147898Jy  sigma=1.014985
! Fit after  self-cal, rms=0.122991Jy  sigma=0.856323
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7392 mas, bmaj=1.47 mas, bpa=-11.88 degrees
! Estimated noise=0.934196 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.0137436 Jy
! Component: 100  -  total flux cleaned = 0.0181883 Jy
! Total flux subtracted in 100 components = 0.0181883 Jy
! Clean residual min=-0.008991 max=0.008542 Jy/beam
! Clean residual mean=-0.000074 rms=0.002266 Jy/beam
! Combined flux in latest and established models = 1.28632 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 78 components and 1.28632 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121635Jy  sigma=0.846157
! Fit after  self-cal, rms=0.121478Jy  sigma=0.845100
! 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.00276438 Jy
! Component: 100  -  total flux cleaned = 0.00332935 Jy
! Total flux subtracted in 100 components = 0.00332935 Jy
! Clean residual min=-0.008974 max=0.008465 Jy/beam
! Clean residual mean=-0.000073 rms=0.002233 Jy/beam
! Combined flux in latest and established models = 1.28965 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 90 components and 1.28965 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121136Jy  sigma=0.842448
! Fit after  self-cal, rms=0.098031Jy  sigma=0.671764
! Inverting map and beam 
! Estimated beam: bmin=0.7379 mas, bmaj=1.469 mas, bpa=-11.94 degrees
! Estimated noise=0.935141 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 (-1.3, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00589757 Jy
! Component: 100  -  total flux cleaned = 0.0095942 Jy
! Total flux subtracted in 100 components = 0.0095942 Jy
! Clean residual min=-0.003292 max=0.004355 Jy/beam
! Clean residual mean=0.000000 rms=0.000783 Jy/beam
! Combined flux in latest and established models = 1.29924 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 108 components and 1.29924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.097704Jy  sigma=0.669230
! Fit after  self-cal, rms=0.097658Jy  sigma=0.668904
! Inverting map 
! Added new window around map position (-10.7, 18.1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00349476 Jy
! Component: 100  -  total flux cleaned = 0.00461582 Jy
! Total flux subtracted in 100 components = 0.00461582 Jy
! Clean residual min=-0.003855 max=0.003806 Jy/beam
! Clean residual mean=0.000001 rms=0.000747 Jy/beam
! Combined flux in latest and established models = 1.30386 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 120 components and 1.30386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.097489Jy  sigma=0.667668
! Fit after  self-cal, rms=0.097473Jy  sigma=0.667549
! 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 120 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.7379 x 1.469 at -11.94 degrees (North through East)
! Clean map  min=-0.0028862  max=0.99857 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 "****************************"
! **************************** 
device 1606+106_Xuv.ps/vps,1,2
! Attempting to open device: '1606+106_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
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.7379 mas, bmaj=1.469 mas, bpa=-11.94 degrees
! Estimated noise=0.935141 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7379 x 1.469 at -11.94 degrees (North through East)
! Clean map  min=-0.0028862  max=0.99857 Jy/beam
quit
! Quitting program
! Log file 1606+106_X.log closed on Thu Mar  1 09:01:51 2001