! Started logfile: J1316-3338_S_2001_07_05_pus_uvs.log on Fri Aug 10 01:22:32 2007
obs J1316-3338_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1316-3338_S_2001_07_05_pus_uva.fits
! AN table 1: 35 integrations on 171 of 171 possible baselines.
! AN table 2: 70 integrations on 171 of 171 possible baselines.
! AN table 3: 26 integrations on 171 of 171 possible baselines.
! AN table 4: 45 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0560207 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1316-3338
! 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 1774 lines of history.
! 
! Reading 6744 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 656 telescope corrections were flagged in sub-array 1.
!  A total of 910 telescope corrections were flagged in sub-array 2.
!  A total of 449 telescope corrections were flagged in sub-array 3.
!  A total of 813 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 656 telescope corrections were flagged in sub-array 1.
!  A total of 910 telescope corrections were flagged in sub-array 2.
!  A total of 449 telescope corrections were flagged in sub-array 3.
!  A total of 813 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 656 telescope corrections were flagged in sub-array 1.
!  A total of 910 telescope corrections were flagged in sub-array 2.
!  A total of 449 telescope corrections were flagged in sub-array 3.
!  A total of 813 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 656 telescope corrections were flagged in sub-array 1.
!  A total of 910 telescope corrections were flagged in sub-array 2.
!  A total of 449 telescope corrections were flagged in sub-array 3.
!  A total of 813 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.808569Jy  sigma=0.006168
! Fit after  self-cal, rms=0.306688Jy  sigma=0.002179
! 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.331 mas, bmaj=5.973 mas, bpa=3.706 degrees
! Estimated noise=2457.23 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.678271 Jy
! Component: 100  -  total flux cleaned = 0.831972 Jy
! Total flux subtracted in 100 components = 0.831972 Jy
! Clean residual min=-0.041673 max=0.086828 Jy/beam
! Clean residual mean=-0.000332 rms=0.014088 Jy/beam
! Combined flux in latest and established models = 0.831972 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.831972 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295882Jy  sigma=0.002185
! Fit after  self-cal, rms=0.295652Jy  sigma=0.002184
! Inverting map 
! Added new window around map position (-3, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0892694 Jy
! Component: 100  -  total flux cleaned = 0.144803 Jy
! Total flux subtracted in 100 components = 0.144803 Jy
! Clean residual min=-0.035254 max=0.061310 Jy/beam
! Clean residual mean=-0.000468 rms=0.010263 Jy/beam
! Combined flux in latest and established models = 0.976775 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 17 components and 0.976775 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.254582Jy  sigma=0.001819
! Fit after  self-cal, rms=0.252253Jy  sigma=0.001805
! 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.154 mas, bmaj=8.285 mas, bpa=-1.753 degrees
! Estimated noise=1206.6 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.0676825 Jy
! Component: 100  -  total flux cleaned = 0.0987199 Jy
! Component: 150  -  total flux cleaned = 0.11424 Jy
! Component: 200  -  total flux cleaned = 0.117091 Jy
! Total flux subtracted in 200 components = 0.117091 Jy
! Clean residual min=-0.030873 max=0.045865 Jy/beam
! Clean residual mean=-0.001112 rms=0.009444 Jy/beam
! Combined flux in latest and established models = 1.09387 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 27 components and 1.09387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237566Jy  sigma=0.001663
! Fit after  self-cal, rms=0.235540Jy  sigma=0.001649
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.12     KK        0.94     KP        0.80     
!   LA        1.00     MC        1.00*    MK        0.97     NL        1.16     
!   NY        1.00*    OV        1.06     PT        0.96     SC        1.01     
!   TS        1.00*    WF        0.91     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.88     KP        1.25     
!   LA        1.00*    MC        1.00*    MK        1.00     NL        1.00*    
!   NY        1.00*    OV        0.88     PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.20     KK        0.91     KP        0.99     
!   LA        0.97     MC        1.00*    MK        0.92     NL        1.11     
!   NY        1.00*    OV        1.08     PT        1.02     SC        0.98     
!   TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.92     KP        1.03     
!   LA        1.00*    MC        1.00*    MK        0.92     NL        1.00*    
!   NY        1.00*    OV        1.02     PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.25     KK        0.96     KP        0.98     
!   LA        1.00     MC        1.00*    MK        0.97     NL        1.14     
!   NY        1.00*    OV        1.10     PT        1.03     SC        1.00     
!   TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        1.10     
!   LA        1.00*    MC        1.00*    MK        0.89     NL        1.00*    
!   NY        1.00*    OV        1.00     PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.11     KK        0.94     KP        0.97     
!   LA        0.99     MC        1.00*    MK        0.95     NL        1.11     
!   NY        1.00*    OV        1.03     PT        1.00     SC        0.96     
!   TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.93     KP        1.17     
!   LA        1.00*    MC        1.00*    MK        0.94     NL        1.00*    
!   NY        1.00*    OV        0.94     PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.235540Jy  sigma=0.001649
! Fit after  self-cal, rms=0.215257Jy  sigma=0.001507
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.249 mas, bmaj=9.332 mas, bpa=-3.112 degrees
! Estimated noise=1227.31 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.00376192 Jy
! Component: 100  -  total flux cleaned = 0.00436167 Jy
! Component: 150  -  total flux cleaned = 0.00415042 Jy
! Component: 200  -  total flux cleaned = 0.00415334 Jy
! Total flux subtracted in 200 components = 0.00415334 Jy
! Clean residual min=-0.025199 max=0.022913 Jy/beam
! Clean residual mean=-0.000315 rms=0.007153 Jy/beam
! Combined flux in latest and established models = 1.09802 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 34 components and 1.09802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214598Jy  sigma=0.001502
! Fit after  self-cal, rms=0.214726Jy  sigma=0.001502
! 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.214726Jy  sigma=0.001502
! Fit after  self-cal, rms=0.190992Jy  sigma=0.001242
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.242 mas, bmaj=9.285 mas, bpa=-3.077 degrees
! Estimated noise=1226.8 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00311228 Jy
! Component: 100  -  total flux cleaned = -0.00310671 Jy
! Component: 150  -  total flux cleaned = -0.00278086 Jy
! Component: 200  -  total flux cleaned = -0.00251015 Jy
! Total flux subtracted in 200 components = -0.00251015 Jy
! Clean residual min=-0.012341 max=0.020405 Jy/beam
! Clean residual mean=-0.001064 rms=0.003458 Jy/beam
! Combined flux in latest and established models = 1.09551 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 44 components and 1.09551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189704Jy  sigma=0.001232
! Fit after  self-cal, rms=0.189637Jy  sigma=0.001231
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 (-9.5, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.014331 Jy
! Component: 100  -  total flux cleaned = 0.0150233 Jy
! Component: 150  -  total flux cleaned = 0.0158126 Jy
! Component: 200  -  total flux cleaned = 0.0164943 Jy
! Total flux subtracted in 200 components = 0.0164943 Jy
! Clean residual min=-0.010460 max=0.008485 Jy/beam
! Clean residual mean=-0.001224 rms=0.002568 Jy/beam
! Combined flux in latest and established models = 1.112 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 73 components and 1.112 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187914Jy  sigma=0.001218
! Fit after  self-cal, rms=0.187807Jy  sigma=0.001217
! 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.187807Jy  sigma=0.001217
! Fit after  self-cal, rms=0.188072Jy  sigma=0.001213
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.232 mas, bmaj=9.247 mas, bpa=-3.023 degrees
! Estimated noise=1223.66 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00143182 Jy
! Component: 100  -  total flux cleaned = 0.00248595 Jy
! Component: 150  -  total flux cleaned = 0.00291305 Jy
! Component: 200  -  total flux cleaned = 0.00309515 Jy
! Total flux subtracted in 200 components = 0.00309515 Jy
! Clean residual min=-0.009555 max=0.006445 Jy/beam
! Clean residual mean=-0.000919 rms=0.002157 Jy/beam
! Combined flux in latest and established models = 1.1151 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 92 components and 1.1151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187288Jy  sigma=0.001208
! Fit after  self-cal, rms=0.187273Jy  sigma=0.001208
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.00104032 Jy
! Component: 100  -  total flux cleaned = 0.001359 Jy
! Component: 150  -  total flux cleaned = 0.0015021 Jy
! Component: 200  -  total flux cleaned = 0.00163372 Jy
! Total flux subtracted in 200 components = 0.00163372 Jy
! Clean residual min=-0.008533 max=0.006098 Jy/beam
! Clean residual mean=-0.000940 rms=0.002036 Jy/beam
! Combined flux in latest and established models = 1.11673 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 106 components and 1.11673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187023Jy  sigma=0.001206
! Fit after  self-cal, rms=0.187007Jy  sigma=0.001206
! 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.187007Jy  sigma=0.001206
! Fit after  self-cal, rms=0.187412Jy  sigma=0.001205
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.308 mas, bmaj=24.55 mas, bpa=-4.907 degrees
! Estimated noise=1480.48 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000239873 Jy
! Component: 100  -  total flux cleaned = -0.000238278 Jy
! Component: 150  -  total flux cleaned = -0.000244975 Jy
! Component: 200  -  total flux cleaned = -0.000308404 Jy
! Total flux subtracted in 200 components = -0.000308404 Jy
! Clean residual min=-0.008075 max=0.004810 Jy/beam
! Clean residual mean=-0.001318 rms=0.002227 Jy/beam
! Combined flux in latest and established models = 1.11643 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 128 components and 1.11643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187236Jy  sigma=0.001204
! Fit after  self-cal, rms=0.187223Jy  sigma=0.001204
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.000178988 Jy
! Component: 100  -  total flux cleaned = 0.000242446 Jy
! Component: 150  -  total flux cleaned = 0.000188586 Jy
! Component: 200  -  total flux cleaned = 0.000241159 Jy
! Total flux subtracted in 200 components = 0.000241159 Jy
! Clean residual min=-0.007866 max=0.004707 Jy/beam
! Clean residual mean=-0.001325 rms=0.002204 Jy/beam
! Combined flux in latest and established models = 1.11667 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 137 components and 1.11667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187165Jy  sigma=0.001203
! Fit after  self-cal, rms=0.187150Jy  sigma=0.001203
! 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.231 mas, bmaj=9.231 mas, bpa=-2.972 degrees
! Estimated noise=1222.08 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.231 x 9.231 at -2.972 degrees (North through East)
! Clean map  min=-0.0080031  max=0.85668 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.187150Jy  sigma=0.001203
! Fit after  self-cal, rms=0.174874Jy  sigma=0.001089
! Inverting map and beam 
! Estimated beam: bmin=3.229 mas, bmaj=9.212 mas, bpa=-2.908 degrees
! Estimated noise=1218.39 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00133561 Jy
! Component: 100  -  total flux cleaned = -0.00162606 Jy
! Component: 150  -  total flux cleaned = -0.00162409 Jy
! Component: 200  -  total flux cleaned = -0.00183381 Jy
! Total flux subtracted in 200 components = -0.00183381 Jy
! Clean residual min=-0.007358 max=0.004912 Jy/beam
! Clean residual mean=-0.000600 rms=0.001703 Jy/beam
! Combined flux in latest and established models = 1.11483 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 143 components and 1.11483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174635Jy  sigma=0.001088
! Fit after  self-cal, rms=0.174634Jy  sigma=0.001088
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000337904 Jy
! Component: 100  -  total flux cleaned = 0.000337454 Jy
! Component: 150  -  total flux cleaned = 0.000337909 Jy
! Component: 200  -  total flux cleaned = 0.000335737 Jy
! Total flux subtracted in 200 components = 0.000335737 Jy
! Clean residual min=-0.006922 max=0.004731 Jy/beam
! Clean residual mean=-0.000604 rms=0.001665 Jy/beam
! Combined flux in latest and established models = 1.11517 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 146 components and 1.11517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174547Jy  sigma=0.001087
! Fit after  self-cal, rms=0.174546Jy  sigma=0.001087
! 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.174546Jy  sigma=0.001087
! Fit after  self-cal, rms=0.174860Jy  sigma=0.001086
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.488 mas, bmaj=7.415 mas, bpa=-0.03054 degrees
! Estimated noise=2446.45 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.658706 Jy
! Component: 100  -  total flux cleaned = 0.823454 Jy
! Component: 150  -  total flux cleaned = 0.909337 Jy
! Component: 200  -  total flux cleaned = 0.964037 Jy
! Total flux subtracted in 200 components = 0.964037 Jy
! Clean residual min=-0.014695 max=0.029331 Jy/beam
! Clean residual mean=-0.000041 rms=0.005670 Jy/beam
! Combined flux in latest and established models = 0.964037 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 29 model components to the UV plane model.
! The established model now contains 29 components and 0.964037 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.231 mas, bmaj=9.207 mas, bpa=-2.866 degrees
! Estimated noise=1217.19 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.0598048 Jy
! Component: 100  -  total flux cleaned = 0.0922949 Jy
! Component: 150  -  total flux cleaned = 0.111701 Jy
! Component: 200  -  total flux cleaned = 0.124045 Jy
! Total flux subtracted in 200 components = 0.124045 Jy
! Clean residual min=-0.006379 max=0.008099 Jy/beam
! Clean residual mean=-0.000253 rms=0.002238 Jy/beam
! Combined flux in latest and established models = 1.08808 Jy
! Adding 81 model components to the UV plane model.
! The established model now contains 104 components and 1.08808 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.316 mas, bmaj=24.51 mas, bpa=-4.756 degrees
! Estimated noise=1474.57 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0119935 Jy
! Component: 100  -  total flux cleaned = 0.0177277 Jy
! Component: 150  -  total flux cleaned = 0.0206209 Jy
! Component: 200  -  total flux cleaned = 0.0221051 Jy
! Total flux subtracted in 200 components = 0.0221051 Jy
! Clean residual min=-0.006625 max=0.004721 Jy/beam
! Clean residual mean=-0.000827 rms=0.001854 Jy/beam
! Combined flux in latest and established models = 1.11019 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.000703468 Jy
! Component: 100  -  total flux cleaned = 0.000725449 Jy
! Component: 150  -  total flux cleaned = 0.000725518 Jy
! Component: 200  -  total flux cleaned = 0.000747437 Jy
! Total flux subtracted in 200 components = 0.000747437 Jy
! Clean residual min=-0.006525 max=0.004631 Jy/beam
! Clean residual mean=-0.000839 rms=0.001840 Jy/beam
! Combined flux in latest and established models = 1.11093 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 144 components and 1.11093 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.231 mas, bmaj=9.207 mas, bpa=-2.866 degrees
! Estimated noise=1217.19 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000526946 Jy
! Component: 100  -  total flux cleaned = -0.000396906 Jy
! Component: 150  -  total flux cleaned = -0.000299795 Jy
! Component: 200  -  total flux cleaned = -0.000299536 Jy
! Total flux subtracted in 200 components = -0.000299536 Jy
! Clean residual min=-0.005971 max=0.004473 Jy/beam
! Clean residual mean=-0.000443 rms=0.001569 Jy/beam
! Combined flux in latest and established models = 1.11064 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 162 components and 1.11064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174644Jy  sigma=0.001086
! Fit after  self-cal, rms=0.174592Jy  sigma=0.001085
wmodel J1316-3338_S_2001_07_05_pus_map.mod
! Writing 162 model components to file: J1316-3338_S_2001_07_05_pus_map.mod
wobs J1316-3338_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1316-3338_S_2001_07_05_pus_uvs.fits
wwins J1316-3338_S_2001_07_05_pus_map.win
! wwins: Wrote 3 windows to J1316-3338_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.00267904 Jy
! Component: 100  -  total flux cleaned = -0.00500293 Jy
! Component: 150  -  total flux cleaned = -0.00703464 Jy
! Component: 200  -  total flux cleaned = -0.00853915 Jy
! Component: 250  -  total flux cleaned = -0.00974794 Jy
! Component: 300  -  total flux cleaned = -0.0109052 Jy
! Component: 350  -  total flux cleaned = -0.0118113 Jy
! Component: 400  -  total flux cleaned = -0.0128225 Jy
! Component: 450  -  total flux cleaned = -0.0137356 Jy
! Component: 500  -  total flux cleaned = -0.0146826 Jy
! Component: 550  -  total flux cleaned = -0.0156013 Jy
! Component: 600  -  total flux cleaned = -0.0163169 Jy
! Component: 650  -  total flux cleaned = -0.0170146 Jy
! Component: 700  -  total flux cleaned = -0.0175817 Jy
! Component: 750  -  total flux cleaned = -0.0181907 Jy
! Component: 800  -  total flux cleaned = -0.0187316 Jy
! Component: 850  -  total flux cleaned = -0.0193139 Jy
! Component: 900  -  total flux cleaned = -0.0198323 Jy
! Component: 950  -  total flux cleaned = -0.0203406 Jy
! Component: 1000  -  total flux cleaned = -0.0208393 Jy
! Component: 1050  -  total flux cleaned = -0.02123 Jy
! Component: 1100  -  total flux cleaned = -0.0217099 Jy
! Component: 1150  -  total flux cleaned = -0.0220865 Jy
! Component: 1200  -  total flux cleaned = -0.0225495 Jy
! Component: 1250  -  total flux cleaned = -0.0228231 Jy
! Component: 1300  -  total flux cleaned = -0.0231819 Jy
! Component: 1350  -  total flux cleaned = -0.0234908 Jy
! Component: 1400  -  total flux cleaned = -0.023838 Jy
! Component: 1450  -  total flux cleaned = -0.0240516 Jy
! Component: 1500  -  total flux cleaned = -0.0242204 Jy
! Component: 1550  -  total flux cleaned = -0.0245121 Jy
! Component: 1600  -  total flux cleaned = -0.0247174 Jy
! Component: 1650  -  total flux cleaned = -0.0250009 Jy
! Component: 1700  -  total flux cleaned = -0.0252003 Jy
! Component: 1750  -  total flux cleaned = -0.0253976 Jy
! Component: 1800  -  total flux cleaned = -0.0257084 Jy
! Component: 1850  -  total flux cleaned = -0.0259384 Jy
! Component: 1900  -  total flux cleaned = -0.0260142 Jy
! Component: 1950  -  total flux cleaned = -0.0262388 Jy
! Component: 2000  -  total flux cleaned = -0.0264608 Jy
! Total flux subtracted in 2048 components = -0.0266075 Jy
! Clean residual min=-0.002121 max=0.002306 Jy/beam
! Clean residual mean=-0.000153 rms=0.000749 Jy/beam
! Combined flux in latest and established models = 1.08403 Jy
keep
! Adding 137 model components to the UV plane model.
! The established model now contains 299 components and 1.08403 Jy
wmap "J1316-3338_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.231 x 9.207 at -2.866 degrees (North through East)
! Clean map  min=-0.0050823  max=0.86383 Jy/beam
! Writing clean map to FITS file: J1316-3338_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.863827 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000743077 
device "J1316-3338_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1316-3338_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.258064 0.258064 0.516129 1.03226 2.06451 4.12903 8.25806 16.5161 33.0322 66.0645
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.863 
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.231 x 9.207 at -2.866 degrees (North through East)
! Clean map  min=-0.0050823  max=0.86383 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1316-3338_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1316-3338_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1316-3338_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 01:23:44 2007