! Started logfile: 0059+581_S.log on Mon Mar  1 10:58:27 1999
observe 0059+581_S.edt
! Reading UV FITS file: 0059+581_S.edt
! AN table 1: 205 integrations on 105 of 105 possible baselines.
! AN table 2: 81 integrations on 89 of 91 possible baselines.
! AN table 3: 48 integrations on 91 of 91 possible baselines.
! AN table 4: 158 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.353963 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 1799 lines of history.
! 
! Reading 73712 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 1928 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  A total of 1430 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1958 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 219 telescope corrections were flagged in sub-array 3.
!  A total of 1439 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1938 telescope corrections were flagged in sub-array 1.
!  A total of 752 telescope corrections were flagged in sub-array 2.
!  A total of 222 telescope corrections were flagged in sub-array 3.
!  A total of 1467 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1941 telescope corrections were flagged in sub-array 1.
!  A total of 742 telescope corrections were flagged in sub-array 2.
!  A total of 222 telescope corrections were flagged in sub-array 3.
!  A total of 1438 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.628571Jy  sigma=3.400193
! Fit after  self-cal, rms=0.627698Jy  sigma=3.396348
! 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.229 mas, bmaj=2.873 mas, bpa=4.01 degrees
! Estimated noise=1.08903 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.08245 Jy
! Total flux subtracted in 50 components = 1.08245 Jy
! Clean residual min=-0.034174 max=0.303320 Jy/beam
! Clean residual mean=0.000050 rms=0.009410 Jy/beam
! Combined flux in latest and established models = 1.08245 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 1.08245 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.558257Jy  sigma=3.019222
! Fit after  self-cal, rms=0.558248Jy  sigma=3.019176
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.293587 Jy
! Total flux subtracted in 50 components = 0.293587 Jy
! Clean residual min=-0.022204 max=0.125627 Jy/beam
! Clean residual mean=0.000027 rms=0.005620 Jy/beam
! Combined flux in latest and established models = 1.37604 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 10 components and 1.37604 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348857Jy  sigma=1.880334
! Fit after  self-cal, rms=0.348797Jy  sigma=1.880013
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.138498 Jy
! Total flux subtracted in 50 components = 0.138498 Jy
! Clean residual min=-0.017874 max=0.069022 Jy/beam
! Clean residual mean=0.000018 rms=0.004408 Jy/beam
! Combined flux in latest and established models = 1.51454 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 22 components and 1.51454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274429Jy  sigma=1.473734
! Fit after  self-cal, rms=0.274395Jy  sigma=1.473556
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.083717 Jy
! Total flux subtracted in 50 components = 0.083717 Jy
! Clean residual min=-0.015658 max=0.043710 Jy/beam
! Clean residual mean=0.000014 rms=0.003875 Jy/beam
! Combined flux in latest and established models = 1.59825 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 28 components and 1.59825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241398Jy  sigma=1.292509
! Fit after  self-cal, rms=0.241357Jy  sigma=1.292286
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.054403 Jy
! Total flux subtracted in 50 components = 0.054403 Jy
! Clean residual min=-0.014464 max=0.029550 Jy/beam
! Clean residual mean=0.000012 rms=0.003623 Jy/beam
! Combined flux in latest and established models = 1.65266 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 35 components and 1.65266 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225891Jy  sigma=1.207193
! Fit after  self-cal, rms=0.225861Jy  sigma=1.207022
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0369472 Jy
! Total flux subtracted in 50 components = 0.0369472 Jy
! Clean residual min=-0.014289 max=0.024474 Jy/beam
! Clean residual mean=0.000010 rms=0.003498 Jy/beam
! Combined flux in latest and established models = 1.6896 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 39 components and 1.6896 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218383Jy  sigma=1.165804
! Fit after  self-cal, rms=0.218360Jy  sigma=1.165668
! 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=2.984 mas, bmaj=3.897 mas, bpa=6.92 degrees
! Estimated noise=0.545622 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 (-4, -1.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0454651 Jy
! Component: 100  -  total flux cleaned = 0.0718798 Jy
! Total flux subtracted in 100 components = 0.0718798 Jy
! Clean residual min=-0.009566 max=0.013814 Jy/beam
! Clean residual mean=-0.000008 rms=0.002314 Jy/beam
! Combined flux in latest and established models = 1.76148 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 55 components and 1.76148 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209656Jy  sigma=1.117500
! Fit after  self-cal, rms=0.209357Jy  sigma=1.115850
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0188476 Jy
! Component: 100  -  total flux cleaned = 0.0306145 Jy
! Total flux subtracted in 100 components = 0.0306145 Jy
! Clean residual min=-0.009425 max=0.010924 Jy/beam
! Clean residual mean=-0.000014 rms=0.002098 Jy/beam
! Combined flux in latest and established models = 1.7921 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 64 components and 1.7921 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207770Jy  sigma=1.107014
! Fit after  self-cal, rms=0.207674Jy  sigma=1.106479
! 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 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        0.99     GN        0.95     
!   HN        0.99     KK        0.96     KP        0.97     LA        1.01     
!   MC        1.18     NL        0.95     ON        1.00*    OV        0.99     
!   PT        0.98     SC        0.98     WF        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     GC        1.00     HN        1.01     
!   KK        0.98     KP        0.97     LA        1.03     MC        0.95     
!   NL        0.95     ON        1.00     OV        0.98     PT        0.98     
!   SC        0.98     WF        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00     GC        1.02     GN        1.00     
!   HN        1.09     KK        0.98     KP        0.97     LA        0.92     
!   MC        0.86     NL        0.94     ON        0.91     OV        0.98     
!   PT        0.99     WF        1.00     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.97     GC        0.99     GN        0.99     
!   HN        0.98     KK        0.94     KP        0.97     LA        0.96     
!   MC        1.43     MK        0.99     NL        0.94     ON        0.94     
!   OV        0.98     PT        0.97     SC        0.97     WF        0.99     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        1.00     GN        0.96     
!   HN        0.98     KK        0.97     KP        0.98     LA        0.99     
!   MC        0.89     NL        1.00     ON        1.00*    OV        0.99     
!   PT        0.99     SC        1.00     WF        0.99     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.00     HN        1.00     
!   KK        0.98     KP        0.98     LA        1.00     MC        1.05     
!   NL        0.99     ON        0.97     OV        1.00     PT        0.98     
!   SC        1.03     WF        0.99     
! 
!  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.02     GN        1.02     
!   HN        1.06     KK        0.98     KP        0.98     LA        1.00     
!   MC        1.35     NL        0.99     ON        0.90     OV        0.98     
!   PT        0.99     WF        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.97     GC        0.99     GN        1.00     
!   HN        0.98     KK        0.97     KP        0.98     LA        0.98     
!   MC        0.78     MK        0.98     NL        0.98     ON        0.95     
!   OV        0.98     PT        0.97     SC        1.00     WF        0.99     
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.01     GN        0.98     
!   HN        1.01     KK        0.98     KP        1.00     LA        1.02     
!   MC        1.40     NL        1.03     ON        1.00*    OV        1.01     
!   PT        1.01     SC        1.02     WF        1.00     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.02     GC        1.03     HN        1.02     
!   KK        1.02     KP        1.01     LA        1.02     MC        1.00*    
!   NL        1.01     ON        0.97     OV        1.02     PT        1.01     
!   SC        1.02     WF        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GC        1.05     GN        1.06     
!   HN        1.09     KK        0.99     KP        0.99     LA        1.01     
!   MC        1.64     NL        1.02     ON        0.85     OV        1.01     
!   PT        1.02     WF        1.03     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00     GC        1.02     GN        1.02     
!   HN        1.01     KK        0.97     KP        1.00     LA        1.01     
!   MC        3.31     MK        0.97     NL        1.01     ON        0.93     
!   OV        1.00     PT        1.00     SC        1.01     WF        1.01     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.01     GC        1.02     GN        1.00     
!   HN        1.02     KK        1.02     KP        1.01     LA        1.03     
!   MC        0.72     NL        1.02     ON        1.00*    OV        1.04     
!   PT        1.02     SC        1.02     WF        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.03     GC        1.03     HN        1.02     
!   KK        1.05     KP        1.03     LA        1.02     MC        1.15     
!   NL        1.02     ON        0.92     OV        1.04     PT        1.02     
!   SC        1.04     WF        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.03     GC        1.07     GN        1.06     
!   HN        1.08     KK        1.00     KP        1.02     LA        1.04     
!   MC        1.07     NL        1.03     ON        0.88     OV        1.03     
!   PT        1.03     WF        1.03     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.01     GC        1.02     GN        1.03     
!   HN        1.02     KK        0.98     KP        1.01     LA        1.02     
!   MC        1.74     MK        0.98     NL        1.02     ON        0.93     
!   OV        1.02     PT        1.01     SC        1.01     WF        1.01     
! 
! 
! Fit before self-cal, rms=0.207674Jy  sigma=1.106479
! Fit after  self-cal, rms=0.172678Jy  sigma=0.907341
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.02 mas, bmaj=3.91 mas, bpa=7.62 degrees
! Estimated noise=0.547303 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.00562125 Jy
! Component: 100  -  total flux cleaned = 0.0056248 Jy
! Total flux subtracted in 100 components = 0.0056248 Jy
! Clean residual min=-0.004507 max=0.005096 Jy/beam
! Clean residual mean=0.000021 rms=0.000968 Jy/beam
! Combined flux in latest and established models = 1.79772 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 76 components and 1.79772 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172331Jy  sigma=0.905397
! Fit after  self-cal, rms=0.172293Jy  sigma=0.905080
! 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 (-9.6, -3.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0039555 Jy
! Component: 100  -  total flux cleaned = 0.0036282 Jy
! Total flux subtracted in 100 components = 0.0036282 Jy
! Clean residual min=-0.004331 max=0.004066 Jy/beam
! Clean residual mean=0.000021 rms=0.000942 Jy/beam
! Combined flux in latest and established models = 1.80135 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 86 components and 1.80135 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172098Jy  sigma=0.903991
! Fit after  self-cal, rms=0.163604Jy  sigma=0.865847
! Inverting map and beam 
! Estimated beam: bmin=3.019 mas, bmaj=3.914 mas, bpa=7.433 degrees
! Estimated noise=0.547873 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0051256 Jy
! Component: 100  -  total flux cleaned = 0.00512223 Jy
! Total flux subtracted in 100 components = 0.00512223 Jy
! Clean residual min=-0.002619 max=0.003121 Jy/beam
! Clean residual mean=0.000047 rms=0.000644 Jy/beam
! Combined flux in latest and established models = 1.80647 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 91 components and 1.80647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163425Jy  sigma=0.864853
! Fit after  self-cal, rms=0.163214Jy  sigma=0.863317
! Inverting map and beam 
! Estimated beam: bmin=3.017 mas, bmaj=3.914 mas, bpa=7.422 degrees
! Estimated noise=0.548183 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00294666 Jy
! Component: 100  -  total flux cleaned = 0.00316474 Jy
! Total flux subtracted in 100 components = 0.00316474 Jy
! Clean residual min=-0.002437 max=0.003043 Jy/beam
! Clean residual mean=0.000048 rms=0.000623 Jy/beam
! Combined flux in latest and established models = 1.80964 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 95 components and 1.80964 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163113Jy  sigma=0.862756
! Fit after  self-cal, rms=0.163093Jy  sigma=0.862268
! Inverting map and beam 
! Estimated beam: bmin=3.017 mas, bmaj=3.914 mas, bpa=7.425 degrees
! Estimated noise=0.54845 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00221523 Jy
! Component: 100  -  total flux cleaned = 0.00231269 Jy
! Total flux subtracted in 100 components = 0.00231269 Jy
! Clean residual min=-0.002322 max=0.003014 Jy/beam
! Clean residual mean=0.000048 rms=0.000612 Jy/beam
! Combined flux in latest and established models = 1.81195 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 97 components and 1.81195 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163024Jy  sigma=0.861874
! Fit after  self-cal, rms=0.163060Jy  sigma=0.861667
! Inverting map and beam 
! Estimated beam: bmin=3.016 mas, bmaj=3.913 mas, bpa=7.439 degrees
! Estimated noise=0.548715 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.00179771 Jy
! Component: 100  -  total flux cleaned = 0.00197825 Jy
! Total flux subtracted in 100 components = 0.00197825 Jy
! Clean residual min=-0.002280 max=0.002996 Jy/beam
! Clean residual mean=0.000049 rms=0.000604 Jy/beam
! Combined flux in latest and established models = 1.81393 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 100 components and 1.81393 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163005Jy  sigma=0.861353
! Fit after  self-cal, rms=0.163000Jy  sigma=0.861297
! 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 100 model components to file: 0059+581_S.mod
! wwins: Wrote 3 windows to 0059+581_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.016 x 3.913 at 7.439 degrees (North through East)
! Clean map  min=-0.0021708  max=1.5048 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.016 mas, bmaj=3.913 mas, bpa=7.439 degrees
! Estimated noise=0.548715 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.016 x 3.913 at 7.439 degrees (North through East)
! Clean map  min=-0.0021708  max=1.5048 Jy/beam
quit
! Quitting program
! Log file 0059+581_S.log closed on Mon Mar  1 11:04:38 1999