! Started logfile: J2011-0644_X_1997_01_11_pus_uvs.log on Tue Feb 14 15:33:16 2006
obs J2011-0644_X_1997_01_11_pus_uva.fits
! Reading UV FITS file: J2011-0644_X_1997_01_11_pus_uva.fits
! AN table 1: 269 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.618505 visibilities/baseline/integration-bin.
! Found source: J2011-0644
! 
! 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.15049e+09        4e+06          1        4e+06
!  02        2  8.23236e+09        4e+06          1        4e+06
!  03        3  8.41236e+09        4e+06          1        4e+06
!  04        4  8.55236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 465 lines of history.
! 
! Reading 29948 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
float field_size
field_size = 512
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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.200x0.200 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 569 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 569 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 569 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 569 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.798670Jy  sigma=0.005755
! Fit after  self-cal, rms=0.753200Jy  sigma=0.005445
! 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=0.794 mas, bmaj=1.861 mas, bpa=0.3102 degrees
! Estimated noise=986.241 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.194447 Jy
! Component: 100  -  total flux cleaned = 0.277892 Jy
! Total flux subtracted in 100 components = 0.277892 Jy
! Clean residual min=-0.021384 max=0.046481 Jy/beam
! Clean residual mean=0.000039 rms=0.006294 Jy/beam
! Combined flux in latest and established models = 0.277892 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 23 components and 0.277892 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274238Jy  sigma=0.001900
! Fit after  self-cal, rms=0.273733Jy  sigma=0.001896
! Inverting map 
! Added new window around map position (-0.2, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0561769 Jy
! Component: 100  -  total flux cleaned = 0.0936734 Jy
! Total flux subtracted in 100 components = 0.0936734 Jy
! Clean residual min=-0.016200 max=0.033687 Jy/beam
! Clean residual mean=0.000009 rms=0.004296 Jy/beam
! Combined flux in latest and established models = 0.371565 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 39 components and 0.371565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251297Jy  sigma=0.001718
! Fit after  self-cal, rms=0.250887Jy  sigma=0.001716
! Inverting map 
! Added new window around map position (1.2, -2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0331131 Jy
! Component: 100  -  total flux cleaned = 0.0555351 Jy
! Total flux subtracted in 100 components = 0.0555351 Jy
! Clean residual min=-0.011833 max=0.015917 Jy/beam
! Clean residual mean=0.000002 rms=0.003339 Jy/beam
! Combined flux in latest and established models = 0.4271 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 59 components and 0.4271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242898Jy  sigma=0.001651
! Fit after  self-cal, rms=0.242606Jy  sigma=0.001649
! 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=0.994 mas, bmaj=2.238 mas, bpa=0.3836 degrees
! Estimated noise=567.14 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.0349601 Jy
! Component: 100  -  total flux cleaned = 0.0570705 Jy
! Component: 150  -  total flux cleaned = 0.0721138 Jy
! Component: 200  -  total flux cleaned = 0.082639 Jy
! Total flux subtracted in 200 components = 0.082639 Jy
! Clean residual min=-0.010132 max=0.017552 Jy/beam
! Clean residual mean=-0.000087 rms=0.003392 Jy/beam
! Combined flux in latest and established models = 0.509739 Jy
! Performing phase self-cal
! Adding 70 model components to the UV plane model.
! The established model now contains 111 components and 0.509739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237179Jy  sigma=0.001601
! Fit after  self-cal, rms=0.236933Jy  sigma=0.001599
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     HN        1.00*    KP        0.91     
!   LA        0.90     MK        1.01     NL        1.12     OV        0.98     
!   PT        1.08     SC        0.96     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.97     HN        1.00*    KP        0.91     
!   LA        0.91     MK        0.97     NL        1.13     OV        0.99     
!   PT        1.10     SC        1.07     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.01     HN        1.00*    KP        0.93     
!   LA        0.91     MK        1.01     NL        1.15     OV        0.95     
!   PT        1.10     SC        1.18     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     HN        1.00*    KP        0.92     
!   LA        0.94     MK        1.06     NL        1.19     OV        0.98     
!   PT        1.11     SC        1.01     
! 
! 
! Fit before self-cal, rms=0.236933Jy  sigma=0.001599
! Fit after  self-cal, rms=0.240921Jy  sigma=0.001578
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.01 mas, bmaj=2.277 mas, bpa=0.2828 degrees
! Estimated noise=567.402 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 (14.8, -21.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0141715 Jy
! Component: 100  -  total flux cleaned = 0.0221102 Jy
! Component: 150  -  total flux cleaned = 0.0257802 Jy
! Component: 200  -  total flux cleaned = 0.027816 Jy
! Total flux subtracted in 200 components = 0.027816 Jy
! Clean residual min=-0.005463 max=0.006143 Jy/beam
! Clean residual mean=-0.000055 rms=0.001686 Jy/beam
! Combined flux in latest and established models = 0.537555 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 137 components and 0.537555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240017Jy  sigma=0.001571
! Fit after  self-cal, rms=0.240392Jy  sigma=0.001569
! 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.240392Jy  sigma=0.001569
! Fit after  self-cal, rms=0.240658Jy  sigma=0.001566
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.005 mas, bmaj=2.273 mas, bpa=0.3796 degrees
! Estimated noise=566.626 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00595558 Jy
! Component: 100  -  total flux cleaned = 0.0089593 Jy
! Component: 150  -  total flux cleaned = 0.00975112 Jy
! Component: 200  -  total flux cleaned = 0.0103112 Jy
! Total flux subtracted in 200 components = 0.0103112 Jy
! Clean residual min=-0.004517 max=0.005766 Jy/beam
! Clean residual mean=-0.000053 rms=0.001325 Jy/beam
! Combined flux in latest and established models = 0.547866 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 147 components and 0.547866 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240457Jy  sigma=0.001564
! Fit after  self-cal, rms=0.240493Jy  sigma=0.001564
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.2, -9.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00415422 Jy
! Component: 100  -  total flux cleaned = 0.00654708 Jy
! Component: 150  -  total flux cleaned = 0.00725747 Jy
! Component: 200  -  total flux cleaned = 0.00778118 Jy
! Total flux subtracted in 200 components = 0.00778118 Jy
! Clean residual min=-0.004052 max=0.004629 Jy/beam
! Clean residual mean=-0.000058 rms=0.001218 Jy/beam
! Combined flux in latest and established models = 0.555647 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 164 components and 0.555647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240330Jy  sigma=0.001563
! Fit after  self-cal, rms=0.240317Jy  sigma=0.001563
! 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.240317Jy  sigma=0.001563
! Fit after  self-cal, rms=0.240293Jy  sigma=0.001562
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.002 mas, bmaj=2.269 mas, bpa=0.5249 degrees
! Estimated noise=565.805 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00339108 Jy
! Component: 100  -  total flux cleaned = 0.005302 Jy
! Component: 150  -  total flux cleaned = 0.00591605 Jy
! Component: 200  -  total flux cleaned = 0.00619368 Jy
! Total flux subtracted in 200 components = 0.00619368 Jy
! Clean residual min=-0.003787 max=0.004494 Jy/beam
! Clean residual mean=-0.000056 rms=0.001136 Jy/beam
! Combined flux in latest and established models = 0.561841 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 172 components and 0.561841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240192Jy  sigma=0.001561
! Fit after  self-cal, rms=0.240201Jy  sigma=0.001561
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.00149454 Jy
! Component: 100  -  total flux cleaned = 0.00167222 Jy
! Component: 150  -  total flux cleaned = 0.00192056 Jy
! Component: 200  -  total flux cleaned = 0.00199823 Jy
! Total flux subtracted in 200 components = 0.00199823 Jy
! Clean residual min=-0.003680 max=0.004415 Jy/beam
! Clean residual mean=-0.000057 rms=0.001101 Jy/beam
! Combined flux in latest and established models = 0.563839 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 183 components and 0.56384 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240144Jy  sigma=0.001561
! Fit after  self-cal, rms=0.240141Jy  sigma=0.001561
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.240141Jy  sigma=0.001561
! Fit after  self-cal, rms=0.240219Jy  sigma=0.001561
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.509 mas, bmaj=3.898 mas, bpa=8.428 degrees
! Estimated noise=693.292 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00393451 Jy
! Component: 100  -  total flux cleaned = 0.0051546 Jy
! Component: 150  -  total flux cleaned = 0.00555845 Jy
! Component: 200  -  total flux cleaned = 0.00585386 Jy
! Total flux subtracted in 200 components = 0.00585386 Jy
! Clean residual min=-0.004266 max=0.004682 Jy/beam
! Clean residual mean=-0.000099 rms=0.001350 Jy/beam
! Combined flux in latest and established models = 0.569693 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 188 components and 0.569693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240173Jy  sigma=0.001560
! Fit after  self-cal, rms=0.240181Jy  sigma=0.001560
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.000709673 Jy
! Component: 100  -  total flux cleaned = 0.000918465 Jy
! Component: 150  -  total flux cleaned = 0.00104822 Jy
! Component: 200  -  total flux cleaned = 0.00116696 Jy
! Total flux subtracted in 200 components = 0.00116696 Jy
! Clean residual min=-0.004449 max=0.004492 Jy/beam
! Clean residual mean=-0.000101 rms=0.001298 Jy/beam
! Combined flux in latest and established models = 0.57086 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 191 components and 0.57086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240160Jy  sigma=0.001560
! Fit after  self-cal, rms=0.240159Jy  sigma=0.001560
! 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=0.999 mas, bmaj=2.266 mas, bpa=0.6516 degrees
! Estimated noise=565.223 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.999 x 2.266 at 0.6516 degrees (North through East)
! Clean map  min=-0.0053897  max=0.24449 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
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=0.7965 mas, bmaj=1.879 mas, bpa=0.7345 degrees
! Estimated noise=993.497 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.193659 Jy
! Component: 100  -  total flux cleaned = 0.283312 Jy
! Component: 150  -  total flux cleaned = 0.342395 Jy
! Component: 200  -  total flux cleaned = 0.383303 Jy
! Total flux subtracted in 200 components = 0.383303 Jy
! Clean residual min=-0.015617 max=0.022907 Jy/beam
! Clean residual mean=0.000011 rms=0.003945 Jy/beam
! Combined flux in latest and established models = 0.383303 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 38 model components to the UV plane model.
! The established model now contains 38 components and 0.383303 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.999 mas, bmaj=2.266 mas, bpa=0.6516 degrees
! Estimated noise=565.223 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.050412 Jy
! Component: 100  -  total flux cleaned = 0.0821223 Jy
! Component: 150  -  total flux cleaned = 0.104973 Jy
! Component: 200  -  total flux cleaned = 0.121783 Jy
! Total flux subtracted in 200 components = 0.121783 Jy
! Clean residual min=-0.007022 max=0.011078 Jy/beam
! Clean residual mean=-0.000036 rms=0.002321 Jy/beam
! Combined flux in latest and established models = 0.505086 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 90 components and 0.505086 Jy
! Inverting map 
! Added new window around map position (2.4, -1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0129965 Jy
! Component: 100  -  total flux cleaned = 0.0230222 Jy
! Component: 150  -  total flux cleaned = 0.0307596 Jy
! Component: 200  -  total flux cleaned = 0.0364501 Jy
! Total flux subtracted in 200 components = 0.0364501 Jy
! Clean residual min=-0.004881 max=0.005351 Jy/beam
! Clean residual mean=-0.000046 rms=0.001423 Jy/beam
! Combined flux in latest and established models = 0.541536 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 138 components and 0.541536 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.509 mas, bmaj=3.898 mas, bpa=8.428 degrees
! Estimated noise=693.292 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00836137 Jy
! Component: 100  -  total flux cleaned = 0.0143943 Jy
! Component: 150  -  total flux cleaned = 0.0182723 Jy
! Component: 200  -  total flux cleaned = 0.0213327 Jy
! Total flux subtracted in 200 components = 0.0213327 Jy
! Clean residual min=-0.004877 max=0.004519 Jy/beam
! Clean residual mean=-0.000095 rms=0.001404 Jy/beam
! Combined flux in latest and established models = 0.562869 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.00234543 Jy
! Component: 100  -  total flux cleaned = 0.00404817 Jy
! Component: 150  -  total flux cleaned = 0.00503298 Jy
! Component: 200  -  total flux cleaned = 0.00584439 Jy
! Total flux subtracted in 200 components = 0.00584439 Jy
! Clean residual min=-0.004435 max=0.003916 Jy/beam
! Clean residual mean=-0.000096 rms=0.001281 Jy/beam
! Combined flux in latest and established models = 0.568713 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 202 components and 0.568713 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.999 mas, bmaj=2.266 mas, bpa=0.6516 degrees
! Estimated noise=565.223 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00178169 Jy
! Component: 100  -  total flux cleaned = 0.00289676 Jy
! Component: 150  -  total flux cleaned = 0.00350718 Jy
! Component: 200  -  total flux cleaned = 0.0038894 Jy
! Total flux subtracted in 200 components = 0.0038894 Jy
! Clean residual min=-0.003648 max=0.003595 Jy/beam
! Clean residual mean=-0.000053 rms=0.001009 Jy/beam
! Combined flux in latest and established models = 0.572602 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 221 components and 0.572602 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240182Jy  sigma=0.001560
! Fit after  self-cal, rms=0.240078Jy  sigma=0.001559
wmodel J2011-0644_X_1997_01_11_pus_map.mod
! Writing 221 model components to file: J2011-0644_X_1997_01_11_pus_map.mod
wobs J2011-0644_X_1997_01_11_pus_uvs.fits
! Writing UV FITS file: J2011-0644_X_1997_01_11_pus_uvs.fits
wwins J2011-0644_X_1997_01_11_pus_map.win
! wwins: Wrote 6 windows to J2011-0644_X_1997_01_11_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.000770496 Jy
! Component: 100  -  total flux cleaned = -0.00107965 Jy
! Component: 150  -  total flux cleaned = -0.00102284 Jy
! Component: 200  -  total flux cleaned = -0.000748483 Jy
! Component: 250  -  total flux cleaned = -0.000908894 Jy
! Component: 300  -  total flux cleaned = -0.000960937 Jy
! Component: 350  -  total flux cleaned = -0.000961591 Jy
! Component: 400  -  total flux cleaned = -0.00101065 Jy
! Component: 450  -  total flux cleaned = -0.000961582 Jy
! Component: 500  -  total flux cleaned = -0.00081963 Jy
! Component: 550  -  total flux cleaned = -0.000727363 Jy
! Component: 600  -  total flux cleaned = -0.000636588 Jy
! Component: 650  -  total flux cleaned = -0.000637913 Jy
! Component: 700  -  total flux cleaned = -0.000551076 Jy
! Component: 750  -  total flux cleaned = -0.000550888 Jy
! Component: 800  -  total flux cleaned = -0.000592601 Jy
! Component: 850  -  total flux cleaned = -0.000591425 Jy
! Component: 900  -  total flux cleaned = -0.000631814 Jy
! Component: 950  -  total flux cleaned = -0.000632099 Jy
! Component: 1000  -  total flux cleaned = -0.000631631 Jy
! Component: 1050  -  total flux cleaned = -0.000749359 Jy
! Component: 1100  -  total flux cleaned = -0.0007109 Jy
! Component: 1150  -  total flux cleaned = -0.000864853 Jy
! Component: 1200  -  total flux cleaned = -0.00101568 Jy
! Component: 1250  -  total flux cleaned = -0.00101539 Jy
! Component: 1300  -  total flux cleaned = -0.00108925 Jy
! Component: 1350  -  total flux cleaned = -0.0013076 Jy
! Component: 1400  -  total flux cleaned = -0.00134268 Jy
! Component: 1450  -  total flux cleaned = -0.00141327 Jy
! Component: 1500  -  total flux cleaned = -0.00155372 Jy
! Component: 1550  -  total flux cleaned = -0.00162248 Jy
! Component: 1600  -  total flux cleaned = -0.00155368 Jy
! Component: 1650  -  total flux cleaned = -0.00168969 Jy
! Component: 1700  -  total flux cleaned = -0.00165598 Jy
! Component: 1750  -  total flux cleaned = -0.0016559 Jy
! Component: 1800  -  total flux cleaned = -0.00178704 Jy
! Component: 1850  -  total flux cleaned = -0.00175473 Jy
! Component: 1900  -  total flux cleaned = -0.00172264 Jy
! Component: 1950  -  total flux cleaned = -0.00175465 Jy
! Component: 2000  -  total flux cleaned = -0.00191318 Jy
! Total flux subtracted in 2048 components = -0.00191261 Jy
! Clean residual min=-0.002064 max=0.001559 Jy/beam
! Clean residual mean=-0.000036 rms=0.000623 Jy/beam
! Combined flux in latest and established models = 0.57069 Jy
keep
! Adding 147 model components to the UV plane model.
! The established model now contains 368 components and 0.57069 Jy
wmap "J2011-0644_X_1997_01_11_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.999 x 2.266 at 0.6516 degrees (North through East)
! Clean map  min=-0.0039951  max=0.24304 Jy/beam
! Writing clean map to FITS file: J2011-0644_X_1997_01_11_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.243042 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000619198 
device "J2011-0644_X_1997_01_11_pus\_map.eps/VPS"
! Attempting to open device: 'J2011-0644_X_1997_01_11_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.76431 0.76431 1.52862 3.05724 6.11448 12.229 24.4579 48.9158 97.8316
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.243 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.999 x 2.266 at 0.6516 degrees (North through East)
! Clean map  min=-0.0039951  max=0.24304 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2011-0644_X_1997_01_11_pus\_map.gif/vgif"
! Attempting to open device: 'J2011-0644_X_1997_01_11_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2011-0644_X_1997_01_11_pus_uvs.log closed on Tue Feb 14 15:34:19 2006