! Started logfile: 1606+106_S.log on Mon Feb  2 19:18:47 1998
observe 1606+106_S.edt
! Reading UV FITS file: 1606+106_S.edt
! AN table 1: 54 integrations on 66 of 66 possible baselines.
! AN table 2: 29 integrations on 78 of 78 possible baselines.
! AN table 3: 43 integrations on 55 of 55 possible baselines.
! AN table 4: 24 integrations on 66 of 66 possible baselines.
! Apparent sampling: 0.492583 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 784 lines of history.
! 
! Reading 19260 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.5
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.500x0.500 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 169 telescope corrections were flagged in sub-array 1.
!  A total of 305 telescope corrections were flagged in sub-array 2.
!  A total of 279 telescope corrections were flagged in sub-array 3.
!  A total of 119 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 169 telescope corrections were flagged in sub-array 1.
!  A total of 305 telescope corrections were flagged in sub-array 2.
!  A total of 279 telescope corrections were flagged in sub-array 3.
!  A total of 119 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 169 telescope corrections were flagged in sub-array 1.
!  A total of 305 telescope corrections were flagged in sub-array 2.
!  A total of 279 telescope corrections were flagged in sub-array 3.
!  A total of 119 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 169 telescope corrections were flagged in sub-array 1.
!  A total of 305 telescope corrections were flagged in sub-array 2.
!  A total of 279 telescope corrections were flagged in sub-array 3.
!  A total of 119 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.521085Jy  sigma=2.522693
! Fit after  self-cal, rms=0.520502Jy  sigma=2.521199
! 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.387 mas, bmaj=9.06 mas, bpa=-16.67 degrees
! Estimated noise=1.91941 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.07073 Jy
! Total flux subtracted in 50 components = 1.07073 Jy
! Clean residual min=-0.045211 max=0.298743 Jy/beam
! Clean residual mean=0.000046 rms=0.012570 Jy/beam
! Combined flux in latest and established models = 1.07073 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.07073 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.459510Jy  sigma=2.225724
! Fit after  self-cal, rms=0.459510Jy  sigma=2.225725
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.267927 Jy
! Total flux subtracted in 50 components = 0.267927 Jy
! Clean residual min=-0.024075 max=0.110914 Jy/beam
! Clean residual mean=0.000022 rms=0.006279 Jy/beam
! Combined flux in latest and established models = 1.33866 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.33866 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263870Jy  sigma=1.277443
! Fit after  self-cal, rms=0.263828Jy  sigma=1.277246
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.117826 Jy
! Total flux subtracted in 50 components = 0.117826 Jy
! Clean residual min=-0.016272 max=0.055020 Jy/beam
! Clean residual mean=0.000011 rms=0.004219 Jy/beam
! Combined flux in latest and established models = 1.45649 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 17 components and 1.45649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201160Jy  sigma=0.972874
! Fit after  self-cal, rms=0.201097Jy  sigma=0.972571
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.06564 Jy
! Total flux subtracted in 50 components = 0.06564 Jy
! Clean residual min=-0.013062 max=0.034097 Jy/beam
! Clean residual mean=0.000004 rms=0.003341 Jy/beam
! Combined flux in latest and established models = 1.52213 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 24 components and 1.52213 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175906Jy  sigma=0.850244
! Fit after  self-cal, rms=0.175839Jy  sigma=0.849924
! Inverting map 
! Added new window around map position (-3.5, 5.5).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0416677 Jy
! Total flux subtracted in 50 components = 0.0416677 Jy
! Clean residual min=-0.012244 max=0.021830 Jy/beam
! Clean residual mean=-0.000000 rms=0.002915 Jy/beam
! Combined flux in latest and established models = 1.56379 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 29 components and 1.56379 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164500Jy  sigma=0.794951
! Fit after  self-cal, rms=0.164442Jy  sigma=0.794672
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0282189 Jy
! Total flux subtracted in 50 components = 0.0282189 Jy
! Clean residual min=-0.011869 max=0.015838 Jy/beam
! Clean residual mean=-0.000004 rms=0.002699 Jy/beam
! Combined flux in latest and established models = 1.59201 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 39 components and 1.59201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159020Jy  sigma=0.768445
! Fit after  self-cal, rms=0.158985Jy  sigma=0.768281
! 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.072 mas, bmaj=10.11 mas, bpa=-15.15 degrees
! Estimated noise=1.17082 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.0306763 Jy
! Component: 100  -  total flux cleaned = 0.0482737 Jy
! Total flux subtracted in 100 components = 0.0482737 Jy
! Clean residual min=-0.009266 max=0.011336 Jy/beam
! Clean residual mean=0.000412 rms=0.002379 Jy/beam
! Combined flux in latest and established models = 1.64029 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 57 components and 1.64029 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153510Jy  sigma=0.741946
! Fit after  self-cal, rms=0.153451Jy  sigma=0.741686
! 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        1.00     FD        0.98     GC        1.00     GN        0.99     
!   HN        0.99     KP        0.99     LA        1.06     NL        0.95     
!   ON        0.99     OV        0.99     PT        0.97     WF        0.95     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.95     GC        1.00*    GN        1.00     
!   HN        0.98     KK        1.11     KP        0.98     LA        1.08     
!   MK        1.05     NL        0.95     OV        0.99     PT        0.95     
!   WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.00*    GN        1.03     
!   KK        0.97     KP        0.99     LA        0.88     MK        1.01     
!   NL        0.94     OV        1.00     PT        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.97     GC        1.00*    GN        0.96     
!   HN        0.98     KK        1.16     KP        0.99     LA        0.98     
!   MK        1.04     NL        0.95     OV        1.00     PT        0.99     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.14     GN        0.99     
!   HN        0.98     KP        1.00     LA        1.00     NL        0.98     
!   ON        0.99     OV        1.01     PT        0.99     WF        0.97     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        1.00*    GN        1.00     
!   HN        0.97     KK        1.03     KP        0.99     LA        1.00     
!   MK        1.05     NL        0.98     OV        0.98     PT        0.98     
!   WF        0.95     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.00*    GN        1.07     
!   KK        0.96     KP        1.00     LA        0.98     MK        1.02     
!   NL        0.97     OV        1.00     PT        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.97     GC        1.00*    GN        0.97     
!   HN        0.98     KK        1.06     KP        0.99     LA        0.98     
!   MK        1.06     NL        0.97     OV        0.99     PT        0.98     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        1.05     GN        1.00     
!   HN        1.01     KP        1.02     LA        0.98     NL        1.00     
!   ON        0.97     OV        1.02     PT        1.00     WF        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        1.00*    GN        1.04     
!   HN        1.00     KK        1.06     KP        0.97     LA        0.95     
!   MK        1.07     NL        0.99     OV        1.00     PT        0.98     
!   WF        0.96     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.00*    GN        1.08     
!   KK        0.98     KP        1.01     LA        0.97     MK        1.03     
!   NL        0.98     OV        1.01     PT        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        1.00*    GN        1.00     
!   HN        1.00     KK        1.10     KP        1.02     LA        0.96     
!   MK        1.07     NL        1.00     OV        1.01     PT        1.00     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        1.04     GN        1.02     
!   HN        1.00     KP        1.02     LA        1.00     NL        1.00     
!   ON        0.97     OV        1.02     PT        1.00     WF        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        1.00*    GN        0.99     
!   HN        0.97     KK        1.11     KP        0.98     LA        0.99     
!   MK        1.06     NL        0.99     OV        0.99     PT        0.99     
!   WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.02     GC        1.00*    GN        1.04     
!   KK        0.99     KP        1.00     LA        1.00     MK        1.03     
!   NL        0.98     OV        1.00     PT        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.98     GC        1.00*    GN        1.01     
!   HN        0.98     KK        1.15     KP        1.01     LA        1.00     
!   MK        1.06     NL        0.99     OV        0.99     PT        0.98     
! 
! 
! Fit before self-cal, rms=0.153451Jy  sigma=0.741686
! Fit after  self-cal, rms=0.137840Jy  sigma=0.671719
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.091 mas, bmaj=10.19 mas, bpa=-15.14 degrees
! Estimated noise=1.16882 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.00572693 Jy
! Component: 100  -  total flux cleaned = 0.00508499 Jy
! Total flux subtracted in 100 components = 0.00508499 Jy
! Clean residual min=-0.005151 max=0.005426 Jy/beam
! Clean residual mean=0.000074 rms=0.001107 Jy/beam
! Combined flux in latest and established models = 1.64537 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 76 components and 1.64537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137268Jy  sigma=0.668868
! Fit after  self-cal, rms=0.137224Jy  sigma=0.668648
! 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.000233585 Jy
! Component: 100  -  total flux cleaned = 9.59377e-05 Jy
! Total flux subtracted in 100 components = 9.59377e-05 Jy
! Clean residual min=-0.004877 max=0.005219 Jy/beam
! Clean residual mean=0.000074 rms=0.001068 Jy/beam
! Combined flux in latest and established models = 1.64547 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 80 components and 1.64547 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137067Jy  sigma=0.667878
! Fit after  self-cal, rms=0.134082Jy  sigma=0.652176
! Inverting map and beam 
! Estimated beam: bmin=3.093 mas, bmaj=10.2 mas, bpa=-15.12 degrees
! Estimated noise=1.16837 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 (-9.5, 21).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0021091 Jy
! Component: 100  -  total flux cleaned = 0.00322376 Jy
! Total flux subtracted in 100 components = 0.00322376 Jy
! Clean residual min=-0.003405 max=0.003408 Jy/beam
! Clean residual mean=0.000012 rms=0.000802 Jy/beam
! Combined flux in latest and established models = 1.64869 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 95 components and 1.64869 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133926Jy  sigma=0.651410
! Fit after  self-cal, rms=0.133921Jy  sigma=0.651378
! 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 95 model components to file: 1606+106_S.mod
! wwins: Wrote 3 windows to 1606+106_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.093 x 10.2 at -15.12 degrees (North through East)
! Clean map  min=-0.0027994  max=1.4298 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 "****************************"
! **************************** 
device 1606+106_Suv.ps/vps,1,2
! Attempting to open device: '1606+106_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
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.093 mas, bmaj=10.2 mas, bpa=-15.12 degrees
! Estimated noise=1.16837 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.093 x 10.2 at -15.12 degrees (North through East)
! Clean map  min=-0.0027994  max=1.4298 Jy/beam
quit
! Quitting program
! Log file 1606+106_S.log closed on Mon Feb  2 19:25:34 1998