! Started logfile: 0552+398_S.log on Tue Apr 27 16:47:47 1999
observe 0552+398_S.edt
! Reading UV FITS file: 0552+398_S.edt
! AN table 1: 198 integrations on 114 of 120 possible baselines.
! AN table 2: 6 integrations on 1 of 1 possible baselines.
! AN table 3: 46 integrations on 119 of 120 possible baselines.
! AN table 4: 87 integrations on 104 of 105 possible baselines.
! Apparent sampling: 0.165553 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0552+398
! 
! 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 912 lines of history.
! 
! Reading 24568 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 2050 telescope corrections were flagged in sub-array 1.
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  A total of 567 telescope corrections were flagged in sub-array 3.
!  A total of 985 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2058 telescope corrections were flagged in sub-array 1.
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  A total of 567 telescope corrections were flagged in sub-array 3.
!  A total of 985 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2051 telescope corrections were flagged in sub-array 1.
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  A total of 567 telescope corrections were flagged in sub-array 3.
!  A total of 985 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2047 telescope corrections were flagged in sub-array 1.
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  A total of 567 telescope corrections were flagged in sub-array 3.
!  A total of 985 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.238204Jy  sigma=8.806811
! Fit after  self-cal, rms=2.238225Jy  sigma=8.807068
! 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.48 mas, bmaj=2.748 mas, bpa=-23.91 degrees
! Estimated noise=1.90718 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 = 2.42337 Jy
! Total flux subtracted in 50 components = 2.42337 Jy
! Clean residual min=-0.076767 max=0.676267 Jy/beam
! Clean residual mean=0.000178 rms=0.020016 Jy/beam
! Combined flux in latest and established models = 2.42337 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 2.42337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.867149Jy  sigma=3.407549
! Fit after  self-cal, rms=0.867148Jy  sigma=3.407549
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.541865 Jy
! Total flux subtracted in 50 components = 0.541865 Jy
! Clean residual min=-0.036147 max=0.190146 Jy/beam
! Clean residual mean=0.000053 rms=0.009568 Jy/beam
! Combined flux in latest and established models = 2.96524 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 2.96524 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.442200Jy  sigma=1.731942
! Fit after  self-cal, rms=0.442197Jy  sigma=1.731933
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.212946 Jy
! Total flux subtracted in 50 components = 0.212946 Jy
! Clean residual min=-0.033033 max=0.110077 Jy/beam
! Clean residual mean=0.000004 rms=0.007153 Jy/beam
! Combined flux in latest and established models = 3.17819 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 24 components and 3.17819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334622Jy  sigma=1.307513
! Fit after  self-cal, rms=0.334607Jy  sigma=1.307453
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.136646 Jy
! Total flux subtracted in 50 components = 0.136646 Jy
! Clean residual min=-0.029962 max=0.074814 Jy/beam
! Clean residual mean=-0.000027 rms=0.005900 Jy/beam
! Combined flux in latest and established models = 3.31483 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 35 components and 3.31483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283409Jy  sigma=1.105411
! Fit after  self-cal, rms=0.283396Jy  sigma=1.105363
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0952244 Jy
! Total flux subtracted in 50 components = 0.0952244 Jy
! Clean residual min=-0.027774 max=0.052917 Jy/beam
! Clean residual mean=-0.000049 rms=0.005182 Jy/beam
! Combined flux in latest and established models = 3.41006 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 43 components and 3.41006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257638Jy  sigma=1.003777
! Fit after  self-cal, rms=0.257623Jy  sigma=1.003715
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0678396 Jy
! Total flux subtracted in 50 components = 0.0678396 Jy
! Clean residual min=-0.026129 max=0.037876 Jy/beam
! Clean residual mean=-0.000064 rms=0.004775 Jy/beam
! Combined flux in latest and established models = 3.4779 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 47 components and 3.4779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245201Jy  sigma=0.954866
! Fit after  self-cal, rms=0.245191Jy  sigma=0.954831
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0488191 Jy
! Total flux subtracted in 50 components = 0.0488191 Jy
! Clean residual min=-0.024967 max=0.027328 Jy/beam
! Clean residual mean=-0.000076 rms=0.004548 Jy/beam
! Combined flux in latest and established models = 3.52672 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 51 components and 3.52672 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239661Jy  sigma=0.933215
! Fit after  self-cal, rms=0.239652Jy  sigma=0.933179
! 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.959 mas, bmaj=3.165 mas, bpa=28.39 degrees
! Estimated noise=1.19567 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.0254249 Jy
! Component: 100  -  total flux cleaned = 0.0357269 Jy
! Total flux subtracted in 100 components = 0.0357269 Jy
! Clean residual min=-0.020070 max=0.015225 Jy/beam
! Clean residual mean=-0.000646 rms=0.004604 Jy/beam
! Combined flux in latest and established models = 3.56244 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 56 components and 3.56244 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237025Jy  sigma=0.922977
! Fit after  self-cal, rms=0.237011Jy  sigma=0.922925
! 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 135 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.01     GC        1.03     GN        1.01     
!   HN        1.00     KK        1.01     KP        1.00     LA        1.03     
!   MC        1.02     MK        1.01     NY        1.02     ON        1.04     
!   OV        1.01     PT        1.02     SC        1.00     WF        1.13     
! 
!  Telescope amplitude corrections in sub-array 2:
!   MC        0.00*    ON        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00     GC        0.99     GN        0.97     
!   HN        1.00     KK        1.03     KP        1.02     LA        1.00     
!   MC        1.00*    MK        1.03     NL        0.91     ON        1.05     
!   OV        1.00     PT        1.02     SC        1.01     WF        0.90     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.02     GC        1.00     HN        1.01     
!   KK        1.01     KP        1.01     LA        1.02     MK        1.02     
!   NL        0.92     NY        1.03     ON        1.07     OV        1.01     
!   PT        1.00     SC        1.02     WF        1.15     
! 
! 
! Correcting IF 2.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     GC        1.01     GN        0.99     
!   HN        1.01     KK        0.99     KP        1.00     LA        1.03     
!   MC        0.81     MK        1.02     NY        1.01     ON        1.03     
!   OV        1.01     PT        1.03     SC        0.99     WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   MC        0.00*    ON        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.98     GC        0.98     GN        0.97     
!   HN        1.00     KK        1.00     KP        1.01     LA        1.00     
!   MC        1.00*    MK        1.03     NL        0.91     ON        1.03     
!   OV        0.98     PT        1.01     SC        1.00     WF        1.04     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00     GC        0.98     HN        1.02     
!   KK        0.99     KP        1.02     LA        1.02     MK        1.01     
!   NL        0.93     NY        1.02     ON        1.05     OV        1.01     
!   PT        1.01     SC        1.03     WF        1.01     
! 
! 
! Correcting IF 3.
!  A total of 135 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.00     GN        1.00     
!   HN        0.99     KK        1.00     KP        0.98     LA        1.00     
!   MC        1.38     MK        0.99     NY        1.00     ON        1.03     
!   OV        0.97     PT        1.01     SC        0.99     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   MC        0.00*    ON        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.97     GC        0.96     GN        0.95     
!   HN        0.98     KK        1.02     KP        0.98     LA        0.98     
!   MC        1.00*    MK        1.01     NL        0.90     ON        1.04     
!   OV        0.95     PT        1.01     SC        1.00     WF        1.03     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        0.97     HN        1.00     
!   KK        0.99     KP        0.97     LA        0.99     MK        1.00     
!   NL        0.91     NY        1.03     ON        1.06     OV        1.00     
!   PT        0.99     SC        1.02     WF        1.00     
! 
! 
! Correcting IF 4.
!  A total of 138 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        1.00     KP        0.98     LA        0.99     
!   MC        0.97     MK        0.99     NY        1.00     ON        1.05     
!   OV        0.99     PT        1.00     SC        0.99     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   MC        0.00*    ON        0.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        0.96     GN        0.94     
!   HN        0.97     KK        1.01     KP        0.97     LA        0.97     
!   MC        1.00*    MK        1.01     NL        0.90     ON        1.05     
!   OV        0.97     PT        0.98     SC        0.99     WF        1.02     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.99     GC        0.96     HN        0.99     
!   KK        0.99     KP        0.98     LA        0.99     MK        0.99     
!   NL        0.91     NY        1.02     ON        1.05     OV        0.99     
!   PT        0.98     SC        1.01     WF        0.99     
! 
! 
! Fit before self-cal, rms=0.237011Jy  sigma=0.922925
! Fit after  self-cal, rms=0.186171Jy  sigma=0.708179
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.951 mas, bmaj=3.199 mas, bpa=29.12 degrees
! Estimated noise=1.21594 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.00267118 Jy
! Component: 100  -  total flux cleaned = 0.000894835 Jy
! Total flux subtracted in 100 components = 0.000894835 Jy
! Clean residual min=-0.018162 max=0.009154 Jy/beam
! Clean residual mean=-0.000406 rms=0.002092 Jy/beam
! Combined flux in latest and established models = 3.56334 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 60 components and 3.56334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185365Jy  sigma=0.705046
! Fit after  self-cal, rms=0.185355Jy  sigma=0.704984
! 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)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0015766 Jy
! Component: 100  -  total flux cleaned = -0.00272634 Jy
! Total flux subtracted in 100 components = -0.00272634 Jy
! Clean residual min=-0.017825 max=0.009032 Jy/beam
! Clean residual mean=-0.000401 rms=0.002072 Jy/beam
! Combined flux in latest and established models = 3.56061 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 60 components and 3.56061 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184925Jy  sigma=0.703326
! Fit after  self-cal, rms=0.171469Jy  sigma=0.648825
! Inverting map and beam 
! Estimated beam: bmin=2.952 mas, bmaj=3.198 mas, bpa=29.62 degrees
! Estimated noise=1.21755 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.00322634 Jy
! Component: 100  -  total flux cleaned = 0.00228302 Jy
! Total flux subtracted in 100 components = 0.00228302 Jy
! Clean residual min=-0.011097 max=0.005646 Jy/beam
! Clean residual mean=-0.000066 rms=0.001233 Jy/beam
! Combined flux in latest and established models = 3.56289 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 60 components and 3.56289 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171228Jy  sigma=0.647895
! Fit after  self-cal, rms=0.171224Jy  sigma=0.647875
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0552+398_S
! Writing UV FITS file: 0552+398_S.uvf
! Writing 60 model components to file: 0552+398_S.mod
! wwins: Wrote 1 windows to 0552+398_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.952 x 3.198 at 29.62 degrees (North through East)
! Clean map  min=-0.0058017  max=3.2002 Jy/beam
! Writing clean map to FITS file: 0552+398_S.fits
! Writing difmap environment to: 0552+398_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0552+398_Suv.ps/vps,1,2
! Attempting to open device: '0552+398_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0552+398_Sim.ps/vps
! Attempting to open device: '0552+398_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=2.952 mas, bmaj=3.198 mas, bpa=29.62 degrees
! Estimated noise=1.21755 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.952 x 3.198 at 29.62 degrees (North through East)
! Clean map  min=-0.0058017  max=3.2002 Jy/beam
quit
! Quitting program
! Log file 0552+398_S.log closed on Tue Apr 27 16:51:43 1999