! Started logfile: 0133+476_X.log on Wed Jun  9 16:38:50 1999
observe 0133+476_X.edt
! Reading UV FITS file: 0133+476_X.edt
! AN table 1: 67 integrations on 118 of 136 possible baselines.
! AN table 2: 84 integrations on 111 of 120 possible baselines.
! AN table 3: 80 integrations on 132 of 136 possible baselines.
! Apparent sampling: 0.340986 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0133+476
! 
! 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 37904 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 763 telescope corrections were flagged in sub-array 1.
!  A total of 868 telescope corrections were flagged in sub-array 2.
!  A total of 463 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 768 telescope corrections were flagged in sub-array 1.
!  A total of 868 telescope corrections were flagged in sub-array 2.
!  A total of 456 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 769 telescope corrections were flagged in sub-array 1.
!  A total of 868 telescope corrections were flagged in sub-array 2.
!  A total of 456 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 765 telescope corrections were flagged in sub-array 1.
!  A total of 868 telescope corrections were flagged in sub-array 2.
!  A total of 519 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.941246Jy  sigma=3.730887
! Fit after  self-cal, rms=0.940964Jy  sigma=3.729925
! 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.5984 mas, bmaj=0.7277 mas, bpa=11.17 degrees
! Estimated noise=1.70365 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.35609 Jy
! Total flux subtracted in 50 components = 1.35609 Jy
! Clean residual min=-0.040484 max=0.379584 Jy/beam
! Clean residual mean=0.000000 rms=0.012360 Jy/beam
! Combined flux in latest and established models = 1.35609 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 1.35609 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.626169Jy  sigma=2.481816
! Fit after  self-cal, rms=0.626162Jy  sigma=2.481785
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.364631 Jy
! Total flux subtracted in 50 components = 0.364631 Jy
! Clean residual min=-0.023269 max=0.161024 Jy/beam
! Clean residual mean=0.000018 rms=0.006821 Jy/beam
! Combined flux in latest and established models = 1.72072 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.72072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365700Jy  sigma=1.447267
! Fit after  self-cal, rms=0.365444Jy  sigma=1.446271
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.175019 Jy
! Total flux subtracted in 50 components = 0.175019 Jy
! Clean residual min=-0.016558 max=0.080468 Jy/beam
! Clean residual mean=0.000026 rms=0.004748 Jy/beam
! Combined flux in latest and established models = 1.89574 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 9 components and 1.89574 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264951Jy  sigma=1.045609
! Fit after  self-cal, rms=0.264777Jy  sigma=1.044935
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0945578 Jy
! Total flux subtracted in 50 components = 0.0945578 Jy
! Clean residual min=-0.015577 max=0.049788 Jy/beam
! Clean residual mean=0.000031 rms=0.003971 Jy/beam
! Combined flux in latest and established models = 1.9903 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 19 components and 1.9903 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224152Jy  sigma=0.882275
! Fit after  self-cal, rms=0.224060Jy  sigma=0.881917
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0621262 Jy
! Total flux subtracted in 50 components = 0.0621262 Jy
! Clean residual min=-0.015508 max=0.033782 Jy/beam
! Clean residual mean=0.000034 rms=0.003576 Jy/beam
! Combined flux in latest and established models = 2.05243 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 27 components and 2.05243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204128Jy  sigma=0.801896
! Fit after  self-cal, rms=0.204080Jy  sigma=0.801711
! Inverting map 
! Added new window around map position (-0.4, 0.7).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0434079 Jy
! Total flux subtracted in 50 components = 0.0434079 Jy
! Clean residual min=-0.015655 max=0.024108 Jy/beam
! Clean residual mean=0.000037 rms=0.003361 Jy/beam
! Combined flux in latest and established models = 2.09583 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 32 components and 2.09583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.193843Jy  sigma=0.760497
! Fit after  self-cal, rms=0.193788Jy  sigma=0.760292
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0313896 Jy
! Total flux subtracted in 50 components = 0.0313896 Jy
! Clean residual min=-0.015753 max=0.017599 Jy/beam
! Clean residual mean=0.000039 rms=0.003239 Jy/beam
! Combined flux in latest and established models = 2.12722 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 34 components and 2.12722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188319Jy  sigma=0.738213
! Fit after  self-cal, rms=0.188283Jy  sigma=0.738080
! 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.7504 mas, bmaj=0.8866 mas, bpa=10.92 degrees
! Estimated noise=0.979642 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.0337532 Jy
! Component: 100  -  total flux cleaned = 0.0526803 Jy
! Total flux subtracted in 100 components = 0.0526803 Jy
! Clean residual min=-0.009584 max=0.017340 Jy/beam
! Clean residual mean=0.000140 rms=0.002767 Jy/beam
! Combined flux in latest and established models = 2.1799 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 47 components and 2.1799 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182845Jy  sigma=0.715872
! Fit after  self-cal, rms=0.182732Jy  sigma=0.715437
! 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 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.99     GC        1.00     GN        0.92     
!   HN        1.01     KK        0.99     KP        0.99     LA        0.98     
!   MC        1.25     MK        1.00     NL        0.97     NY        1.00     
!   ON        1.06     OV        1.01     PT        1.08     SC        0.94     
!   WF        0.97     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.01     GN        0.96     
!   HN        1.00     KK        1.12     KP        1.00     LA        0.97     
!   MC        1.06     MK        1.03     NL        0.98     ON        0.96     
!   OV        1.02     PT        1.02     SC        0.96     WF        1.01     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GC        1.01     GN        0.98     
!   HN        1.02     KK        1.00     KP        1.00     LA        1.02     
!   MC        1.02     MK        0.99     NL        0.99     NY        1.03     
!   ON        1.09     OV        1.01     PT        1.03     SC        1.12     
!   WF        1.01     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GC        1.00     GN        0.96     
!   HN        1.00     KK        1.00     KP        1.00     LA        0.98     
!   MC        1.26     MK        0.99     NL        0.96     NY        1.01     
!   ON        1.01     OV        1.01     PT        1.10     SC        0.93     
!   WF        0.98     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.00     GN        0.97     
!   HN        0.99     KK        1.14     KP        1.00     LA        0.98     
!   MC        1.05     MK        1.03     NL        0.97     ON        0.95     
!   OV        1.03     PT        1.02     SC        0.94     WF        1.02     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.01     GN        1.01     
!   HN        1.00     KK        0.99     KP        1.00     LA        1.02     
!   MC        1.01     MK        1.00     NL        0.98     NY        1.01     
!   ON        1.10     OV        1.01     PT        1.03     SC        1.14     
!   WF        1.02     
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        0.98     GN        0.92     
!   HN        1.01     KK        1.00     KP        0.97     LA        0.96     
!   MC        1.32     MK        0.99     NL        0.95     NY        1.01     
!   ON        1.02     OV        0.99     PT        1.06     SC        0.93     
!   WF        0.96     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        0.99     GN        0.99     
!   HN        0.99     KK        1.13     KP        0.98     LA        0.95     
!   MC        1.05     MK        1.02     NL        0.96     ON        0.94     
!   OV        1.01     PT        1.01     SC        0.94     WF        1.01     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        0.99     GN        0.98     
!   HN        0.99     KK        1.00     KP        0.98     LA        1.00     
!   MC        1.00     MK        0.99     NL        0.97     NY        1.03     
!   ON        1.09     OV        0.99     PT        1.01     SC        1.13     
!   WF        0.99     
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.00     GN        0.95     
!   HN        1.00     KK        0.96     KP        0.98     LA        0.96     
!   MC        1.28     MK        0.99     NL        0.94     NY        0.99     
!   ON        0.98     OV        0.99     PT        1.08     SC        0.90     
!   WF        0.98     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.00     GN        0.99     
!   HN        0.99     KK        1.08     KP        0.98     LA        0.95     
!   MC        1.03     MK        1.01     NL        0.95     ON        0.92     
!   OV        1.00     PT        1.01     SC        0.92     WF        1.00     
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.00     GN        1.00     
!   HN        0.99     KK        0.98     KP        0.98     LA        1.00     
!   MC        0.97     MK        0.98     NL        0.96     NY        1.01     
!   ON        1.05     OV        0.98     PT        1.02     SC        1.13     
!   WF        0.98     
! 
! 
! Fit before self-cal, rms=0.182732Jy  sigma=0.715437
! Fit after  self-cal, rms=0.161890Jy  sigma=0.623746
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7516 mas, bmaj=0.8886 mas, bpa=10.25 degrees
! Estimated noise=0.984515 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 (-1.6, 2.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0169593 Jy
! Component: 100  -  total flux cleaned = 0.0257103 Jy
! Total flux subtracted in 100 components = 0.0257103 Jy
! Clean residual min=-0.006201 max=0.007623 Jy/beam
! Clean residual mean=0.000167 rms=0.001862 Jy/beam
! Combined flux in latest and established models = 2.20561 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 66 components and 2.20561 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160273Jy  sigma=0.617066
! Fit after  self-cal, rms=0.160132Jy  sigma=0.616443
! 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.00515462 Jy
! Component: 100  -  total flux cleaned = 0.00870699 Jy
! Total flux subtracted in 100 components = 0.00870699 Jy
! Clean residual min=-0.006130 max=0.007174 Jy/beam
! Clean residual mean=0.000169 rms=0.001808 Jy/beam
! Combined flux in latest and established models = 2.21432 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 79 components and 2.21432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159702Jy  sigma=0.614691
! Fit after  self-cal, rms=0.147937Jy  sigma=0.565906
! Inverting map and beam 
! Estimated beam: bmin=0.7519 mas, bmaj=0.8879 mas, bpa=11.1 degrees
! Estimated noise=0.985064 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.00647362 Jy
! Component: 100  -  total flux cleaned = 0.00902409 Jy
! Total flux subtracted in 100 components = 0.00902409 Jy
! Clean residual min=-0.004943 max=0.003797 Jy/beam
! Clean residual mean=0.000004 rms=0.000737 Jy/beam
! Combined flux in latest and established models = 2.22334 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 95 components and 2.22334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.147649Jy  sigma=0.564713
! Fit after  self-cal, rms=0.147629Jy  sigma=0.564623
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0133+476_X
! Writing UV FITS file: 0133+476_X.uvf
! Writing 95 model components to file: 0133+476_X.mod
! wwins: Wrote 3 windows to 0133+476_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7519 x 0.8879 at 11.1 degrees (North through East)
! Clean map  min=-0.0029643  max=1.8355 Jy/beam
! Writing clean map to FITS file: 0133+476_X.fits
! Writing difmap environment to: 0133+476_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0133+476_Xuv.ps/vps,1,2
! Attempting to open device: '0133+476_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0133+476_Xim.ps/vps
! Attempting to open device: '0133+476_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.7519 mas, bmaj=0.8879 mas, bpa=11.1 degrees
! Estimated noise=0.985064 mJy/beam.
! The new contour levels are:
!  -0.00222518 0.00222518 0.00445036 0.00890071 0.0178014 0.0356028 0.0712057 0.142411 0.284823 0.569646 1.13929 2.27858 4.55716 9.11433 18.2287 36.4573 72.9146 145.829 291.659 583.317 1166.63 2333.27 4666.54 9333.07 18666.1
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7519 x 0.8879 at 11.1 degrees (North through East)
! Clean map  min=-0.0029643  max=1.8355 Jy/beam
quit
! Quitting program
! Log file 0133+476_X.log closed on Wed Jun  9 16:42:44 1999