! Started logfile: J1454-4012_S_2001_04_09_pus_uvs.log on Fri Oct  5 17:47:10 2007
obs J1454-4012_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1454-4012_S_2001_04_09_pus_uva.fits
! AN table 1: 52 integrations on 190 of 190 possible baselines.
! AN table 2: 71 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0215233 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1454-4012
! 
! 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 1953 lines of history.
! 
! Reading 2012 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1454-4012_S_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 899 telescope corrections were flagged in sub-array 1.
!  A total of 1420 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 899 telescope corrections were flagged in sub-array 1.
!  A total of 1420 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 899 telescope corrections were flagged in sub-array 1.
!  A total of 1420 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 899 telescope corrections were flagged in sub-array 1.
!  A total of 1420 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.008397Jy  sigma=0.008326
! Fit after  self-cal, rms=0.592379Jy  sigma=0.005140
! 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.521 mas, bmaj=29.04 mas, bpa=-14.13 degrees
! Estimated noise=2689.13 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.30224 Jy
! Component: 100  -  total flux cleaned = 0.408677 Jy
! Total flux subtracted in 100 components = 0.408677 Jy
! Clean residual min=-0.031420 max=0.052861 Jy/beam
! Clean residual mean=0.000344 rms=0.015766 Jy/beam
! Combined flux in latest and established models = 0.408678 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 0.408678 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.193284Jy  sigma=0.001681
! Fit after  self-cal, rms=0.193072Jy  sigma=0.001679
! 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.969 mas, bmaj=32.28 mas, bpa=-13.99 degrees
! Estimated noise=2031.82 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.0934879 Jy
! Component: 100  -  total flux cleaned = 0.145848 Jy
! Component: 150  -  total flux cleaned = 0.179861 Jy
! Component: 200  -  total flux cleaned = 0.202568 Jy
! Total flux subtracted in 200 components = 0.202568 Jy
! Clean residual min=-0.015893 max=0.016265 Jy/beam
! Clean residual mean=0.000031 rms=0.006418 Jy/beam
! Combined flux in latest and established models = 0.611246 Jy
! Performing phase self-cal
! Adding 72 model components to the UV plane model.
! The established model now contains 86 components and 0.611246 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139669Jy  sigma=0.001206
! Fit after  self-cal, rms=0.139421Jy  sigma=0.001204
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        0.83     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.00*    NY        1.00*    OV        1.06     PT        0.94     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    MA        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.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        0.98     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.00*    NY        1.00*    OV        1.09     PT        0.98     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    MA        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.
!  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        0.98     KP        1.03     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00*    NY        1.00*    OV        1.07     PT        1.03     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    MA        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.
!  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.01     KP        0.98     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        1.00*    NY        1.00*    OV        1.14     PT        0.99     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   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*    MA        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.139421Jy  sigma=0.001204
! Fit after  self-cal, rms=0.133050Jy  sigma=0.001152
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.962 mas, bmaj=33.04 mas, bpa=-13.94 degrees
! Estimated noise=2005.18 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.00718373 Jy
! Component: 100  -  total flux cleaned = 0.00716126 Jy
! Component: 150  -  total flux cleaned = 0.00761352 Jy
! Component: 200  -  total flux cleaned = 0.00815601 Jy
! Total flux subtracted in 200 components = 0.00815601 Jy
! Clean residual min=-0.007592 max=0.007218 Jy/beam
! Clean residual mean=0.000214 rms=0.002797 Jy/beam
! Combined flux in latest and established models = 0.619402 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 114 components and 0.619402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132389Jy  sigma=0.001147
! Fit after  self-cal, rms=0.132460Jy  sigma=0.001146
! 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.132460Jy  sigma=0.001146
! Fit after  self-cal, rms=0.132070Jy  sigma=0.001146
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.951 mas, bmaj=33.06 mas, bpa=-13.94 degrees
! Estimated noise=2000.95 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00295001 Jy
! Component: 100  -  total flux cleaned = 0.00318945 Jy
! Component: 150  -  total flux cleaned = 0.0036148 Jy
! Component: 200  -  total flux cleaned = 0.00371097 Jy
! Total flux subtracted in 200 components = 0.00371097 Jy
! Clean residual min=-0.007008 max=0.007525 Jy/beam
! Clean residual mean=0.000362 rms=0.002656 Jy/beam
! Combined flux in latest and established models = 0.623113 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 125 components and 0.623113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131861Jy  sigma=0.001144
! Fit after  self-cal, rms=0.131860Jy  sigma=0.001144
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.000204723 Jy
! Component: 100  -  total flux cleaned = 0.000292015 Jy
! Component: 150  -  total flux cleaned = 0.000370986 Jy
! Component: 200  -  total flux cleaned = 0.000523551 Jy
! Total flux subtracted in 200 components = 0.000523551 Jy
! Clean residual min=-0.006793 max=0.007735 Jy/beam
! Clean residual mean=0.000357 rms=0.002564 Jy/beam
! Combined flux in latest and established models = 0.623636 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 131 components and 0.623636 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131764Jy  sigma=0.001143
! Fit after  self-cal, rms=0.131763Jy  sigma=0.001143
! 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.131763Jy  sigma=0.001143
! Fit after  self-cal, rms=0.131502Jy  sigma=0.001143
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.946 mas, bmaj=33.03 mas, bpa=-13.95 degrees
! Estimated noise=1997.5 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00148205 Jy
! Component: 100  -  total flux cleaned = 0.00163782 Jy
! Component: 150  -  total flux cleaned = 0.00185629 Jy
! Component: 200  -  total flux cleaned = 0.00206265 Jy
! Total flux subtracted in 200 components = 0.00206265 Jy
! Clean residual min=-0.006405 max=0.007898 Jy/beam
! Clean residual mean=0.000452 rms=0.002494 Jy/beam
! Combined flux in latest and established models = 0.625699 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 143 components and 0.625699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131412Jy  sigma=0.001142
! Fit after  self-cal, rms=0.131413Jy  sigma=0.001142
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.000143406 Jy
! Component: 100  -  total flux cleaned = 0.000204541 Jy
! Component: 150  -  total flux cleaned = 0.000323542 Jy
! Component: 200  -  total flux cleaned = 0.000381393 Jy
! Total flux subtracted in 200 components = 0.000381393 Jy
! Clean residual min=-0.006301 max=0.007996 Jy/beam
! Clean residual mean=0.000447 rms=0.002442 Jy/beam
! Combined flux in latest and established models = 0.62608 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 148 components and 0.62608 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131359Jy  sigma=0.001142
! Fit after  self-cal, rms=0.131360Jy  sigma=0.001142
! 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.131360Jy  sigma=0.001142
! Fit after  self-cal, rms=0.131219Jy  sigma=0.001142
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=10.54 mas, bmaj=38.7 mas, bpa=-1.378 degrees
! Estimated noise=2613.57 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00148729 Jy
! Component: 100  -  total flux cleaned = 0.00163509 Jy
! Component: 150  -  total flux cleaned = 0.00163841 Jy
! Component: 200  -  total flux cleaned = 0.00170147 Jy
! Total flux subtracted in 200 components = 0.00170147 Jy
! Clean residual min=-0.007487 max=0.011277 Jy/beam
! Clean residual mean=0.000944 rms=0.003875 Jy/beam
! Combined flux in latest and established models = 0.627782 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 154 components and 0.627782 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131179Jy  sigma=0.001141
! Fit after  self-cal, rms=0.131171Jy  sigma=0.001141
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.000123501 Jy
! Component: 100  -  total flux cleaned = -0.000185376 Jy
! Component: 150  -  total flux cleaned = -0.000185062 Jy
! Component: 200  -  total flux cleaned = -0.000182599 Jy
! Total flux subtracted in 200 components = -0.000182599 Jy
! Clean residual min=-0.007483 max=0.011245 Jy/beam
! Clean residual mean=0.000942 rms=0.003797 Jy/beam
! Combined flux in latest and established models = 0.627599 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 159 components and 0.627599 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131151Jy  sigma=0.001141
! Fit after  self-cal, rms=0.131146Jy  sigma=0.001141
! 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.945 mas, bmaj=32.98 mas, bpa=-13.95 degrees
! Estimated noise=1995.58 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.945 x 32.98 at -13.95 degrees (North through East)
! Clean map  min=-0.0093989  max=0.36304 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
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.504 mas, bmaj=29.65 mas, bpa=-14.05 degrees
! Estimated noise=2649.54 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.297162 Jy
! Component: 100  -  total flux cleaned = 0.403149 Jy
! Component: 150  -  total flux cleaned = 0.464156 Jy
! Component: 200  -  total flux cleaned = 0.503696 Jy
! Total flux subtracted in 200 components = 0.503696 Jy
! Clean residual min=-0.019596 max=0.022721 Jy/beam
! Clean residual mean=0.000356 rms=0.008413 Jy/beam
! Combined flux in latest and established models = 0.503696 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 40 model components to the UV plane model.
! The established model now contains 40 components and 0.503696 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.945 mas, bmaj=32.98 mas, bpa=-13.95 degrees
! Estimated noise=1995.58 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.0448797 Jy
! Component: 100  -  total flux cleaned = 0.0728008 Jy
! Component: 150  -  total flux cleaned = 0.0910703 Jy
! Component: 200  -  total flux cleaned = 0.10326 Jy
! Total flux subtracted in 200 components = 0.10326 Jy
! Clean residual min=-0.009029 max=0.012149 Jy/beam
! Clean residual mean=0.000600 rms=0.003817 Jy/beam
! Combined flux in latest and established models = 0.606956 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 102 components and 0.606956 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=10.54 mas, bmaj=38.7 mas, bpa=-1.378 degrees
! Estimated noise=2613.57 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0126687 Jy
! Component: 100  -  total flux cleaned = 0.0165909 Jy
! Component: 150  -  total flux cleaned = 0.0174269 Jy
! Component: 200  -  total flux cleaned = 0.0179679 Jy
! Total flux subtracted in 200 components = 0.0179679 Jy
! Clean residual min=-0.008852 max=0.012192 Jy/beam
! Clean residual mean=0.001004 rms=0.004751 Jy/beam
! Combined flux in latest and established models = 0.624924 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.000670399 Jy
! Component: 100  -  total flux cleaned = 0.00111116 Jy
! Component: 150  -  total flux cleaned = 0.00152721 Jy
! Component: 200  -  total flux cleaned = 0.00190702 Jy
! Total flux subtracted in 200 components = 0.00190702 Jy
! Clean residual min=-0.008046 max=0.010968 Jy/beam
! Clean residual mean=0.000977 rms=0.004361 Jy/beam
! Combined flux in latest and established models = 0.626831 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 133 components and 0.626831 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.945 mas, bmaj=32.98 mas, bpa=-13.95 degrees
! Estimated noise=1995.58 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000648772 Jy
! Component: 100  -  total flux cleaned = 0.0008602 Jy
! Component: 150  -  total flux cleaned = 0.000786662 Jy
! Component: 200  -  total flux cleaned = 0.000786139 Jy
! Total flux subtracted in 200 components = 0.000786139 Jy
! Clean residual min=-0.006184 max=0.008233 Jy/beam
! Clean residual mean=0.000508 rms=0.002514 Jy/beam
! Combined flux in latest and established models = 0.627617 Jy
selfcal
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 158 components and 0.627617 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131197Jy  sigma=0.001142
! Fit after  self-cal, rms=0.131193Jy  sigma=0.001142
wmodel J1454-4012_S_2001_04_09_pus_map.mod
! Writing 158 model components to file: J1454-4012_S_2001_04_09_pus_map.mod
wobs J1454-4012_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1454-4012_S_2001_04_09_pus_uvs.fits
wwins J1454-4012_S_2001_04_09_pus_map.win
! wwins: Wrote 1 windows to J1454-4012_S_2001_04_09_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.00224635 Jy
! Component: 100  -  total flux cleaned = 0.00326414 Jy
! Component: 150  -  total flux cleaned = 0.00426926 Jy
! Component: 200  -  total flux cleaned = 0.00500745 Jy
! Component: 250  -  total flux cleaned = 0.0058275 Jy
! Component: 300  -  total flux cleaned = 0.00658185 Jy
! Component: 350  -  total flux cleaned = 0.00747315 Jy
! Component: 400  -  total flux cleaned = 0.00812636 Jy
! Component: 450  -  total flux cleaned = 0.00857196 Jy
! Component: 500  -  total flux cleaned = 0.0089928 Jy
! Component: 550  -  total flux cleaned = 0.00934349 Jy
! Component: 600  -  total flux cleaned = 0.00973279 Jy
! Component: 650  -  total flux cleaned = 0.0102092 Jy
! Component: 700  -  total flux cleaned = 0.0106292 Jy
! Component: 750  -  total flux cleaned = 0.0109966 Jy
! Component: 800  -  total flux cleaned = 0.0113584 Jy
! Component: 850  -  total flux cleaned = 0.0116266 Jy
! Component: 900  -  total flux cleaned = 0.0118472 Jy
! Component: 950  -  total flux cleaned = 0.0120658 Jy
! Component: 1000  -  total flux cleaned = 0.0122396 Jy
! Component: 1050  -  total flux cleaned = 0.0124548 Jy
! Component: 1100  -  total flux cleaned = 0.0126688 Jy
! Component: 1150  -  total flux cleaned = 0.0128394 Jy
! Component: 1200  -  total flux cleaned = 0.0130514 Jy
! Component: 1250  -  total flux cleaned = 0.0132206 Jy
! Component: 1300  -  total flux cleaned = 0.0133476 Jy
! Component: 1350  -  total flux cleaned = 0.013432 Jy
! Component: 1400  -  total flux cleaned = 0.0134317 Jy
! Component: 1450  -  total flux cleaned = 0.0133887 Jy
! Component: 1500  -  total flux cleaned = 0.013345 Jy
! Component: 1550  -  total flux cleaned = 0.0133009 Jy
! Component: 1600  -  total flux cleaned = 0.0132565 Jy
! Component: 1650  -  total flux cleaned = 0.0132571 Jy
! Component: 1700  -  total flux cleaned = 0.0131651 Jy
! Component: 1750  -  total flux cleaned = 0.0131177 Jy
! Component: 1800  -  total flux cleaned = 0.0130697 Jy
! Component: 1850  -  total flux cleaned = 0.01302 Jy
! Component: 1900  -  total flux cleaned = 0.0129687 Jy
! Component: 1950  -  total flux cleaned = 0.0129687 Jy
! Component: 2000  -  total flux cleaned = 0.0129161 Jy
! Total flux subtracted in 2048 components = 0.0128622 Jy
! Clean residual min=-0.003302 max=0.003418 Jy/beam
! Clean residual mean=-0.000004 rms=0.001111 Jy/beam
! Combined flux in latest and established models = 0.64048 Jy
keep
! Adding 105 model components to the UV plane model.
! The established model now contains 263 components and 0.64048 Jy
![Exited script file: muppet]
wmap "J1454-4012_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.945 x 32.98 at -13.95 degrees (North through East)
! Clean map  min=-0.0069144  max=0.35656 Jy/beam
! Writing clean map to FITS file: J1454-4012_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.356564 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00122815 
device "J1454-4012_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1454-4012_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.03332 1.03332 2.06664 4.13327 8.26655 16.5331 33.0662 66.1324
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0036 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.356 
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.945 x 32.98 at -13.95 degrees (North through East)
! Clean map  min=-0.0069144  max=0.35656 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1454-4012_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1454-4012_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1454-4012_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 17:47:16 2007