! Started logfile: J2229-0832_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:39:16 2008
obs J2229-0832_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J2229-0832_S_1999_03_08_pus_uva.fits
! AN table 1: 7 integrations on 190 of 190 possible baselines.
! AN table 2: 113 integrations on 190 of 190 possible baselines.
! AN table 3: 73 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0382602 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2229-0832
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2332 lines of history.
! 
! Reading 5612 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 
![@muppet J2229-0832_S_1999_03_08_pus]
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 140 telescope corrections were flagged in sub-array 1.
!  A total of 1864 telescope corrections were flagged in sub-array 2.
!  A total of 1157 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 140 telescope corrections were flagged in sub-array 1.
!  A total of 1864 telescope corrections were flagged in sub-array 2.
!  A total of 1157 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 140 telescope corrections were flagged in sub-array 1.
!  A total of 1854 telescope corrections were flagged in sub-array 2.
!  A total of 1157 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 140 telescope corrections were flagged in sub-array 1.
!  A total of 1854 telescope corrections were flagged in sub-array 2.
!  A total of 1157 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.863329Jy  sigma=0.004961
! Fit after  self-cal, rms=0.554015Jy  sigma=0.002813
! 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=1.939 mas, bmaj=4.485 mas, bpa=-4.241 degrees
! Estimated noise=2830.41 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.47342 Jy
! Component: 100  -  total flux cleaned = 0.595187 Jy
! Total flux subtracted in 100 components = 0.595187 Jy
! Clean residual min=-0.057189 max=0.071511 Jy/beam
! Clean residual mean=-0.000053 rms=0.016299 Jy/beam
! Combined flux in latest and established models = 0.595188 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 17 components and 0.595188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.504216Jy  sigma=0.001883
! Fit after  self-cal, rms=0.504192Jy  sigma=0.001882
! 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.45 mas, bmaj=8.933 mas, bpa=-6.639 degrees
! Estimated noise=1586.45 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.122666 Jy
! Component: 100  -  total flux cleaned = 0.184543 Jy
! Component: 150  -  total flux cleaned = 0.216222 Jy
! Component: 200  -  total flux cleaned = 0.23248 Jy
! Total flux subtracted in 200 components = 0.23248 Jy
! Clean residual min=-0.074159 max=0.039598 Jy/beam
! Clean residual mean=-0.004672 rms=0.019486 Jy/beam
! Combined flux in latest and established models = 0.827668 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 49 components and 0.827668 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462429Jy  sigma=0.001669
! Fit after  self-cal, rms=0.462047Jy  sigma=0.001667
! 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.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.96     GC        1.00*    GG        1.00*    
!   HN        1.04     KP        1.04     LA        1.00*    NL        0.55     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.02     
!   GN        0.98     HH        1.00*    KK        0.99     MC        1.17     
!   MK        0.91     NY        1.00*    ON        1.00*    WZ        1.13     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.11     KP        1.00*    LA        1.00*    NL        0.95     
!   OV        1.00*    PT        1.00*    SC        1.01     WF        0.98     
!   GN        0.99     HH        1.00*    KK        1.35     MC        1.00*    
!   MK        0.86     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00     GC        1.00*    GG        1.00*    
!   HN        1.02     KP        1.15     LA        1.00*    NL        0.48     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.03     
!   GN        1.00     HH        1.00*    KK        1.17     MC        0.84     
!   MK        0.98     NY        1.00*    ON        1.00*    WZ        1.19     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        0.99     KP        1.00*    LA        1.00*    NL        0.76     
!   OV        1.00*    PT        1.00*    SC        1.01     WF        1.03     
!   GN        0.99     HH        1.00*    KK        1.31     MC        1.00*    
!   MK        0.89     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 132 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.00     GC        1.00*    GG        1.00*    
!   HN        1.34     KP        1.02     LA        1.00*    NL        0.53     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.07     
!   GN        1.01     HH        0.70     KK        0.86     MC        1.22     
!   MK        0.95     NY        1.00*    ON        1.00*    WZ        1.19     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.36     KP        1.00*    LA        1.00*    NL        0.78     
!   OV        1.00*    PT        1.00*    SC        0.95     WF        1.03     
!   GN        1.01     HH        1.00*    KK        1.48     MC        1.00*    
!   MK        0.86     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 132 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.03     GC        1.00*    GG        1.00*    
!   HN        1.26     KP        1.02     LA        1.00*    NL        0.51     
!   OV        1.00*    PT        1.00*    SC        1.00*    WF        1.03     
!   GN        1.01     HH        2.13     KK        1.01     MC        1.33     
!   MK        1.00     NY        1.00*    ON        1.00*    WZ        1.19     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.26     KP        1.00*    LA        1.00*    NL        0.73     
!   OV        1.00*    PT        1.00*    SC        1.07     WF        0.99     
!   GN        1.04     HH        1.00*    KK        1.41     MC        1.00*    
!   MK        0.91     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.462047Jy  sigma=0.001667
! Fit after  self-cal, rms=0.711659Jy  sigma=0.001271
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.459 mas, bmaj=9.155 mas, bpa=-5.429 degrees
! Estimated noise=1795.92 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.00929418 Jy
! Component: 100  -  total flux cleaned = -0.0103025 Jy
! Component: 150  -  total flux cleaned = -0.0109668 Jy
! Component: 200  -  total flux cleaned = -0.0114774 Jy
! Total flux subtracted in 200 components = -0.0114774 Jy
! Clean residual min=-0.008159 max=0.013678 Jy/beam
! Clean residual mean=0.002272 rms=0.003299 Jy/beam
! Combined flux in latest and established models = 0.81619 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 51 components and 0.81619 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.711335Jy  sigma=0.001267
! Fit after  self-cal, rms=0.711442Jy  sigma=0.001263
! 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.711442Jy  sigma=0.001263
! Fit after  self-cal, rms=0.737401Jy  sigma=0.001261
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.475 mas, bmaj=9.214 mas, bpa=-5.382 degrees
! Estimated noise=1798.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00628102 Jy
! Component: 100  -  total flux cleaned = -0.00691933 Jy
! Component: 150  -  total flux cleaned = -0.00753205 Jy
! Component: 200  -  total flux cleaned = -0.00792809 Jy
! Total flux subtracted in 200 components = -0.00792809 Jy
! Clean residual min=-0.007404 max=0.013124 Jy/beam
! Clean residual mean=0.002351 rms=0.003154 Jy/beam
! Combined flux in latest and established models = 0.808262 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 51 components and 0.808262 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.737227Jy  sigma=0.001260
! Fit after  self-cal, rms=0.737266Jy  sigma=0.001260
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.000676551 Jy
! Component: 100  -  total flux cleaned = -0.000828926 Jy
! Component: 150  -  total flux cleaned = -0.000959761 Jy
! Component: 200  -  total flux cleaned = -0.00107024 Jy
! Total flux subtracted in 200 components = -0.00107024 Jy
! Clean residual min=-0.007347 max=0.013231 Jy/beam
! Clean residual mean=0.002393 rms=0.003149 Jy/beam
! Combined flux in latest and established models = 0.807192 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 52 components and 0.807192 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.737237Jy  sigma=0.001260
! Fit after  self-cal, rms=0.737240Jy  sigma=0.001260
! 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.737240Jy  sigma=0.001260
! Fit after  self-cal, rms=0.777543Jy  sigma=0.001259
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.488 mas, bmaj=9.287 mas, bpa=-5.369 degrees
! Estimated noise=1801.06 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00397329 Jy
! Component: 100  -  total flux cleaned = -0.0044119 Jy
! Component: 150  -  total flux cleaned = -0.00477455 Jy
! Component: 200  -  total flux cleaned = -0.00514205 Jy
! Total flux subtracted in 200 components = -0.00514205 Jy
! Clean residual min=-0.006780 max=0.013057 Jy/beam
! Clean residual mean=0.002414 rms=0.003083 Jy/beam
! Combined flux in latest and established models = 0.80205 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 52 components and 0.80205 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.777458Jy  sigma=0.001258
! Fit after  self-cal, rms=0.777485Jy  sigma=0.001258
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.000404565 Jy
! Component: 100  -  total flux cleaned = -0.00052508 Jy
! Component: 150  -  total flux cleaned = -0.000627425 Jy
! Component: 200  -  total flux cleaned = -0.00062768 Jy
! Total flux subtracted in 200 components = -0.00062768 Jy
! Clean residual min=-0.006736 max=0.012838 Jy/beam
! Clean residual mean=0.002439 rms=0.003077 Jy/beam
! Combined flux in latest and established models = 0.801422 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 52 components and 0.801422 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.777462Jy  sigma=0.001258
! Fit after  self-cal, rms=0.777467Jy  sigma=0.001258
! 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.777467Jy  sigma=0.001258
! Fit after  self-cal, rms=0.808202Jy  sigma=0.001258
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.336 mas, bmaj=22 mas, bpa=2.34 degrees
! Estimated noise=2373.48 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000803223 Jy
! Component: 100  -  total flux cleaned = 0.000816914 Jy
! Component: 150  -  total flux cleaned = 0.000823117 Jy
! Component: 200  -  total flux cleaned = 0.000827129 Jy
! Total flux subtracted in 200 components = 0.000827129 Jy
! Clean residual min=-0.005507 max=0.017674 Jy/beam
! Clean residual mean=0.005158 rms=0.004025 Jy/beam
! Combined flux in latest and established models = 0.802249 Jy
selfcal
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 52 components and 0.802249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.808191Jy  sigma=0.001258
! Fit after  self-cal, rms=0.808191Jy  sigma=0.001258
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.000348388 Jy
! Component: 100  -  total flux cleaned = 0.000353523 Jy
! Component: 150  -  total flux cleaned = 0.00035729 Jy
! Component: 200  -  total flux cleaned = 0.000360527 Jy
! Total flux subtracted in 200 components = 0.000360527 Jy
! Clean residual min=-0.005267 max=0.017320 Jy/beam
! Clean residual mean=0.005126 rms=0.003956 Jy/beam
! Combined flux in latest and established models = 0.80261 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 52 components and 0.80261 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.808209Jy  sigma=0.001259
! Fit after  self-cal, rms=0.808198Jy  sigma=0.001259
! Inverting map 
! Added new window around map position (19, 63.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0176045 Jy
! Component: 100  -  total flux cleaned = 0.0280332 Jy
! Component: 150  -  total flux cleaned = 0.0358743 Jy
! Component: 200  -  total flux cleaned = 0.0416539 Jy
! Total flux subtracted in 200 components = 0.0416539 Jy
! Clean residual min=-0.005802 max=0.008319 Jy/beam
! Clean residual mean=0.001031 rms=0.002735 Jy/beam
! Combined flux in latest and established models = 0.844264 Jy
! Performing phase self-cal
! Adding 57 model components to the UV plane model.
! The established model now contains 108 components and 0.844264 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.807960Jy  sigma=0.001257
! Fit after  self-cal, rms=0.807944Jy  sigma=0.001256
! 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.496 mas, bmaj=9.342 mas, bpa=-5.366 degrees
! Estimated noise=1802.1 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.496 x 9.342 at -5.366 degrees (North through East)
! Clean map  min=-0.0078226  max=0.67334 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.807944Jy  sigma=0.001256
! Fit after  self-cal, rms=0.306435Jy  sigma=0.001070
! Inverting map and beam 
! Estimated beam: bmin=2.482 mas, bmaj=9.216 mas, bpa=-5.249 degrees
! Estimated noise=1789.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00655268 Jy
! Component: 100  -  total flux cleaned = 0.00921202 Jy
! Component: 150  -  total flux cleaned = 0.0101403 Jy
! Component: 200  -  total flux cleaned = 0.0109457 Jy
! Total flux subtracted in 200 components = 0.0109457 Jy
! Clean residual min=-0.006311 max=0.007534 Jy/beam
! Clean residual mean=0.000180 rms=0.002021 Jy/beam
! Combined flux in latest and established models = 0.855209 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 127 components and 0.85521 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305856Jy  sigma=0.001068
! Fit after  self-cal, rms=0.305858Jy  sigma=0.001067
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00119532 Jy
! Component: 100  -  total flux cleaned = 0.00207137 Jy
! Component: 150  -  total flux cleaned = 0.00288037 Jy
! Component: 200  -  total flux cleaned = 0.00332508 Jy
! Total flux subtracted in 200 components = 0.00332508 Jy
! Clean residual min=-0.006215 max=0.007410 Jy/beam
! Clean residual mean=0.000084 rms=0.001928 Jy/beam
! Combined flux in latest and established models = 0.858535 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 135 components and 0.858535 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305576Jy  sigma=0.001066
! Fit after  self-cal, rms=0.305569Jy  sigma=0.001066
! 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.305569Jy  sigma=0.001066
! Fit after  self-cal, rms=0.295271Jy  sigma=0.001066
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=1.953 mas, bmaj=4.448 mas, bpa=-2.329 degrees
! Estimated noise=3231.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.484626 Jy
! Component: 100  -  total flux cleaned = 0.609807 Jy
! Component: 150  -  total flux cleaned = 0.665497 Jy
! Component: 200  -  total flux cleaned = 0.701657 Jy
! Total flux subtracted in 200 components = 0.701657 Jy
! Clean residual min=-0.019274 max=0.028118 Jy/beam
! Clean residual mean=0.000508 rms=0.005905 Jy/beam
! Combined flux in latest and established models = 0.701657 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 25 model components to the UV plane model.
! The established model now contains 25 components and 0.701657 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.484 mas, bmaj=9.224 mas, bpa=-5.247 degrees
! Estimated noise=1788.8 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.0491012 Jy
! Component: 100  -  total flux cleaned = 0.0732866 Jy
! Component: 150  -  total flux cleaned = 0.0897854 Jy
! Component: 200  -  total flux cleaned = 0.102593 Jy
! Total flux subtracted in 200 components = 0.102593 Jy
! Clean residual min=-0.008058 max=0.013677 Jy/beam
! Clean residual mean=0.002399 rms=0.003184 Jy/beam
! Combined flux in latest and established models = 0.80425 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 67 components and 0.80425 Jy
! Inverting map 
! Added new window around map position (-3, 22.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0128763 Jy
! Component: 100  -  total flux cleaned = 0.0217838 Jy
! Component: 150  -  total flux cleaned = 0.029045 Jy
! Component: 200  -  total flux cleaned = 0.0335193 Jy
! Total flux subtracted in 200 components = 0.0335193 Jy
! Clean residual min=-0.006931 max=0.009622 Jy/beam
! Clean residual mean=0.001078 rms=0.002205 Jy/beam
! Combined flux in latest and established models = 0.83777 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 97 components and 0.83777 Jy
! Inverting map 
! Added new window around map position (-64, -29).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00749414 Jy
! Component: 100  -  total flux cleaned = 0.0100936 Jy
! Component: 150  -  total flux cleaned = 0.0119983 Jy
! Component: 200  -  total flux cleaned = 0.0137422 Jy
! Total flux subtracted in 200 components = 0.0137422 Jy
! Clean residual min=-0.006297 max=0.007161 Jy/beam
! Clean residual mean=0.000559 rms=0.001781 Jy/beam
! Combined flux in latest and established models = 0.851512 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 120 components and 0.851512 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=7.32 mas, bmaj=22.07 mas, bpa=2.272 degrees
! Estimated noise=2371.92 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0060882 Jy
! Component: 100  -  total flux cleaned = 0.0102714 Jy
! Component: 150  -  total flux cleaned = 0.0120314 Jy
! Component: 200  -  total flux cleaned = 0.0128422 Jy
! Total flux subtracted in 200 components = 0.0128422 Jy
! Clean residual min=-0.004375 max=0.005904 Jy/beam
! Clean residual mean=0.000064 rms=0.001880 Jy/beam
! Combined flux in latest and established models = 0.864354 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.000720363 Jy
! Component: 100  -  total flux cleaned = 0.00127139 Jy
! Component: 150  -  total flux cleaned = 0.00168452 Jy
! Component: 200  -  total flux cleaned = 0.00198846 Jy
! Total flux subtracted in 200 components = 0.00198846 Jy
! Clean residual min=-0.004508 max=0.005463 Jy/beam
! Clean residual mean=-0.000122 rms=0.001729 Jy/beam
! Combined flux in latest and established models = 0.866342 Jy
! Adding 74 model components to the UV plane model.
! The established model now contains 187 components and 0.866343 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.484 mas, bmaj=9.224 mas, bpa=-5.247 degrees
! Estimated noise=1788.8 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000246995 Jy
! Component: 100  -  total flux cleaned = 0.000494787 Jy
! Component: 150  -  total flux cleaned = 0.00060801 Jy
! Component: 200  -  total flux cleaned = 0.000712042 Jy
! Total flux subtracted in 200 components = 0.000712042 Jy
! Clean residual min=-0.005933 max=0.006193 Jy/beam
! Clean residual mean=-0.000045 rms=0.001548 Jy/beam
! Combined flux in latest and established models = 0.867055 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 201 components and 0.867055 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294297Jy  sigma=0.001062
! Fit after  self-cal, rms=0.294325Jy  sigma=0.001061
wmodel J2229-0832_S_1999_03_08_pus_map.mod
! Writing 201 model components to file: J2229-0832_S_1999_03_08_pus_map.mod
wobs J2229-0832_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J2229-0832_S_1999_03_08_pus_uvs.fits
wwins J2229-0832_S_1999_03_08_pus_map.win
! wwins: Wrote 4 windows to J2229-0832_S_1999_03_08_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.00125569 Jy
! Component: 100  -  total flux cleaned = -0.000882782 Jy
! Component: 150  -  total flux cleaned = -0.000350654 Jy
! Component: 200  -  total flux cleaned = -1.36535e-05 Jy
! Component: 250  -  total flux cleaned = 6.84731e-05 Jy
! Component: 300  -  total flux cleaned = 0.000148388 Jy
! Component: 350  -  total flux cleaned = 0.000223412 Jy
! Component: 400  -  total flux cleaned = 7.66289e-05 Jy
! Component: 450  -  total flux cleaned = 4.75113e-06 Jy
! Component: 500  -  total flux cleaned = 3.8236e-06 Jy
! Component: 550  -  total flux cleaned = -6.4769e-05 Jy
! Component: 600  -  total flux cleaned = -6.34279e-05 Jy
! Component: 650  -  total flux cleaned = 6.72569e-05 Jy
! Component: 700  -  total flux cleaned = 0.000130852 Jy
! Component: 750  -  total flux cleaned = 0.000193597 Jy
! Component: 800  -  total flux cleaned = 0.000255532 Jy
! Component: 850  -  total flux cleaned = 0.000376519 Jy
! Component: 900  -  total flux cleaned = 0.000436231 Jy
! Component: 950  -  total flux cleaned = 0.000728135 Jy
! Component: 1000  -  total flux cleaned = 0.000727483 Jy
! Component: 1050  -  total flux cleaned = 0.000841125 Jy
! Component: 1100  -  total flux cleaned = 0.00106401 Jy
! Component: 1150  -  total flux cleaned = 0.00117379 Jy
! Component: 1200  -  total flux cleaned = 0.00128209 Jy
! Component: 1250  -  total flux cleaned = 0.00133609 Jy
! Component: 1300  -  total flux cleaned = 0.00144208 Jy
! Component: 1350  -  total flux cleaned = 0.00149447 Jy
! Component: 1400  -  total flux cleaned = 0.00154597 Jy
! Component: 1450  -  total flux cleaned = 0.00149504 Jy
! Component: 1500  -  total flux cleaned = 0.00154554 Jy
! Component: 1550  -  total flux cleaned = 0.00154506 Jy
! Component: 1600  -  total flux cleaned = 0.00149564 Jy
! Component: 1650  -  total flux cleaned = 0.00149582 Jy
! Component: 1700  -  total flux cleaned = 0.0014474 Jy
! Component: 1750  -  total flux cleaned = 0.00149601 Jy
! Component: 1800  -  total flux cleaned = 0.00149627 Jy
! Component: 1850  -  total flux cleaned = 0.00149636 Jy
! Component: 1900  -  total flux cleaned = 0.00149618 Jy
! Component: 1950  -  total flux cleaned = 0.00149599 Jy
! Component: 2000  -  total flux cleaned = 0.00149599 Jy
! Total flux subtracted in 2048 components = 0.00149596 Jy
! Clean residual min=-0.003272 max=0.003297 Jy/beam
! Clean residual mean=-0.000047 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 0.868551 Jy
keep
! Adding 100 model components to the UV plane model.
! The established model now contains 301 components and 0.868551 Jy
![Exited script file: muppet]
wmap "J2229-0832_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.484 x 9.224 at -5.247 degrees (North through East)
! Clean map  min=-0.0048173  max=0.66175 Jy/beam
! Writing clean map to FITS file: J2229-0832_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.661753 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000822484 
device "J2229-0832_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J2229-0832_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.372866 0.372866 0.745732 1.49146 2.98293 5.96585 11.9317 23.8634 47.7268 95.4536
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0024 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.661 
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.484 x 9.224 at -5.247 degrees (North through East)
! Clean map  min=-0.0048173  max=0.66175 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2229-0832_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J2229-0832_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2229-0832_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:39:27 2008