! Started logfile: 0552_stp3.log on Fri Nov  6 13:44:21 1998
observe 0552_stp3.edt
! Reading UV FITS file: 0552_stp3.edt
! AN table 1: 180 integrations on 89 of 91 possible baselines.
! AN table 2: 72 integrations on 1 of 1 possible baselines.
! AN table 3: 122 integrations on 117 of 120 possible baselines.
! Apparent sampling: 0.371666 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  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 1264 lines of history.
! 
! Reading 45144 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 1146 telescope corrections were flagged in sub-array 1.
!  A total of 144 telescope corrections were flagged in sub-array 2.
!  A total of 1134 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1146 telescope corrections were flagged in sub-array 1.
!  A total of 144 telescope corrections were flagged in sub-array 2.
!  A total of 1134 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1146 telescope corrections were flagged in sub-array 1.
!  A total of 144 telescope corrections were flagged in sub-array 2.
!  A total of 1141 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1146 telescope corrections were flagged in sub-array 1.
!  A total of 144 telescope corrections were flagged in sub-array 2.
!  A total of 1134 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=2.997414Jy  sigma=17.222543
! Fit after  self-cal, rms=2.995988Jy  sigma=17.215085
! 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.6666 mas, bmaj=0.8504 mas, bpa=-22.37 degrees
! Estimated noise=1.36406 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.65115 Jy
! Total flux subtracted in 50 components = 2.65115 Jy
! Clean residual min=-0.110429 max=0.800976 Jy/beam
! Clean residual mean=-0.000534 rms=0.034678 Jy/beam
! Combined flux in latest and established models = 2.65115 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 2.65115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.503889Jy  sigma=8.702344
! Fit after  self-cal, rms=1.503803Jy  sigma=8.701868
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.818795 Jy
! Total flux subtracted in 50 components = 0.818795 Jy
! Clean residual min=-0.071412 max=0.356240 Jy/beam
! Clean residual mean=-0.000288 rms=0.019823 Jy/beam
! Combined flux in latest and established models = 3.46995 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 13 components and 3.46995 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.900529Jy  sigma=5.197320
! Fit after  self-cal, rms=0.899712Jy  sigma=5.194165
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.409756 Jy
! Total flux subtracted in 50 components = 0.409756 Jy
! Clean residual min=-0.054445 max=0.208906 Jy/beam
! Clean residual mean=-0.000167 rms=0.013830 Jy/beam
! Combined flux in latest and established models = 3.8797 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 26 components and 3.8797 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.638745Jy  sigma=3.657518
! Fit after  self-cal, rms=0.637788Jy  sigma=3.653637
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.260356 Jy
! Total flux subtracted in 50 components = 0.260356 Jy
! Clean residual min=-0.045094 max=0.156493 Jy/beam
! Clean residual mean=-0.000089 rms=0.010477 Jy/beam
! Combined flux in latest and established models = 4.14006 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 37 components and 4.14006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.490258Jy  sigma=2.774688
! Fit after  self-cal, rms=0.489845Jy  sigma=2.773210
! Inverting map 
! Added new window around map position (-0.9, 0.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.185105 Jy
! Total flux subtracted in 50 components = 0.185105 Jy
! Clean residual min=-0.037067 max=0.102065 Jy/beam
! Clean residual mean=-0.000036 rms=0.008335 Jy/beam
! Combined flux in latest and established models = 4.32517 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 51 components and 4.32517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.396202Jy  sigma=2.209584
! Fit after  self-cal, rms=0.395424Jy  sigma=2.206231
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.133741 Jy
! Total flux subtracted in 50 components = 0.133741 Jy
! Clean residual min=-0.032006 max=0.074971 Jy/beam
! Clean residual mean=0.000003 rms=0.006939 Jy/beam
! Combined flux in latest and established models = 4.45891 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 58 components and 4.45891 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336356Jy  sigma=1.846105
! Fit after  self-cal, rms=0.335548Jy  sigma=1.842521
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0987704 Jy
! Total flux subtracted in 50 components = 0.0987704 Jy
! Clean residual min=-0.028816 max=0.055410 Jy/beam
! Clean residual mean=0.000032 rms=0.006030 Jy/beam
! Combined flux in latest and established models = 4.55768 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 66 components and 4.55768 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298671Jy  sigma=1.615132
! Fit after  self-cal, rms=0.297979Jy  sigma=1.612009
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0737594 Jy
! Total flux subtracted in 50 components = 0.0737594 Jy
! Clean residual min=-0.027230 max=0.041417 Jy/beam
! Clean residual mean=0.000053 rms=0.005454 Jy/beam
! Combined flux in latest and established models = 4.63144 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 70 components and 4.63144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275415Jy  sigma=1.471791
! Fit after  self-cal, rms=0.274877Jy  sigma=1.469331
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.055536 Jy
! Total flux subtracted in 50 components = 0.055536 Jy
! Clean residual min=-0.025916 max=0.031035 Jy/beam
! Clean residual mean=0.000069 rms=0.005095 Jy/beam
! Combined flux in latest and established models = 4.68697 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 73 components and 4.68697 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261259Jy  sigma=1.384414
! Fit after  self-cal, rms=0.260865Jy  sigma=1.382595
! 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.9658 mas, bmaj=1.106 mas, bpa=-8.271 degrees
! Estimated noise=0.633076 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.0685465 Jy
! Component: 100  -  total flux cleaned = 0.104746 Jy
! Total flux subtracted in 100 components = 0.104746 Jy
! Clean residual min=-0.017904 max=0.018847 Jy/beam
! Clean residual mean=0.000738 rms=0.004082 Jy/beam
! Combined flux in latest and established models = 4.79172 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 90 components and 4.79172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244777Jy  sigma=1.281689
! Fit after  self-cal, rms=0.244176Jy  sigma=1.278518
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     GN        1.00     
!   HN        1.00     KP        1.00     LA        1.00     MC        0.99     
!   NL        1.00     ON        1.00     OV        1.00     PT        1.00     
!   SC        1.00     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   GC        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.00     GN        1.00     
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     NL        1.00     ON        1.00     OV        1.00     
!   PT        1.00     SC        1.00     WF        1.00     MK        1.00     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     GN        1.00     
!   HN        1.00     KP        1.00     LA        1.00     MC        0.99     
!   NL        1.00     ON        1.00     OV        1.00     PT        1.00     
!   SC        1.00     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   GC        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.00     GN        1.00     
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     NL        1.00     ON        1.00     OV        1.00     
!   PT        1.00     SC        1.00     WF        1.00     MK        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     GN        1.00     
!   HN        1.00     KP        1.00     LA        1.00     MC        0.99     
!   NL        1.00     ON        1.00     OV        1.00     PT        1.00     
!   SC        1.00     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   GC        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.00     GN        1.00     
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     NL        1.00     ON        1.00     OV        1.00     
!   PT        1.00     SC        1.00     WF        1.00     MK        1.00     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     GN        1.00     
!   HN        1.00     KP        1.00     LA        1.00     MC        0.99     
!   NL        1.00     ON        1.00     OV        1.00     PT        1.00     
!   SC        1.00     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   GC        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.00     GN        1.00     
!   HN        1.00     KK        1.00     KP        1.00     LA        1.00     
!   MC        1.00     NL        1.00     ON        1.00     OV        1.00     
!   PT        1.00     SC        1.00     WF        1.00     MK        1.00     
! 
! 
! Fit before self-cal, rms=0.244176Jy  sigma=1.278518
! Fit after  self-cal, rms=0.243125Jy  sigma=1.275318
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9658 mas, bmaj=1.107 mas, bpa=-8.155 degrees
! Estimated noise=0.63106 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.0169744 Jy
! Component: 100  -  total flux cleaned = 0.0191646 Jy
! Total flux subtracted in 100 components = 0.0191646 Jy
! Clean residual min=-0.016347 max=0.015947 Jy/beam
! Clean residual mean=0.000556 rms=0.003668 Jy/beam
! Combined flux in latest and established models = 4.81088 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 99 components and 4.81088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241778Jy  sigma=1.268020
! Fit after  self-cal, rms=0.241629Jy  sigma=1.267323
! 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.004655 Jy
! Component: 100  -  total flux cleaned = 0.00635291 Jy
! Total flux subtracted in 100 components = 0.00635291 Jy
! Clean residual min=-0.016310 max=0.015305 Jy/beam
! Clean residual mean=0.000477 rms=0.003631 Jy/beam
! Combined flux in latest and established models = 4.81723 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 101 components and 4.81723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241049Jy  sigma=1.264409
! Fit after  self-cal, rms=0.173370Jy  sigma=0.831064
! Inverting map and beam 
! Estimated beam: bmin=0.9645 mas, bmaj=1.105 mas, bpa=-7.851 degrees
! Estimated noise=0.630733 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.0134987 Jy
! Component: 100  -  total flux cleaned = 0.0156958 Jy
! Total flux subtracted in 100 components = 0.0156958 Jy
! Clean residual min=-0.008913 max=0.008737 Jy/beam
! Clean residual mean=0.000377 rms=0.001496 Jy/beam
! Combined flux in latest and established models = 4.83293 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 105 components and 4.83293 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172150Jy  sigma=0.823887
! Fit after  self-cal, rms=0.172036Jy  sigma=0.823267
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0552_stp3
! Writing UV FITS file: 0552_stp3.uvf
! Writing 105 model components to file: 0552_stp3.mod
! wwins: Wrote 2 windows to 0552_stp3.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9645 x 1.105 at -7.851 degrees (North through East)
! Clean map  min=-0.00637  max=3.7449 Jy/beam
! Writing clean map to FITS file: 0552_stp3.fits
! Writing difmap environment to: 0552_stp3.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0552_stp3uv.ps/vps,1,2
! Attempting to open device: '0552_stp3uv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0552_stp3im.ps/vps
! Attempting to open device: '0552_stp3im.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.9645 mas, bmaj=1.105 mas, bpa=-7.851 degrees
! Estimated noise=0.630733 mJy/beam.
! The new contour levels are:
!  -0.00447443 0.00447443 0.00894886 0.0178977 0.0357954 0.0715909 0.143182 0.286363 0.572727 1.14545 2.29091 4.58181 9.16363 18.3273 36.6545 73.309 146.618 293.236 586.472 1172.94 2345.89 4691.78 9383.56 18767.1
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9645 x 1.105 at -7.851 degrees (North through East)
! Clean map  min=-0.00637  max=3.7449 Jy/beam
device 0552_stp3im_un.ps/vps
! Attempting to open device: '0552_stp3im_un.ps/vps'
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.
loglevs (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.6659 mas, bmaj=0.8479 mas, bpa=-21.94 degrees
! Estimated noise=1.35572 mJy/beam.
! The new contour levels are:
!  -0.00724796 0.00724796 0.0144959 0.0289918 0.0579837 0.115967 0.231935 0.463869 0.927739 1.85548 3.71096 7.42191 14.8438 29.6876 59.3753 118.751 237.501 475.002 950.005 1900.01 3800.02 7600.04 15200.1
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6659 x 0.8479 at -21.94 degrees (North through East)
! Clean map  min=-0.011507  max=3.3099 Jy/beam
quit
! Quitting program
! Log file 0552_stp3.log closed on Fri Nov  6 13:49:35 1998