! Started logfile: J0050-0929_S_2001_07_05_pus_uvs.log on Sun Aug 12 17:11:09 2007
obs J0050-0929_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0050-0929_S_2001_07_05_pus_uva.fits
! AN table 1: 49 integrations on 171 of 171 possible baselines.
! AN table 2: 191 integrations on 171 of 171 possible baselines.
! AN table 3: 77 integrations on 171 of 171 possible baselines.
! AN table 4: 75 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0970134 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0050-0929
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1778 lines of history.
! 
! Reading 26012 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 813 telescope corrections were flagged in sub-array 1.
!  A total of 2590 telescope corrections were flagged in sub-array 2.
!  A total of 1161 telescope corrections were flagged in sub-array 3.
!  A total of 1215 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 813 telescope corrections were flagged in sub-array 1.
!  A total of 2590 telescope corrections were flagged in sub-array 2.
!  A total of 1149 telescope corrections were flagged in sub-array 3.
!  A total of 1215 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 813 telescope corrections were flagged in sub-array 1.
!  A total of 2590 telescope corrections were flagged in sub-array 2.
!  A total of 1135 telescope corrections were flagged in sub-array 3.
!  A total of 1215 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 813 telescope corrections were flagged in sub-array 1.
!  A total of 2589 telescope corrections were flagged in sub-array 2.
!  A total of 1171 telescope corrections were flagged in sub-array 3.
!  A total of 1242 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.642971Jy  sigma=0.004985
! Fit after  self-cal, rms=0.363101Jy  sigma=0.002758
! 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.076 mas, bmaj=4.767 mas, bpa=-0.9999 degrees
! Estimated noise=1326.97 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.527525 Jy
! Component: 100  -  total flux cleaned = 0.64256 Jy
! Total flux subtracted in 100 components = 0.64256 Jy
! Clean residual min=-0.015193 max=0.032106 Jy/beam
! Clean residual mean=0.000080 rms=0.003954 Jy/beam
! Combined flux in latest and established models = 0.64256 Jy
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.64256 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236262Jy  sigma=0.001621
! Fit after  self-cal, rms=0.236260Jy  sigma=0.001621
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0314829 Jy
! Component: 100  -  total flux cleaned = 0.0498506 Jy
! Total flux subtracted in 100 components = 0.0498506 Jy
! Clean residual min=-0.013353 max=0.013775 Jy/beam
! Clean residual mean=0.000012 rms=0.003233 Jy/beam
! Combined flux in latest and established models = 0.692411 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 22 components and 0.692411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226391Jy  sigma=0.001499
! Fit after  self-cal, rms=0.226374Jy  sigma=0.001499
! 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.77 mas, bmaj=6.94 mas, bpa=-1.687 degrees
! Estimated noise=548.017 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.0360695 Jy
! Component: 100  -  total flux cleaned = 0.0500687 Jy
! Component: 150  -  total flux cleaned = 0.0571037 Jy
! Component: 200  -  total flux cleaned = 0.0608489 Jy
! Total flux subtracted in 200 components = 0.0608489 Jy
! Clean residual min=-0.006718 max=0.009818 Jy/beam
! Clean residual mean=0.000391 rms=0.002140 Jy/beam
! Combined flux in latest and established models = 0.75326 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 46 components and 0.75326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222081Jy  sigma=0.001437
! Fit after  self-cal, rms=0.222035Jy  sigma=0.001437
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 78 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.98     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.99     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.14     
!   TS        1.00*    WF        1.00*    WZ        0.92     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.01     KP        0.95     
!   LA        0.99     MC        1.00*    MK        0.99     NL        1.00     
!   NY        1.00*    OV        0.96     PT        0.96     SC        0.98     
!   TS        1.09     WF        1.01     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        1.00*    
!   LA        1.09     MC        1.00     MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.00*    PT        1.14     SC        1.03     
!   TS        1.00*    WF        1.04     WZ        1.15     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        1.02     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.11     KK        1.07     KP        0.93     
!   LA        1.07     MC        1.00*    MK        1.06     NL        1.06     
!   NY        1.00*    OV        0.99     PT        1.03     SC        1.11     
!   TS        1.00*    WF        1.10     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 78 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        0.97     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.95     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.10     
!   TS        1.00*    WF        1.00*    WZ        0.89     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.99     KP        1.01     
!   LA        0.96     MC        1.00*    MK        0.95     NL        0.96     
!   NY        1.00*    OV        1.00     PT        1.00     SC        0.98     
!   TS        1.05     WF        0.98     WZ        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.20     HN        0.98     KK        1.00*    KP        1.00*    
!   LA        1.03     MC        0.93     MK        1.00*    NL        0.96     
!   NY        1.00*    OV        1.00*    PT        1.01     SC        0.98     
!   TS        1.00*    WF        0.98     WZ        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.06     FD        1.04     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.09     KK        1.09     KP        0.82     
!   LA        1.05     MC        1.00*    MK        1.03     NL        1.02     
!   NY        1.00*    OV        1.05     PT        1.08     SC        1.08     
!   TS        1.00*    WF        1.13     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 78 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.10     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        0.89     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.14     
!   TS        1.00*    WF        1.00*    WZ        0.87     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.96     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.01     KP        1.06     
!   LA        0.99     MC        1.00*    MK        1.00     NL        1.02     
!   NY        1.00*    OV        1.01     PT        0.97     SC        0.98     
!   TS        1.11     WF        1.01     WZ        1.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.53     HN        1.01     KK        1.00*    KP        1.00*    
!   LA        1.03     MC        0.91     MK        1.00*    NL        1.04     
!   NY        1.00*    OV        1.00*    PT        1.05     SC        0.98     
!   TS        1.00*    WF        1.00     WZ        1.01     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        1.02     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.18     KK        1.12     KP        1.03     
!   LA        1.04     MC        1.00*    MK        1.06     NL        1.08     
!   NY        1.00*    OV        1.05     PT        1.07     SC        1.09     
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 78 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.03     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MC        1.14     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.15     
!   TS        1.00*    WF        1.00*    WZ        0.99     
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.04     KP        1.12     
!   LA        0.99     MC        1.00*    MK        0.98     NL        0.98     
!   NY        1.00*    OV        1.01     PT        1.01     SC        0.98     
!   TS        1.11     WF        1.02     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.05     GC        1.00*    GG        1.00*    
!   HH        1.68     HN        0.96     KK        1.00*    KP        1.00*    
!   LA        1.14     MC        0.98     MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.00*    PT        0.94     SC        0.97     
!   TS        1.00*    WF        1.04     WZ        1.02     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.04     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.08     KP        1.04     
!   LA        1.05     MC        1.00*    MK        1.04     NL        1.08     
!   NY        1.00*    OV        1.04     PT        1.17     SC        1.06     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.222035Jy  sigma=0.001437
! Fit after  self-cal, rms=0.222037Jy  sigma=0.001367
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.819 mas, bmaj=7.529 mas, bpa=-1.897 degrees
! Estimated noise=551.508 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.000109134 Jy
! Component: 100  -  total flux cleaned = -0.000200444 Jy
! Component: 150  -  total flux cleaned = -0.000165399 Jy
! Component: 200  -  total flux cleaned = -0.00013152 Jy
! Total flux subtracted in 200 components = -0.00013152 Jy
! Clean residual min=-0.003439 max=0.004388 Jy/beam
! Clean residual mean=0.000405 rms=0.001074 Jy/beam
! Combined flux in latest and established models = 0.753128 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 50 components and 0.753128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222015Jy  sigma=0.001367
! Fit after  self-cal, rms=0.222202Jy  sigma=0.001367
! 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.222202Jy  sigma=0.001367
! Fit after  self-cal, rms=0.223789Jy  sigma=0.001359
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.818 mas, bmaj=7.529 mas, bpa=-1.936 degrees
! Estimated noise=551.588 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000402734 Jy
! Component: 100  -  total flux cleaned = 0.000526876 Jy
! Component: 150  -  total flux cleaned = 0.000566964 Jy
! Component: 200  -  total flux cleaned = 0.000603704 Jy
! Total flux subtracted in 200 components = 0.000603704 Jy
! Clean residual min=-0.002784 max=0.004359 Jy/beam
! Clean residual mean=0.000442 rms=0.000911 Jy/beam
! Combined flux in latest and established models = 0.753732 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 51 components and 0.753732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223786Jy  sigma=0.001359
! Fit after  self-cal, rms=0.223857Jy  sigma=0.001359
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 (-2.5, 33.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00390362 Jy
! Component: 100  -  total flux cleaned = 0.00594562 Jy
! Component: 150  -  total flux cleaned = 0.00694029 Jy
! Component: 200  -  total flux cleaned = 0.00725155 Jy
! Total flux subtracted in 200 components = 0.00725155 Jy
! Clean residual min=-0.002520 max=0.003456 Jy/beam
! Clean residual mean=0.000359 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.760983 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 73 components and 0.760983 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223771Jy  sigma=0.001358
! Fit after  self-cal, rms=0.223761Jy  sigma=0.001358
! Inverting map 
! Added new window around map position (12.5, -34.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00291298 Jy
! Component: 100  -  total flux cleaned = 0.00323671 Jy
! Component: 150  -  total flux cleaned = 0.00323982 Jy
! Component: 200  -  total flux cleaned = 0.00328856 Jy
! Total flux subtracted in 200 components = 0.00328856 Jy
! Clean residual min=-0.002379 max=0.003158 Jy/beam
! Clean residual mean=0.000321 rms=0.000762 Jy/beam
! Combined flux in latest and established models = 0.764272 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 89 components and 0.764272 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223701Jy  sigma=0.001358
! Fit after  self-cal, rms=0.223701Jy  sigma=0.001358
! 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.223701Jy  sigma=0.001358
! Fit after  self-cal, rms=0.223527Jy  sigma=0.001358
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.818 mas, bmaj=7.533 mas, bpa=-1.957 degrees
! Estimated noise=551.334 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000624473 Jy
! Component: 100  -  total flux cleaned = 0.000717432 Jy
! Component: 150  -  total flux cleaned = 0.000886459 Jy
! Component: 200  -  total flux cleaned = 0.00104406 Jy
! Total flux subtracted in 200 components = 0.00104406 Jy
! Clean residual min=-0.002274 max=0.002983 Jy/beam
! Clean residual mean=0.000316 rms=0.000731 Jy/beam
! Combined flux in latest and established models = 0.765316 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 91 components and 0.765316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223506Jy  sigma=0.001357
! Fit after  self-cal, rms=0.223522Jy  sigma=0.001357
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 = -8.56042e-07 Jy
! Component: 100  -  total flux cleaned = 0.000143795 Jy
! Component: 150  -  total flux cleaned = 0.000282921 Jy
! Component: 200  -  total flux cleaned = 0.000382101 Jy
! Total flux subtracted in 200 components = 0.000382101 Jy
! Clean residual min=-0.002292 max=0.002923 Jy/beam
! Clean residual mean=0.000311 rms=0.000721 Jy/beam
! Combined flux in latest and established models = 0.765698 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 99 components and 0.765698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223509Jy  sigma=0.001357
! Fit after  self-cal, rms=0.223509Jy  sigma=0.001357
! 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.223509Jy  sigma=0.001357
! Fit after  self-cal, rms=0.223401Jy  sigma=0.001357
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.209 mas, bmaj=13.21 mas, bpa=2.396 degrees
! Estimated noise=701.233 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00204112 Jy
! Component: 100  -  total flux cleaned = 0.00295779 Jy
! Component: 150  -  total flux cleaned = 0.00334729 Jy
! Component: 200  -  total flux cleaned = 0.00344744 Jy
! Total flux subtracted in 200 components = 0.00344744 Jy
! Clean residual min=-0.002107 max=0.003203 Jy/beam
! Clean residual mean=0.000646 rms=0.000923 Jy/beam
! Combined flux in latest and established models = 0.769146 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 105 components and 0.769146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223404Jy  sigma=0.001357
! Fit after  self-cal, rms=0.223404Jy  sigma=0.001357
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.000462158 Jy
! Component: 100  -  total flux cleaned = 0.00057911 Jy
! Component: 150  -  total flux cleaned = 0.000662249 Jy
! Component: 200  -  total flux cleaned = 0.000740353 Jy
! Total flux subtracted in 200 components = 0.000740353 Jy
! Clean residual min=-0.002064 max=0.003150 Jy/beam
! Clean residual mean=0.000629 rms=0.000916 Jy/beam
! Combined flux in latest and established models = 0.769886 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 114 components and 0.769886 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223406Jy  sigma=0.001357
! Fit after  self-cal, rms=0.223404Jy  sigma=0.001357
! 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.818 mas, bmaj=7.534 mas, bpa=-1.961 degrees
! Estimated noise=551.347 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.818 x 7.534 at -1.961 degrees (North through East)
! Clean map  min=-0.0020451  max=0.71465 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.223404Jy  sigma=0.001357
! Fit after  self-cal, rms=0.452812Jy  sigma=0.001239
! Inverting map and beam 
! Estimated beam: bmin=2.816 mas, bmaj=7.536 mas, bpa=-1.955 degrees
! Estimated noise=552.183 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000818533 Jy
! Component: 100  -  total flux cleaned = -0.000866195 Jy
! Component: 150  -  total flux cleaned = -0.000866064 Jy
! Component: 200  -  total flux cleaned = -0.000829882 Jy
! Total flux subtracted in 200 components = -0.000829882 Jy
! Clean residual min=-0.002208 max=0.002737 Jy/beam
! Clean residual mean=0.000265 rms=0.000697 Jy/beam
! Combined flux in latest and established models = 0.769056 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 123 components and 0.769056 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.452794Jy  sigma=0.001239
! Fit after  self-cal, rms=0.452828Jy  sigma=0.001239
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -7.36906e-05 Jy
! Component: 100  -  total flux cleaned = -7.40093e-05 Jy
! Component: 150  -  total flux cleaned = -0.000105548 Jy
! Component: 200  -  total flux cleaned = -0.000165438 Jy
! Total flux subtracted in 200 components = -0.000165438 Jy
! Clean residual min=-0.002234 max=0.002691 Jy/beam
! Clean residual mean=0.000268 rms=0.000691 Jy/beam
! Combined flux in latest and established models = 0.768891 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 127 components and 0.768891 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.452818Jy  sigma=0.001239
! Fit after  self-cal, rms=0.452817Jy  sigma=0.001239
! 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.452817Jy  sigma=0.001239
! Fit after  self-cal, rms=1.004362Jy  sigma=0.001239
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.088 mas, bmaj=5.283 mas, bpa=-2.482 degrees
! Estimated noise=1500.42 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.548603 Jy
! Component: 100  -  total flux cleaned = 0.668234 Jy
! Component: 150  -  total flux cleaned = 0.69968 Jy
! Component: 200  -  total flux cleaned = 0.717311 Jy
! Total flux subtracted in 200 components = 0.717311 Jy
! Clean residual min=-0.007598 max=0.009738 Jy/beam
! Clean residual mean=0.000136 rms=0.002105 Jy/beam
! Combined flux in latest and established models = 0.717311 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.717311 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.816 mas, bmaj=7.537 mas, bpa=-1.955 degrees
! Estimated noise=552.193 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.0183602 Jy
! Component: 100  -  total flux cleaned = 0.0273246 Jy
! Component: 150  -  total flux cleaned = 0.0329074 Jy
! Component: 200  -  total flux cleaned = 0.0369372 Jy
! Total flux subtracted in 200 components = 0.0369372 Jy
! Clean residual min=-0.003017 max=0.003600 Jy/beam
! Clean residual mean=0.000431 rms=0.000887 Jy/beam
! Combined flux in latest and established models = 0.754248 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 59 components and 0.754248 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.209 mas, bmaj=13.21 mas, bpa=2.398 degrees
! Estimated noise=702.802 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00521527 Jy
! Component: 100  -  total flux cleaned = 0.00838005 Jy
! Component: 150  -  total flux cleaned = 0.0107531 Jy
! Component: 200  -  total flux cleaned = 0.0126001 Jy
! Total flux subtracted in 200 components = 0.0126001 Jy
! Clean residual min=-0.002588 max=0.003520 Jy/beam
! Clean residual mean=0.000691 rms=0.000987 Jy/beam
! Combined flux in latest and established models = 0.766849 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.00119531 Jy
! Component: 100  -  total flux cleaned = 0.00199694 Jy
! Component: 150  -  total flux cleaned = 0.00260223 Jy
! Component: 200  -  total flux cleaned = 0.00298582 Jy
! Total flux subtracted in 200 components = 0.00298582 Jy
! Clean residual min=-0.002298 max=0.003433 Jy/beam
! Clean residual mean=0.000611 rms=0.000954 Jy/beam
! Combined flux in latest and established models = 0.769834 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 88 components and 0.769835 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.816 mas, bmaj=7.537 mas, bpa=-1.955 degrees
! Estimated noise=552.193 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000458593 Jy
! Component: 100  -  total flux cleaned = 0.000243759 Jy
! Component: 150  -  total flux cleaned = -7.20105e-05 Jy
! Component: 200  -  total flux cleaned = -0.000187233 Jy
! Total flux subtracted in 200 components = -0.000187233 Jy
! Clean residual min=-0.002273 max=0.002928 Jy/beam
! Clean residual mean=0.000260 rms=0.000720 Jy/beam
! Combined flux in latest and established models = 0.769647 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 110 components and 0.769647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.004361Jy  sigma=0.001239
! Fit after  self-cal, rms=1.004376Jy  sigma=0.001239
wmodel J0050-0929_S_2001_07_05_pus_map.mod
! Writing 110 model components to file: J0050-0929_S_2001_07_05_pus_map.mod
wobs J0050-0929_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0050-0929_S_2001_07_05_pus_uvs.fits
wwins J0050-0929_S_2001_07_05_pus_map.win
! wwins: Wrote 3 windows to J0050-0929_S_2001_07_05_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.00125527 Jy
! Component: 100  -  total flux cleaned = 0.00236124 Jy
! Component: 150  -  total flux cleaned = 0.00312063 Jy
! Component: 200  -  total flux cleaned = 0.00368786 Jy
! Component: 250  -  total flux cleaned = 0.00419789 Jy
! Component: 300  -  total flux cleaned = 0.00461736 Jy
! Component: 350  -  total flux cleaned = 0.00491484 Jy
! Component: 400  -  total flux cleaned = 0.00524141 Jy
! Component: 450  -  total flux cleaned = 0.00555982 Jy
! Component: 500  -  total flux cleaned = 0.00576794 Jy
! Component: 550  -  total flux cleaned = 0.00617494 Jy
! Component: 600  -  total flux cleaned = 0.00650724 Jy
! Component: 650  -  total flux cleaned = 0.00693152 Jy
! Component: 700  -  total flux cleaned = 0.00725204 Jy
! Component: 750  -  total flux cleaned = 0.0075679 Jy
! Component: 800  -  total flux cleaned = 0.00794051 Jy
! Component: 850  -  total flux cleaned = 0.00818499 Jy
! Component: 900  -  total flux cleaned = 0.00854568 Jy
! Component: 950  -  total flux cleaned = 0.00884142 Jy
! Component: 1000  -  total flux cleaned = 0.00907473 Jy
! Component: 1050  -  total flux cleaned = 0.00936266 Jy
! Component: 1100  -  total flux cleaned = 0.00964681 Jy
! Component: 1150  -  total flux cleaned = 0.00992701 Jy
! Component: 1200  -  total flux cleaned = 0.0102039 Jy
! Component: 1250  -  total flux cleaned = 0.0104771 Jy
! Component: 1300  -  total flux cleaned = 0.0107471 Jy
! Component: 1350  -  total flux cleaned = 0.0110402 Jy
! Component: 1400  -  total flux cleaned = 0.0112773 Jy
! Component: 1450  -  total flux cleaned = 0.0114858 Jy
! Component: 1500  -  total flux cleaned = 0.0118201 Jy
! Component: 1550  -  total flux cleaned = 0.011973 Jy
! Component: 1600  -  total flux cleaned = 0.0122755 Jy
! Component: 1650  -  total flux cleaned = 0.0125248 Jy
! Component: 1700  -  total flux cleaned = 0.0127227 Jy
! Component: 1750  -  total flux cleaned = 0.0129922 Jy
! Component: 1800  -  total flux cleaned = 0.0132108 Jy
! Component: 1850  -  total flux cleaned = 0.0134757 Jy
! Component: 1900  -  total flux cleaned = 0.0137143 Jy
! Component: 1950  -  total flux cleaned = 0.0139982 Jy
! Component: 2000  -  total flux cleaned = 0.0141861 Jy
! Total flux subtracted in 2048 components = 0.0144191 Jy
! Clean residual min=-0.001355 max=0.001560 Jy/beam
! Clean residual mean=0.000108 rms=0.000448 Jy/beam
! Combined flux in latest and established models = 0.784066 Jy
keep
! Adding 142 model components to the UV plane model.
! The established model now contains 252 components and 0.784066 Jy
wmap "J0050-0929_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.816 x 7.537 at -1.955 degrees (North through East)
! Clean map  min=-0.0020715  max=0.71524 Jy/beam
! Writing clean map to FITS file: J0050-0929_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.715237 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000446676 
device "J0050-0929_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0050-0929_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.187355 0.187355 0.374709 0.749418 1.49884 2.99767 5.99535 11.9907 23.9814 47.9628 95.9255
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.715 
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.816 x 7.537 at -1.955 degrees (North through East)
! Clean map  min=-0.0020715  max=0.71524 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0050-0929_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0050-0929_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0050-0929_S_2001_07_05_pus_uvs.log closed on Sun Aug 12 17:13:17 2007