! Started logfile: 0059+581_X.log on Fri Feb 23 11:06:47 2001
observe 0059+581_X.edt
! Reading UV FITS file: 0059+581_X.edt
! AN table 1: 219 integrations on 136 of 136 possible baselines.
! AN table 2: 76 integrations on 132 of 136 possible baselines.
! AN table 3: 67 integrations on 117 of 120 possible baselines.
! Apparent sampling: 0.336166 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0059+581
! 
! 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 5582 lines of history.
! 
! Reading 64080 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 2266 telescope corrections were flagged in sub-array 1.
!  A total of 847 telescope corrections were flagged in sub-array 2.
!  A total of 473 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2371 telescope corrections were flagged in sub-array 1.
!  A total of 874 telescope corrections were flagged in sub-array 2.
!  A total of 508 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2378 telescope corrections were flagged in sub-array 1.
!  A total of 874 telescope corrections were flagged in sub-array 2.
!  A total of 508 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2371 telescope corrections were flagged in sub-array 1.
!  A total of 874 telescope corrections were flagged in sub-array 2.
!  A total of 509 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.044113Jy  sigma=7.402555
! Fit after  self-cal, rms=1.043978Jy  sigma=7.402373
! 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.5471 mas, bmaj=0.6456 mas, bpa=-22.6 degrees
! Estimated noise=0.865808 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.52197 Jy
! Total flux subtracted in 50 components = 1.52197 Jy
! Clean residual min=-0.037396 max=0.425107 Jy/beam
! Clean residual mean=0.000259 rms=0.010183 Jy/beam
! Combined flux in latest and established models = 1.52197 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.52197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.565171Jy  sigma=4.001767
! Fit after  self-cal, rms=0.565171Jy  sigma=4.001764
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.333319 Jy
! Total flux subtracted in 50 components = 0.333319 Jy
! Clean residual min=-0.028457 max=0.103257 Jy/beam
! Clean residual mean=0.000187 rms=0.005752 Jy/beam
! Combined flux in latest and established models = 1.85528 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 5 components and 1.85528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335336Jy  sigma=2.370572
! Fit after  self-cal, rms=0.335327Jy  sigma=2.370507
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.10847 Jy
! Total flux subtracted in 50 components = 0.10847 Jy
! Clean residual min=-0.025327 max=0.052037 Jy/beam
! Clean residual mean=0.000163 rms=0.005175 Jy/beam
! Combined flux in latest and established models = 1.96375 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 13 components and 1.96375 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297473Jy  sigma=2.102825
! Fit after  self-cal, rms=0.297430Jy  sigma=2.102506
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0625846 Jy
! Total flux subtracted in 50 components = 0.0625846 Jy
! Clean residual min=-0.024778 max=0.032607 Jy/beam
! Clean residual mean=0.000148 rms=0.004974 Jy/beam
! Combined flux in latest and established models = 2.02634 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 20 components and 2.02634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284544Jy  sigma=2.011861
! Fit after  self-cal, rms=0.284492Jy  sigma=2.011505
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0408081 Jy
! Total flux subtracted in 50 components = 0.0408081 Jy
! Clean residual min=-0.025530 max=0.026056 Jy/beam
! Clean residual mean=0.000139 rms=0.004885 Jy/beam
! Combined flux in latest and established models = 2.06715 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 23 components and 2.06715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279378Jy  sigma=1.975842
! Fit after  self-cal, rms=0.279349Jy  sigma=1.975638
! 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.7007 mas, bmaj=0.835 mas, bpa=-21.7 degrees
! Estimated noise=0.458143 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.0303132 Jy
! Component: 100  -  total flux cleaned = 0.0451863 Jy
! Total flux subtracted in 100 components = 0.0451863 Jy
! Clean residual min=-0.023891 max=0.023500 Jy/beam
! Clean residual mean=0.001938 rms=0.005466 Jy/beam
! Combined flux in latest and established models = 2.11233 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 36 components and 2.11233 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276446Jy  sigma=1.955805
! Fit after  self-cal, rms=0.276347Jy  sigma=1.955103
! 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 114 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        0.98     HN        0.96     
!   KK        1.05     KP        0.98     LA        0.99     MC        1.09     
!   MK        1.02     NL        1.00     NY        1.04     ON        0.99     
!   OV        1.00     PT        1.03     SC        0.98     WF        1.00     
!   GN        1.14     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        0.95     HN        0.98     
!   KK        1.02     KP        0.96     LA        0.97     MC        0.99     
!   MK        0.99     NL        0.98     NY        0.90     ON        0.99     
!   OV        0.98     PT        1.12     SC        0.99     WF        0.99     
!   GN        1.13     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        1.05     HN        1.07     
!   KK        1.05     KP        1.02     LA        1.02     MC        1.09     
!   MK        1.07     NL        1.03     ON        0.99     OV        1.01     
!   PT        1.14     SC        0.91     WF        1.00     GN        1.29     
! 
! 
! Correcting IF 2.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GC        0.98     HN        0.96     
!   KK        1.05     KP        0.98     LA        0.99     MC        1.09     
!   MK        1.02     NL        1.01     NY        1.04     ON        1.00     
!   OV        0.98     PT        1.02     SC        0.98     WF        0.97     
!   GN        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        0.94     HN        0.98     
!   KK        1.02     KP        0.96     LA        0.96     MC        0.98     
!   MK        0.99     NL        0.98     NY        0.90     ON        0.99     
!   OV        0.98     PT        1.11     SC        0.99     WF        0.97     
!   GN        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        1.04     HN        1.08     
!   KK        1.05     KP        1.02     LA        1.02     MC        1.08     
!   MK        1.07     NL        1.03     ON        1.00     OV        1.00     
!   PT        1.12     SC        0.91     WF        0.97     GN        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        0.96     HN        0.94     
!   KK        1.05     KP        0.97     LA        0.98     MC        1.08     
!   MK        1.01     NL        1.00     NY        1.02     ON        0.96     
!   OV        0.98     PT        0.99     SC        0.97     WF        1.00     
!   GN        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        0.93     HN        0.97     
!   KK        1.00     KP        0.96     LA        0.96     MC        0.99     
!   MK        0.98     NL        0.98     NY        0.88     ON        0.96     
!   OV        0.97     PT        1.10     SC        0.98     WF        0.99     
!   GN        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.01     HN        1.06     
!   KK        1.04     KP        1.01     LA        1.02     MC        1.07     
!   MK        1.05     NL        1.02     ON        0.99     OV        0.99     
!   PT        1.12     SC        0.91     WF        0.99     GN        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GC        0.97     HN        0.95     
!   KK        1.04     KP        0.96     LA        0.98     MC        1.08     
!   MK        1.00     NL        0.99     NY        1.02     ON        0.96     
!   OV        0.98     PT        1.01     SC        0.96     WF        0.99     
!   GN        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.98     GC        0.94     HN        0.98     
!   KK        1.01     KP        0.94     LA        0.95     MC        0.98     
!   MK        0.97     NL        0.98     NY        0.89     ON        0.96     
!   OV        0.97     PT        1.11     SC        0.97     WF        0.99     
!   GN        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.01     HN        1.07     
!   KK        1.04     KP        1.00     LA        1.01     MC        1.08     
!   MK        1.04     NL        1.02     ON        0.97     OV        0.99     
!   PT        1.13     SC        0.90     WF        0.99     GN        1.00*    
! 
! 
! Fit before self-cal, rms=0.276347Jy  sigma=1.955103
! Fit after  self-cal, rms=0.246244Jy  sigma=1.697383
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7109 mas, bmaj=0.8396 mas, bpa=-21.87 degrees
! Estimated noise=0.462858 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.0089816 Jy
! Component: 100  -  total flux cleaned = 0.00860345 Jy
! Total flux subtracted in 100 components = 0.00860345 Jy
! Clean residual min=-0.015735 max=0.024921 Jy/beam
! Clean residual mean=0.001368 rms=0.004326 Jy/beam
! Combined flux in latest and established models = 2.12094 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 43 components and 2.12094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245819Jy  sigma=1.694516
! Fit after  self-cal, rms=0.245769Jy  sigma=1.694132
! 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 (-1.2, -0.1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0241801 Jy
! Component: 100  -  total flux cleaned = 0.0302121 Jy
! Total flux subtracted in 100 components = 0.0302121 Jy
! Clean residual min=-0.017885 max=0.019627 Jy/beam
! Clean residual mean=0.001170 rms=0.004261 Jy/beam
! Combined flux in latest and established models = 2.15115 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 59 components and 2.15115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243578Jy  sigma=1.679091
! Fit after  self-cal, rms=0.117730Jy  sigma=0.786598
! Inverting map and beam 
! Estimated beam: bmin=0.7095 mas, bmaj=0.8377 mas, bpa=-21.46 degrees
! Estimated noise=0.463754 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 (0, -0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00998305 Jy
! Component: 100  -  total flux cleaned = 0.0148731 Jy
! Total flux subtracted in 100 components = 0.0148731 Jy
! Clean residual min=-0.003688 max=0.004931 Jy/beam
! Clean residual mean=0.000198 rms=0.000695 Jy/beam
! Combined flux in latest and established models = 2.16602 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 72 components and 2.16602 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116910Jy  sigma=0.780546
! Fit after  self-cal, rms=0.116877Jy  sigma=0.780216
! Inverting map 
! Added new window around map position (-1.3, -1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00353742 Jy
! Component: 100  -  total flux cleaned = 0.00489433 Jy
! Total flux subtracted in 100 components = 0.00489433 Jy
! Clean residual min=-0.003278 max=0.003753 Jy/beam
! Clean residual mean=0.000164 rms=0.000662 Jy/beam
! Combined flux in latest and established models = 2.17092 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 82 components and 2.17092 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116536Jy  sigma=0.777711
! Fit after  self-cal, rms=0.116529Jy  sigma=0.777622
! Inverting map 
! Added new window around map position (-2.5, -1.1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00195935 Jy
! Component: 100  -  total flux cleaned = 0.00307958 Jy
! Total flux subtracted in 100 components = 0.00307958 Jy
! Clean residual min=-0.003548 max=0.003516 Jy/beam
! Clean residual mean=0.000143 rms=0.000642 Jy/beam
! Combined flux in latest and established models = 2.17399 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 92 components and 2.17399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116311Jy  sigma=0.776042
! Fit after  self-cal, rms=0.116308Jy  sigma=0.776003
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0059+581_X
! Writing UV FITS file: 0059+581_X.uvf
! Writing 92 model components to file: 0059+581_X.mod
! wwins: Wrote 5 windows to 0059+581_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7095 x 0.8377 at -21.46 degrees (North through East)
! Clean map  min=-0.0026197  max=1.9897 Jy/beam
! Writing clean map to FITS file: 0059+581_X.fits
! Writing difmap environment to: 0059+581_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0059+581_Xuv.ps/vps,1,2
! Attempting to open device: '0059+581_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0059+581_Xim.ps/vps
! Attempting to open device: '0059+581_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.7095 mas, bmaj=0.8377 mas, bpa=-21.46 degrees
! Estimated noise=0.463754 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7095 x 0.8377 at -21.46 degrees (North through East)
! Clean map  min=-0.0026197  max=1.9897 Jy/beam
quit
! Quitting program
! Log file 0059+581_X.log closed on Fri Feb 23 11:07:30 2001