! Started logfile: 0059+581_S.log on Thu Feb  8 10:12:47 2001
observe 0059+581_S.edt
! Reading UV FITS file: 0059+581_S.edt
! AN table 1: 217 integrations on 120 of 120 possible baselines.
! AN table 2: 76 integrations on 132 of 136 possible baselines.
! AN table 3: 66 integrations on 102 of 105 possible baselines.
! Apparent sampling: 0.340225 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  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 5568 lines of history.
! 
! Reading 58252 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
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.400x0.400 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 2054 telescope corrections were flagged in sub-array 1.
!  A total of 869 telescope corrections were flagged in sub-array 2.
!  A total of 436 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2156 telescope corrections were flagged in sub-array 1.
!  A total of 895 telescope corrections were flagged in sub-array 2.
!  A total of 471 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2167 telescope corrections were flagged in sub-array 1.
!  A total of 895 telescope corrections were flagged in sub-array 2.
!  A total of 471 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2156 telescope corrections were flagged in sub-array 1.
!  A total of 895 telescope corrections were flagged in sub-array 2.
!  A total of 488 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.657896Jy  sigma=4.690707
! Fit after  self-cal, rms=0.657827Jy  sigma=4.690955
! 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=2.358 mas, bmaj=2.526 mas, bpa=-32.72 degrees
! Estimated noise=0.900767 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.13849 Jy
! Total flux subtracted in 50 components = 1.13849 Jy
! Clean residual min=-0.025990 max=0.317948 Jy/beam
! Clean residual mean=0.000032 rms=0.008514 Jy/beam
! Combined flux in latest and established models = 1.13849 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.13849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.536324Jy  sigma=3.823572
! Fit after  self-cal, rms=0.536324Jy  sigma=3.823571
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.268969 Jy
! Total flux subtracted in 50 components = 0.268969 Jy
! Clean residual min=-0.019208 max=0.107696 Jy/beam
! Clean residual mean=0.000027 rms=0.005233 Jy/beam
! Combined flux in latest and established models = 1.40746 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 10 components and 1.40746 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339904Jy  sigma=2.421383
! Fit after  self-cal, rms=0.339850Jy  sigma=2.420966
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.127701 Jy
! Total flux subtracted in 50 components = 0.127701 Jy
! Clean residual min=-0.017085 max=0.067147 Jy/beam
! Clean residual mean=0.000024 rms=0.004257 Jy/beam
! Combined flux in latest and established models = 1.53516 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 22 components and 1.53516 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273815Jy  sigma=1.949749
! Fit after  self-cal, rms=0.273750Jy  sigma=1.949257
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0829023 Jy
! Total flux subtracted in 50 components = 0.0829023 Jy
! Clean residual min=-0.016983 max=0.044543 Jy/beam
! Clean residual mean=0.000022 rms=0.003767 Jy/beam
! Combined flux in latest and established models = 1.61806 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 28 components and 1.61806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240975Jy  sigma=1.715445
! Fit after  self-cal, rms=0.240937Jy  sigma=1.715169
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0565136 Jy
! Total flux subtracted in 50 components = 0.0565136 Jy
! Clean residual min=-0.016510 max=0.031235 Jy/beam
! Clean residual mean=0.000021 rms=0.003510 Jy/beam
! Combined flux in latest and established models = 1.67458 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 33 components and 1.67458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224346Jy  sigma=1.596828
! Fit after  self-cal, rms=0.224329Jy  sigma=1.596700
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0398528 Jy
! Total flux subtracted in 50 components = 0.0398528 Jy
! Clean residual min=-0.016142 max=0.022678 Jy/beam
! Clean residual mean=0.000020 rms=0.003373 Jy/beam
! Combined flux in latest and established models = 1.71443 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 35 components and 1.71443 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215750Jy  sigma=1.535566
! Fit after  self-cal, rms=0.215735Jy  sigma=1.535453
! Inverting map 
! Added new window around map position (-2.8, -2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0292195 Jy
! Total flux subtracted in 50 components = 0.0292195 Jy
! Clean residual min=-0.015996 max=0.017940 Jy/beam
! Clean residual mean=0.000019 rms=0.003297 Jy/beam
! Combined flux in latest and established models = 1.74365 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 39 components and 1.74365 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211156Jy  sigma=1.502849
! Fit after  self-cal, rms=0.211131Jy  sigma=1.502666
! 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=3.128 mas, bmaj=3.369 mas, bpa=-20.08 degrees
! Estimated noise=0.474605 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.0331954 Jy
! Component: 100  -  total flux cleaned = 0.051833 Jy
! Total flux subtracted in 100 components = 0.051833 Jy
! Clean residual min=-0.010987 max=0.015936 Jy/beam
! Clean residual mean=0.000454 rms=0.003353 Jy/beam
! Combined flux in latest and established models = 1.79548 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 49 components and 1.79548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206408Jy  sigma=1.469060
! Fit after  self-cal, rms=0.206296Jy  sigma=1.468263
! 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 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.03     HN        1.04     
!   KK        1.05     KP        1.00     LA        1.00     MK        1.03     
!   NL        1.00     NY        1.08     ON        1.05     OV        1.01     
!   PT        1.12     SC        1.04     WF        0.93     GN        1.00     
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        0.99     HN        0.99     
!   KK        1.02     KP        1.06     LA        1.00     MC        0.95     
!   MK        1.05     NL        1.01     NY        0.92     ON        1.06     
!   OV        1.01     PT        1.15     SC        1.03     WF        0.93     
!   GN        0.97     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.09     HN        1.04     
!   KK        1.02     KP        0.94     LA        0.96     MK        1.02     
!   NL        1.06     ON        1.05     OV        0.99     PT        1.02     
!   SC        1.09     WF        1.14     GN        1.01     
! 
! 
! Correcting IF 2.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.01     HN        1.01     
!   KK        1.04     KP        1.02     LA        1.00     MK        1.02     
!   NL        1.01     NY        1.06     ON        1.06     OV        1.00     
!   PT        1.11     SC        1.03     WF        1.03     GN        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        0.98     HN        0.98     
!   KK        1.04     KP        1.07     LA        0.99     MC        0.88     
!   MK        1.05     NL        0.96     NY        0.92     ON        1.09     
!   OV        1.01     PT        1.18     SC        1.01     WF        1.00     
!   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.07     HN        1.03     
!   KK        1.00     KP        0.99     LA        1.00     MK        1.01     
!   NL        0.99     ON        1.07     OV        0.99     PT        1.00     
!   SC        1.05     WF        1.00     GN        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 75 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        0.98     HN        0.98     
!   KK        1.00     KP        0.96     LA        0.97     MK        0.98     
!   NL        0.98     NY        1.02     ON        1.00     OV        0.97     
!   PT        1.10     SC        0.98     WF        0.98     GN        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.98     GC        0.96     HN        0.93     
!   KK        1.01     KP        1.03     LA        0.96     MC        1.24     
!   MK        1.01     NL        0.96     NY        0.88     ON        1.02     
!   OV        0.97     PT        1.16     SC        0.97     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        0.96     FD        0.96     GC        1.03     HN        1.00     
!   KK        0.98     KP        0.95     LA        0.95     MK        0.98     
!   NL        0.97     ON        1.00     OV        0.95     PT        0.98     
!   SC        1.03     WF        0.97     GN        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 81 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.97     GC        0.97     HN        0.97     
!   KK        0.99     KP        0.98     LA        0.97     MK        0.96     
!   NL        0.97     NY        1.02     ON        0.98     OV        0.97     
!   PT        1.10     SC        0.97     WF        0.98     GN        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.97     GC        0.94     HN        0.93     
!   KK        0.98     KP        1.01     LA        0.96     MC        1.18     
!   MK        1.00     NL        0.95     NY        0.87     ON        0.99     
!   OV        0.96     PT        1.16     SC        0.96     WF        0.95     
!   GN        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.97     GC        1.03     HN        0.99     
!   KK        0.95     KP        0.94     LA        0.98     MK        0.96     
!   NL        0.96     ON        1.03     OV        0.95     PT        0.97     
!   SC        1.01     WF        0.97     GN        1.00*    
! 
! 
! Fit before self-cal, rms=0.206296Jy  sigma=1.468263
! Fit after  self-cal, rms=0.179786Jy  sigma=1.251742
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.196 mas, bmaj=3.383 mas, bpa=-15.75 degrees
! Estimated noise=0.476559 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.00773134 Jy
! Component: 100  -  total flux cleaned = 0.0090268 Jy
! Total flux subtracted in 100 components = 0.0090268 Jy
! Clean residual min=-0.007831 max=0.011548 Jy/beam
! Clean residual mean=0.000318 rms=0.002122 Jy/beam
! Combined flux in latest and established models = 1.80451 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 58 components and 1.80451 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179461Jy  sigma=1.249597
! Fit after  self-cal, rms=0.179437Jy  sigma=1.249345
! 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 (-8.8, -2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00942412 Jy
! Component: 100  -  total flux cleaned = 0.0113616 Jy
! Total flux subtracted in 100 components = 0.0113616 Jy
! Clean residual min=-0.007598 max=0.010283 Jy/beam
! Clean residual mean=0.000243 rms=0.002085 Jy/beam
! Combined flux in latest and established models = 1.81587 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 78 components and 1.81587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178986Jy  sigma=1.246047
! Fit after  self-cal, rms=0.139275Jy  sigma=0.961545
! Inverting map and beam 
! Estimated beam: bmin=3.189 mas, bmaj=3.382 mas, bpa=-16.94 degrees
! Estimated noise=0.476972 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.00670001 Jy
! Component: 100  -  total flux cleaned = 0.00979375 Jy
! Total flux subtracted in 100 components = 0.00979375 Jy
! Clean residual min=-0.003035 max=0.003653 Jy/beam
! Clean residual mean=0.000214 rms=0.000653 Jy/beam
! Combined flux in latest and established models = 1.82566 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 86 components and 1.82566 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138969Jy  sigma=0.959357
! Fit after  self-cal, rms=0.138957Jy  sigma=0.959177
! Inverting map 
! Added new window around map position (-57.2, 33.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00361856 Jy
! Component: 100  -  total flux cleaned = 0.0054647 Jy
! Total flux subtracted in 100 components = 0.0054647 Jy
! Clean residual min=-0.003327 max=0.003309 Jy/beam
! Clean residual mean=0.000177 rms=0.000625 Jy/beam
! Combined flux in latest and established models = 1.83113 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 95 components and 1.83113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138821Jy  sigma=0.958240
! Fit after  self-cal, rms=0.138822Jy  sigma=0.958212
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0059+581_S
! Writing UV FITS file: 0059+581_S.uvf
! Writing 95 model components to file: 0059+581_S.mod
! wwins: Wrote 4 windows to 0059+581_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.189 x 3.382 at -16.94 degrees (North through East)
! Clean map  min=-0.0020392  max=1.5604 Jy/beam
! Writing clean map to FITS file: 0059+581_S.fits
! Writing difmap environment to: 0059+581_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0059+581_Suv.ps/vps,1,2
! Attempting to open device: '0059+581_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0059+581_Sim.ps/vps
! Attempting to open device: '0059+581_Sim.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=3.189 mas, bmaj=3.382 mas, bpa=-16.94 degrees
! Estimated noise=0.476972 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.189 x 3.382 at -16.94 degrees (North through East)
! Clean map  min=-0.0020392  max=1.5604 Jy/beam
quit
! Quitting program
! Log file 0059+581_S.log closed on Thu Feb  8 10:13:33 2001