! Started logfile: 0642+449_X.log on Fri Feb  5 10:38:02 1999
observe 0642+449_X.edt
! Reading UV FITS file: 0642+449_X.edt
! AN table 1: 41 integrations on 94 of 105 possible baselines.
! AN table 2: 200 integrations on 120 of 120 possible baselines.
! AN table 3: 56 integrations on 77 of 78 possible baselines.
! Apparent sampling: 0.405708 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0642+449
! 
! 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 1674 lines of history.
! 
! Reading 52200 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.8
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 414 telescope corrections were flagged in sub-array 1.
!  A total of 1532 telescope corrections were flagged in sub-array 2.
!  A total of 440 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 410 telescope corrections were flagged in sub-array 1.
!  A total of 1535 telescope corrections were flagged in sub-array 2.
!  A total of 415 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 410 telescope corrections were flagged in sub-array 1.
!  A total of 1534 telescope corrections were flagged in sub-array 2.
!  A total of 411 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 410 telescope corrections were flagged in sub-array 1.
!  A total of 1540 telescope corrections were flagged in sub-array 2.
!  A total of 414 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.810893Jy  sigma=4.365605
! Fit after  self-cal, rms=0.810742Jy  sigma=4.365578
! 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.6465 mas, bmaj=0.7383 mas, bpa=-8.164 degrees
! Estimated noise=1.13967 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.28897 Jy
! Total flux subtracted in 50 components = 1.28897 Jy
! Clean residual min=-0.041801 max=0.359964 Jy/beam
! Clean residual mean=0.000313 rms=0.010710 Jy/beam
! Combined flux in latest and established models = 1.28897 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 1.28897 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.546323Jy  sigma=2.939486
! Fit after  self-cal, rms=0.546323Jy  sigma=2.939487
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.326514 Jy
! Total flux subtracted in 50 components = 0.326514 Jy
! Clean residual min=-0.022606 max=0.137849 Jy/beam
! Clean residual mean=0.000138 rms=0.005427 Jy/beam
! Combined flux in latest and established models = 1.61549 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.61549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297178Jy  sigma=1.592313
! Fit after  self-cal, rms=0.297140Jy  sigma=1.592085
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.146938 Jy
! Total flux subtracted in 50 components = 0.146938 Jy
! Clean residual min=-0.015651 max=0.065517 Jy/beam
! Clean residual mean=0.000059 rms=0.003592 Jy/beam
! Combined flux in latest and established models = 1.76243 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 9 components and 1.76243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211925Jy  sigma=1.127403
! Fit after  self-cal, rms=0.211826Jy  sigma=1.126845
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0739144 Jy
! Total flux subtracted in 50 components = 0.0739143 Jy
! Clean residual min=-0.012132 max=0.037208 Jy/beam
! Clean residual mean=0.000019 rms=0.002958 Jy/beam
! Combined flux in latest and established models = 1.83634 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 15 components and 1.83634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182409Jy  sigma=0.964920
! Fit after  self-cal, rms=0.182388Jy  sigma=0.964802
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.045167 Jy
! Total flux subtracted in 50 components = 0.045167 Jy
! Clean residual min=-0.012524 max=0.024015 Jy/beam
! Clean residual mean=-0.000004 rms=0.002683 Jy/beam
! Combined flux in latest and established models = 1.88151 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 19 components and 1.88151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171080Jy  sigma=0.902249
! Fit after  self-cal, rms=0.171069Jy  sigma=0.902185
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0293237 Jy
! Total flux subtracted in 50 components = 0.0293237 Jy
! Clean residual min=-0.013935 max=0.015655 Jy/beam
! Clean residual mean=-0.000020 rms=0.002557 Jy/beam
! Combined flux in latest and established models = 1.91083 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 21 components and 1.91083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166695Jy  sigma=0.877929
! Fit after  self-cal, rms=0.166685Jy  sigma=0.877878
! 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.8205 mas, bmaj=0.9992 mas, bpa=-9.468 degrees
! Estimated noise=0.635586 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.023382 Jy
! Component: 100  -  total flux cleaned = 0.0325493 Jy
! Total flux subtracted in 100 components = 0.0325493 Jy
! Clean residual min=-0.009292 max=0.007854 Jy/beam
! Clean residual mean=-0.000156 rms=0.001740 Jy/beam
! Combined flux in latest and established models = 1.94338 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 29 components and 1.94338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164046Jy  sigma=0.862784
! Fit after  self-cal, rms=0.164030Jy  sigma=0.862697
! 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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        1.01     GN        1.04     
!   HN        1.01     KK        0.97     KP        1.01     LA        1.03     
!   MC        1.24     NL        1.00     ON        1.11     OV        1.00     
!   PT        1.00     SC        1.05     WF        0.97     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        0.98     GN        1.04     
!   HN        1.00     KK        0.99     KP        1.01     LA        1.01     
!   MC        1.01     MK        1.07     NL        1.01     ON        1.00     
!   OV        1.00     PT        1.01     SC        1.00     WF        0.99     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     GC        1.01     GN        1.08     HN        1.03     
!   KK        0.98     KP        1.02     LA        1.03     MK        1.08     
!   NL        1.01     ON        1.18     OV        1.01     PT        1.00     
!   WF        0.98     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.99     GC        1.01     GN        1.04     
!   HN        1.01     KK        0.97     KP        1.00     LA        1.02     
!   MC        1.09     NL        1.00     ON        1.13     OV        0.99     
!   PT        1.00     SC        1.05     WF        0.99     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        0.97     GN        1.03     
!   HN        1.00     KK        0.99     KP        1.01     LA        1.01     
!   MC        1.00     MK        1.07     NL        1.01     ON        1.00     
!   OV        0.99     PT        1.01     SC        1.00     WF        0.99     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     GC        1.00     GN        1.06     HN        1.03     
!   KK        0.95     KP        1.01     LA        1.03     MK        1.07     
!   NL        1.01     ON        1.14     OV        1.00     PT        0.99     
!   WF        0.97     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        1.00     GN        1.01     
!   HN        0.99     KK        0.96     KP        0.99     LA        1.02     
!   MC        1.50     NL        0.99     ON        1.13     OV        0.99     
!   PT        0.99     SC        1.04     WF        0.97     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        0.97     GN        1.04     
!   HN        0.99     KK        0.98     KP        1.00     LA        1.00     
!   MC        1.01     MK        1.04     NL        1.00     ON        1.00     
!   OV        0.99     PT        1.00     SC        1.00     WF        0.97     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     GC        1.00     GN        1.04     HN        1.01     
!   KK        0.95     KP        1.00     LA        1.01     MK        1.04     
!   NL        1.02     ON        1.14     OV        1.00     PT        0.99     
!   WF        0.97     
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        0.97     GN        1.02     
!   HN        0.98     KK        0.98     KP        0.98     LA        1.01     
!   MC        1.03     NL        0.98     ON        1.13     OV        0.99     
!   PT        1.00     SC        1.05     WF        0.95     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        0.96     GN        1.02     
!   HN        0.99     KK        0.98     KP        0.99     LA        0.99     
!   MC        0.99     MK        1.03     NL        0.99     ON        1.00     
!   OV        0.99     PT        0.99     SC        1.00     WF        0.97     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     GC        0.98     GN        1.03     HN        1.01     
!   KK        0.97     KP        0.99     LA        1.01     MK        1.04     
!   NL        1.00     ON        1.14     OV        0.98     PT        0.98     
!   WF        0.96     
! 
! 
! Fit before self-cal, rms=0.164030Jy  sigma=0.862697
! Fit after  self-cal, rms=0.153782Jy  sigma=0.802202
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8204 mas, bmaj=1.004 mas, bpa=-10.2 degrees
! Estimated noise=0.636138 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.00404001 Jy
! Component: 100  -  total flux cleaned = 0.00418004 Jy
! Total flux subtracted in 100 components = 0.00418004 Jy
! Clean residual min=-0.007452 max=0.005208 Jy/beam
! Clean residual mean=-0.000163 rms=0.001258 Jy/beam
! Combined flux in latest and established models = 1.94756 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 34 components and 1.94756 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153570Jy  sigma=0.801009
! Fit after  self-cal, rms=0.153556Jy  sigma=0.800909
! 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)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.63184e-05 Jy
! Component: 100  -  total flux cleaned = -0.000268541 Jy
! Total flux subtracted in 100 components = -0.000268541 Jy
! Clean residual min=-0.007286 max=0.005178 Jy/beam
! Clean residual mean=-0.000163 rms=0.001252 Jy/beam
! Combined flux in latest and established models = 1.94729 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 38 components and 1.94729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153461Jy  sigma=0.800373
! Fit after  self-cal, rms=0.141328Jy  sigma=0.730731
! Inverting map and beam 
! Estimated beam: bmin=0.819 mas, bmaj=1.004 mas, bpa=-10.07 degrees
! Estimated noise=0.636178 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.0031085 Jy
! Component: 100  -  total flux cleaned = 0.00367455 Jy
! Total flux subtracted in 100 components = 0.00367455 Jy
! Clean residual min=-0.004641 max=0.004805 Jy/beam
! Clean residual mean=-0.000012 rms=0.000637 Jy/beam
! Combined flux in latest and established models = 1.95097 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 44 components and 1.95097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141195Jy  sigma=0.729959
! Fit after  self-cal, rms=0.141184Jy  sigma=0.729892
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0642+449_X
! Writing UV FITS file: 0642+449_X.uvf
! Writing 44 model components to file: 0642+449_X.mod
! wwins: Wrote 1 windows to 0642+449_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.819 x 1.004 at -10.07 degrees (North through East)
! Clean map  min=-0.0021434  max=1.7389 Jy/beam
! Writing clean map to FITS file: 0642+449_X.fits
! Writing difmap environment to: 0642+449_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0642+449_Xuv.ps/vps,1,2
! Attempting to open device: '0642+449_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0642+449_Xim.ps/vps
! Attempting to open device: '0642+449_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.819 mas, bmaj=1.004 mas, bpa=-10.07 degrees
! Estimated noise=0.636178 mJy/beam.
! The new contour levels are:
!  -0.00191335 0.00191335 0.0038267 0.00765339 0.0153068 0.0306136 0.0612271 0.122454 0.244909 0.489817 0.979634 1.95927 3.91854 7.83707 15.6741 31.3483 62.6966 125.393 250.786 501.573 1003.15 2006.29 4012.58 8025.16 16050.3
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.819 x 1.004 at -10.07 degrees (North through East)
! Clean map  min=-0.0021434  max=1.7389 Jy/beam
device 0642+449_Xim_un.ps/vps
! Attempting to open device: '0642+449_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.645 mas, bmaj=0.7455 mas, bpa=-9.03 degrees
! Estimated noise=1.14835 mJy/beam.
! The new contour levels are:
!  -0.00366575 0.00366575 0.00733151 0.014663 0.029326 0.0586521 0.117304 0.234608 0.469217 0.938433 1.87687 3.75373 7.50747 15.0149 30.0299 60.0597 120.119 240.239 480.478 960.956 1921.91 3843.82 7687.64 15375.3
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.645 x 0.7455 at -9.03 degrees (North through East)
! Clean map  min=-0.0049354  max=1.6492 Jy/beam
quit
! Quitting program
! Log file 0642+449_X.log closed on Fri Feb  5 10:41:54 1999