! Started logfile: 0119+115_S.log on Thu Oct 22 17:07:04 1998
observe 0119+115_S.edt
! Reading UV FITS file: 0119+115_S.edt
! AN table 1: 67 integrations on 105 of 105 possible baselines.
! AN table 2: 80 integrations on 81 of 91 possible baselines.
! AN table 3: 30 integrations on 57 of 66 possible baselines.
! AN table 4: 43 integrations on 78 of 78 possible baselines.
! Apparent sampling: 0.326659 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0119+115
! 
! 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 1602 lines of history.
! 
! Reading 24276 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 740 telescope corrections were flagged in sub-array 1.
!  A total of 704 telescope corrections were flagged in sub-array 2.
!  A total of 144 telescope corrections were flagged in sub-array 3.
!  A total of 201 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 740 telescope corrections were flagged in sub-array 1.
!  A total of 704 telescope corrections were flagged in sub-array 2.
!  A total of 144 telescope corrections were flagged in sub-array 3.
!  A total of 201 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 740 telescope corrections were flagged in sub-array 1.
!  A total of 704 telescope corrections were flagged in sub-array 2.
!  A total of 144 telescope corrections were flagged in sub-array 3.
!  A total of 201 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 748 telescope corrections were flagged in sub-array 1.
!  A total of 704 telescope corrections were flagged in sub-array 2.
!  A total of 144 telescope corrections were flagged in sub-array 3.
!  A total of 202 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.243917Jy  sigma=1.304894
! Fit after  self-cal, rms=0.242653Jy  sigma=1.298620
! 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.306 mas, bmaj=5.905 mas, bpa=-9.91 degrees
! Estimated noise=1.70347 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 = 0.701154 Jy
! Total flux subtracted in 50 components = 0.701154 Jy
! Clean residual min=-0.029510 max=0.195671 Jy/beam
! Clean residual mean=0.000167 rms=0.008752 Jy/beam
! Combined flux in latest and established models = 0.701154 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 0.701154 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311447Jy  sigma=1.670730
! Fit after  self-cal, rms=0.311447Jy  sigma=1.670730
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.153207 Jy
! Total flux subtracted in 50 components = 0.153207 Jy
! Clean residual min=-0.019921 max=0.045758 Jy/beam
! Clean residual mean=0.000090 rms=0.005104 Jy/beam
! Combined flux in latest and established models = 0.854361 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 9 components and 0.854361 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234864Jy  sigma=1.253096
! Fit after  self-cal, rms=0.234862Jy  sigma=1.253094
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0477397 Jy
! Total flux subtracted in 50 components = 0.0477397 Jy
! Clean residual min=-0.019281 max=0.035478 Jy/beam
! Clean residual mean=0.000065 rms=0.004657 Jy/beam
! Combined flux in latest and established models = 0.902101 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 16 components and 0.902101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226115Jy  sigma=1.205792
! Fit after  self-cal, rms=0.226107Jy  sigma=1.205747
! Inverting map 
! Added new window around map position (0, 14.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0330726 Jy
! Total flux subtracted in 50 components = 0.0330726 Jy
! Clean residual min=-0.019799 max=0.019395 Jy/beam
! Clean residual mean=0.000047 rms=0.004416 Jy/beam
! Combined flux in latest and established models = 0.935174 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 20 components and 0.935174 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220998Jy  sigma=1.177842
! Fit after  self-cal, rms=0.220902Jy  sigma=1.177321
! 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=3.242 mas, bmaj=7.658 mas, bpa=-9.145 degrees
! Estimated noise=0.897124 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.0344102 Jy
! Component: 100  -  total flux cleaned = 0.0541683 Jy
! Total flux subtracted in 100 components = 0.0541683 Jy
! Clean residual min=-0.011111 max=0.031062 Jy/beam
! Clean residual mean=0.002780 rms=0.004192 Jy/beam
! Combined flux in latest and established models = 0.989342 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 47 components and 0.989342 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215920Jy  sigma=1.150254
! Fit after  self-cal, rms=0.215602Jy  sigma=1.148519
! Inverting map 
! Added new window around map position (9.2, 28).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0333119 Jy
! Component: 100  -  total flux cleaned = 0.053873 Jy
! Total flux subtracted in 100 components = 0.053873 Jy
! Clean residual min=-0.010210 max=0.016289 Jy/beam
! Clean residual mean=0.001886 rms=0.003450 Jy/beam
! Combined flux in latest and established models = 1.04321 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 74 components and 1.04321 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210739Jy  sigma=1.121772
! Fit after  self-cal, rms=0.210533Jy  sigma=1.120654
! 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 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.02     GN        0.98     
!   HN        1.01     KK        1.01     KP        1.00     LA        0.94     
!   MC        1.01     NL        0.97     ON        1.09     OV        1.00     
!   PT        0.97     SC        1.01     WF        1.05     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00     GC        0.99     GN        1.06     
!   HN        0.96     KK        1.07     KP        0.96     LA        0.92     
!   MC        0.85     NL        1.02     OV        1.03     PT        0.94     
!   SC        0.96     WF        0.89     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.84     FD        0.92     GC        1.00*    HN        0.99     
!   KK        1.32     KP        0.82     LA        0.93     NL        0.95     
!   OV        0.79     PT        0.88     SC        1.07     WF        1.03     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.10     GC        0.99     GN        1.03     
!   HN        0.96     KP        0.93     LA        0.99     MC        1.00*    
!   NL        0.96     ON        0.95     OV        1.01     PT        0.97     
!   WF        1.03     
! 
! 
! Correcting IF 2.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        0.98     GN        0.98     
!   HN        1.01     KK        1.04     KP        1.01     LA        0.98     
!   MC        0.74     NL        1.04     ON        1.04     OV        1.00     
!   PT        0.98     SC        0.99     WF        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.02     GC        1.01     GN        1.03     
!   HN        0.95     KK        1.03     KP        0.94     LA        0.99     
!   MC        0.69     NL        1.05     OV        1.02     PT        0.97     
!   SC        0.98     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.86     FD        0.89     GC        1.00*    HN        0.99     
!   KK        1.10     KP        0.86     LA        0.89     NL        1.00     
!   OV        0.80     PT        0.88     SC        1.04     WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.14     GC        0.98     GN        1.01     
!   HN        0.96     KP        0.99     LA        0.99     MC        1.00*    
!   NL        1.03     ON        0.96     OV        1.01     PT        0.96     
!   WF        0.95     
! 
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.02     GC        1.02     GN        0.99     
!   HN        1.02     KK        1.02     KP        1.02     LA        1.00     
!   MC        0.74     NL        1.06     ON        1.18     OV        1.02     
!   PT        0.98     SC        1.01     WF        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.03     GC        0.99     GN        1.09     
!   HN        0.99     KK        1.01     KP        0.94     LA        1.06     
!   MC        1.69     NL        1.09     OV        1.01     PT        0.98     
!   SC        1.04     WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.09     FD        1.06     GC        1.00*    HN        0.95     
!   KK        1.29     KP        0.98     LA        0.99     NL        1.04     
!   OV        0.97     PT        1.35     SC        0.99     WF        1.02     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.14     GC        1.00     GN        1.02     
!   HN        0.98     KP        1.00     LA        1.00     MC        1.00*    
!   NL        1.05     ON        1.00     OV        1.01     PT        0.99     
!   WF        0.98     
! 
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.05     GC        0.98     GN        1.01     
!   HN        1.03     KK        1.01     KP        1.04     LA        1.01     
!   MC        1.00*    NL        1.07     ON        1.13     OV        1.03     
!   PT        0.99     SC        1.05     WF        1.01     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.04     GC        1.02     GN        1.05     
!   HN        0.98     KK        1.06     KP        0.97     LA        1.04     
!   MC        0.73     NL        1.09     OV        1.04     PT        0.97     
!   SC        1.05     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        0.90     GC        1.00*    HN        1.03     
!   KK        1.13     KP        0.89     LA        0.88     NL        1.01     
!   OV        0.84     PT        0.93     SC        1.11     WF        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.16     GC        1.02     GN        1.03     
!   HN        0.97     KP        1.02     LA        1.01     MC        1.00*    
!   NL        1.08     ON        0.97     OV        1.02     PT        0.99     
!   WF        0.97     
! 
! 
! Fit before self-cal, rms=0.210533Jy  sigma=1.120654
! Fit after  self-cal, rms=0.182239Jy  sigma=0.966702
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.22 mas, bmaj=7.749 mas, bpa=-9.157 degrees
! Estimated noise=0.889077 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.0130772 Jy
! Component: 100  -  total flux cleaned = 0.0217678 Jy
! Total flux subtracted in 100 components = 0.0217678 Jy
! Clean residual min=-0.004325 max=0.008024 Jy/beam
! Clean residual mean=0.000747 rms=0.001448 Jy/beam
! Combined flux in latest and established models = 1.06498 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 95 components and 1.06498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.181330Jy  sigma=0.961459
! Fit after  self-cal, rms=0.181335Jy  sigma=0.961274
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (2.8, 24.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00796716 Jy
! Component: 100  -  total flux cleaned = 0.0133742 Jy
! Total flux subtracted in 100 components = 0.0133742 Jy
! Clean residual min=-0.004302 max=0.005565 Jy/beam
! Clean residual mean=0.000516 rms=0.001347 Jy/beam
! Combined flux in latest and established models = 1.07836 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 109 components and 1.07836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180976Jy  sigma=0.959313
! Fit after  self-cal, rms=0.176143Jy  sigma=0.927110
! Inverting map and beam 
! Estimated beam: bmin=3.22 mas, bmaj=7.744 mas, bpa=-9.155 degrees
! Estimated noise=0.890981 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)
! Added new window around map position (16.8, 32.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00611045 Jy
! Component: 100  -  total flux cleaned = 0.0102899 Jy
! Total flux subtracted in 100 components = 0.0102899 Jy
! Clean residual min=-0.003408 max=0.004615 Jy/beam
! Clean residual mean=0.000432 rms=0.000954 Jy/beam
! Combined flux in latest and established models = 1.08865 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 127 components and 1.08865 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175933Jy  sigma=0.925898
! Fit after  self-cal, rms=0.175931Jy  sigma=0.925840
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0119+115_S
! Writing UV FITS file: 0119+115_S.uvf
! Writing 127 model components to file: 0119+115_S.mod
! wwins: Wrote 5 windows to 0119+115_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.22 x 7.744 at -9.155 degrees (North through East)
! Clean map  min=-0.0032653  max=0.90252 Jy/beam
! Writing clean map to FITS file: 0119+115_S.fits
! Writing difmap environment to: 0119+115_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0119+115_Suv.ps/vps,1,2
! Attempting to open device: '0119+115_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0119+115_Sim.ps/vps
! Attempting to open device: '0119+115_Sim.ps/vps'
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
loglevs -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=3.22 mas, bmaj=7.744 mas, bpa=-9.155 degrees
! Estimated noise=0.890981 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.22 x 7.744 at -9.155 degrees (North through East)
! Clean map  min=-0.0032653  max=0.90252 Jy/beam
quit
! Quitting program
! Log file 0119+115_S.log closed on Thu Oct 22 17:12:56 1998