! Started logfile: J1658+0741_X_1997_01_10_pus_uvs.log on Sat Jan 28 15:11:40 2006
obs J1658+0741_X_1997_01_10_pus_uva.fits
! Reading UV FITS file: J1658+0741_X_1997_01_10_pus_uva.fits
! AN table 1: 270 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.595802 visibilities/baseline/integration-bin.
! Found source: J1658+0741
! 
! 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        8e+06          1        8e+06
!  02        2  8.23424e+09        8e+06          1        8e+06
!  03        3  8.41424e+09        8e+06          1        8e+06
!  04        4  8.55424e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 493 lines of history.
! 
! Reading 28956 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 = 256
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 = 256x256 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 605 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 606 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 605 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 634 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.589376Jy  sigma=0.003794
! Fit after  self-cal, rms=0.449133Jy  sigma=0.002861
! 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.8337 mas, bmaj=1.575 mas, bpa=-2.502 degrees
! Estimated noise=1148.01 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.913505 Jy
! Component: 100  -  total flux cleaned = 1.11271 Jy
! Total flux subtracted in 100 components = 1.11271 Jy
! Clean residual min=-0.078027 max=0.132572 Jy/beam
! Clean residual mean=-0.001012 rms=0.026631 Jy/beam
! Combined flux in latest and established models = 1.11271 Jy
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.11271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434327Jy  sigma=0.002633
! Fit after  self-cal, rms=0.434337Jy  sigma=0.002633
! 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=1.045 mas, bmaj=1.887 mas, bpa=0.0338 degrees
! Estimated noise=665.165 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.00644355 Jy
! Component: 100  -  total flux cleaned = -0.0041763 Jy
! Component: 150  -  total flux cleaned = -0.0121344 Jy
! Component: 200  -  total flux cleaned = -0.0162473 Jy
! Total flux subtracted in 200 components = -0.0162473 Jy
! Clean residual min=-0.081007 max=0.078676 Jy/beam
! Clean residual mean=-0.001123 rms=0.021977 Jy/beam
! Combined flux in latest and established models = 1.09646 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.09646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.430080Jy  sigma=0.002570
! Fit after  self-cal, rms=0.430033Jy  sigma=0.002569
! 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.90     FD        0.85     HN        1.35     KP        1.00*    
!   LA        0.90     MK        0.87     NL        1.11     OV        0.90     
!   PT        1.37     SC        0.99     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        0.85     HN        1.33     KP        1.00*    
!   LA        0.88     MK        0.85     NL        1.10     OV        0.92     
!   PT        1.37     SC        1.05     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        0.87     HN        1.40     KP        1.00*    
!   LA        0.88     MK        0.86     NL        1.14     OV        0.89     
!   PT        1.38     SC        1.09     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        0.86     HN        1.42     KP        1.00*    
!   LA        0.89     MK        0.86     NL        1.15     OV        0.89     
!   PT        1.38     SC        1.08     
! 
! 
! Fit before self-cal, rms=0.430033Jy  sigma=0.002569
! Fit after  self-cal, rms=0.365820Jy  sigma=0.001953
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.034 mas, bmaj=1.865 mas, bpa=-1.416 degrees
! Estimated noise=653.925 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 (-5.6, 5.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0761605 Jy
! Component: 100  -  total flux cleaned = 0.0939529 Jy
! Component: 150  -  total flux cleaned = 0.100431 Jy
! Component: 200  -  total flux cleaned = 0.10731 Jy
! Total flux subtracted in 200 components = 0.10731 Jy
! Clean residual min=-0.036071 max=0.035709 Jy/beam
! Clean residual mean=0.000678 rms=0.011973 Jy/beam
! Combined flux in latest and established models = 1.20377 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 41 components and 1.20377 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350612Jy  sigma=0.001823
! Fit after  self-cal, rms=0.351273Jy  sigma=0.001814
! 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.351273Jy  sigma=0.001814
! Fit after  self-cal, rms=0.755641Jy  sigma=0.001171
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.03 mas, bmaj=1.869 mas, bpa=-1.009 degrees
! Estimated noise=653.149 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0163656 Jy
! Component: 100  -  total flux cleaned = 0.0185074 Jy
! Component: 150  -  total flux cleaned = 0.0204282 Jy
! Component: 200  -  total flux cleaned = 0.0219168 Jy
! Total flux subtracted in 200 components = 0.0219168 Jy
! Clean residual min=-0.007143 max=0.012136 Jy/beam
! Clean residual mean=0.000171 rms=0.002657 Jy/beam
! Combined flux in latest and established models = 1.22569 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 53 components and 1.22569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.755047Jy  sigma=0.001157
! Fit after  self-cal, rms=0.758685Jy  sigma=0.001155
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 (-1.6, 1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.011391 Jy
! Component: 100  -  total flux cleaned = 0.0156147 Jy
! Component: 150  -  total flux cleaned = 0.0173238 Jy
! Component: 200  -  total flux cleaned = 0.0187477 Jy
! Total flux subtracted in 200 components = 0.0187477 Jy
! Clean residual min=-0.006771 max=0.007671 Jy/beam
! Clean residual mean=-0.000046 rms=0.002186 Jy/beam
! Combined flux in latest and established models = 1.24444 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 67 components and 1.24444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.758496Jy  sigma=0.001148
! Fit after  self-cal, rms=0.758580Jy  sigma=0.001148
! 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.758580Jy  sigma=0.001148
! Fit after  self-cal, rms=0.792273Jy  sigma=0.001145
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.029 mas, bmaj=1.867 mas, bpa=-0.9284 degrees
! Estimated noise=653.673 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00737314 Jy
! Component: 100  -  total flux cleaned = 0.0110422 Jy
! Component: 150  -  total flux cleaned = 0.0131637 Jy
! Component: 200  -  total flux cleaned = 0.0148287 Jy
! Total flux subtracted in 200 components = 0.0148287 Jy
! Clean residual min=-0.005332 max=0.006553 Jy/beam
! Clean residual mean=0.000036 rms=0.001823 Jy/beam
! Combined flux in latest and established models = 1.25927 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 80 components and 1.25927 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.792152Jy  sigma=0.001142
! Fit after  self-cal, rms=0.792190Jy  sigma=0.001142
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.00281536 Jy
! Component: 100  -  total flux cleaned = 0.00378347 Jy
! Component: 150  -  total flux cleaned = 0.00410391 Jy
! Component: 200  -  total flux cleaned = 0.00439481 Jy
! Total flux subtracted in 200 components = 0.00439481 Jy
! Clean residual min=-0.005150 max=0.006062 Jy/beam
! Clean residual mean=-0.000012 rms=0.001744 Jy/beam
! Combined flux in latest and established models = 1.26366 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 89 components and 1.26366 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.792158Jy  sigma=0.001141
! Fit after  self-cal, rms=0.792182Jy  sigma=0.001141
! 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.792182Jy  sigma=0.001141
! Fit after  self-cal, rms=0.797886Jy  sigma=0.001140
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.296 mas, bmaj=2.915 mas, bpa=13.33 degrees
! Estimated noise=812.612 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00528647 Jy
! Component: 100  -  total flux cleaned = 0.00857775 Jy
! Component: 150  -  total flux cleaned = 0.0108214 Jy
! Component: 200  -  total flux cleaned = 0.0119924 Jy
! Total flux subtracted in 200 components = 0.0119924 Jy
! Clean residual min=-0.005617 max=0.007080 Jy/beam
! Clean residual mean=-0.000026 rms=0.001945 Jy/beam
! Combined flux in latest and established models = 1.27565 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 107 components and 1.27565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.797858Jy  sigma=0.001140
! Fit after  self-cal, rms=0.797845Jy  sigma=0.001140
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.0011929 Jy
! Component: 100  -  total flux cleaned = 0.00142827 Jy
! Component: 150  -  total flux cleaned = 0.00173724 Jy
! Component: 200  -  total flux cleaned = 0.00196659 Jy
! Total flux subtracted in 200 components = 0.00196659 Jy
! Clean residual min=-0.005610 max=0.006772 Jy/beam
! Clean residual mean=-0.000071 rms=0.001939 Jy/beam
! Combined flux in latest and established models = 1.27762 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 116 components and 1.27762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.797841Jy  sigma=0.001140
! Fit after  self-cal, rms=0.797839Jy  sigma=0.001140
! 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=1.028 mas, bmaj=1.865 mas, bpa=-0.8918 degrees
! Estimated noise=654.1 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.028 x 1.865 at -0.8918 degrees (North through East)
! Clean map  min=-0.0045987  max=1.1529 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.797839Jy  sigma=0.001140
! Fit after  self-cal, rms=2.145643Jy  sigma=0.001037
! Inverting map and beam 
! Estimated beam: bmin=1.027 mas, bmaj=1.863 mas, bpa=-0.8587 degrees
! Estimated noise=655.248 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00337693 Jy
! Component: 100  -  total flux cleaned = 0.00516531 Jy
! Component: 150  -  total flux cleaned = 0.00626477 Jy
! Component: 200  -  total flux cleaned = 0.00675779 Jy
! Total flux subtracted in 200 components = 0.00675779 Jy
! Clean residual min=-0.004652 max=0.005275 Jy/beam
! Clean residual mean=0.000017 rms=0.001539 Jy/beam
! Combined flux in latest and established models = 1.28438 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 125 components and 1.28438 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.145625Jy  sigma=0.001036
! Fit after  self-cal, rms=2.145645Jy  sigma=0.001036
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00104386 Jy
! Component: 100  -  total flux cleaned = 0.00126849 Jy
! Component: 150  -  total flux cleaned = 0.00154693 Jy
! Component: 200  -  total flux cleaned = 0.00167737 Jy
! Total flux subtracted in 200 components = 0.00167737 Jy
! Clean residual min=-0.004597 max=0.005040 Jy/beam
! Clean residual mean=-0.000002 rms=0.001513 Jy/beam
! Combined flux in latest and established models = 1.28605 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 128 components and 1.28605 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.145639Jy  sigma=0.001036
! Fit after  self-cal, rms=2.145636Jy  sigma=0.001036
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.145636Jy  sigma=0.001036
! Fit after  self-cal, rms=2.095209Jy  sigma=0.001036
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.8221 mas, bmaj=1.576 mas, bpa=-3.346 degrees
! Estimated noise=1124.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.894391 Jy
! Component: 100  -  total flux cleaned = 1.09251 Jy
! Component: 150  -  total flux cleaned = 1.16957 Jy
! Component: 200  -  total flux cleaned = 1.21442 Jy
! Total flux subtracted in 200 components = 1.21442 Jy
! Clean residual min=-0.015190 max=0.022572 Jy/beam
! Clean residual mean=0.000268 rms=0.004495 Jy/beam
! Combined flux in latest and established models = 1.21442 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 9 model components to the UV plane model.
! The established model now contains 9 components and 1.21442 Jy
! Inverting map and beam 
! Estimated beam: bmin=1.026 mas, bmaj=1.861 mas, bpa=-0.8238 degrees
! Estimated noise=655.712 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.0304121 Jy
! Component: 100  -  total flux cleaned = 0.0463082 Jy
! Component: 150  -  total flux cleaned = 0.0544511 Jy
! Component: 200  -  total flux cleaned = 0.0600281 Jy
! Total flux subtracted in 200 components = 0.0600281 Jy
! Clean residual min=-0.010617 max=0.007445 Jy/beam
! Clean residual mean=0.000156 rms=0.002461 Jy/beam
! Combined flux in latest and established models = 1.27445 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 25 components and 1.27445 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.292 mas, bmaj=2.911 mas, bpa=13.58 degrees
! Estimated noise=816.58 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0107933 Jy
! Component: 100  -  total flux cleaned = 0.0149455 Jy
! Component: 150  -  total flux cleaned = 0.0174779 Jy
! Component: 200  -  total flux cleaned = 0.0189213 Jy
! Total flux subtracted in 200 components = 0.0189213 Jy
! Clean residual min=-0.006862 max=0.004997 Jy/beam
! Clean residual mean=-0.000054 rms=0.001890 Jy/beam
! Combined flux in latest and established models = 1.29337 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.000704397 Jy
! Component: 100  -  total flux cleaned = 0.00100973 Jy
! Component: 150  -  total flux cleaned = 0.00119445 Jy
! Component: 200  -  total flux cleaned = 0.00144848 Jy
! Total flux subtracted in 200 components = 0.00144848 Jy
! Clean residual min=-0.006125 max=0.005278 Jy/beam
! Clean residual mean=-0.000085 rms=0.001801 Jy/beam
! Combined flux in latest and established models = 1.29482 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 72 components and 1.29482 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=1.026 mas, bmaj=1.861 mas, bpa=-0.8238 degrees
! Estimated noise=655.712 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00104061 Jy
! Component: 100  -  total flux cleaned = 0.00031157 Jy
! Component: 150  -  total flux cleaned = -0.000289395 Jy
! Component: 200  -  total flux cleaned = -0.000817177 Jy
! Total flux subtracted in 200 components = -0.000817177 Jy
! Clean residual min=-0.006549 max=0.006494 Jy/beam
! Clean residual mean=-0.000034 rms=0.001780 Jy/beam
! Combined flux in latest and established models = 1.294 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 84 components and 1.294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.095236Jy  sigma=0.001040
! Fit after  self-cal, rms=2.095380Jy  sigma=0.001040
wmodel J1658+0741_X_1997_01_10_pus_map.mod
! Writing 84 model components to file: J1658+0741_X_1997_01_10_pus_map.mod
wobs J1658+0741_X_1997_01_10_pus_uvs.fits
! Writing UV FITS file: J1658+0741_X_1997_01_10_pus_uvs.fits
wwins J1658+0741_X_1997_01_10_pus_map.win
! wwins: Wrote 3 windows to J1658+0741_X_1997_01_10_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=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000384039 Jy
! Component: 100  -  total flux cleaned = -0.000385424 Jy
! Component: 150  -  total flux cleaned = -0.000670191 Jy
! Component: 200  -  total flux cleaned = -0.000938934 Jy
! Component: 250  -  total flux cleaned = -0.00102517 Jy
! Component: 300  -  total flux cleaned = -0.00094666 Jy
! Component: 350  -  total flux cleaned = -0.000946523 Jy
! Component: 400  -  total flux cleaned = -0.00102223 Jy
! Component: 450  -  total flux cleaned = -0.000947741 Jy
! Component: 500  -  total flux cleaned = -0.00087681 Jy
! Component: 550  -  total flux cleaned = -0.00087713 Jy
! Component: 600  -  total flux cleaned = -0.000742306 Jy
! Component: 650  -  total flux cleaned = -0.000809458 Jy
! Component: 700  -  total flux cleaned = -0.000809346 Jy
! Component: 750  -  total flux cleaned = -0.000809474 Jy
! Component: 800  -  total flux cleaned = -0.000809222 Jy
! Component: 850  -  total flux cleaned = -0.000808882 Jy
! Component: 900  -  total flux cleaned = -0.000750313 Jy
! Component: 950  -  total flux cleaned = -0.000636143 Jy
! Component: 1000  -  total flux cleaned = -0.000580424 Jy
! Total flux subtracted in 1024 components = -0.000525614 Jy
! Clean residual min=-0.003181 max=0.003123 Jy/beam
! Clean residual mean=-0.000009 rms=0.001166 Jy/beam
! Combined flux in latest and established models = 1.29348 Jy
keep
! Adding 66 model components to the UV plane model.
! The established model now contains 150 components and 1.29348 Jy
wmap "J1658+0741_X_1997_01_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.026 x 1.861 at -0.8238 degrees (North through East)
! Clean map  min=-0.0054439  max=1.1484 Jy/beam
! Writing clean map to FITS file: J1658+0741_X_1997_01_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.14845 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00116038 
device "J1658+0741_X_1997_01_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1658+0741_X_1997_01_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.303116 0.303116 0.606233 1.21247 2.42493 4.84986 9.69973 19.3995 38.7989 77.5978
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0034 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.148 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.026 x 1.861 at -0.8238 degrees (North through East)
! Clean map  min=-0.0054439  max=1.1484 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1658+0741_X_1997_01_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1658+0741_X_1997_01_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1658+0741_X_1997_01_10_pus_uvs.log closed on Sat Jan 28 15:12:18 2006