! Started logfile: 1739+522_X.log on Thu Mar  1 09:54:53 2001
observe 1739+522_X.edt
! Reading UV FITS file: 1739+522_X.edt
! AN table 1: 189 integrations on 128 of 136 possible baselines.
! AN table 2: 65 integrations on 105 of 105 possible baselines.
! AN table 3: 173 integrations on 106 of 136 possible baselines.
! AN table 4: 28 integrations on 28 of 28 possible baselines.
! Apparent sampling: 0.141846 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1739+522
! 
! 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 5578 lines of history.
! 
! Reading 28448 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 = 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.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 2627 telescope corrections were flagged in sub-array 1.
!  A total of 726 telescope corrections were flagged in sub-array 2.
!  A total of 2165 telescope corrections were flagged in sub-array 3.
!  A total of 125 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2649 telescope corrections were flagged in sub-array 1.
!  A total of 740 telescope corrections were flagged in sub-array 2.
!  A total of 2248 telescope corrections were flagged in sub-array 3.
!  A total of 125 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2649 telescope corrections were flagged in sub-array 1.
!  A total of 740 telescope corrections were flagged in sub-array 2.
!  A total of 2248 telescope corrections were flagged in sub-array 3.
!  A total of 125 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2658 telescope corrections were flagged in sub-array 1.
!  A total of 740 telescope corrections were flagged in sub-array 2.
!  A total of 2248 telescope corrections were flagged in sub-array 3.
!  A total of 125 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.781687Jy  sigma=5.492763
! Fit after  self-cal, rms=0.781141Jy  sigma=5.489027
! 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.5628 mas, bmaj=0.6736 mas, bpa=-21.05 degrees
! Estimated noise=1.22494 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.28003 Jy
! Total flux subtracted in 50 components = 1.28003 Jy
! Clean residual min=-0.035142 max=0.357215 Jy/beam
! Clean residual mean=0.000193 rms=0.011345 Jy/beam
! Combined flux in latest and established models = 1.28003 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.28003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.526035Jy  sigma=3.698180
! Fit after  self-cal, rms=0.526035Jy  sigma=3.698179
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.289065 Jy
! Total flux subtracted in 50 components = 0.289065 Jy
! Clean residual min=-0.023934 max=0.104700 Jy/beam
! Clean residual mean=0.000104 rms=0.006468 Jy/beam
! Combined flux in latest and established models = 1.5691 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 7 components and 1.5691 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311642Jy  sigma=2.194113
! Fit after  self-cal, rms=0.311638Jy  sigma=2.194076
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.121016 Jy
! Total flux subtracted in 50 components = 0.121016 Jy
! Clean residual min=-0.021803 max=0.062487 Jy/beam
! Clean residual mean=0.000068 rms=0.005351 Jy/beam
! Combined flux in latest and established models = 1.69011 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 13 components and 1.69011 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253661Jy  sigma=1.786267
! Fit after  self-cal, rms=0.253650Jy  sigma=1.786193
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0766423 Jy
! Total flux subtracted in 50 components = 0.0766423 Jy
! Clean residual min=-0.020258 max=0.041288 Jy/beam
! Clean residual mean=0.000045 rms=0.004831 Jy/beam
! Combined flux in latest and established models = 1.76675 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 19 components and 1.76675 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226926Jy  sigma=1.597400
! Fit after  self-cal, rms=0.226911Jy  sigma=1.597299
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0514665 Jy
! Total flux subtracted in 50 components = 0.0514665 Jy
! Clean residual min=-0.019346 max=0.028033 Jy/beam
! Clean residual mean=0.000030 rms=0.004575 Jy/beam
! Combined flux in latest and established models = 1.81822 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 22 components and 1.81822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214227Jy  sigma=1.507266
! Fit after  self-cal, rms=0.214212Jy  sigma=1.507160
! 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.7054 mas, bmaj=0.8156 mas, bpa=-13.72 degrees
! Estimated noise=0.690363 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.0514193 Jy
! Component: 100  -  total flux cleaned = 0.0763182 Jy
! Total flux subtracted in 100 components = 0.0763182 Jy
! Clean residual min=-0.018682 max=0.022458 Jy/beam
! Clean residual mean=-0.000162 rms=0.005393 Jy/beam
! Combined flux in latest and established models = 1.89454 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 35 components and 1.89454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203550Jy  sigma=1.430628
! Fit after  self-cal, rms=0.203533Jy  sigma=1.430507
! 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 180 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.97     GC        1.03     HN        0.95     
!   KK        1.01     KP        1.26     LA        0.97     MC        1.13     
!   MK        1.01     NL        0.99     NY        0.93     ON        1.03     
!   OV        0.98     PT        0.79     SC        0.99     WF        1.01     
!   GN        1.17     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.96     GC        1.00     KK        1.01     
!   KP        0.96     LA        0.97     MC        1.08     MK        1.01     
!   NL        0.99     NY        0.94     OV        0.99     PT        0.91     
!   SC        0.98     WF        1.10     GN        1.12     
! 
!  A total of 168 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        0.98     HN        0.97     
!   KK        1.00*    KP        1.00     LA        0.98     MC        0.99     
!   MK        1.00*    NL        1.01     NY        0.94     ON        1.01     
!   OV        1.03     PT        1.09     SC        0.98     WF        0.99     
!   GN        1.19     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        1.03     HN        0.98     KK        0.99     MK        0.99     
!   NL        1.01     ON        1.04     SC        1.03     WF        0.98     
! 
! 
! Correcting IF 2.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.97     GC        1.02     HN        0.95     
!   KK        1.02     KP        1.27     LA        0.97     MC        1.12     
!   MK        1.01     NL        1.00     NY        0.93     ON        1.03     
!   OV        0.97     PT        0.80     SC        0.99     WF        1.00     
!   GN        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.96     GC        0.99     KK        1.00     
!   KP        0.97     LA        0.97     MC        1.10     MK        1.01     
!   NL        1.00*    NY        0.93     OV        0.98     PT        0.90     
!   SC        0.98     WF        1.07     GN        1.00*    
! 
!  A total of 255 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        0.99     HN        0.97     
!   KK        1.00*    KP        1.00     LA        0.98     MC        0.99     
!   MK        1.00*    NL        1.01     NY        0.92     ON        1.00     
!   OV        1.03     PT        1.09     SC        0.98     WF        0.97     
!   GN        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        1.02     HN        0.98     KK        0.98     MK        1.00     
!   NL        1.00     ON        1.05     SC        1.02     WF        0.96     
! 
! 
! Correcting IF 3.
!  A total of 180 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.97     GC        1.00     HN        0.95     
!   KK        1.02     KP        1.27     LA        0.97     MC        1.14     
!   MK        1.01     NL        1.00     NY        0.93     ON        1.01     
!   OV        0.98     PT        0.78     SC        0.99     WF        1.03     
!   GN        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.96     GC        0.98     KK        1.01     
!   KP        0.96     LA        0.97     MC        1.11     MK        1.02     
!   NL        1.00*    NY        0.92     OV        0.99     PT        0.89     
!   SC        0.98     WF        1.11     GN        1.00*    
! 
!  A total of 255 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        0.98     HN        0.97     
!   KK        1.00*    KP        1.01     LA        0.99     MC        0.99     
!   MK        1.00*    NL        1.01     NY        0.92     ON        1.00     
!   OV        1.03     PT        1.10     SC        0.98     WF        1.00     
!   GN        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        1.01     HN        1.00     KK        0.99     MK        1.00     
!   NL        1.02     ON        1.05     SC        1.02     WF        0.97     
! 
! 
! Correcting IF 4.
!  A total of 186 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     GC        1.01     HN        0.95     
!   KK        1.03     KP        1.28     LA        0.97     MC        1.16     
!   MK        1.00     NL        1.00     NY        0.93     ON        1.02     
!   OV        0.99     PT        0.79     SC        0.98     WF        1.03     
!   GN        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.96     GC        0.98     KK        1.01     
!   KP        0.96     LA        0.97     MC        1.11     MK        1.01     
!   NL        1.00*    NY        0.93     OV        0.99     PT        0.90     
!   SC        0.98     WF        1.11     GN        1.00*    
! 
!  A total of 255 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.00     HN        0.97     
!   KK        1.00*    KP        1.00     LA        0.98     MC        0.98     
!   MK        1.00*    NL        1.01     NY        0.92     ON        0.99     
!   OV        1.03     PT        1.10     SC        0.98     WF        0.99     
!   GN        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        1.01     HN        0.97     KK        0.98     MK        0.99     
!   NL        1.02     ON        1.04     SC        1.03     WF        0.96     
! 
! 
! Fit before self-cal, rms=0.203533Jy  sigma=1.430507
! Fit after  self-cal, rms=0.126352Jy  sigma=0.851468
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7023 mas, bmaj=0.8296 mas, bpa=-21.59 degrees
! Estimated noise=0.722952 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.00915858 Jy
! Component: 100  -  total flux cleaned = 0.0107623 Jy
! Total flux subtracted in 100 components = 0.0107623 Jy
! Clean residual min=-0.007192 max=0.009916 Jy/beam
! Clean residual mean=0.000292 rms=0.001840 Jy/beam
! Combined flux in latest and established models = 1.9053 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 39 components and 1.9053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125560Jy  sigma=0.845784
! Fit after  self-cal, rms=0.125566Jy  sigma=0.845709
! 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)
! Added new window around map position (0.5, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0109035 Jy
! Component: 100  -  total flux cleaned = 0.0160395 Jy
! Total flux subtracted in 100 components = 0.0160395 Jy
! Clean residual min=-0.007065 max=0.006848 Jy/beam
! Clean residual mean=0.000191 rms=0.001710 Jy/beam
! Combined flux in latest and established models = 1.92134 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 50 components and 1.92134 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124679Jy  sigma=0.839107
! Fit after  self-cal, rms=0.111340Jy  sigma=0.730939
! Inverting map and beam 
! Estimated beam: bmin=0.7004 mas, bmaj=0.83 mas, bpa=-21.76 degrees
! Estimated noise=0.723835 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)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00788743 Jy
! Component: 100  -  total flux cleaned = 0.0112099 Jy
! Total flux subtracted in 100 components = 0.0112099 Jy
! Clean residual min=-0.003839 max=0.004918 Jy/beam
! Clean residual mean=0.000099 rms=0.000892 Jy/beam
! Combined flux in latest and established models = 1.93255 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 61 components and 1.93255 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110774Jy  sigma=0.726840
! Fit after  self-cal, rms=0.110745Jy  sigma=0.726640
! Inverting map 
! Added new window around map position (2, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00335659 Jy
! Component: 100  -  total flux cleaned = 0.00522314 Jy
! Total flux subtracted in 100 components = 0.00522314 Jy
! Clean residual min=-0.004592 max=0.004550 Jy/beam
! Clean residual mean=0.000066 rms=0.000865 Jy/beam
! Combined flux in latest and established models = 1.93777 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 65 components and 1.93777 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110457Jy  sigma=0.724584
! Fit after  self-cal, rms=0.110444Jy  sigma=0.724504
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1739+522_X
! Writing UV FITS file: 1739+522_X.uvf
! Writing 65 model components to file: 1739+522_X.mod
! wwins: Wrote 3 windows to 1739+522_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7004 x 0.83 at -21.76 degrees (North through East)
! Clean map  min=-0.0027423  max=1.715 Jy/beam
! Writing clean map to FITS file: 1739+522_X.fits
! Writing difmap environment to: 1739+522_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1739+522_Xuv.ps/vps,1,2
! Attempting to open device: '1739+522_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1739+522_Xim.ps/vps
! Attempting to open device: '1739+522_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.7004 mas, bmaj=0.83 mas, bpa=-21.76 degrees
! Estimated noise=0.723835 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7004 x 0.83 at -21.76 degrees (North through East)
! Clean map  min=-0.0027423  max=1.715 Jy/beam
quit
! Quitting program
! Log file 1739+522_X.log closed on Thu Mar  1 09:55:31 2001