! Started logfile: J1454-3747_S_2001_07_05_pus_uvs.log on Sun Aug 12 23:28:14 2007
obs J1454-3747_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1454-3747_S_2001_07_05_pus_uva.fits
! AN table 1: 40 integrations on 171 of 171 possible baselines.
! AN table 2: 88 integrations on 171 of 171 possible baselines.
! AN table 3: 21 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0569881 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1454-3747
! 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 5808 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 = 1024 
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 = 1024x1024 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 530 telescope corrections were flagged in sub-array 1.
!  A total of 1265 telescope corrections were flagged in sub-array 2.
!  A total of 372 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 530 telescope corrections were flagged in sub-array 1.
!  A total of 1265 telescope corrections were flagged in sub-array 2.
!  A total of 372 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 530 telescope corrections were flagged in sub-array 1.
!  A total of 1265 telescope corrections were flagged in sub-array 2.
!  A total of 372 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 530 telescope corrections were flagged in sub-array 1.
!  A total of 1265 telescope corrections were flagged in sub-array 2.
!  A total of 372 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.069001Jy  sigma=0.007993
! Fit after  self-cal, rms=0.441122Jy  sigma=0.002424
! 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.656 mas, bmaj=16.97 mas, bpa=4.179 degrees
! Estimated noise=2623.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)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.52112 Jy
! Component: 100  -  total flux cleaned = 0.637535 Jy
! Total flux subtracted in 100 components = 0.637535 Jy
! Clean residual min=-0.028300 max=0.060835 Jy/beam
! Clean residual mean=0.000433 rms=0.010826 Jy/beam
! Combined flux in latest and established models = 0.637535 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 0.637535 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.416618Jy  sigma=0.002118
! Fit after  self-cal, rms=0.416614Jy  sigma=0.002118
! 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=4.57 mas, bmaj=26.11 mas, bpa=3.267 degrees
! Estimated noise=1239.78 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.140776 Jy
! Component: 100  -  total flux cleaned = 0.191237 Jy
! Component: 150  -  total flux cleaned = 0.213448 Jy
! Component: 200  -  total flux cleaned = 0.216684 Jy
! Total flux subtracted in 200 components = 0.216684 Jy
! Clean residual min=-0.033529 max=0.043139 Jy/beam
! Clean residual mean=0.000382 rms=0.011107 Jy/beam
! Combined flux in latest and established models = 0.854219 Jy
! Performing phase self-cal
! Adding 78 model components to the UV plane model.
! The established model now contains 89 components and 0.854219 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374575Jy  sigma=0.001609
! Fit after  self-cal, rms=0.374549Jy  sigma=0.001609
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.75     
!   LA        1.04     MC        1.00*    MK        1.00*    NL        1.16     
!   NY        1.00*    OV        1.20     PT        1.01     SC        1.11     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.93     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        0.98     
!   LA        0.98     MC        1.00*    MK        0.93     NL        1.00*    
!   NY        1.00*    OV        1.02     PT        0.96     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 3 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.00*    HN        1.00*    KK        1.00*    KP        1.58     
!   LA        0.99     MC        1.00*    MK        1.00*    NL        1.22     
!   NY        1.00*    OV        1.21     PT        1.03     SC        1.11     
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.94     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        0.87     
!   LA        0.96     MC        1.00*    MK        0.86     NL        1.00*    
!   NY        1.00*    OV        1.03     PT        0.98     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.93     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.02     
!   LA        0.99     MC        1.00*    MK        1.00*    NL        1.21     
!   NY        1.00*    OV        1.18     PT        1.03     SC        1.05     
!   TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.89     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        0.99     
!   LA        0.95     MC        1.00*    MK        0.88     NL        1.00*    
!   NY        1.00*    OV        1.06     PT        1.08     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        0.99     
!   LA        1.01     MC        1.00*    MK        1.00*    NL        1.10     
!   NY        1.00*    OV        1.09     PT        1.03     SC        1.05     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.91     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        0.97     
!   LA        0.95     MC        1.00*    MK        0.89     NL        1.00*    
!   NY        1.00*    OV        1.03     PT        1.22     SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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.374549Jy  sigma=0.001609
! Fit after  self-cal, rms=0.499111Jy  sigma=0.001370
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.85 mas, bmaj=28.26 mas, bpa=1.758 degrees
! Estimated noise=1259.88 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.00168697 Jy
! Component: 100  -  total flux cleaned = 0.00168171 Jy
! Component: 150  -  total flux cleaned = 0.00167908 Jy
! Component: 200  -  total flux cleaned = 0.00155793 Jy
! Total flux subtracted in 200 components = 0.00155793 Jy
! Clean residual min=-0.010255 max=0.016343 Jy/beam
! Clean residual mean=-0.000063 rms=0.003540 Jy/beam
! Combined flux in latest and established models = 0.855777 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 98 components and 0.855777 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.498766Jy  sigma=0.001368
! Fit after  self-cal, rms=0.499269Jy  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.499269Jy  sigma=0.001367
! Fit after  self-cal, rms=0.506923Jy  sigma=0.001367
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.839 mas, bmaj=28.27 mas, bpa=1.78 degrees
! Estimated noise=1259.58 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00130478 Jy
! Component: 100  -  total flux cleaned = 0.00131293 Jy
! Component: 150  -  total flux cleaned = 0.00119319 Jy
! Component: 200  -  total flux cleaned = 0.00119404 Jy
! Total flux subtracted in 200 components = 0.00119404 Jy
! Clean residual min=-0.010124 max=0.015855 Jy/beam
! Clean residual mean=-0.000066 rms=0.003485 Jy/beam
! Combined flux in latest and established models = 0.856971 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 102 components and 0.856971 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.506678Jy  sigma=0.001366
! Fit after  self-cal, rms=0.506684Jy  sigma=0.001366
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 (-19.5, -16.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0139643 Jy
! Component: 100  -  total flux cleaned = 0.0158182 Jy
! Component: 150  -  total flux cleaned = 0.015161 Jy
! Component: 200  -  total flux cleaned = 0.0148024 Jy
! Total flux subtracted in 200 components = 0.0148024 Jy
! Clean residual min=-0.007696 max=0.009533 Jy/beam
! Clean residual mean=-0.000226 rms=0.002459 Jy/beam
! Combined flux in latest and established models = 0.871773 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 141 components and 0.871773 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.506150Jy  sigma=0.001357
! Fit after  self-cal, rms=0.506075Jy  sigma=0.001356
! 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.506075Jy  sigma=0.001356
! Fit after  self-cal, rms=0.509309Jy  sigma=0.001355
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.819 mas, bmaj=28.27 mas, bpa=1.801 degrees
! Estimated noise=1258.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0059923 Jy
! Component: 100  -  total flux cleaned = 0.00672133 Jy
! Component: 150  -  total flux cleaned = 0.00687079 Jy
! Component: 200  -  total flux cleaned = 0.00686729 Jy
! Total flux subtracted in 200 components = 0.00686729 Jy
! Clean residual min=-0.006856 max=0.008447 Jy/beam
! Clean residual mean=-0.000133 rms=0.002203 Jy/beam
! Combined flux in latest and established models = 0.878641 Jy
selfcal
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 175 components and 0.878641 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.509049Jy  sigma=0.001353
! Fit after  self-cal, rms=0.509017Jy  sigma=0.001352
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.00182282 Jy
! Component: 100  -  total flux cleaned = 0.00195377 Jy
! Component: 150  -  total flux cleaned = 0.00207378 Jy
! Component: 200  -  total flux cleaned = 0.00228932 Jy
! Total flux subtracted in 200 components = 0.00228932 Jy
! Clean residual min=-0.006599 max=0.007853 Jy/beam
! Clean residual mean=-0.000158 rms=0.002112 Jy/beam
! Combined flux in latest and established models = 0.88093 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 198 components and 0.88093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.508903Jy  sigma=0.001352
! Fit after  self-cal, rms=0.508884Jy  sigma=0.001351
! 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.508884Jy  sigma=0.001351
! Fit after  self-cal, rms=0.510358Jy  sigma=0.001351
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=12.42 mas, bmaj=34.4 mas, bpa=5.505 degrees
! Estimated noise=1371.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00449491 Jy
! Component: 100  -  total flux cleaned = 0.0045049 Jy
! Component: 150  -  total flux cleaned = 0.00450449 Jy
! Component: 200  -  total flux cleaned = 0.00442136 Jy
! Total flux subtracted in 200 components = 0.00442136 Jy
! Clean residual min=-0.007067 max=0.007638 Jy/beam
! Clean residual mean=-0.000154 rms=0.002121 Jy/beam
! Combined flux in latest and established models = 0.885351 Jy
selfcal
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 228 components and 0.885351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.510238Jy  sigma=0.001350
! Fit after  self-cal, rms=0.510213Jy  sigma=0.001350
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.00124822 Jy
! Component: 100  -  total flux cleaned = 0.00160722 Jy
! Component: 150  -  total flux cleaned = 0.00160935 Jy
! Component: 200  -  total flux cleaned = 0.00147533 Jy
! Total flux subtracted in 200 components = 0.00147533 Jy
! Clean residual min=-0.006966 max=0.007241 Jy/beam
! Clean residual mean=-0.000173 rms=0.002060 Jy/beam
! Combined flux in latest and established models = 0.886827 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 248 components and 0.886827 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.510144Jy  sigma=0.001350
! Fit after  self-cal, rms=0.510123Jy  sigma=0.001349
! 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=4.814 mas, bmaj=28.26 mas, bpa=1.822 degrees
! Estimated noise=1258.48 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.814 x 28.26 at 1.822 degrees (North through East)
! Clean map  min=-0.006534  max=0.75521 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.510123Jy  sigma=0.001349
! Fit after  self-cal, rms=0.246650Jy  sigma=0.001106
! Inverting map and beam 
! Estimated beam: bmin=4.823 mas, bmaj=28.24 mas, bpa=1.805 degrees
! Estimated noise=1258.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.99601e-05 Jy
! Component: 100  -  total flux cleaned = -0.00010239 Jy
! Component: 150  -  total flux cleaned = -0.000317029 Jy
! Component: 200  -  total flux cleaned = -0.000416361 Jy
! Total flux subtracted in 200 components = -0.000416361 Jy
! Clean residual min=-0.005693 max=0.006162 Jy/beam
! Clean residual mean=-0.000091 rms=0.001600 Jy/beam
! Combined flux in latest and established models = 0.88641 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 264 components and 0.88641 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246514Jy  sigma=0.001105
! Fit after  self-cal, rms=0.246485Jy  sigma=0.001104
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000699899 Jy
! Component: 100  -  total flux cleaned = 0.000704902 Jy
! Component: 150  -  total flux cleaned = 0.000708064 Jy
! Component: 200  -  total flux cleaned = 0.000630218 Jy
! Total flux subtracted in 200 components = 0.000630218 Jy
! Clean residual min=-0.005816 max=0.006225 Jy/beam
! Clean residual mean=-0.000097 rms=0.001583 Jy/beam
! Combined flux in latest and established models = 0.887041 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 270 components and 0.887041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246407Jy  sigma=0.001104
! Fit after  self-cal, rms=0.246390Jy  sigma=0.001104
! 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.246390Jy  sigma=0.001104
! Fit after  self-cal, rms=0.246474Jy  sigma=0.001104
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.874 mas, bmaj=19.76 mas, bpa=1.213 degrees
! Estimated noise=2819.52 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.537213 Jy
! Component: 100  -  total flux cleaned = 0.663018 Jy
! Component: 150  -  total flux cleaned = 0.72326 Jy
! Component: 200  -  total flux cleaned = 0.759396 Jy
! Total flux subtracted in 200 components = 0.759396 Jy
! Clean residual min=-0.018065 max=0.025037 Jy/beam
! Clean residual mean=0.000246 rms=0.005277 Jy/beam
! Combined flux in latest and established models = 0.759396 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 30 model components to the UV plane model.
! The established model now contains 30 components and 0.759396 Jy
! Inverting map and beam 
! Estimated beam: bmin=4.827 mas, bmaj=28.25 mas, bpa=1.821 degrees
! Estimated noise=1258.1 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)
! Added new window around map position (-3.5, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0597814 Jy
! Component: 100  -  total flux cleaned = 0.0865104 Jy
! Component: 150  -  total flux cleaned = 0.102151 Jy
! Component: 200  -  total flux cleaned = 0.111991 Jy
! Total flux subtracted in 200 components = 0.111991 Jy
! Clean residual min=-0.007327 max=0.007901 Jy/beam
! Clean residual mean=0.000099 rms=0.002338 Jy/beam
! Combined flux in latest and established models = 0.871387 Jy
! Adding 137 model components to the UV plane model.
! The established model now contains 166 components and 0.871387 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=12.43 mas, bmaj=34.4 mas, bpa=5.409 degrees
! Estimated noise=1370.06 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00752978 Jy
! Component: 100  -  total flux cleaned = 0.0113537 Jy
! Component: 150  -  total flux cleaned = 0.0124864 Jy
! Component: 200  -  total flux cleaned = 0.0133795 Jy
! Total flux subtracted in 200 components = 0.0133795 Jy
! Clean residual min=-0.005466 max=0.005735 Jy/beam
! Clean residual mean=-0.000117 rms=0.001715 Jy/beam
! Combined flux in latest and established models = 0.884767 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.000649589 Jy
! Component: 100  -  total flux cleaned = 0.00119039 Jy
! Component: 150  -  total flux cleaned = 0.0013642 Jy
! Component: 200  -  total flux cleaned = 0.00136465 Jy
! Total flux subtracted in 200 components = 0.00136465 Jy
! Clean residual min=-0.004917 max=0.005508 Jy/beam
! Clean residual mean=-0.000152 rms=0.001593 Jy/beam
! Combined flux in latest and established models = 0.886131 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 215 components and 0.886132 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=4.827 mas, bmaj=28.25 mas, bpa=1.821 degrees
! Estimated noise=1258.1 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000207976 Jy
! Component: 100  -  total flux cleaned = -0.000401137 Jy
! Component: 150  -  total flux cleaned = -0.000576847 Jy
! Component: 200  -  total flux cleaned = -0.000578689 Jy
! Total flux subtracted in 200 components = -0.000578689 Jy
! Clean residual min=-0.005491 max=0.005329 Jy/beam
! Clean residual mean=-0.000108 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 0.885553 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 244 components and 0.885553 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245822Jy  sigma=0.001102
! Fit after  self-cal, rms=0.245742Jy  sigma=0.001102
wmodel J1454-3747_S_2001_07_05_pus_map.mod
! Writing 244 model components to file: J1454-3747_S_2001_07_05_pus_map.mod
wobs J1454-3747_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1454-3747_S_2001_07_05_pus_uvs.fits
wwins J1454-3747_S_2001_07_05_pus_map.win
! wwins: Wrote 3 windows to J1454-3747_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.0016984 Jy
! Component: 100  -  total flux cleaned = -0.00196999 Jy
! Component: 150  -  total flux cleaned = -0.00220851 Jy
! Component: 200  -  total flux cleaned = -0.00235994 Jy
! Component: 250  -  total flux cleaned = -0.00250294 Jy
! Component: 300  -  total flux cleaned = -0.00243504 Jy
! Component: 350  -  total flux cleaned = -0.0024344 Jy
! Component: 400  -  total flux cleaned = -0.00243262 Jy
! Component: 450  -  total flux cleaned = -0.00255584 Jy
! Component: 500  -  total flux cleaned = -0.00261631 Jy
! Component: 550  -  total flux cleaned = -0.002734 Jy
! Component: 600  -  total flux cleaned = -0.0026768 Jy
! Component: 650  -  total flux cleaned = -0.00256487 Jy
! Component: 700  -  total flux cleaned = -0.00261905 Jy
! Component: 750  -  total flux cleaned = -0.00245958 Jy
! Component: 800  -  total flux cleaned = -0.00251147 Jy
! Component: 850  -  total flux cleaned = -0.00240789 Jy
! Component: 900  -  total flux cleaned = -0.00225827 Jy
! Component: 950  -  total flux cleaned = -0.00220858 Jy
! Component: 1000  -  total flux cleaned = -0.00206254 Jy
! Component: 1050  -  total flux cleaned = -0.00191929 Jy
! Component: 1100  -  total flux cleaned = -0.00173123 Jy
! Component: 1150  -  total flux cleaned = -0.0016386 Jy
! Component: 1200  -  total flux cleaned = -0.0015016 Jy
! Component: 1250  -  total flux cleaned = -0.00145574 Jy
! Component: 1300  -  total flux cleaned = -0.0013661 Jy
! Component: 1350  -  total flux cleaned = -0.00145387 Jy
! Component: 1400  -  total flux cleaned = -0.00145354 Jy
! Component: 1450  -  total flux cleaned = -0.00153997 Jy
! Component: 1500  -  total flux cleaned = -0.00141152 Jy
! Component: 1550  -  total flux cleaned = -0.00149643 Jy
! Component: 1600  -  total flux cleaned = -0.00145413 Jy
! Component: 1650  -  total flux cleaned = -0.00128745 Jy
! Component: 1700  -  total flux cleaned = -0.0012047 Jy
! Component: 1750  -  total flux cleaned = -0.00108121 Jy
! Component: 1800  -  total flux cleaned = -0.000959443 Jy
! Component: 1850  -  total flux cleaned = -0.000879074 Jy
! Component: 1900  -  total flux cleaned = -0.000879308 Jy
! Component: 1950  -  total flux cleaned = -0.000839603 Jy
! Component: 2000  -  total flux cleaned = -0.000721414 Jy
! Component: 2050  -  total flux cleaned = -0.000643348 Jy
! Component: 2100  -  total flux cleaned = -0.000526559 Jy
! Component: 2150  -  total flux cleaned = -0.0004108 Jy
! Component: 2200  -  total flux cleaned = -0.000295424 Jy
! Component: 2250  -  total flux cleaned = -0.000180556 Jy
! Component: 2300  -  total flux cleaned = 9.47753e-06 Jy
! Component: 2350  -  total flux cleaned = 4.74018e-05 Jy
! Component: 2400  -  total flux cleaned = 0.000235553 Jy
! Component: 2450  -  total flux cleaned = 0.000385107 Jy
! Component: 2500  -  total flux cleaned = 0.000571176 Jy
! Component: 2550  -  total flux cleaned = 0.000719678 Jy
! Component: 2600  -  total flux cleaned = 0.000793864 Jy
! Component: 2650  -  total flux cleaned = 0.000905086 Jy
! Component: 2700  -  total flux cleaned = 0.00094219 Jy
! Component: 2750  -  total flux cleaned = 0.000942392 Jy
! Component: 2800  -  total flux cleaned = 0.00101632 Jy
! Component: 2850  -  total flux cleaned = 0.00116426 Jy
! Component: 2900  -  total flux cleaned = 0.00120113 Jy
! Component: 2950  -  total flux cleaned = 0.00127482 Jy
! Component: 3000  -  total flux cleaned = 0.00120115 Jy
! Component: 3050  -  total flux cleaned = 0.00127485 Jy
! Component: 3100  -  total flux cleaned = 0.0012749 Jy
! Component: 3150  -  total flux cleaned = 0.00134873 Jy
! Component: 3200  -  total flux cleaned = 0.0014231 Jy
! Component: 3250  -  total flux cleaned = 0.00142307 Jy
! Component: 3300  -  total flux cleaned = 0.00138568 Jy
! Component: 3350  -  total flux cleaned = 0.00142302 Jy
! Component: 3400  -  total flux cleaned = 0.0014603 Jy
! Component: 3450  -  total flux cleaned = 0.00146043 Jy
! Component: 3500  -  total flux cleaned = 0.00153549 Jy
! Component: 3550  -  total flux cleaned = 0.00149804 Jy
! Component: 3600  -  total flux cleaned = 0.00161191 Jy
! Component: 3650  -  total flux cleaned = 0.00172573 Jy
! Component: 3700  -  total flux cleaned = 0.00184065 Jy
! Component: 3750  -  total flux cleaned = 0.00184062 Jy
! Component: 3800  -  total flux cleaned = 0.00191759 Jy
! Component: 3850  -  total flux cleaned = 0.00199533 Jy
! Component: 3900  -  total flux cleaned = 0.00211287 Jy
! Component: 3950  -  total flux cleaned = 0.00207359 Jy
! Component: 4000  -  total flux cleaned = 0.00215265 Jy
! Component: 4050  -  total flux cleaned = 0.00227228 Jy
! Total flux subtracted in 4096 components = 0.00235257 Jy
! Clean residual min=-0.002694 max=0.002134 Jy/beam
! Clean residual mean=0.000010 rms=0.000756 Jy/beam
! Combined flux in latest and established models = 0.887906 Jy
keep
! Adding 274 model components to the UV plane model.
! The established model now contains 518 components and 0.887906 Jy
wmap "J1454-3747_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.827 x 28.25 at 1.821 degrees (North through East)
! Clean map  min=-0.0053708  max=0.7434 Jy/beam
! Writing clean map to FITS file: J1454-3747_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.743398 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000812299 
device "J1454-3747_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1454-3747_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.327805 0.327805 0.65561 1.31122 2.62244 5.24488 10.4898 20.9795 41.959 83.9181
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0024 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.743 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.827 x 28.25 at 1.821 degrees (North through East)
! Clean map  min=-0.0053708  max=0.7434 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1454-3747_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1454-3747_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1454-3747_S_2001_07_05_pus_uvs.log closed on Sun Aug 12 23:32:16 2007