! Started logfile: 1606+106_X.log on Wed Dec 23 15:26:29 1998
observe 1606+106_X.edt
! Reading UV FITS file: 1606+106_X.edt
! AN table 1: 180 integrations on 104 of 120 possible baselines.
! AN table 2: 149 integrations on 92 of 120 possible baselines.
! AN table 3: 8 integrations on 1 of 1 possible baselines.
! Apparent sampling: 0.270502 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 1274 lines of history.
! 
! Reading 35096 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
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
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 = 7.0
float win_mult
win_mult = 1.0
float solint
solint = 4.0/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.
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 1743 telescope corrections were flagged in sub-array 1.
!  A total of 1898 telescope corrections were flagged in sub-array 2.
!  A total of 16 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1743 telescope corrections were flagged in sub-array 1.
!  A total of 1901 telescope corrections were flagged in sub-array 2.
!  A total of 16 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1743 telescope corrections were flagged in sub-array 1.
!  A total of 1904 telescope corrections were flagged in sub-array 2.
!  A total of 16 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1746 telescope corrections were flagged in sub-array 1.
!  A total of 1898 telescope corrections were flagged in sub-array 2.
!  A total of 16 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.232975Jy  sigma=1.233337
! Fit after  self-cal, rms=0.231790Jy  sigma=1.227598
! 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.622 mas, bmaj=1.367 mas, bpa=-5.021 degrees
! Estimated noise=1.25268 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.772749 Jy
! Total flux subtracted in 50 components = 0.772749 Jy
! Clean residual min=-0.027915 max=0.215701 Jy/beam
! Clean residual mean=-0.000149 rms=0.008933 Jy/beam
! Combined flux in latest and established models = 0.772749 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.772749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356051Jy  sigma=1.900904
! Fit after  self-cal, rms=0.356051Jy  sigma=1.900905
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.191274 Jy
! Total flux subtracted in 50 components = 0.191274 Jy
! Clean residual min=-0.016447 max=0.094006 Jy/beam
! Clean residual mean=-0.000106 rms=0.005206 Jy/beam
! Combined flux in latest and established models = 0.964024 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.964024 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234749Jy  sigma=1.245960
! Fit after  self-cal, rms=0.234714Jy  sigma=1.245738
! Inverting map 
! Added new window around map position (-0.6, 0.3).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0949095 Jy
! Total flux subtracted in 50 components = 0.0949095 Jy
! Clean residual min=-0.012698 max=0.058085 Jy/beam
! Clean residual mean=-0.000085 rms=0.003790 Jy/beam
! Combined flux in latest and established models = 1.05893 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 10 components and 1.05893 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191305Jy  sigma=1.009316
! Fit after  self-cal, rms=0.190628Jy  sigma=1.005917
! Inverting map 
! Added new window around map position (-1.2, 0.9).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0627079 Jy
! Total flux subtracted in 50 components = 0.0627079 Jy
! Clean residual min=-0.010605 max=0.032192 Jy/beam
! Clean residual mean=-0.000072 rms=0.002922 Jy/beam
! Combined flux in latest and established models = 1.12164 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 12 components and 1.12164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167054Jy  sigma=0.876479
! Fit after  self-cal, rms=0.166456Jy  sigma=0.873499
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0412219 Jy
! Total flux subtracted in 50 components = 0.0412219 Jy
! Clean residual min=-0.009651 max=0.021222 Jy/beam
! Clean residual mean=-0.000063 rms=0.002447 Jy/beam
! Combined flux in latest and established models = 1.16286 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 16 components and 1.16286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154518Jy  sigma=0.807417
! Fit after  self-cal, rms=0.154246Jy  sigma=0.806086
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0277025 Jy
! Total flux subtracted in 50 components = 0.0277025 Jy
! Clean residual min=-0.009102 max=0.016685 Jy/beam
! Clean residual mean=-0.000057 rms=0.002195 Jy/beam
! Combined flux in latest and established models = 1.19057 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 24 components and 1.19057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148096Jy  sigma=0.771821
! Fit after  self-cal, rms=0.147954Jy  sigma=0.771126
! Inverting map 
! Added new window around map position (-0.7, 1.5).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0207733 Jy
! Total flux subtracted in 50 components = 0.0207733 Jy
! Clean residual min=-0.008649 max=0.014856 Jy/beam
! Clean residual mean=-0.000053 rms=0.002041 Jy/beam
! Combined flux in latest and established models = 1.21134 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 30 components and 1.21134 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144380Jy  sigma=0.751152
! Fit after  self-cal, rms=0.144274Jy  sigma=0.750631
! 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.7921 mas, bmaj=1.617 mas, bpa=-2.368 degrees
! Estimated noise=0.758531 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.0276949 Jy
! Component: 100  -  total flux cleaned = 0.0435916 Jy
! Total flux subtracted in 100 components = 0.0435916 Jy
! Clean residual min=-0.008811 max=0.014767 Jy/beam
! Clean residual mean=-0.000093 rms=0.002255 Jy/beam
! Combined flux in latest and established models = 1.25493 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 63 components and 1.25493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139432Jy  sigma=0.723381
! Fit after  self-cal, rms=0.139020Jy  sigma=0.721187
! 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 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     GC        1.03     GN        1.03     
!   HN        1.01     KK        1.02     KP        0.99     LA        0.96     
!   MC        1.04     NL        1.01     ON        1.00*    OV        1.00     
!   PT        1.00     SC        0.99     WF        1.02     MK        0.98     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        0.99     GN        1.00     
!   HN        0.94     KK        0.99     KP        0.99     LA        0.95     
!   MC        1.00*    NL        1.00     ON        1.00*    OV        1.00     
!   PT        1.00     SC        1.02     WF        0.96     MK        0.95     
! 
!  Telescope amplitude corrections in sub-array 3:
!   MC        0.00*    ON        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.03     GN        1.01     
!   HN        1.03     KK        1.01     KP        1.00     LA        0.96     
!   MC        1.04     NL        1.00     ON        1.00*    OV        1.01     
!   PT        1.00     SC        1.00     WF        1.04     MK        0.97     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.00     GN        1.01     
!   HN        0.95     KK        0.98     KP        0.99     LA        0.95     
!   MC        1.00*    NL        1.01     ON        1.00*    OV        1.00     
!   PT        0.99     SC        1.01     WF        0.97     MK        0.96     
! 
!  Telescope amplitude corrections in sub-array 3:
!   MC        0.00*    ON        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     GC        1.05     GN        1.02     
!   HN        1.02     KK        1.02     KP        0.99     LA        0.95     
!   MC        1.02     NL        1.00     ON        1.00*    OV        1.01     
!   PT        1.00     SC        0.98     WF        1.03     MK        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        0.99     GN        1.00     
!   HN        0.94     KK        0.99     KP        0.99     LA        0.94     
!   MC        1.00*    NL        1.00     ON        1.00*    OV        1.00     
!   PT        0.98     SC        1.03     WF        0.95     MK        0.95     
! 
!  Telescope amplitude corrections in sub-array 3:
!   MC        0.00*    ON        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     GC        1.05     GN        0.99     
!   HN        1.02     KK        1.00     KP        0.99     LA        0.94     
!   MC        0.99     NL        0.99     ON        1.00*    OV        1.00     
!   PT        0.99     SC        0.98     WF        1.03     MK        0.97     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.00     GN        0.98     
!   HN        0.93     KK        0.99     KP        0.99     LA        0.94     
!   MC        1.00*    NL        0.99     ON        1.00*    OV        1.00     
!   PT        0.98     SC        1.02     WF        0.98     MK        0.96     
! 
!  Telescope amplitude corrections in sub-array 3:
!   MC        0.00*    ON        0.00*    
! 
! 
! Fit before self-cal, rms=0.139020Jy  sigma=0.721187
! Fit after  self-cal, rms=0.132309Jy  sigma=0.688694
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7935 mas, bmaj=1.621 mas, bpa=-2.517 degrees
! Estimated noise=0.754543 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 (-1.4, 2.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00869383 Jy
! Component: 100  -  total flux cleaned = 0.0120533 Jy
! Total flux subtracted in 100 components = 0.0120533 Jy
! Clean residual min=-0.005347 max=0.006894 Jy/beam
! Clean residual mean=-0.000022 rms=0.001326 Jy/beam
! Combined flux in latest and established models = 1.26698 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 79 components and 1.26698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131820Jy  sigma=0.685828
! Fit after  self-cal, rms=0.131760Jy  sigma=0.685524
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * 1.5
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 (-4.9, 5.9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00548435 Jy
! Component: 100  -  total flux cleaned = 0.0080836 Jy
! Total flux subtracted in 100 components = 0.0080836 Jy
! Clean residual min=-0.005314 max=0.005087 Jy/beam
! Clean residual mean=-0.000019 rms=0.001258 Jy/beam
! Combined flux in latest and established models = 1.27507 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 88 components and 1.27507 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131465Jy  sigma=0.683902
! Fit after  self-cal, rms=0.124930Jy  sigma=0.645690
! Inverting map and beam 
! Estimated beam: bmin=0.793 mas, bmaj=1.619 mas, bpa=-2.486 degrees
! Estimated noise=0.755128 mJy/beam.
doamp = false
solint = solint / 1.5
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.00524492 Jy
! Component: 100  -  total flux cleaned = 0.00780035 Jy
! Total flux subtracted in 100 components = 0.00780035 Jy
! Clean residual min=-0.003360 max=0.003111 Jy/beam
! Clean residual mean=0.000000 rms=0.000609 Jy/beam
! Combined flux in latest and established models = 1.28287 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 102 components and 1.28287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124745Jy  sigma=0.644565
! Fit after  self-cal, rms=0.124723Jy  sigma=0.644459
! 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 102 model components to file: 1606+106_X.mod
! wwins: Wrote 6 windows to 1606+106_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.793 x 1.619 at -2.486 degrees (North through East)
! Clean map  min=-0.0024063  max=1.0146 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'
cmul = 1.0
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 (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.793 mas, bmaj=1.619 mas, bpa=-2.486 degrees
! Estimated noise=0.755128 mJy/beam.
! The new contour levels are:
!  -0.0018414 0.0018414 0.00368281 0.00736562 0.0147312 0.0294625 0.0589249 0.11785 0.2357 0.471399 0.942799 1.8856 3.7712 7.54239 15.0848 30.1696 60.3391 120.678 241.357 482.713 965.426 1930.85 3861.7 7723.41 15446.8
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.793 x 1.619 at -2.486 degrees (North through East)
! Clean map  min=-0.0024063  max=1.0146 Jy/beam
device 1606+106_Xim_un.ps/vps
! Attempting to open device: '1606+106_Xim_un.ps/vps'
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.
loglevs (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.6225 mas, bmaj=1.366 mas, bpa=-5.308 degrees
! Estimated noise=1.24643 mJy/beam.
! The new contour levels are:
!  -0.00300972 0.00300972 0.00601945 0.0120389 0.0240778 0.0481556 0.0963112 0.192622 0.385245 0.770489 1.54098 3.08196 6.16392 12.3278 24.6557 49.3113 98.6227 197.245 394.491 788.981 1577.96 3155.92 6311.85 12623.7
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6225 x 1.366 at -5.308 degrees (North through East)
! Clean map  min=-0.0039782  max=0.98054 Jy/beam
quit
! Quitting program
! Log file 1606+106_X.log closed on Wed Dec 23 15:31:40 1998