! Started logfile: J2129-1538_S_1997_01_11_pus_uvs.log on Sun Feb  5 19:54:20 2006
obs J2129-1538_S_1997_01_11_pus_uve.fits
! Reading UV FITS file: J2129-1538_S_1997_01_11_pus_uve.fits
! AN table 1: 18 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.77037 visibilities/baseline/integration-bin.
! Found source: J2129-1538
! 
! 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.22049e+09        4e+06          1        4e+06
!  02        2  2.23236e+09        4e+06          1        4e+06
!  03        3  2.29236e+09        4e+06          1        4e+06
!  04        4  2.32236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 610 lines of history.
! 
! Reading 2496 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.5
float 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 36 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 30 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 29 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.307671Jy  sigma=3.485993
! Fit after  self-cal, rms=0.282378Jy  sigma=3.248467
! 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.978 mas, bmaj=8.403 mas, bpa=-2.464 degrees
! Estimated noise=1.89587 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.597869 Jy
! Component: 100  -  total flux cleaned = 0.730491 Jy
! Total flux subtracted in 100 components = 0.730491 Jy
! Clean residual min=-0.027905 max=0.044284 Jy/beam
! Clean residual mean=-0.000057 rms=0.008278 Jy/beam
! Combined flux in latest and established models = 0.730491 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.730491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185802Jy  sigma=1.744319
! Fit after  self-cal, rms=0.185791Jy  sigma=1.743999
! 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=3.686 mas, bmaj=9.772 mas, bpa=-1.424 degrees
! Estimated noise=1.36903 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.039333 Jy
! Component: 100  -  total flux cleaned = 0.0375329 Jy
! Component: 150  -  total flux cleaned = 0.0368521 Jy
! Component: 200  -  total flux cleaned = 0.036244 Jy
! Total flux subtracted in 200 components = 0.036244 Jy
! Clean residual min=-0.019493 max=0.018832 Jy/beam
! Clean residual mean=-0.000141 rms=0.005700 Jy/beam
! Combined flux in latest and established models = 0.766735 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 19 components and 0.766735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171412Jy  sigma=1.637580
! Fit after  self-cal, rms=0.171404Jy  sigma=1.637499
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.04     HN        1.17     KP        0.88     
!   LA        1.00     MK        0.95     NL        0.76     OV        1.07     
!   PT        1.09     SC        0.81     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.11     HN        1.27     KP        0.99     
!   LA        1.09     MK        0.98     NL        0.88     OV        1.01     
!   PT        1.09     SC        0.84     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.02     HN        1.09     KP        0.90     
!   LA        0.82     MK        0.88     NL        0.90     OV        0.90     
!   PT        1.28     SC        1.02     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.07     HN        1.23     KP        0.95     
!   LA        0.88     MK        0.99     NL        0.97     OV        1.02     
!   PT        1.16     SC        0.96     
! 
! 
! Fit before self-cal, rms=0.171404Jy  sigma=1.637499
! Fit after  self-cal, rms=0.113888Jy  sigma=1.062026
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.649 mas, bmaj=9.562 mas, bpa=-0.7545 degrees
! Estimated noise=1.35372 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 (17, -54.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0120924 Jy
! Component: 100  -  total flux cleaned = 0.0167758 Jy
! Component: 150  -  total flux cleaned = 0.0176704 Jy
! Component: 200  -  total flux cleaned = 0.0180604 Jy
! Total flux subtracted in 200 components = 0.0180604 Jy
! Clean residual min=-0.005978 max=0.007647 Jy/beam
! Clean residual mean=0.000619 rms=0.001887 Jy/beam
! Combined flux in latest and established models = 0.784795 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 36 components and 0.784795 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112208Jy  sigma=1.043709
! Fit after  self-cal, rms=0.112178Jy  sigma=1.041647
! 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.112178Jy  sigma=1.041647
! Fit after  self-cal, rms=0.109070Jy  sigma=0.999897
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.645 mas, bmaj=9.56 mas, bpa=-0.6728 degrees
! Estimated noise=1.35736 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00336856 Jy
! Component: 100  -  total flux cleaned = 0.00337769 Jy
! Component: 150  -  total flux cleaned = 0.00327367 Jy
! Component: 200  -  total flux cleaned = 0.00307485 Jy
! Total flux subtracted in 200 components = 0.00307485 Jy
! Clean residual min=-0.006556 max=0.005822 Jy/beam
! Clean residual mean=0.000113 rms=0.001451 Jy/beam
! Combined flux in latest and established models = 0.78787 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 46 components and 0.78787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108773Jy  sigma=0.996599
! Fit after  self-cal, rms=0.108776Jy  sigma=0.996525
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.000178538 Jy
! Component: 100  -  total flux cleaned = -0.000266026 Jy
! Component: 150  -  total flux cleaned = -0.00034791 Jy
! Component: 200  -  total flux cleaned = -0.000426084 Jy
! Total flux subtracted in 200 components = -0.000426084 Jy
! Clean residual min=-0.006433 max=0.005720 Jy/beam
! Clean residual mean=0.000114 rms=0.001426 Jy/beam
! Combined flux in latest and established models = 0.787444 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 54 components and 0.787444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108643Jy  sigma=0.995208
! Fit after  self-cal, rms=0.108641Jy  sigma=0.995187
! 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.108641Jy  sigma=0.995187
! Fit after  self-cal, rms=0.108563Jy  sigma=0.994433
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.637 mas, bmaj=9.536 mas, bpa=-0.6705 degrees
! Estimated noise=1.35731 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00227284 Jy
! Component: 100  -  total flux cleaned = 0.0024541 Jy
! Component: 150  -  total flux cleaned = 0.00245399 Jy
! Component: 200  -  total flux cleaned = 0.00238116 Jy
! Total flux subtracted in 200 components = 0.00238116 Jy
! Clean residual min=-0.006187 max=0.005514 Jy/beam
! Clean residual mean=0.000119 rms=0.001394 Jy/beam
! Combined flux in latest and established models = 0.789825 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 59 components and 0.789825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108420Jy  sigma=0.992898
! Fit after  self-cal, rms=0.108422Jy  sigma=0.992885
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 = -7.01323e-05 Jy
! Component: 100  -  total flux cleaned = -6.84711e-06 Jy
! Component: 150  -  total flux cleaned = 5.23373e-05 Jy
! Component: 200  -  total flux cleaned = 5.37772e-05 Jy
! Total flux subtracted in 200 components = 5.37772e-05 Jy
! Clean residual min=-0.006097 max=0.005408 Jy/beam
! Clean residual mean=0.000117 rms=0.001379 Jy/beam
! Combined flux in latest and established models = 0.789879 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 68 components and 0.789879 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108357Jy  sigma=0.992187
! Fit after  self-cal, rms=0.108357Jy  sigma=0.992176
! 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.108357Jy  sigma=0.992176
! Fit after  self-cal, rms=0.108308Jy  sigma=0.991758
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.201 mas, bmaj=15.44 mas, bpa=5.119 degrees
! Estimated noise=1.62763 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00239139 Jy
! Component: 100  -  total flux cleaned = 0.00361186 Jy
! Component: 150  -  total flux cleaned = 0.0038713 Jy
! Component: 200  -  total flux cleaned = 0.00399981 Jy
! Total flux subtracted in 200 components = 0.00399981 Jy
! Clean residual min=-0.006285 max=0.005027 Jy/beam
! Clean residual mean=0.000186 rms=0.001724 Jy/beam
! Combined flux in latest and established models = 0.793879 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 78 components and 0.793879 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108328Jy  sigma=0.991286
! Fit after  self-cal, rms=0.108313Jy  sigma=0.991164
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.000457487 Jy
! Component: 100  -  total flux cleaned = 0.000552477 Jy
! Component: 150  -  total flux cleaned = 0.000609021 Jy
! Component: 200  -  total flux cleaned = 0.000660937 Jy
! Total flux subtracted in 200 components = 0.000660937 Jy
! Clean residual min=-0.006299 max=0.004999 Jy/beam
! Clean residual mean=0.000171 rms=0.001718 Jy/beam
! Combined flux in latest and established models = 0.79454 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 85 components and 0.79454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108324Jy  sigma=0.991100
! Fit after  self-cal, rms=0.108317Jy  sigma=0.991066
! 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=3.631 mas, bmaj=9.519 mas, bpa=-0.6669 degrees
! Estimated noise=1.35718 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.631 x 9.519 at -0.6669 degrees (North through East)
! Clean map  min=-0.005611  max=0.75931 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.108317Jy  sigma=0.991066
! Fit after  self-cal, rms=0.104541Jy  sigma=0.902759
! Inverting map and beam 
! Estimated beam: bmin=3.632 mas, bmaj=9.513 mas, bpa=-0.6198 degrees
! Estimated noise=1.35879 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00199777 Jy
! Component: 100  -  total flux cleaned = 0.00220847 Jy
! Component: 150  -  total flux cleaned = 0.00232939 Jy
! Component: 200  -  total flux cleaned = 0.00227509 Jy
! Total flux subtracted in 200 components = 0.00227509 Jy
! Clean residual min=-0.005793 max=0.004905 Jy/beam
! Clean residual mean=0.000163 rms=0.001288 Jy/beam
! Combined flux in latest and established models = 0.796815 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 93 components and 0.796815 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104440Jy  sigma=0.901616
! Fit after  self-cal, rms=0.104448Jy  sigma=0.901609
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -5.52421e-06 Jy
! Component: 100  -  total flux cleaned = -5.61272e-06 Jy
! Component: 150  -  total flux cleaned = -5.69806e-06 Jy
! Component: 200  -  total flux cleaned = -3.81242e-06 Jy
! Total flux subtracted in 200 components = -3.81242e-06 Jy
! Clean residual min=-0.005705 max=0.004826 Jy/beam
! Clean residual mean=0.000163 rms=0.001279 Jy/beam
! Combined flux in latest and established models = 0.796811 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 101 components and 0.796811 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104408Jy  sigma=0.901125
! Fit after  self-cal, rms=0.104413Jy  sigma=0.901118
! 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.104413Jy  sigma=0.901118
! Fit after  self-cal, rms=0.104439Jy  sigma=0.900786
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.941 mas, bmaj=8.173 mas, bpa=-1.769 degrees
! Estimated noise=1.86236 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.587262 Jy
! Component: 100  -  total flux cleaned = 0.718464 Jy
! Component: 150  -  total flux cleaned = 0.762092 Jy
! Component: 200  -  total flux cleaned = 0.777281 Jy
! Total flux subtracted in 200 components = 0.777281 Jy
! Clean residual min=-0.008619 max=0.008876 Jy/beam
! Clean residual mean=0.000161 rms=0.002175 Jy/beam
! Combined flux in latest and established models = 0.777281 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.777281 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.628 mas, bmaj=9.498 mas, bpa=-0.5998 degrees
! Estimated noise=1.35888 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.00976123 Jy
! Component: 100  -  total flux cleaned = 0.012522 Jy
! Component: 150  -  total flux cleaned = 0.0144586 Jy
! Component: 200  -  total flux cleaned = 0.0153476 Jy
! Total flux subtracted in 200 components = 0.0153476 Jy
! Clean residual min=-0.006616 max=0.005424 Jy/beam
! Clean residual mean=0.000234 rms=0.001448 Jy/beam
! Combined flux in latest and established models = 0.792628 Jy
! Adding 21 model components to the UV plane model.
! The established model now contains 36 components and 0.792628 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.195 mas, bmaj=15.41 mas, bpa=5.24 degrees
! Estimated noise=1.63185 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00374413 Jy
! Component: 100  -  total flux cleaned = 0.00594315 Jy
! Component: 150  -  total flux cleaned = 0.00645231 Jy
! Component: 200  -  total flux cleaned = 0.00665645 Jy
! Total flux subtracted in 200 components = 0.00665645 Jy
! Clean residual min=-0.006000 max=0.005093 Jy/beam
! Clean residual mean=0.000308 rms=0.001634 Jy/beam
! Combined flux in latest and established models = 0.799285 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.000132202 Jy
! Component: 100  -  total flux cleaned = 0.000246896 Jy
! Component: 150  -  total flux cleaned = 0.000378168 Jy
! Component: 200  -  total flux cleaned = 0.000463242 Jy
! Total flux subtracted in 200 components = 0.000463242 Jy
! Clean residual min=-0.005946 max=0.005045 Jy/beam
! Clean residual mean=0.000299 rms=0.001607 Jy/beam
! Combined flux in latest and established models = 0.799748 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 67 components and 0.799748 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.628 mas, bmaj=9.498 mas, bpa=-0.5998 degrees
! Estimated noise=1.35888 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000941119 Jy
! Component: 100  -  total flux cleaned = -0.000944063 Jy
! Component: 150  -  total flux cleaned = -0.000948981 Jy
! Component: 200  -  total flux cleaned = -0.00111971 Jy
! Total flux subtracted in 200 components = -0.00111971 Jy
! Clean residual min=-0.006182 max=0.005134 Jy/beam
! Clean residual mean=0.000173 rms=0.001315 Jy/beam
! Combined flux in latest and established models = 0.798628 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 78 components and 0.798628 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104759Jy  sigma=0.904874
! Fit after  self-cal, rms=0.104753Jy  sigma=0.904632
wmodel J2129-1538_S_1997_01_11_pus_map.mod
! Writing 78 model components to file: J2129-1538_S_1997_01_11_pus_map.mod
wobs J2129-1538_S_1997_01_11_pus_uvs.fits
! Writing UV FITS file: J2129-1538_S_1997_01_11_pus_uvs.fits
wwins J2129-1538_S_1997_01_11_pus_map.win
! wwins: Wrote 2 windows to J2129-1538_S_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.000852516 Jy
! Component: 100  -  total flux cleaned = 0.00022932 Jy
! Component: 150  -  total flux cleaned = 0.000834455 Jy
! Component: 200  -  total flux cleaned = 0.000692188 Jy
! Component: 250  -  total flux cleaned = 0.000558079 Jy
! Component: 300  -  total flux cleaned = 0.000365302 Jy
! Component: 350  -  total flux cleaned = 0.000302844 Jy
! Component: 400  -  total flux cleaned = 0.000422852 Jy
! Component: 450  -  total flux cleaned = 0.00053936 Jy
! Component: 500  -  total flux cleaned = 0.000821066 Jy
! Component: 550  -  total flux cleaned = 0.000930732 Jy
! Component: 600  -  total flux cleaned = 0.00114543 Jy
! Component: 650  -  total flux cleaned = 0.00125082 Jy
! Component: 700  -  total flux cleaned = 0.00150687 Jy
! Component: 750  -  total flux cleaned = 0.00170605 Jy
! Component: 800  -  total flux cleaned = 0.00194938 Jy
! Component: 850  -  total flux cleaned = 0.0020442 Jy
! Component: 900  -  total flux cleaned = 0.00213835 Jy
! Component: 950  -  total flux cleaned = 0.00218453 Jy
! Component: 1000  -  total flux cleaned = 0.00232114 Jy
! Component: 1050  -  total flux cleaned = 0.00245468 Jy
! Component: 1100  -  total flux cleaned = 0.00249871 Jy
! Component: 1150  -  total flux cleaned = 0.00262919 Jy
! Component: 1200  -  total flux cleaned = 0.00271459 Jy
! Component: 1250  -  total flux cleaned = 0.00284133 Jy
! Component: 1300  -  total flux cleaned = 0.00296597 Jy
! Component: 1350  -  total flux cleaned = 0.00313017 Jy
! Component: 1400  -  total flux cleaned = 0.00321093 Jy
! Component: 1450  -  total flux cleaned = 0.00341178 Jy
! Component: 1500  -  total flux cleaned = 0.00349105 Jy
! Component: 1550  -  total flux cleaned = 0.00360862 Jy
! Component: 1600  -  total flux cleaned = 0.00384096 Jy
! Component: 1650  -  total flux cleaned = 0.00399396 Jy
! Component: 1700  -  total flux cleaned = 0.00418259 Jy
! Component: 1750  -  total flux cleaned = 0.00433178 Jy
! Component: 1800  -  total flux cleaned = 0.00448001 Jy
! Component: 1850  -  total flux cleaned = 0.00473586 Jy
! Component: 1900  -  total flux cleaned = 0.00484443 Jy
! Component: 1950  -  total flux cleaned = 0.00509519 Jy
! Component: 2000  -  total flux cleaned = 0.00523704 Jy
! Total flux subtracted in 2048 components = 0.00544708 Jy
! Clean residual min=-0.001894 max=0.001881 Jy/beam
! Clean residual mean=0.000119 rms=0.000750 Jy/beam
! Combined flux in latest and established models = 0.804075 Jy
keep
! Adding 157 model components to the UV plane model.
! The established model now contains 235 components and 0.804076 Jy
wmap "J2129-1538_S_1997_01_11_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.628 x 9.498 at -0.5998 degrees (North through East)
! Clean map  min=-0.0056546  max=0.75795 Jy/beam
! Writing clean map to FITS file: J2129-1538_S_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.757955 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000744093 
device "J2129-1538_S_1997_01_11_pus\_map.eps/VPS"
! Attempting to open device: 'J2129-1538_S_1997_01_11_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.294513 0.294513 0.589027 1.17805 2.35611 4.71221 9.42443 18.8489 37.6977 75.3954
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.757 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.628 x 9.498 at -0.5998 degrees (North through East)
! Clean map  min=-0.0056546  max=0.75795 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2129-1538_S_1997_01_11_pus\_map.gif/vgif"
! Attempting to open device: 'J2129-1538_S_1997_01_11_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2129-1538_S_1997_01_11_pus_uvs.log closed on Sun Feb  5 19:54:58 2006