! Started logfile: J1911-2006_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:48:03 2008
obs J1911-2006_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1911-2006_S_1999_05_10_pus_uva.fits
! AN table 1: 256 integrations on 153 of 153 possible baselines.
! AN table 2: 41 integrations on 153 of 153 possible baselines.
! AN table 3: 69 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0483589 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1911-2006
! 
! 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 1998 lines of history.
! 
! Reading 10832 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 J1911-2006_S_1999_05_10_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 3929 telescope corrections were flagged in sub-array 1.
!  A total of 577 telescope corrections were flagged in sub-array 2.
!  A total of 1106 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3929 telescope corrections were flagged in sub-array 1.
!  A total of 577 telescope corrections were flagged in sub-array 2.
!  A total of 1106 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3929 telescope corrections were flagged in sub-array 1.
!  A total of 580 telescope corrections were flagged in sub-array 2.
!  A total of 1106 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 4168 telescope corrections were flagged in sub-array 1.
!  A total of 580 telescope corrections were flagged in sub-array 2.
!  A total of 1212 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.985045Jy  sigma=0.015739
! Fit after  self-cal, rms=1.613683Jy  sigma=0.013304
! 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.649 mas, bmaj=4.634 mas, bpa=-7.871 degrees
! Estimated noise=2208.32 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 = 1.54443 Jy
! Component: 100  -  total flux cleaned = 2.15267 Jy
! Total flux subtracted in 100 components = 2.15267 Jy
! Clean residual min=-0.084897 max=0.282734 Jy/beam
! Clean residual mean=0.003158 rms=0.034277 Jy/beam
! Combined flux in latest and established models = 2.15267 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 2.15267 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.798639Jy  sigma=0.006361
! Fit after  self-cal, rms=0.798201Jy  sigma=0.006357
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.327166 Jy
! Component: 100  -  total flux cleaned = 0.531354 Jy
! Total flux subtracted in 100 components = 0.531354 Jy
! Clean residual min=-0.043890 max=0.130376 Jy/beam
! Clean residual mean=0.001042 rms=0.017127 Jy/beam
! Combined flux in latest and established models = 2.68402 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 34 components and 2.68402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.545887Jy  sigma=0.003870
! Fit after  self-cal, rms=0.545522Jy  sigma=0.003868
! Inverting map 
! Added new window around map position (3.5, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.144466 Jy
! Component: 100  -  total flux cleaned = 0.239234 Jy
! Total flux subtracted in 100 components = 0.239234 Jy
! Clean residual min=-0.041407 max=0.069060 Jy/beam
! Clean residual mean=0.000089 rms=0.011067 Jy/beam
! Combined flux in latest and established models = 2.92326 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 49 components and 2.92326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.489880Jy  sigma=0.003148
! Fit after  self-cal, rms=0.488991Jy  sigma=0.003141
! 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.373 mas, bmaj=8.107 mas, bpa=-14.02 degrees
! Estimated noise=932.374 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.100366 Jy
! Component: 100  -  total flux cleaned = 0.14566 Jy
! Component: 150  -  total flux cleaned = 0.168223 Jy
! Component: 200  -  total flux cleaned = 0.17168 Jy
! Total flux subtracted in 200 components = 0.17168 Jy
! Clean residual min=-0.039883 max=0.050046 Jy/beam
! Clean residual mean=-0.005553 rms=0.013479 Jy/beam
! Combined flux in latest and established models = 3.09494 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 69 components and 3.09494 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.479566Jy  sigma=0.002895
! Fit after  self-cal, rms=0.479009Jy  sigma=0.002890
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 252 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.97     GC        1.00*    HH        0.98     
!   HN        1.05     KK        1.22     KP        0.97     LA        0.98     
!   MC        0.82     MK        1.14     NL        1.00     NY        1.00*    
!   ON        0.99     OV        1.03     PT        1.00     SC        1.05     
!   WF        1.04     WZ        1.24     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00     KP        0.98     LA        0.98     
!   MC        1.00*    MK        1.00     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.02     PT        0.99     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.98     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.11     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.09     
! 
! 
! Correcting IF 2.
!  A total of 252 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.02     GC        1.00*    HH        1.04     
!   HN        1.04     KK        1.18     KP        0.99     LA        0.96     
!   MC        1.05     MK        1.22     NL        1.01     NY        1.00*    
!   ON        1.13     OV        0.99     PT        0.97     SC        1.06     
!   WF        1.02     WZ        1.06     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.01     KP        0.99     LA        0.95     
!   MC        1.00*    MK        1.06     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00     PT        0.98     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.89     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.01     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.14     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.05     
! 
! 
! Correcting IF 3.
!  A total of 252 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.00*    HH        0.63     
!   HN        1.01     KK        1.12     KP        0.97     LA        0.99     
!   MC        1.42     MK        1.07     NL        1.05     NY        1.00*    
!   ON        1.12     OV        0.98     PT        0.93     SC        1.04     
!   WF        1.01     WZ        1.29     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.99     KP        1.01     LA        0.98     
!   MC        1.00*    MK        0.97     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.90     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.82     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.46     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.20     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.98     
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.02     KK        1.07     KP        0.96     LA        0.99     
!   MC        1.00*    MK        1.09     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.00     SC        1.10     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.98     KP        0.99     LA        0.92     
!   MC        1.00*    MK        0.99     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.91     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.479009Jy  sigma=0.002890
! Fit after  self-cal, rms=0.311583Jy  sigma=0.002143
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.39 mas, bmaj=8.493 mas, bpa=-12.68 degrees
! Estimated noise=961.119 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.00772668 Jy
! Component: 100  -  total flux cleaned = -0.0077553 Jy
! Component: 150  -  total flux cleaned = -0.00546234 Jy
! Component: 200  -  total flux cleaned = -0.00363037 Jy
! Total flux subtracted in 200 components = -0.00363037 Jy
! Clean residual min=-0.027375 max=0.028254 Jy/beam
! Clean residual mean=-0.002516 rms=0.006614 Jy/beam
! Combined flux in latest and established models = 3.09131 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 80 components and 3.09131 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306647Jy  sigma=0.002103
! Fit after  self-cal, rms=0.307404Jy  sigma=0.002101
! 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.307404Jy  sigma=0.002101
! Fit after  self-cal, rms=0.301704Jy  sigma=0.001930
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.394 mas, bmaj=8.513 mas, bpa=-12.02 degrees
! Estimated noise=961.379 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00257428 Jy
! Component: 100  -  total flux cleaned = 0.00386225 Jy
! Component: 150  -  total flux cleaned = 0.00550591 Jy
! Component: 200  -  total flux cleaned = 0.00690068 Jy
! Total flux subtracted in 200 components = 0.00690068 Jy
! Clean residual min=-0.010815 max=0.015979 Jy/beam
! Clean residual mean=0.000290 rms=0.003819 Jy/beam
! Combined flux in latest and established models = 3.09821 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 89 components and 3.09821 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298981Jy  sigma=0.001912
! Fit after  self-cal, rms=0.299199Jy  sigma=0.001911
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.00252507 Jy
! Component: 100  -  total flux cleaned = 0.00324529 Jy
! Component: 150  -  total flux cleaned = 0.00418809 Jy
! Component: 200  -  total flux cleaned = 0.00499291 Jy
! Total flux subtracted in 200 components = 0.00499291 Jy
! Clean residual min=-0.010289 max=0.014683 Jy/beam
! Clean residual mean=0.000186 rms=0.003547 Jy/beam
! Combined flux in latest and established models = 3.1032 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 91 components and 3.1032 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298276Jy  sigma=0.001905
! Fit after  self-cal, rms=0.298242Jy  sigma=0.001905
! 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.298242Jy  sigma=0.001905
! Fit after  self-cal, rms=0.300948Jy  sigma=0.001899
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.401 mas, bmaj=8.517 mas, bpa=-11.83 degrees
! Estimated noise=962.91 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00276842 Jy
! Component: 100  -  total flux cleaned = 0.00350899 Jy
! Component: 150  -  total flux cleaned = 0.00447398 Jy
! Component: 200  -  total flux cleaned = 0.00529991 Jy
! Total flux subtracted in 200 components = 0.00529992 Jy
! Clean residual min=-0.008960 max=0.014979 Jy/beam
! Clean residual mean=0.000381 rms=0.003213 Jy/beam
! Combined flux in latest and established models = 3.1085 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 91 components and 3.1085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299974Jy  sigma=0.001892
! Fit after  self-cal, rms=0.299970Jy  sigma=0.001892
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 (13, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0151926 Jy
! Component: 100  -  total flux cleaned = 0.0221611 Jy
! Component: 150  -  total flux cleaned = 0.023636 Jy
! Component: 200  -  total flux cleaned = 0.0242755 Jy
! Total flux subtracted in 200 components = 0.0242755 Jy
! Clean residual min=-0.007940 max=0.009311 Jy/beam
! Clean residual mean=-0.000100 rms=0.002353 Jy/beam
! Combined flux in latest and established models = 3.13278 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 104 components and 3.13278 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299090Jy  sigma=0.001883
! Fit after  self-cal, rms=0.299044Jy  sigma=0.001883
! 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.299044Jy  sigma=0.001883
! Fit after  self-cal, rms=0.301552Jy  sigma=0.001880
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.257 mas, bmaj=17.45 mas, bpa=3.19 degrees
! Estimated noise=1137.88 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00862758 Jy
! Component: 100  -  total flux cleaned = 0.011475 Jy
! Component: 150  -  total flux cleaned = 0.0122872 Jy
! Component: 200  -  total flux cleaned = 0.0129474 Jy
! Total flux subtracted in 200 components = 0.0129474 Jy
! Clean residual min=-0.006341 max=0.008882 Jy/beam
! Clean residual mean=0.000057 rms=0.002482 Jy/beam
! Combined flux in latest and established models = 3.14572 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 129 components and 3.14572 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301409Jy  sigma=0.001879
! Fit after  self-cal, rms=0.301377Jy  sigma=0.001878
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.00226594 Jy
! Component: 100  -  total flux cleaned = 0.00283088 Jy
! Component: 150  -  total flux cleaned = 0.00328232 Jy
! Component: 200  -  total flux cleaned = 0.00371062 Jy
! Total flux subtracted in 200 components = 0.00371062 Jy
! Clean residual min=-0.006355 max=0.008543 Jy/beam
! Clean residual mean=-0.000086 rms=0.002429 Jy/beam
! Combined flux in latest and established models = 3.14943 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 145 components and 3.14943 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301307Jy  sigma=0.001878
! Fit after  self-cal, rms=0.301284Jy  sigma=0.001877
! 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.405 mas, bmaj=8.513 mas, bpa=-11.72 degrees
! Estimated noise=963.971 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.405 x 8.513 at -11.72 degrees (North through East)
! Clean map  min=-0.0069598  max=2.1927 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.301284Jy  sigma=0.001877
! Fit after  self-cal, rms=0.255931Jy  sigma=0.001187
! Inverting map and beam 
! Estimated beam: bmin=3.4 mas, bmaj=8.528 mas, bpa=-11.81 degrees
! Estimated noise=963.1 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.14332e-07 Jy
! Component: 100  -  total flux cleaned = -2.39294e-06 Jy
! Component: 150  -  total flux cleaned = 0.00018114 Jy
! Component: 200  -  total flux cleaned = 0.000348239 Jy
! Total flux subtracted in 200 components = 0.000348239 Jy
! Clean residual min=-0.005659 max=0.007092 Jy/beam
! Clean residual mean=0.000249 rms=0.001806 Jy/beam
! Combined flux in latest and established models = 3.14978 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 153 components and 3.14978 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255506Jy  sigma=0.001184
! Fit after  self-cal, rms=0.255552Jy  sigma=0.001184
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00062578 Jy
! Component: 100  -  total flux cleaned = 0.000773096 Jy
! Component: 150  -  total flux cleaned = 0.00105909 Jy
! Component: 200  -  total flux cleaned = 0.00119127 Jy
! Total flux subtracted in 200 components = 0.00119127 Jy
! Clean residual min=-0.005361 max=0.006745 Jy/beam
! Clean residual mean=0.000226 rms=0.001745 Jy/beam
! Combined flux in latest and established models = 3.15097 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 162 components and 3.15097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255282Jy  sigma=0.001182
! Fit after  self-cal, rms=0.255320Jy  sigma=0.001182
! 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.255320Jy  sigma=0.001182
! Fit after  self-cal, rms=0.257107Jy  sigma=0.001182
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.685 mas, bmaj=5.081 mas, bpa=-5.87 degrees
! Estimated noise=2236.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.57927 Jy
! Component: 100  -  total flux cleaned = 2.17896 Jy
! Component: 150  -  total flux cleaned = 2.49374 Jy
! Component: 200  -  total flux cleaned = 2.69067 Jy
! Total flux subtracted in 200 components = 2.69067 Jy
! Clean residual min=-0.031479 max=0.105068 Jy/beam
! Clean residual mean=0.001637 rms=0.014136 Jy/beam
! Combined flux in latest and established models = 2.69067 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 32 model components to the UV plane model.
! The established model now contains 32 components and 2.69067 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.4 mas, bmaj=8.531 mas, bpa=-11.78 degrees
! Estimated noise=962.899 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.209561 Jy
! Component: 100  -  total flux cleaned = 0.309918 Jy
! Component: 150  -  total flux cleaned = 0.36209 Jy
! Component: 200  -  total flux cleaned = 0.391256 Jy
! Total flux subtracted in 200 components = 0.391256 Jy
! Clean residual min=-0.007659 max=0.021447 Jy/beam
! Clean residual mean=0.001568 rms=0.003950 Jy/beam
! Combined flux in latest and established models = 3.08193 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 86 components and 3.08193 Jy
! Inverting map 
! Added new window around map position (-3.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0211827 Jy
! Component: 100  -  total flux cleaned = 0.0350739 Jy
! Component: 150  -  total flux cleaned = 0.0451314 Jy
! Component: 200  -  total flux cleaned = 0.0503556 Jy
! Total flux subtracted in 200 components = 0.0503556 Jy
! Clean residual min=-0.005248 max=0.007727 Jy/beam
! Clean residual mean=0.000621 rms=0.001986 Jy/beam
! Combined flux in latest and established models = 3.13228 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 114 components and 3.13228 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.251 mas, bmaj=17.44 mas, bpa=3.134 degrees
! Estimated noise=1137.66 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00819206 Jy
! Component: 100  -  total flux cleaned = 0.0133263 Jy
! Component: 150  -  total flux cleaned = 0.0156331 Jy
! Component: 200  -  total flux cleaned = 0.016987 Jy
! Total flux subtracted in 200 components = 0.016987 Jy
! Clean residual min=-0.004216 max=0.006871 Jy/beam
! Clean residual mean=0.000563 rms=0.001847 Jy/beam
! Combined flux in latest and established models = 3.14927 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.00103072 Jy
! Component: 100  -  total flux cleaned = 0.00198495 Jy
! Component: 150  -  total flux cleaned = 0.00228696 Jy
! Component: 200  -  total flux cleaned = 0.00264083 Jy
! Total flux subtracted in 200 components = 0.00264083 Jy
! Clean residual min=-0.003785 max=0.006464 Jy/beam
! Clean residual mean=0.000465 rms=0.001734 Jy/beam
! Combined flux in latest and established models = 3.15191 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 146 components and 3.15191 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.4 mas, bmaj=8.531 mas, bpa=-11.78 degrees
! Estimated noise=962.899 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00113567 Jy
! Component: 100  -  total flux cleaned = -0.000813314 Jy
! Component: 150  -  total flux cleaned = -0.000513831 Jy
! Component: 200  -  total flux cleaned = -0.000238716 Jy
! Total flux subtracted in 200 components = -0.000238716 Jy
! Clean residual min=-0.004914 max=0.005725 Jy/beam
! Clean residual mean=0.000244 rms=0.001582 Jy/beam
! Combined flux in latest and established models = 3.15167 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 168 components and 3.15167 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256330Jy  sigma=0.001180
! Fit after  self-cal, rms=0.256553Jy  sigma=0.001179
wmodel J1911-2006_S_1999_05_10_pus_map.mod
! Writing 168 model components to file: J1911-2006_S_1999_05_10_pus_map.mod
wobs J1911-2006_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1911-2006_S_1999_05_10_pus_uvs.fits
wwins J1911-2006_S_1999_05_10_pus_map.win
! wwins: Wrote 4 windows to J1911-2006_S_1999_05_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=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00179314 Jy
! Component: 100  -  total flux cleaned = 0.00359145 Jy
! Component: 150  -  total flux cleaned = 0.00475786 Jy
! Component: 200  -  total flux cleaned = 0.00553222 Jy
! Component: 250  -  total flux cleaned = 0.00644532 Jy
! Component: 300  -  total flux cleaned = 0.00717141 Jy
! Component: 350  -  total flux cleaned = 0.00795819 Jy
! Component: 400  -  total flux cleaned = 0.00857354 Jy
! Component: 450  -  total flux cleaned = 0.00925057 Jy
! Component: 500  -  total flux cleaned = 0.00969283 Jy
! Component: 550  -  total flux cleaned = 0.0101272 Jy
! Component: 600  -  total flux cleaned = 0.0104824 Jy
! Component: 650  -  total flux cleaned = 0.0109714 Jy
! Component: 700  -  total flux cleaned = 0.0113148 Jy
! Component: 750  -  total flux cleaned = 0.0115851 Jy
! Component: 800  -  total flux cleaned = 0.011852 Jy
! Component: 850  -  total flux cleaned = 0.0121809 Jy
! Component: 900  -  total flux cleaned = 0.0124392 Jy
! Component: 950  -  total flux cleaned = 0.0125665 Jy
! Component: 1000  -  total flux cleaned = 0.0128182 Jy
! Component: 1050  -  total flux cleaned = 0.0129428 Jy
! Component: 1100  -  total flux cleaned = 0.0131275 Jy
! Component: 1150  -  total flux cleaned = 0.013431 Jy
! Component: 1200  -  total flux cleaned = 0.0137303 Jy
! Component: 1250  -  total flux cleaned = 0.0139657 Jy
! Component: 1300  -  total flux cleaned = 0.0141409 Jy
! Component: 1350  -  total flux cleaned = 0.014372 Jy
! Component: 1400  -  total flux cleaned = 0.0145434 Jy
! Component: 1450  -  total flux cleaned = 0.0147693 Jy
! Component: 1500  -  total flux cleaned = 0.0150486 Jy
! Component: 1550  -  total flux cleaned = 0.015214 Jy
! Component: 1600  -  total flux cleaned = 0.0153236 Jy
! Component: 1650  -  total flux cleaned = 0.0155954 Jy
! Component: 1700  -  total flux cleaned = 0.0157569 Jy
! Component: 1750  -  total flux cleaned = 0.0158107 Jy
! Component: 1800  -  total flux cleaned = 0.0161806 Jy
! Component: 1850  -  total flux cleaned = 0.016337 Jy
! Component: 1900  -  total flux cleaned = 0.0165445 Jy
! Component: 1950  -  total flux cleaned = 0.0167498 Jy
! Component: 2000  -  total flux cleaned = 0.0168008 Jy
! Total flux subtracted in 2048 components = 0.017104 Jy
! Clean residual min=-0.003423 max=0.003333 Jy/beam
! Clean residual mean=0.000068 rms=0.001019 Jy/beam
! Combined flux in latest and established models = 3.16877 Jy
keep
! Adding 127 model components to the UV plane model.
! The established model now contains 295 components and 3.16877 Jy
![Exited script file: muppet]
wmap "J1911-2006_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.4 x 8.531 at -11.78 degrees (North through East)
! Clean map  min=-0.0051492  max=2.206 Jy/beam
! Writing clean map to FITS file: J1911-2006_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.20598 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00100812 
device "J1911-2006_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1911-2006_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.137098 0.137098 0.274196 0.548392 1.09678 2.19357 4.38714 8.77427 17.5485 35.0971 70.1942
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.003 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.205 
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.4 x 8.531 at -11.78 degrees (North through East)
! Clean map  min=-0.0051492  max=2.206 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1911-2006_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1911-2006_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1911-2006_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:48:14 2008