! Started logfile: 0642+449_X.log on Wed May  9 10:14:02 2001
observe 0642+449_X.edt
! Reading UV FITS file: 0642+449_X.edt
! AN table 1: 147 integrations on 114 of 120 possible baselines.
! AN table 2: 67 integrations on 105 of 105 possible baselines.
! AN table 3: 106 integrations on 103 of 105 possible baselines.
! Apparent sampling: 0.301633 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 1403 lines of history.
! 
! Reading 41880 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 1197 telescope corrections were flagged in sub-array 1.
!  A total of 603 telescope corrections were flagged in sub-array 2.
!  A total of 980 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1206 telescope corrections were flagged in sub-array 1.
!  A total of 604 telescope corrections were flagged in sub-array 2.
!  A total of 985 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1210 telescope corrections were flagged in sub-array 1.
!  A total of 606 telescope corrections were flagged in sub-array 2.
!  A total of 983 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1206 telescope corrections were flagged in sub-array 1.
!  A total of 606 telescope corrections were flagged in sub-array 2.
!  A total of 985 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.153430Jy  sigma=6.717193
! Fit after  self-cal, rms=1.153411Jy  sigma=6.718017
! 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.619 mas, bmaj=0.7206 mas, bpa=-3.135 degrees
! Estimated noise=1.14462 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.54522 Jy
! Total flux subtracted in 50 components = 1.54522 Jy
! Clean residual min=-0.039008 max=0.431460 Jy/beam
! Clean residual mean=0.000220 rms=0.012976 Jy/beam
! Combined flux in latest and established models = 1.54522 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.54522 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.646541Jy  sigma=3.767313
! Fit after  self-cal, rms=0.646541Jy  sigma=3.767313
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.398656 Jy
! Total flux subtracted in 50 components = 0.398656 Jy
! Clean residual min=-0.021145 max=0.171101 Jy/beam
! Clean residual mean=0.000088 rms=0.006469 Jy/beam
! Combined flux in latest and established models = 1.94388 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 6 components and 1.94388 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336314Jy  sigma=1.958567
! Fit after  self-cal, rms=0.336278Jy  sigma=1.958366
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.179117 Jy
! Total flux subtracted in 50 components = 0.179117 Jy
! Clean residual min=-0.017045 max=0.091209 Jy/beam
! Clean residual mean=0.000029 rms=0.004123 Jy/beam
! Combined flux in latest and established models = 2.123 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 8 components and 2.123 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221541Jy  sigma=1.287709
! Fit after  self-cal, rms=0.221525Jy  sigma=1.287617
! Inverting map 
! Added new window around map position (0.5, -0.1).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0929465 Jy
! Total flux subtracted in 50 components = 0.0929466 Jy
! Clean residual min=-0.016430 max=0.043326 Jy/beam
! Clean residual mean=-0.000001 rms=0.003208 Jy/beam
! Combined flux in latest and established models = 2.21595 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 12 components and 2.21595 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177688Jy  sigma=1.030438
! Fit after  self-cal, rms=0.177419Jy  sigma=1.028890
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0505441 Jy
! Total flux subtracted in 50 components = 0.0505441 Jy
! Clean residual min=-0.015633 max=0.028287 Jy/beam
! Clean residual mean=-0.000017 rms=0.002875 Jy/beam
! Combined flux in latest and established models = 2.26649 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 20 components and 2.26649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161380Jy  sigma=0.934217
! Fit after  self-cal, rms=0.161315Jy  sigma=0.933852
! Inverting map 
! Added new window around map position (0.3, 0.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0338785 Jy
! Total flux subtracted in 50 components = 0.0338785 Jy
! Clean residual min=-0.014966 max=0.021072 Jy/beam
! Clean residual mean=-0.000028 rms=0.002706 Jy/beam
! Combined flux in latest and established models = 2.30037 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 25 components and 2.30037 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154053Jy  sigma=0.890736
! Fit after  self-cal, rms=0.154010Jy  sigma=0.890489
! Inverting map 
! Added new window around map position (-0.1, -0.5).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0243831 Jy
! Total flux subtracted in 50 components = 0.0243831 Jy
! Clean residual min=-0.015986 max=0.016521 Jy/beam
! Clean residual mean=-0.000035 rms=0.002609 Jy/beam
! Combined flux in latest and established models = 2.32475 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 29 components and 2.32475 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150529Jy  sigma=0.869696
! Fit after  self-cal, rms=0.150491Jy  sigma=0.869482
! 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.781 mas, bmaj=0.895 mas, bpa=1.751 degrees
! Estimated noise=0.610198 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.0198058 Jy
! Component: 100  -  total flux cleaned = 0.0298254 Jy
! Total flux subtracted in 100 components = 0.0298254 Jy
! Clean residual min=-0.010771 max=0.011390 Jy/beam
! Clean residual mean=-0.000202 rms=0.002460 Jy/beam
! Combined flux in latest and established models = 2.35458 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 33 components and 2.35458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148264Jy  sigma=0.855933
! Fit after  self-cal, rms=0.148193Jy  sigma=0.855522
! 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 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.01     GC        0.98     HN        0.99     
!   KP        1.02     LA        1.01     NL        1.02     OV        1.00     
!   PT        1.02     SC        1.01     KK        1.09     MC        1.00     
!   MK        1.04     NY        0.99     ON        0.99     GN        0.94     
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.02     GC        1.01     HN        0.98     
!   KP        1.00     LA        1.00     NL        1.01     OV        1.00     
!   PT        1.03     SC        1.03     KK        1.05     MK        1.01     
!   NY        1.03     ON        1.03     GN        0.97     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.02     GC        1.02     HN        1.00     
!   KP        1.02     LA        1.00     NL        1.01     OV        1.00     
!   PT        1.02     SC        0.99     KK        1.02     MK        1.03     
!   NY        1.02     ON        1.03     GN        1.07     
! 
! 
! Correcting IF 2.
!  A total of 63 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        0.96     HN        0.99     
!   KP        1.02     LA        1.01     NL        1.01     OV        1.00     
!   PT        1.01     SC        1.02     KK        1.07     MC        1.00     
!   MK        1.03     NY        1.00     ON        1.00     GN        0.95     
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        0.99     HN        0.98     
!   KP        1.01     LA        0.99     NL        1.01     OV        1.00     
!   PT        1.02     SC        1.04     KK        1.02     MK        1.00     
!   NY        1.04     ON        1.06     GN        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        1.00     HN        1.00     
!   KP        1.03     LA        1.00     NL        1.00     OV        1.00     
!   PT        1.02     SC        1.00     KK        1.00     MK        1.03     
!   NY        1.05     ON        1.04     GN        1.10     
! 
! 
! Correcting IF 3.
!  A total of 63 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        0.95     HN        0.99     
!   KP        1.00     LA        0.99     NL        1.01     OV        0.99     
!   PT        0.99     SC        1.01     KK        1.07     MC        0.99     
!   MK        1.02     NY        0.98     ON        0.99     GN        0.92     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        0.97     HN        0.97     
!   KP        0.99     LA        0.98     NL        1.00     OV        0.99     
!   PT        0.99     SC        1.04     KK        1.04     MK        1.00     
!   NY        1.01     ON        1.06     GN        0.97     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        0.98     HN        0.99     
!   KP        1.00     LA        0.99     NL        1.00     OV        0.99     
!   PT        0.99     SC        0.99     KK        1.00     MK        1.02     
!   NY        1.01     ON        1.04     GN        1.07     
! 
! 
! Correcting IF 4.
!  A total of 63 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.98     GC        0.97     HN        0.98     
!   KP        1.01     LA        0.99     NL        0.99     OV        0.98     
!   PT        0.99     SC        1.02     KK        1.06     MC        0.97     
!   MK        1.03     NY        0.97     ON        0.98     GN        0.92     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        0.97     HN        0.96     
!   KP        0.99     LA        0.97     NL        0.99     OV        0.98     
!   PT        0.99     SC        1.05     KK        1.05     MK        1.00     
!   NY        1.02     ON        1.05     GN        0.97     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GC        0.99     HN        0.98     
!   KP        1.02     LA        0.98     NL        0.99     OV        0.99     
!   PT        0.99     SC        1.00     KK        1.01     MK        1.03     
!   NY        1.00     ON        1.02     GN        1.11     
! 
! 
! Fit before self-cal, rms=0.148193Jy  sigma=0.855522
! Fit after  self-cal, rms=0.125675Jy  sigma=0.720900
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7785 mas, bmaj=0.8975 mas, bpa=0.7584 degrees
! Estimated noise=0.614674 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.000425674 Jy
! Component: 100  -  total flux cleaned = 0.000165414 Jy
! Total flux subtracted in 100 components = 0.000165414 Jy
! Clean residual min=-0.014104 max=0.006352 Jy/beam
! Clean residual mean=-0.000230 rms=0.001557 Jy/beam
! Combined flux in latest and established models = 2.35474 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 38 components and 2.35474 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125146Jy  sigma=0.717596
! Fit after  self-cal, rms=0.125098Jy  sigma=0.717322
! 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 = 0.000298507 Jy
! Component: 100  -  total flux cleaned = -3.30487e-06 Jy
! Total flux subtracted in 100 components = -3.30487e-06 Jy
! Clean residual min=-0.013382 max=0.006163 Jy/beam
! Clean residual mean=-0.000230 rms=0.001545 Jy/beam
! Combined flux in latest and established models = 2.35474 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 40 components and 2.35474 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124910Jy  sigma=0.716173
! Fit after  self-cal, rms=0.112944Jy  sigma=0.641882
! Inverting map and beam 
! Estimated beam: bmin=0.779 mas, bmaj=0.8962 mas, bpa=0.8388 degrees
! Estimated noise=0.615205 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.00453217 Jy
! Component: 100  -  total flux cleaned = 0.00513169 Jy
! Total flux subtracted in 100 components = 0.00513169 Jy
! Clean residual min=-0.008141 max=0.005009 Jy/beam
! Clean residual mean=-0.000007 rms=0.000642 Jy/beam
! Combined flux in latest and established models = 2.35987 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 45 components and 2.35987 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112721Jy  sigma=0.640601
! Fit after  self-cal, rms=0.112698Jy  sigma=0.640484
! 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 45 model components to file: 0642+449_X.mod
! wwins: Wrote 4 windows to 0642+449_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.779 x 0.8962 at 0.8388 degrees (North through East)
! Clean map  min=-0.0027363  max=2.0834 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.779 mas, bmaj=0.8962 mas, bpa=0.8388 degrees
! Estimated noise=0.615205 mJy/beam.
! The new contour levels are:
!  -0.00193644 0.00193644 0.00387289 0.00774578 0.0154916 0.0309831 0.0619662 0.123932 0.247865 0.49573 0.991459 1.98292 3.96584 7.93168 15.8634 31.7267 63.4534 126.907 253.814 507.627 1015.25 2030.51 4061.02 8122.04 16244.1
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.779 x 0.8962 at 0.8388 degrees (North through East)
! Clean map  min=-0.0027363  max=2.0834 Jy/beam
quit
! Quitting program
! Log file 0642+449_X.log closed on Wed May  9 10:14:46 2001