! Started logfile: J1159+2914_S_2001_07_05_pus_uvs.log on Fri Aug 10 01:11:37 2007
obs J1159+2914_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1159+2914_S_2001_07_05_pus_uva.fits
! AN table 1: 183 integrations on 171 of 171 possible baselines.
! AN table 2: 311 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.144115 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1159+2914
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 48696 visibilities.
select I
! Polarization I is unavailable.
! 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
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 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 2492 telescope corrections were flagged in sub-array 1.
!  A total of 3849 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 2492 telescope corrections were flagged in sub-array 1.
!  A total of 3849 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 2492 telescope corrections were flagged in sub-array 1.
!  A total of 3849 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 2576 telescope corrections were flagged in sub-array 1.
!  A total of 3850 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.769495Jy  sigma=0.006159
! Fit after  self-cal, rms=0.509446Jy  sigma=0.003919
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 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.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.051 mas, bmaj=3.329 mas, bpa=3.393 degrees
! Estimated noise=785.753 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.41659 Jy
! Component: 100  -  total flux cleaned = 0.52432 Jy
! Total flux subtracted in 100 components = 0.52432 Jy
! Clean residual min=-0.019284 max=0.056470 Jy/beam
! Clean residual mean=0.000668 rms=0.005805 Jy/beam
! Combined flux in latest and established models = 0.52432 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.52432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283289Jy  sigma=0.002105
! Fit after  self-cal, rms=0.283186Jy  sigma=0.002104
! Inverting map 
! Added new window around map position (0.5, 4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0656311 Jy
! Component: 100  -  total flux cleaned = 0.112957 Jy
! Total flux subtracted in 100 components = 0.112957 Jy
! Clean residual min=-0.017240 max=0.039325 Jy/beam
! Clean residual mean=0.000537 rms=0.004347 Jy/beam
! Combined flux in latest and established models = 0.637277 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 31 components and 0.637277 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255106Jy  sigma=0.001811
! Fit after  self-cal, rms=0.254232Jy  sigma=0.001807
! Inverting map 
! Added new window around map position (3.5, 6.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0417975 Jy
! Component: 100  -  total flux cleaned = 0.0733918 Jy
! Total flux subtracted in 100 components = 0.0733918 Jy
! Clean residual min=-0.015278 max=0.023906 Jy/beam
! Clean residual mean=0.000443 rms=0.003510 Jy/beam
! Combined flux in latest and established models = 0.710669 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 52 components and 0.710669 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240078Jy  sigma=0.001656
! Fit after  self-cal, rms=0.239321Jy  sigma=0.001652
! Inverting map 
! Added new window around map position (6.5, 6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0287297 Jy
! Component: 100  -  total flux cleaned = 0.0521195 Jy
! Total flux subtracted in 100 components = 0.0521195 Jy
! Clean residual min=-0.013487 max=0.015613 Jy/beam
! Clean residual mean=0.000374 rms=0.002973 Jy/beam
! Combined flux in latest and established models = 0.762789 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 77 components and 0.762789 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231723Jy  sigma=0.001572
! Fit after  self-cal, rms=0.231340Jy  sigma=0.001570
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 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
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.442 mas, bmaj=3.924 mas, bpa=1.871 degrees
! Estimated noise=414.882 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0414662 Jy
! Component: 100  -  total flux cleaned = 0.0694803 Jy
! Component: 150  -  total flux cleaned = 0.0902567 Jy
! Component: 200  -  total flux cleaned = 0.105888 Jy
! Total flux subtracted in 200 components = 0.105888 Jy
! Clean residual min=-0.006646 max=0.016720 Jy/beam
! Clean residual mean=0.002486 rms=0.002677 Jy/beam
! Combined flux in latest and established models = 0.868677 Jy
! Performing phase self-cal
! Adding 60 model components to the UV plane model.
! The established model now contains 120 components and 0.868677 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222190Jy  sigma=0.001475
! Fit after  self-cal, rms=0.221432Jy  sigma=0.001469
! Inverting map 
! Added new window around map position (9.5, 8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0180365 Jy
! Component: 100  -  total flux cleaned = 0.030624 Jy
! Component: 150  -  total flux cleaned = 0.0402344 Jy
! Component: 200  -  total flux cleaned = 0.0477801 Jy
! Total flux subtracted in 200 components = 0.0477801 Jy
! Clean residual min=-0.006347 max=0.011467 Jy/beam
! Clean residual mean=0.001856 rms=0.002151 Jy/beam
! Combined flux in latest and established models = 0.916457 Jy
! Performing phase self-cal
! Adding 51 model components to the UV plane model.
! The established model now contains 156 components and 0.916457 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.219375Jy  sigma=0.001451
! Fit after  self-cal, rms=0.219145Jy  sigma=0.001449
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.08     KK        0.99     KP        0.94     
!   LA        1.06     MC        0.97     MK        0.96     NL        1.08     
!   NY        1.02     OV        0.99     PT        0.99     SC        1.00*    
!   TS        1.03     WF        0.99     WZ        0.98     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.98     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.93     KP        0.97     
!   LA        0.96     MC        1.34     MK        1.02     NL        1.01     
!   NY        1.01     OV        0.98     PT        0.96     SC        1.00     
!   TS        1.07     WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.11     KK        1.00     KP        0.88     
!   LA        1.01     MC        1.05     MK        0.95     NL        1.06     
!   NY        1.06     OV        1.03     PT        1.02     SC        1.00*    
!   TS        1.01     WF        1.00     WZ        0.88     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.03     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.94     KP        0.90     
!   LA        0.95     MC        1.01     MK        0.98     NL        0.98     
!   NY        0.99     OV        0.99     PT        0.99     SC        1.04     
!   TS        1.05     WF        0.96     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.97     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.15     KK        1.07     KP        1.03     
!   LA        1.01     MC        0.99     MK        0.98     NL        1.10     
!   NY        1.03     OV        1.03     PT        1.01     SC        1.00*    
!   TS        0.99     WF        0.97     WZ        0.98     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.96     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.94     KP        1.06     
!   LA        0.96     MC        0.94     MK        1.00     NL        0.99     
!   NY        0.98     OV        1.01     PT        1.01     SC        0.99     
!   TS        1.08     WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.03     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.02     KP        1.05     
!   LA        1.04     MC        0.74     MK        0.95     NL        1.05     
!   NY        1.03     OV        1.01     PT        0.99     SC        1.00*    
!   TS        0.99     WF        0.99     WZ        1.16     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.95     KP        1.08     
!   LA        0.96     MC        1.07     MK        0.97     NL        0.99     
!   NY        1.00     OV        0.96     PT        1.06     SC        1.00     
!   TS        1.08     WF        0.96     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.219145Jy  sigma=0.001449
! Fit after  self-cal, rms=0.214215Jy  sigma=0.001422
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.462 mas, bmaj=3.941 mas, bpa=1.369 degrees
! Estimated noise=413.465 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (6.5, 17).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00985321 Jy
! Component: 100  -  total flux cleaned = 0.016596 Jy
! Component: 150  -  total flux cleaned = 0.0204459 Jy
! Component: 200  -  total flux cleaned = 0.0229569 Jy
! Total flux subtracted in 200 components = 0.0229569 Jy
! Clean residual min=-0.006529 max=0.007031 Jy/beam
! Clean residual mean=0.001255 rms=0.001746 Jy/beam
! Combined flux in latest and established models = 0.939414 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 194 components and 0.939414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213550Jy  sigma=0.001416
! Fit after  self-cal, rms=0.213534Jy  sigma=0.001415
! Inverting map 
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213534Jy  sigma=0.001415
! Fit after  self-cal, rms=0.214311Jy  sigma=0.001392
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.458 mas, bmaj=3.946 mas, bpa=1.437 degrees
! Estimated noise=414.986 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00525863 Jy
! Component: 100  -  total flux cleaned = 0.00819795 Jy
! Component: 150  -  total flux cleaned = 0.00947756 Jy
! Component: 200  -  total flux cleaned = 0.0102592 Jy
! Total flux subtracted in 200 components = 0.0102592 Jy
! Clean residual min=-0.003035 max=0.005191 Jy/beam
! Clean residual mean=0.000829 rms=0.001083 Jy/beam
! Combined flux in latest and established models = 0.949673 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 214 components and 0.949673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214099Jy  sigma=0.001391
! Fit after  self-cal, rms=0.214195Jy  sigma=0.001390
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00566611 Jy
! Component: 100  -  total flux cleaned = 0.00786575 Jy
! Component: 150  -  total flux cleaned = 0.00888365 Jy
! Component: 200  -  total flux cleaned = 0.009684 Jy
! Total flux subtracted in 200 components = 0.009684 Jy
! Clean residual min=-0.003260 max=0.004667 Jy/beam
! Clean residual mean=0.000689 rms=0.000991 Jy/beam
! Combined flux in latest and established models = 0.959357 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 239 components and 0.959357 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213993Jy  sigma=0.001389
! Fit after  self-cal, rms=0.213974Jy  sigma=0.001388
! Inverting map 
! Added new window around map position (-39.5, 35).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00406961 Jy
! Component: 100  -  total flux cleaned = 0.00547125 Jy
! Component: 150  -  total flux cleaned = 0.00661048 Jy
! Component: 200  -  total flux cleaned = 0.00755244 Jy
! Total flux subtracted in 200 components = 0.00755244 Jy
! Clean residual min=-0.003059 max=0.004689 Jy/beam
! Clean residual mean=0.000589 rms=0.000939 Jy/beam
! Combined flux in latest and established models = 0.96691 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 261 components and 0.966909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213845Jy  sigma=0.001387
! Fit after  self-cal, rms=0.213833Jy  sigma=0.001387
! Inverting map 
! Added new window around map position (-7, 35).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0050029 Jy
! Component: 100  -  total flux cleaned = 0.00843352 Jy
! Component: 150  -  total flux cleaned = 0.010978 Jy
! Component: 200  -  total flux cleaned = 0.0125437 Jy
! Total flux subtracted in 200 components = 0.0125437 Jy
! Clean residual min=-0.003404 max=0.003527 Jy/beam
! Clean residual mean=0.000401 rms=0.000815 Jy/beam
! Combined flux in latest and established models = 0.979453 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 293 components and 0.979453 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213687Jy  sigma=0.001386
! Fit after  self-cal, rms=0.213676Jy  sigma=0.001386
! Inverting map 
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213676Jy  sigma=0.001386
! Fit after  self-cal, rms=0.214461Jy  sigma=0.001385
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.459 mas, bmaj=3.948 mas, bpa=1.374 degrees
! Estimated noise=415.411 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00307239 Jy
! Component: 100  -  total flux cleaned = 0.00554941 Jy
! Component: 150  -  total flux cleaned = 0.00721563 Jy
! Component: 200  -  total flux cleaned = 0.00841578 Jy
! Total flux subtracted in 200 components = 0.00841578 Jy
! Clean residual min=-0.003185 max=0.003316 Jy/beam
! Clean residual mean=0.000396 rms=0.000767 Jy/beam
! Combined flux in latest and established models = 0.987869 Jy
selfcal
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 314 components and 0.987869 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214376Jy  sigma=0.001384
! Fit after  self-cal, rms=0.214475Jy  sigma=0.001384
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (10.5, 25.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00337028 Jy
! Component: 100  -  total flux cleaned = 0.00476744 Jy
! Component: 150  -  total flux cleaned = 0.00577424 Jy
! Component: 200  -  total flux cleaned = 0.00670864 Jy
! Total flux subtracted in 200 components = 0.00670864 Jy
! Clean residual min=-0.003221 max=0.002973 Jy/beam
! Clean residual mean=0.000307 rms=0.000722 Jy/beam
! Combined flux in latest and established models = 0.994578 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 334 components and 0.994577 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214399Jy  sigma=0.001384
! Fit after  self-cal, rms=0.214383Jy  sigma=0.001384
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214383Jy  sigma=0.001384
! Fit after  self-cal, rms=0.215215Jy  sigma=0.001383
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.211 mas, bmaj=8.557 mas, bpa=81.41 degrees
! Estimated noise=591.559 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00528255 Jy
! Component: 100  -  total flux cleaned = 0.00903554 Jy
! Component: 150  -  total flux cleaned = 0.0119993 Jy
! Component: 200  -  total flux cleaned = 0.0143989 Jy
! Total flux subtracted in 200 components = 0.0143989 Jy
! Clean residual min=-0.002694 max=0.004262 Jy/beam
! Clean residual mean=0.000600 rms=0.001105 Jy/beam
! Combined flux in latest and established models = 1.00898 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 359 components and 1.00898 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215181Jy  sigma=0.001383
! Fit after  self-cal, rms=0.215205Jy  sigma=0.001383
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00234878 Jy
! Component: 100  -  total flux cleaned = 0.00390906 Jy
! Component: 150  -  total flux cleaned = 0.00467156 Jy
! Component: 200  -  total flux cleaned = 0.00507523 Jy
! Total flux subtracted in 200 components = 0.00507523 Jy
! Clean residual min=-0.002875 max=0.003916 Jy/beam
! Clean residual mean=0.000389 rms=0.001076 Jy/beam
! Combined flux in latest and established models = 1.01405 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 368 components and 1.01405 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215205Jy  sigma=0.001383
! Fit after  self-cal, rms=0.215201Jy  sigma=0.001383
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.46 mas, bmaj=3.949 mas, bpa=1.363 degrees
! Estimated noise=416.04 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.46 x 3.949 at 1.363 degrees (North through East)
! Clean map  min=-0.0028673  max=0.54831 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  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
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215201Jy  sigma=0.001383
! Fit after  self-cal, rms=0.407458Jy  sigma=0.001258
! Inverting map and beam 
! Estimated beam: bmin=2.461 mas, bmaj=3.946 mas, bpa=1.37 degrees
! Estimated noise=416.208 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00144297 Jy
! Component: 100  -  total flux cleaned = 0.00145427 Jy
! Component: 150  -  total flux cleaned = 0.00131505 Jy
! Component: 200  -  total flux cleaned = 0.00125215 Jy
! Total flux subtracted in 200 components = 0.00125215 Jy
! Clean residual min=-0.002179 max=0.002597 Jy/beam
! Clean residual mean=0.000174 rms=0.000604 Jy/beam
! Combined flux in latest and established models = 1.0153 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 384 components and 1.0153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407433Jy  sigma=0.001257
! Fit after  self-cal, rms=0.407431Jy  sigma=0.001257
! Inverting map 
! Added new window around map position (-12, 48.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00218012 Jy
! Component: 100  -  total flux cleaned = 0.00244144 Jy
! Component: 150  -  total flux cleaned = 0.00262092 Jy
! Component: 200  -  total flux cleaned = 0.0027319 Jy
! Total flux subtracted in 200 components = 0.0027319 Jy
! Clean residual min=-0.002168 max=0.002328 Jy/beam
! Clean residual mean=0.000133 rms=0.000580 Jy/beam
! Combined flux in latest and established models = 1.01804 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 397 components and 1.01804 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407414Jy  sigma=0.001257
! Fit after  self-cal, rms=0.407408Jy  sigma=0.001257
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407408Jy  sigma=0.001257
! Fit after  self-cal, rms=0.643109Jy  sigma=0.001257
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 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.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.071 mas, bmaj=3.338 mas, bpa=2.998 degrees
! Estimated noise=789.889 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.414674 Jy
! Component: 100  -  total flux cleaned = 0.524458 Jy
! Component: 150  -  total flux cleaned = 0.594305 Jy
! Component: 200  -  total flux cleaned = 0.646909 Jy
! Total flux subtracted in 200 components = 0.646909 Jy
! Clean residual min=-0.008452 max=0.030912 Jy/beam
! Clean residual mean=0.000536 rms=0.003685 Jy/beam
! Combined flux in latest and established models = 0.646909 Jy
uvw 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.
flux_cutoff = imstat(rms) * dynam
! Adding 34 model components to the UV plane model.
! The established model now contains 34 components and 0.64691 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.461 mas, bmaj=3.946 mas, bpa=1.332 degrees
! Estimated noise=416.559 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0779754 Jy
! Component: 100  -  total flux cleaned = 0.130729 Jy
! Component: 150  -  total flux cleaned = 0.169106 Jy
! Component: 200  -  total flux cleaned = 0.197907 Jy
! Total flux subtracted in 200 components = 0.197907 Jy
! Clean residual min=-0.003297 max=0.016773 Jy/beam
! Clean residual mean=0.002601 rms=0.002663 Jy/beam
! Combined flux in latest and established models = 0.844816 Jy
! Adding 89 model components to the UV plane model.
! The established model now contains 107 components and 0.844816 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0223816 Jy
! Component: 100  -  total flux cleaned = 0.0402339 Jy
! Component: 150  -  total flux cleaned = 0.0546417 Jy
! Component: 200  -  total flux cleaned = 0.0665145 Jy
! Total flux subtracted in 200 components = 0.0665145 Jy
! Clean residual min=-0.002055 max=0.007879 Jy/beam
! Clean residual mean=0.001663 rms=0.001406 Jy/beam
! Combined flux in latest and established models = 0.911331 Jy
! Adding 92 model components to the UV plane model.
! The established model now contains 179 components and 0.911331 Jy
! Inverting map 
! Added new window around map position (-2.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0100266 Jy
! Component: 100  -  total flux cleaned = 0.0185146 Jy
! Component: 150  -  total flux cleaned = 0.0258484 Jy
! Component: 200  -  total flux cleaned = 0.0323571 Jy
! Total flux subtracted in 200 components = 0.0323571 Jy
! Clean residual min=-0.001751 max=0.004574 Jy/beam
! Clean residual mean=0.001209 rms=0.000995 Jy/beam
! Combined flux in latest and established models = 0.943688 Jy
! Adding 88 model components to the UV plane model.
! The established model now contains 240 components and 0.943688 Jy
! Inverting map 
! Added new window around map position (-9, 28.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00595434 Jy
! Component: 100  -  total flux cleaned = 0.0113704 Jy
! Component: 150  -  total flux cleaned = 0.0163437 Jy
! Component: 200  -  total flux cleaned = 0.0209248 Jy
! Total flux subtracted in 200 components = 0.0209248 Jy
! Clean residual min=-0.001852 max=0.003516 Jy/beam
! Clean residual mean=0.000916 rms=0.000801 Jy/beam
! Combined flux in latest and established models = 0.964613 Jy
! Adding 86 model components to the UV plane model.
! The established model now contains 289 components and 0.964613 Jy
! Inverting map 
! Added new window around map position (-2, 46).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00433688 Jy
! Component: 100  -  total flux cleaned = 0.00829161 Jy
! Component: 150  -  total flux cleaned = 0.0119597 Jy
! Component: 200  -  total flux cleaned = 0.01537 Jy
! Total flux subtracted in 200 components = 0.01537 Jy
! Clean residual min=-0.001768 max=0.002925 Jy/beam
! Clean residual mean=0.000700 rms=0.000680 Jy/beam
! Combined flux in latest and established models = 0.979983 Jy
! Adding 88 model components to the UV plane model.
! The established model now contains 327 components and 0.979983 Jy
! Inverting map 
! Added new window around map position (3.5, 30.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00336091 Jy
! Component: 100  -  total flux cleaned = 0.00636038 Jy
! Component: 150  -  total flux cleaned = 0.00915532 Jy
! Component: 200  -  total flux cleaned = 0.0117643 Jy
! Total flux subtracted in 200 components = 0.0117643 Jy
! Clean residual min=-0.001766 max=0.002502 Jy/beam
! Clean residual mean=0.000536 rms=0.000598 Jy/beam
! Combined flux in latest and established models = 0.991747 Jy
! Adding 96 model components to the UV plane model.
! The established model now contains 367 components and 0.991747 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.211 mas, bmaj=8.554 mas, bpa=82.7 degrees
! Estimated noise=592.603 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00622441 Jy
! Component: 100  -  total flux cleaned = 0.0111813 Jy
! Component: 150  -  total flux cleaned = 0.0152699 Jy
! Component: 200  -  total flux cleaned = 0.0186889 Jy
! Total flux subtracted in 200 components = 0.0186889 Jy
! Clean residual min=-0.001835 max=0.002935 Jy/beam
! Clean residual mean=0.000836 rms=0.000815 Jy/beam
! Combined flux in latest and established models = 1.01044 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00288053 Jy
! Component: 100  -  total flux cleaned = 0.00532742 Jy
! Component: 150  -  total flux cleaned = 0.00741353 Jy
! Component: 200  -  total flux cleaned = 0.00919469 Jy
! Total flux subtracted in 200 components = 0.00919469 Jy
! Clean residual min=-0.002084 max=0.002626 Jy/beam
! Clean residual mean=0.000444 rms=0.000711 Jy/beam
! Combined flux in latest and established models = 1.01963 Jy
! Adding 146 model components to the UV plane model.
! The established model now contains 490 components and 1.01963 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.461 mas, bmaj=3.946 mas, bpa=1.332 degrees
! Estimated noise=416.559 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00142284 Jy
! Component: 100  -  total flux cleaned = 0.00260786 Jy
! Component: 150  -  total flux cleaned = 0.00340722 Jy
! Component: 200  -  total flux cleaned = 0.00398505 Jy
! Total flux subtracted in 200 components = 0.00398505 Jy
! Clean residual min=-0.002208 max=0.002150 Jy/beam
! Clean residual mean=0.000088 rms=0.000488 Jy/beam
! Combined flux in latest and established models = 1.02362 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 510 components and 1.02362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.643053Jy  sigma=0.001255
! Fit after  self-cal, rms=0.643058Jy  sigma=0.001255
wmodel J1159+2914_S_2001_07_05_pus_map.mod
! Writing 510 model components to file: J1159+2914_S_2001_07_05_pus_map.mod
wobs J1159+2914_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1159+2914_S_2001_07_05_pus_uvs.fits
wwins J1159+2914_S_2001_07_05_pus_map.win
! wwins: Wrote 15 windows to J1159+2914_S_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000144954 Jy
! Component: 100  -  total flux cleaned = 0.000388035 Jy
! Component: 150  -  total flux cleaned = 0.000520419 Jy
! Component: 200  -  total flux cleaned = 0.000677883 Jy
! Component: 250  -  total flux cleaned = 0.000799311 Jy
! Component: 300  -  total flux cleaned = 0.00100545 Jy
! Component: 350  -  total flux cleaned = 0.00109126 Jy
! Component: 400  -  total flux cleaned = 0.00120397 Jy
! Component: 450  -  total flux cleaned = 0.00125943 Jy
! Component: 500  -  total flux cleaned = 0.001314 Jy
! Component: 550  -  total flux cleaned = 0.00139449 Jy
! Component: 600  -  total flux cleaned = 0.00144701 Jy
! Component: 650  -  total flux cleaned = 0.0014989 Jy
! Component: 700  -  total flux cleaned = 0.00152444 Jy
! Component: 750  -  total flux cleaned = 0.00154994 Jy
! Component: 800  -  total flux cleaned = 0.00165019 Jy
! Component: 850  -  total flux cleaned = 0.0017241 Jy
! Component: 900  -  total flux cleaned = 0.0018216 Jy
! Component: 950  -  total flux cleaned = 0.0018939 Jy
! Component: 1000  -  total flux cleaned = 0.00196559 Jy
! Component: 1050  -  total flux cleaned = 0.0020835 Jy
! Component: 1100  -  total flux cleaned = 0.00215355 Jy
! Component: 1150  -  total flux cleaned = 0.00226908 Jy
! Component: 1200  -  total flux cleaned = 0.00236065 Jy
! Component: 1250  -  total flux cleaned = 0.00247407 Jy
! Component: 1300  -  total flux cleaned = 0.002564 Jy
! Component: 1350  -  total flux cleaned = 0.00269754 Jy
! Component: 1400  -  total flux cleaned = 0.00278589 Jy
! Component: 1450  -  total flux cleaned = 0.00285163 Jy
! Component: 1500  -  total flux cleaned = 0.00296046 Jy
! Component: 1550  -  total flux cleaned = 0.00311129 Jy
! Component: 1600  -  total flux cleaned = 0.00315414 Jy
! Component: 1650  -  total flux cleaned = 0.00328157 Jy
! Component: 1700  -  total flux cleaned = 0.00338679 Jy
! Component: 1750  -  total flux cleaned = 0.00344938 Jy
! Component: 1800  -  total flux cleaned = 0.00353233 Jy
! Component: 1850  -  total flux cleaned = 0.00363521 Jy
! Component: 1900  -  total flux cleaned = 0.0037167 Jy
! Component: 1950  -  total flux cleaned = 0.00375734 Jy
! Component: 2000  -  total flux cleaned = 0.00385799 Jy
! Total flux subtracted in 2048 components = 0.00389801 Jy
! Clean residual min=-0.001203 max=0.001150 Jy/beam
! Clean residual mean=0.000054 rms=0.000377 Jy/beam
! Combined flux in latest and established models = 1.02751 Jy
keep
! Adding 149 model components to the UV plane model.
! The established model now contains 659 components and 1.02751 Jy
wmap "J1159+2914_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.461 x 3.946 at 1.332 degrees (North through East)
! Clean map  min=-0.0018693  max=0.54819 Jy/beam
! Writing clean map to FITS file: J1159+2914_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.548188 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000376053 
device "J1159+2914_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1159+2914_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.205798 0.205798 0.411596 0.823192 1.64638 3.29277 6.58554 13.1711 26.3422 52.6843
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.548 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.461 x 3.946 at 1.332 degrees (North through East)
! Clean map  min=-0.0018693  max=0.54819 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1159+2914_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1159+2914_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1159+2914_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 01:15:05 2007