! Started logfile: 0059+581_X.log on Wed Jun  9 16:24:43 1999
observe 0059+581_X.edt
! Reading UV FITS file: 0059+581_X.edt
! AN table 1: 181 integrations on 133 of 136 possible baselines.
! AN table 2: 74 integrations on 104 of 105 possible baselines.
! AN table 3: 83 integrations on 115 of 120 possible baselines.
! AN table 4: 65 integrations on 103 of 105 possible baselines.
! AN table 5: 133 integrations on 119 of 120 possible baselines.
! Apparent sampling: 0.245018 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 917 lines of history.
! 
! Reading 62564 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.8
float solint
solint = 4.0/6.0
logical doflt
doflt = true
logical doamp
float new_peak
float flux_cutoff
mapsize field_size,field_cell
! Map grid = 1024x1024 pixels with 0.100x0.100 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1837 telescope corrections were flagged in sub-array 1.
!  A total of 767 telescope corrections were flagged in sub-array 2.
!  A total of 587 telescope corrections were flagged in sub-array 3.
!  A total of 458 telescope corrections were flagged in sub-array 4.
!  A total of 1495 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1830 telescope corrections were flagged in sub-array 1.
!  A total of 767 telescope corrections were flagged in sub-array 2.
!  A total of 588 telescope corrections were flagged in sub-array 3.
!  A total of 458 telescope corrections were flagged in sub-array 4.
!  A total of 1496 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1832 telescope corrections were flagged in sub-array 1.
!  A total of 767 telescope corrections were flagged in sub-array 2.
!  A total of 588 telescope corrections were flagged in sub-array 3.
!  A total of 461 telescope corrections were flagged in sub-array 4.
!  A total of 1502 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1834 telescope corrections were flagged in sub-array 1.
!  A total of 770 telescope corrections were flagged in sub-array 2.
!  A total of 584 telescope corrections were flagged in sub-array 3.
!  A total of 458 telescope corrections were flagged in sub-array 4.
!  A total of 1499 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.304049Jy  sigma=5.154233
! Fit after  self-cal, rms=1.304046Jy  sigma=5.154506
! 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.5591 mas, bmaj=0.6655 mas, bpa=15.39 degrees
! Estimated noise=1.38883 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.67598 Jy
! Total flux subtracted in 50 components = 1.67598 Jy
! Clean residual min=-0.035608 max=0.468270 Jy/beam
! Clean residual mean=-0.000070 rms=0.010491 Jy/beam
! Combined flux in latest and established models = 1.67598 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.67598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.666264Jy  sigma=2.632613
! Fit after  self-cal, rms=0.666264Jy  sigma=2.632613
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.380183 Jy
! Total flux subtracted in 50 components = 0.380183 Jy
! Clean residual min=-0.019551 max=0.140659 Jy/beam
! Clean residual mean=-0.000044 rms=0.005520 Jy/beam
! Combined flux in latest and established models = 2.05617 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 2.05617 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.372850Jy  sigma=1.470817
! Fit after  self-cal, rms=0.372829Jy  sigma=1.470731
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.152745 Jy
! Total flux subtracted in 50 components = 0.152745 Jy
! Clean residual min=-0.019473 max=0.074692 Jy/beam
! Clean residual mean=-0.000033 rms=0.004377 Jy/beam
! Combined flux in latest and established models = 2.20891 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 16 components and 2.20891 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293557Jy  sigma=1.156834
! Fit after  self-cal, rms=0.293503Jy  sigma=1.156629
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0911833 Jy
! Total flux subtracted in 50 components = 0.0911833 Jy
! Clean residual min=-0.021260 max=0.048746 Jy/beam
! Clean residual mean=-0.000027 rms=0.003899 Jy/beam
! Combined flux in latest and established models = 2.3001 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 22 components and 2.3001 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258996Jy  sigma=1.019757
! Fit after  self-cal, rms=0.258930Jy  sigma=1.019497
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0606705 Jy
! Total flux subtracted in 50 components = 0.0606705 Jy
! Clean residual min=-0.022306 max=0.033063 Jy/beam
! Clean residual mean=-0.000023 rms=0.003664 Jy/beam
! Combined flux in latest and established models = 2.36077 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 27 components and 2.36077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242268Jy  sigma=0.953371
! Fit after  self-cal, rms=0.242199Jy  sigma=0.953093
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0418138 Jy
! Total flux subtracted in 50 components = 0.0418138 Jy
! Clean residual min=-0.023053 max=0.023095 Jy/beam
! Clean residual mean=-0.000020 rms=0.003545 Jy/beam
! Combined flux in latest and established models = 2.40258 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 34 components and 2.40258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234048Jy  sigma=0.920723
! Fit after  self-cal, rms=0.233998Jy  sigma=0.920527
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0295121 Jy
! Total flux subtracted in 50 components = 0.0295121 Jy
! Clean residual min=-0.023329 max=0.018208 Jy/beam
! Clean residual mean=-0.000018 rms=0.003483 Jy/beam
! Combined flux in latest and established models = 2.43209 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 34 components and 2.43209 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230020Jy  sigma=0.904737
! Fit after  self-cal, rms=0.229986Jy  sigma=0.904596
! 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.7211 mas, bmaj=0.8624 mas, bpa=19.37 degrees
! Estimated noise=0.738715 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.2, -0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0350342 Jy
! Component: 100  -  total flux cleaned = 0.0411329 Jy
! Total flux subtracted in 100 components = 0.0411329 Jy
! Clean residual min=-0.020199 max=0.020818 Jy/beam
! Clean residual mean=-0.000032 rms=0.003763 Jy/beam
! Combined flux in latest and established models = 2.47322 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 49 components and 2.47322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225048Jy  sigma=0.884660
! Fit after  self-cal, rms=0.224958Jy  sigma=0.884301
! 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.98     FD        0.99     GC        1.00     GN        0.96     
!   HN        1.00     KK        0.94     KP        1.00     LA        1.05     
!   MC        1.10     MK        0.94     NL        0.97     NY        0.97     
!   ON        0.98     OV        1.00     PT        1.04     SC        0.95     
!   WF        0.97     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        0.98     GN        0.99     
!   HN        1.00     KK        0.99     KP        0.99     LA        1.03     
!   MC        1.17     MK        0.95     NL        1.08     ON        1.01     
!   OV        0.99     PT        0.97     WF        0.96     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.01     GC        1.04     GN        0.96     
!   HN        1.02     KK        1.08     KP        1.03     LA        1.00     
!   MC        1.03     MK        1.03     NL        1.00     ON        1.11     
!   OV        1.03     PT        1.02     SC        1.18     WF        1.05     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     GC        1.01     GN        0.97     HN        1.05     
!   KK        0.98     KP        1.01     LA        1.01     MC        1.07     
!   MK        0.96     NL        1.00     NY        1.02     ON        0.98     
!   OV        1.00     PT        1.01     WF        0.99     
! 
!  A total of 90 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        1.01     GC        1.05     GN        0.94     
!   HN        1.08     KK        1.01     KP        1.02     LA        1.02     
!   MC        1.17     MK        1.01     NL        1.01     ON        0.99     
!   OV        1.02     PT        1.05     SC        0.98     WF        0.97     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     GC        0.99     GN        0.98     
!   HN        0.99     KK        0.95     KP        0.99     LA        1.05     
!   MC        1.10     MK        0.95     NL        0.97     NY        0.97     
!   ON        0.96     OV        1.00     PT        1.04     SC        0.94     
!   WF        0.97     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        0.97     GN        1.00     
!   HN        0.99     KK        0.98     KP        0.99     LA        1.04     
!   MC        1.17     MK        0.96     NL        1.07     ON        0.98     
!   OV        1.00     PT        0.98     WF        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.01     GC        1.03     GN        1.01     
!   HN        1.01     KK        1.08     KP        1.03     LA        1.01     
!   MC        1.03     MK        1.03     NL        0.99     ON        1.09     
!   OV        1.04     PT        1.02     SC        1.20     WF        1.05     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     GC        1.00     GN        0.98     HN        1.04     
!   KK        0.98     KP        1.01     LA        1.02     MC        1.06     
!   MK        0.97     NL        1.00     NY        0.99     ON        0.98     
!   OV        1.00     PT        1.01     WF        0.99     
! 
!  A total of 90 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        1.01     GC        1.04     GN        0.98     
!   HN        1.08     KK        1.02     KP        1.02     LA        1.02     
!   MC        1.16     MK        1.01     NL        1.00     ON        0.97     
!   OV        1.03     PT        1.05     SC        0.98     WF        0.97     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     GC        0.98     GN        0.96     
!   HN        1.01     KK        0.95     KP        0.97     LA        1.03     
!   MC        1.10     MK        0.94     NL        0.95     NY        0.98     
!   ON        0.97     OV        0.98     PT        1.04     SC        0.94     
!   WF        0.96     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.97     GC        0.96     GN        0.97     
!   HN        1.00     KK        1.00     KP        0.97     LA        1.03     
!   MC        1.18     MK        0.94     NL        1.04     ON        0.99     
!   OV        0.97     PT        0.96     WF        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00     GC        1.02     GN        0.99     
!   HN        1.01     KK        1.08     KP        1.01     LA        0.99     
!   MC        1.03     MK        1.03     NL        0.98     ON        1.09     
!   OV        1.02     PT        1.00     SC        1.22     WF        1.04     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     GC        0.99     GN        0.95     HN        1.04     
!   KK        0.98     KP        0.99     LA        1.00     MC        1.07     
!   MK        0.95     NL        0.98     NY        1.00     ON        0.99     
!   OV        0.98     PT        0.99     WF        0.98     
! 
!  A total of 87 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.01     GC        1.03     GN        0.94     
!   HN        1.14     KK        1.01     KP        1.00     LA        0.99     
!   MC        1.17     MK        0.99     NL        0.99     ON        0.98     
!   OV        1.01     PT        1.02     SC        0.97     WF        0.97     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        0.99     GN        0.97     
!   HN        0.99     KK        0.93     KP        0.98     LA        1.03     
!   MC        1.09     MK        0.93     NL        0.95     NY        0.97     
!   ON        0.94     OV        0.98     PT        1.03     SC        0.92     
!   WF        0.95     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.96     GC        0.96     GN        1.00     
!   HN        0.99     KK        0.98     KP        0.98     LA        1.02     
!   MC        1.18     MK        0.95     NL        1.06     ON        0.97     
!   OV        0.97     PT        0.96     WF        0.94     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        1.04     GN        1.01     
!   HN        1.01     KK        1.06     KP        1.02     LA        0.98     
!   MC        1.00     MK        1.02     NL        0.98     ON        1.06     
!   OV        1.02     PT        1.01     SC        1.19     WF        1.04     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     GC        1.00     GN        0.97     HN        1.03     
!   KK        0.96     KP        1.00     LA        0.99     MC        1.06     
!   MK        0.95     NL        0.98     NY        0.99     ON        0.94     
!   OV        0.98     PT        1.00     WF        0.96     
! 
!  A total of 87 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.00     GC        1.03     GN        0.96     
!   HN        1.09     KK        1.00     KP        1.00     LA        0.99     
!   MC        1.14     MK        0.99     NL        0.98     ON        0.94     
!   OV        1.00     PT        1.03     SC        0.94     WF        0.95     
! 
! 
! Fit before self-cal, rms=0.224958Jy  sigma=0.884301
! Fit after  self-cal, rms=0.170004Jy  sigma=0.658011
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7287 mas, bmaj=0.8782 mas, bpa=21.98 degrees
! Estimated noise=0.743286 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.000749887 Jy
! Component: 100  -  total flux cleaned = -5.40272e-05 Jy
! Total flux subtracted in 100 components = -5.40272e-05 Jy
! Clean residual min=-0.007309 max=0.009525 Jy/beam
! Clean residual mean=0.000035 rms=0.001590 Jy/beam
! Combined flux in latest and established models = 2.47317 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 61 components and 2.47317 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168700Jy  sigma=0.653033
! Fit after  self-cal, rms=0.168647Jy  sigma=0.652801
! Inverting map 
! Added new window around map position (-2.1, -0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00600174 Jy
! Component: 100  -  total flux cleaned = 0.00804434 Jy
! Total flux subtracted in 100 components = 0.00804434 Jy
! Clean residual min=-0.007171 max=0.006254 Jy/beam
! Clean residual mean=0.000039 rms=0.001544 Jy/beam
! Combined flux in latest and established models = 2.48121 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 74 components and 2.48121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168031Jy  sigma=0.650450
! Fit after  self-cal, rms=0.168004Jy  sigma=0.650342
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * 1.5
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00324459 Jy
! Component: 100  -  total flux cleaned = 0.00502336 Jy
! Total flux subtracted in 100 components = 0.00502336 Jy
! Clean residual min=-0.007268 max=0.006290 Jy/beam
! Clean residual mean=0.000042 rms=0.001526 Jy/beam
! Combined flux in latest and established models = 2.48624 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 83 components and 2.48624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167698Jy  sigma=0.649200
! Fit after  self-cal, rms=0.152352Jy  sigma=0.586198
! Inverting map and beam 
! Estimated beam: bmin=0.7285 mas, bmaj=0.8795 mas, bpa=22.24 degrees
! Estimated noise=0.74323 mJy/beam.
doamp = false
solint = solint / 1.5
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00256606 Jy
! Component: 100  -  total flux cleaned = 0.00409623 Jy
! Total flux subtracted in 100 components = 0.00409623 Jy
! Clean residual min=-0.004089 max=0.003504 Jy/beam
! Clean residual mean=-0.000000 rms=0.000555 Jy/beam
! Combined flux in latest and established models = 2.49033 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 98 components and 2.49033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152066Jy  sigma=0.585055
! Fit after  self-cal, rms=0.152049Jy  sigma=0.584979
! 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 98 model components to file: 0059+581_X.mod
! wwins: Wrote 3 windows to 0059+581_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7285 x 0.8795 at 22.24 degrees (North through East)
! Clean map  min=-0.0021934  max=2.238 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'
cmul = 1.0
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
loglevs (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.7285 mas, bmaj=0.8795 mas, bpa=22.24 degrees
! Estimated noise=0.74323 mJy/beam.
! The new contour levels are:
!  -0.00167534 0.00167534 0.00335069 0.00670138 0.0134028 0.0268055 0.053611 0.107222 0.214444 0.428888 0.857776 1.71555 3.43111 6.86221 13.7244 27.4488 54.8977 109.795 219.591 439.182 878.363 1756.73 3513.45 7026.9 14053.8
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7285 x 0.8795 at 22.24 degrees (North through East)
! Clean map  min=-0.0021934  max=2.238 Jy/beam
quit
! Quitting program
! Log file 0059+581_X.log closed on Wed Jun  9 16:31:48 1999