! Started logfile: J0106-4034_S_2003_09_17_pus_uvs.log on Tue May 22 13:27:20 2007
obs J0106-4034_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0106-4034_S_2003_09_17_pus_uva.fits
! AN table 1: 113 integrations on 120 of 120 possible baselines.
! AN table 2: 98 integrations on 120 of 120 possible baselines.
! AN table 3: 142 integrations on 120 of 120 possible baselines.
! AN table 4: 50 integrations on 120 of 120 possible baselines.
! AN table 5: 31 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0613671 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0106-4034
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1736 lines of history.
! 
! Reading 12784 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 
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 1721 telescope corrections were flagged in sub-array 1.
!  A total of 1027 telescope corrections were flagged in sub-array 2.
!  A total of 2272 telescope corrections were flagged in sub-array 3.
!  A total of 690 telescope corrections were flagged in sub-array 4.
!  A total of 392 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1721 telescope corrections were flagged in sub-array 1.
!  A total of 1027 telescope corrections were flagged in sub-array 2.
!  A total of 2272 telescope corrections were flagged in sub-array 3.
!  A total of 690 telescope corrections were flagged in sub-array 4.
!  A total of 392 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1721 telescope corrections were flagged in sub-array 1.
!  A total of 1027 telescope corrections were flagged in sub-array 2.
!  A total of 2272 telescope corrections were flagged in sub-array 3.
!  A total of 690 telescope corrections were flagged in sub-array 4.
!  A total of 392 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1721 telescope corrections were flagged in sub-array 1.
!  A total of 1027 telescope corrections were flagged in sub-array 2.
!  A total of 2272 telescope corrections were flagged in sub-array 3.
!  A total of 690 telescope corrections were flagged in sub-array 4.
!  A total of 392 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.299916Jy  sigma=0.001342
! Fit after  self-cal, rms=0.299390Jy  sigma=0.001339
! 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.187 mas, bmaj=6.815 mas, bpa=-3.63 degrees
! Estimated noise=2256.64 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.653059 Jy
! Component: 100  -  total flux cleaned = 0.795727 Jy
! Total flux subtracted in 100 components = 0.795727 Jy
! Clean residual min=-0.018044 max=0.042600 Jy/beam
! Clean residual mean=0.000569 rms=0.005743 Jy/beam
! Combined flux in latest and established models = 0.795727 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.795727 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279488Jy  sigma=0.001209
! Fit after  self-cal, rms=0.279495Jy  sigma=0.001209
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0467322 Jy
! Component: 100  -  total flux cleaned = 0.0745946 Jy
! Total flux subtracted in 100 components = 0.0745946 Jy
! Clean residual min=-0.011164 max=0.018547 Jy/beam
! Clean residual mean=0.000203 rms=0.003364 Jy/beam
! Combined flux in latest and established models = 0.870322 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 26 components and 0.870322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265880Jy  sigma=0.001087
! Fit after  self-cal, rms=0.265909Jy  sigma=0.001086
! 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.629 mas, bmaj=8.352 mas, bpa=-5.126 degrees
! Estimated noise=1228.77 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.0367911 Jy
! Component: 100  -  total flux cleaned = 0.0541309 Jy
! Component: 150  -  total flux cleaned = 0.0629882 Jy
! Component: 200  -  total flux cleaned = 0.067575 Jy
! Total flux subtracted in 200 components = 0.067575 Jy
! Clean residual min=-0.008239 max=0.007210 Jy/beam
! Clean residual mean=-0.000030 rms=0.001958 Jy/beam
! Combined flux in latest and established models = 0.937897 Jy
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 65 components and 0.937897 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262089Jy  sigma=0.001045
! Fit after  self-cal, rms=0.262096Jy  sigma=0.001045
! 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:
!   FD        1.00     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00     SC        1.05     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.99     MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.01     
!   TS        1.00*    KK        1.00     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.99     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.99     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.04     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00     MK        1.00     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00*    SC        0.99     
!   TS        1.00*    KK        1.01     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.99     SC        1.05     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00     MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.01     
!   TS        1.00*    KK        1.00     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.99     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.99     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.05     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00     MK        1.00     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00*    SC        0.99     
!   TS        1.00*    KK        1.01     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.99     SC        1.05     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00     MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.01     
!   TS        1.00*    KK        1.00     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.99     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.99     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.03     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00     MK        1.01     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00*    SC        0.99     
!   TS        1.00*    KK        1.01     WZ        1.00*    WF        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00     SC        1.05     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00     MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.99     SC        1.01     
!   TS        1.00*    KK        1.00     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.99     MK        1.00*    NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.99     SC        0.99     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.03     
! 
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        1.00     MK        1.01     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.00*    SC        0.99     
!   TS        1.00*    KK        1.01     WZ        1.00*    WF        1.00*    
! 
! 
! Fit before self-cal, rms=0.262096Jy  sigma=0.001045
! Fit after  self-cal, rms=0.265721Jy  sigma=0.001042
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.633 mas, bmaj=8.366 mas, bpa=-5.177 degrees
! Estimated noise=1227.81 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.000507056 Jy
! Component: 100  -  total flux cleaned = 0.000451333 Jy
! Component: 150  -  total flux cleaned = 0.000353894 Jy
! Component: 200  -  total flux cleaned = 0.000310456 Jy
! Total flux subtracted in 200 components = 0.000310456 Jy
! Clean residual min=-0.007835 max=0.005759 Jy/beam
! Clean residual mean=-0.000058 rms=0.001590 Jy/beam
! Combined flux in latest and established models = 0.938207 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 72 components and 0.938207 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265671Jy  sigma=0.001042
! Fit after  self-cal, rms=0.265734Jy  sigma=0.001042
! 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.265734Jy  sigma=0.001042
! Fit after  self-cal, rms=0.265796Jy  sigma=0.001042
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.633 mas, bmaj=8.366 mas, bpa=-5.192 degrees
! Estimated noise=1227.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000200103 Jy
! Component: 100  -  total flux cleaned = 0.000154097 Jy
! Component: 150  -  total flux cleaned = 0.000111822 Jy
! Component: 200  -  total flux cleaned = 7.45643e-05 Jy
! Total flux subtracted in 200 components = 7.45643e-05 Jy
! Clean residual min=-0.007774 max=0.005578 Jy/beam
! Clean residual mean=-0.000059 rms=0.001580 Jy/beam
! Combined flux in latest and established models = 0.938282 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 75 components and 0.938282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265760Jy  sigma=0.001042
! Fit after  self-cal, rms=0.265759Jy  sigma=0.001042
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 = -3.64001e-06 Jy
! Component: 100  -  total flux cleaned = -3.95707e-05 Jy
! Component: 150  -  total flux cleaned = -0.000101487 Jy
! Component: 200  -  total flux cleaned = -0.000128617 Jy
! Total flux subtracted in 200 components = -0.000128617 Jy
! Clean residual min=-0.007714 max=0.005516 Jy/beam
! Clean residual mean=-0.000058 rms=0.001574 Jy/beam
! Combined flux in latest and established models = 0.938153 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 77 components and 0.938153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265738Jy  sigma=0.001042
! Fit after  self-cal, rms=0.265740Jy  sigma=0.001042
! 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.265740Jy  sigma=0.001042
! Fit after  self-cal, rms=0.265872Jy  sigma=0.001042
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.633 mas, bmaj=8.369 mas, bpa=-5.216 degrees
! Estimated noise=1228.12 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 4.38932e-05 Jy
! Component: 100  -  total flux cleaned = -2.71423e-05 Jy
! Component: 150  -  total flux cleaned = -8.9469e-05 Jy
! Component: 200  -  total flux cleaned = -0.000117151 Jy
! Total flux subtracted in 200 components = -0.000117151 Jy
! Clean residual min=-0.007675 max=0.005508 Jy/beam
! Clean residual mean=-0.000062 rms=0.001569 Jy/beam
! Combined flux in latest and established models = 0.938036 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 79 components and 0.938036 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265852Jy  sigma=0.001042
! Fit after  self-cal, rms=0.265853Jy  sigma=0.001042
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 = -1.39129e-05 Jy
! Component: 100  -  total flux cleaned = -3.95924e-05 Jy
! Component: 150  -  total flux cleaned = -6.34456e-05 Jy
! Component: 200  -  total flux cleaned = -8.50361e-05 Jy
! Total flux subtracted in 200 components = -8.50361e-05 Jy
! Clean residual min=-0.007626 max=0.005495 Jy/beam
! Clean residual mean=-0.000061 rms=0.001566 Jy/beam
! Combined flux in latest and established models = 0.937951 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 81 components and 0.937951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265839Jy  sigma=0.001042
! Fit after  self-cal, rms=0.265841Jy  sigma=0.001042
! 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.265841Jy  sigma=0.001042
! Fit after  self-cal, rms=0.266009Jy  sigma=0.001042
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=9.044 mas, bmaj=29.43 mas, bpa=-1.292 degrees
! Estimated noise=1632.18 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 9.05678e-05 Jy
! Component: 100  -  total flux cleaned = 9.05267e-05 Jy
! Component: 150  -  total flux cleaned = 8.96195e-05 Jy
! Component: 200  -  total flux cleaned = 8.88926e-05 Jy
! Total flux subtracted in 200 components = 8.88926e-05 Jy
! Clean residual min=-0.005140 max=0.004980 Jy/beam
! Clean residual mean=-0.000155 rms=0.001577 Jy/beam
! Combined flux in latest and established models = 0.93804 Jy
selfcal
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 83 components and 0.93804 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266014Jy  sigma=0.001042
! Fit after  self-cal, rms=0.266013Jy  sigma=0.001042
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 = 3.03214e-06 Jy
! Component: 100  -  total flux cleaned = 2.73137e-06 Jy
! Component: 150  -  total flux cleaned = 1.44771e-06 Jy
! Component: 200  -  total flux cleaned = -4.73929e-07 Jy
! Total flux subtracted in 200 components = -4.73929e-07 Jy
! Clean residual min=-0.005116 max=0.004945 Jy/beam
! Clean residual mean=-0.000155 rms=0.001570 Jy/beam
! Combined flux in latest and established models = 0.938039 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 83 components and 0.938039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266017Jy  sigma=0.001042
! Fit after  self-cal, rms=0.266016Jy  sigma=0.001042
! 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.634 mas, bmaj=8.372 mas, bpa=-5.241 degrees
! Estimated noise=1228.5 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.634 x 8.372 at -5.241 degrees (North through East)
! Clean map  min=-0.0068601  max=0.85378 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.266016Jy  sigma=0.001042
! Fit after  self-cal, rms=0.266190Jy  sigma=0.001042
! Inverting map and beam 
! Estimated beam: bmin=2.634 mas, bmaj=8.375 mas, bpa=-5.256 degrees
! Estimated noise=1228.89 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000163073 Jy
! Component: 100  -  total flux cleaned = -0.000132952 Jy
! Component: 150  -  total flux cleaned = -0.000158577 Jy
! Component: 200  -  total flux cleaned = -0.000205944 Jy
! Total flux subtracted in 200 components = -0.000205944 Jy
! Clean residual min=-0.007607 max=0.005442 Jy/beam
! Clean residual mean=-0.000078 rms=0.001559 Jy/beam
! Combined flux in latest and established models = 0.937834 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 87 components and 0.937834 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266165Jy  sigma=0.001042
! Fit after  self-cal, rms=0.266167Jy  sigma=0.001042
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -5.1926e-05 Jy
! Component: 100  -  total flux cleaned = -7.24391e-05 Jy
! Component: 150  -  total flux cleaned = -9.33228e-05 Jy
! Component: 200  -  total flux cleaned = -0.000112972 Jy
! Total flux subtracted in 200 components = -0.000112972 Jy
! Clean residual min=-0.007587 max=0.005424 Jy/beam
! Clean residual mean=-0.000077 rms=0.001559 Jy/beam
! Combined flux in latest and established models = 0.937721 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 87 components and 0.937721 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266155Jy  sigma=0.001042
! Fit after  self-cal, rms=0.266155Jy  sigma=0.001042
! 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.266155Jy  sigma=0.001042
! Fit after  self-cal, rms=0.266347Jy  sigma=0.001042
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.187 mas, bmaj=6.813 mas, bpa=-3.71 degrees
! Estimated noise=2272.77 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.657515 Jy
! Component: 100  -  total flux cleaned = 0.80141 Jy
! Component: 150  -  total flux cleaned = 0.849256 Jy
! Component: 200  -  total flux cleaned = 0.877808 Jy
! Total flux subtracted in 200 components = 0.877808 Jy
! Clean residual min=-0.010833 max=0.017163 Jy/beam
! Clean residual mean=0.000145 rms=0.003171 Jy/beam
! Combined flux in latest and established models = 0.877808 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 27 model components to the UV plane model.
! The established model now contains 27 components and 0.877808 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.635 mas, bmaj=8.378 mas, bpa=-5.28 degrees
! Estimated noise=1229.22 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.0313435 Jy
! Component: 100  -  total flux cleaned = 0.0458595 Jy
! Component: 150  -  total flux cleaned = 0.0527412 Jy
! Component: 200  -  total flux cleaned = 0.0560821 Jy
! Total flux subtracted in 200 components = 0.0560821 Jy
! Clean residual min=-0.007749 max=0.005702 Jy/beam
! Clean residual mean=-0.000059 rms=0.001618 Jy/beam
! Combined flux in latest and established models = 0.93389 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 60 components and 0.93389 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=9.048 mas, bmaj=29.46 mas, bpa=-1.319 degrees
! Estimated noise=1631.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00285188 Jy
! Component: 100  -  total flux cleaned = 0.00342734 Jy
! Component: 150  -  total flux cleaned = 0.00342994 Jy
! Component: 200  -  total flux cleaned = 0.00343052 Jy
! Total flux subtracted in 200 components = 0.00343052 Jy
! Clean residual min=-0.005281 max=0.004919 Jy/beam
! Clean residual mean=-0.000185 rms=0.001575 Jy/beam
! Combined flux in latest and established models = 0.937321 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 = 1.52691e-06 Jy
! Component: 100  -  total flux cleaned = 4.08137e-06 Jy
! Component: 150  -  total flux cleaned = 6.67062e-06 Jy
! Component: 200  -  total flux cleaned = 1.50604e-05 Jy
! Total flux subtracted in 200 components = 1.50604e-05 Jy
! Clean residual min=-0.005271 max=0.004841 Jy/beam
! Clean residual mean=-0.000185 rms=0.001569 Jy/beam
! Combined flux in latest and established models = 0.937336 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 66 components and 0.937336 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.635 mas, bmaj=8.378 mas, bpa=-5.28 degrees
! Estimated noise=1229.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000641545 Jy
! Component: 100  -  total flux cleaned = -0.000524 Jy
! Component: 150  -  total flux cleaned = -0.000468033 Jy
! Component: 200  -  total flux cleaned = -0.000422731 Jy
! Total flux subtracted in 200 components = -0.000422731 Jy
! Clean residual min=-0.007584 max=0.005512 Jy/beam
! Clean residual mean=-0.000077 rms=0.001558 Jy/beam
! Combined flux in latest and established models = 0.936913 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 73 components and 0.936913 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266324Jy  sigma=0.001042
! Fit after  self-cal, rms=0.266325Jy  sigma=0.001042
wmodel J0106-4034_S_2003_09_17_pus_map.mod
! Writing 73 model components to file: J0106-4034_S_2003_09_17_pus_map.mod
wobs J0106-4034_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0106-4034_S_2003_09_17_pus_uvs.fits
wwins J0106-4034_S_2003_09_17_pus_map.win
! wwins: Wrote 1 windows to J0106-4034_S_2003_09_17_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.00229877 Jy
! Component: 100  -  total flux cleaned = -0.0027806 Jy
! Component: 150  -  total flux cleaned = -0.00277985 Jy
! Component: 200  -  total flux cleaned = -0.00261311 Jy
! Component: 250  -  total flux cleaned = -0.00253173 Jy
! Component: 300  -  total flux cleaned = -0.00284358 Jy
! Component: 350  -  total flux cleaned = -0.0029183 Jy
! Component: 400  -  total flux cleaned = -0.00306556 Jy
! Component: 450  -  total flux cleaned = -0.00335182 Jy
! Component: 500  -  total flux cleaned = -0.0034912 Jy
! Component: 550  -  total flux cleaned = -0.00376561 Jy
! Component: 600  -  total flux cleaned = -0.00403537 Jy
! Component: 650  -  total flux cleaned = -0.00436701 Jy
! Component: 700  -  total flux cleaned = -0.00469367 Jy
! Component: 750  -  total flux cleaned = -0.00495064 Jy
! Component: 800  -  total flux cleaned = -0.00526744 Jy
! Component: 850  -  total flux cleaned = -0.00557946 Jy
! Component: 900  -  total flux cleaned = -0.00551779 Jy
! Component: 950  -  total flux cleaned = -0.00557797 Jy
! Component: 1000  -  total flux cleaned = -0.00551759 Jy
! Component: 1050  -  total flux cleaned = -0.00557671 Jy
! Component: 1100  -  total flux cleaned = -0.00557595 Jy
! Component: 1150  -  total flux cleaned = -0.00563407 Jy
! Component: 1200  -  total flux cleaned = -0.00569176 Jy
! Component: 1250  -  total flux cleaned = -0.0056349 Jy
! Component: 1300  -  total flux cleaned = -0.00580532 Jy
! Component: 1350  -  total flux cleaned = -0.00597316 Jy
! Component: 1400  -  total flux cleaned = -0.00597282 Jy
! Component: 1450  -  total flux cleaned = -0.00613773 Jy
! Component: 1500  -  total flux cleaned = -0.00613761 Jy
! Component: 1550  -  total flux cleaned = -0.00608461 Jy
! Component: 1600  -  total flux cleaned = -0.0061921 Jy
! Component: 1650  -  total flux cleaned = -0.00624619 Jy
! Component: 1700  -  total flux cleaned = -0.00650945 Jy
! Component: 1750  -  total flux cleaned = -0.00656154 Jy
! Component: 1800  -  total flux cleaned = -0.00656145 Jy
! Component: 1850  -  total flux cleaned = -0.00666415 Jy
! Component: 1900  -  total flux cleaned = -0.00666415 Jy
! Component: 1950  -  total flux cleaned = -0.00681571 Jy
! Component: 2000  -  total flux cleaned = -0.00696566 Jy
! Total flux subtracted in 2048 components = -0.00691589 Jy
! Clean residual min=-0.003151 max=0.002945 Jy/beam
! Clean residual mean=0.000012 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 0.929997 Jy
keep
! Adding 131 model components to the UV plane model.
! The established model now contains 204 components and 0.929997 Jy
wmap "J0106-4034_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.635 x 8.378 at -5.28 degrees (North through East)
! Clean map  min=-0.0070434  max=0.85841 Jy/beam
! Writing clean map to FITS file: J0106-4034_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.858408 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000994986 
device "J0106-4034_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0106-4034_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.347732 0.347732 0.695464 1.39093 2.78186 5.56371 11.1274 22.2548 44.5097 89.0194
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.858 
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.635 x 8.378 at -5.28 degrees (North through East)
! Clean map  min=-0.0070434  max=0.85841 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0106-4034_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0106-4034_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0106-4034_S_2003_09_17_pus_uvs.log closed on Tue May 22 13:28:59 2007