! Started logfile: J1454-3747_S_1998_10_01_pus_uvs.log on Thu Feb  7 17:22:06 2008
obs J1454-3747_S_1998_10_01_pus_uva.fits
! Reading UV FITS file: J1454-3747_S_1998_10_01_pus_uva.fits
! AN table 1: 106 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.158088 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1454-3747
! 
! 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.22298e+09        4e+06          1        4e+06
!  02        2  2.24298e+09        4e+06          1        4e+06
!  03        3  2.33298e+09        4e+06          1        4e+06
!  04        4  2.36298e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 1537 lines of history.
! 
! Reading 9116 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-3747_S_1998_10_01_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 1211 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 1211 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 1211 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 1211 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.591050Jy  sigma=0.003257
! Fit after  self-cal, rms=0.475270Jy  sigma=0.002603
! 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.415 mas, bmaj=8.338 mas, bpa=-2.636 degrees
! Estimated noise=1893.08 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.641945 Jy
! Component: 100  -  total flux cleaned = 0.790157 Jy
! Total flux subtracted in 100 components = 0.790157 Jy
! Clean residual min=-0.032694 max=0.060933 Jy/beam
! Clean residual mean=0.001454 rms=0.011330 Jy/beam
! Combined flux in latest and established models = 0.790157 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.790157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.452555Jy  sigma=0.002525
! Fit after  self-cal, rms=0.452526Jy  sigma=0.002524
! 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.007 mas, bmaj=9.745 mas, bpa=-3.859 degrees
! Estimated noise=1253.41 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.0844776 Jy
! Component: 100  -  total flux cleaned = 0.129436 Jy
! Component: 150  -  total flux cleaned = 0.155232 Jy
! Component: 200  -  total flux cleaned = 0.170183 Jy
! Total flux subtracted in 200 components = 0.170183 Jy
! Clean residual min=-0.027381 max=0.057966 Jy/beam
! Clean residual mean=0.000724 rms=0.010798 Jy/beam
! Combined flux in latest and established models = 0.96034 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 31 components and 0.96034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.440304Jy  sigma=0.002404
! Fit after  self-cal, rms=0.440039Jy  sigma=0.002402
! 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.94     GC        1.00*    HN        1.28     
!   KK        0.94     KP        0.95     LA        0.91     MK        0.93     
!   NL        1.19     NY        1.00*    ON        1.00*    OV        0.99     
!   PT        0.97     SC        0.97     WF        1.01     MC        1.00*    
!   GN        1.10     
! 
! 
! 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        0.93     GC        1.00*    HN        1.26     
!   KK        0.94     KP        0.93     LA        1.00     MK        1.02     
!   NL        1.18     NY        1.00*    ON        1.00*    OV        0.98     
!   PT        0.94     SC        0.99     WF        0.99     MC        1.00*    
!   GN        1.10     
! 
! 
! 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.95     GC        1.00*    HN        1.37     
!   KK        1.02     KP        0.96     LA        0.97     MK        0.98     
!   NL        1.16     NY        1.00*    ON        1.00*    OV        0.95     
!   PT        0.91     SC        0.99     WF        1.00     MC        1.00*    
!   GN        1.08     
! 
! 
! 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.90     GC        1.00*    HN        1.14     
!   KK        1.03     KP        0.95     LA        0.98     MK        0.96     
!   NL        1.19     NY        1.00*    ON        1.00*    OV        1.00     
!   PT        0.96     SC        0.96     WF        0.99     MC        1.00*    
!   GN        1.04     
! 
! 
! Fit before self-cal, rms=0.440039Jy  sigma=0.002402
! Fit after  self-cal, rms=0.459640Jy  sigma=0.002326
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.987 mas, bmaj=9.658 mas, bpa=-3.568 degrees
! Estimated noise=1249.26 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 (-6, -5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0270192 Jy
! Component: 100  -  total flux cleaned = 0.0299442 Jy
! Component: 150  -  total flux cleaned = 0.0299457 Jy
! Component: 200  -  total flux cleaned = 0.029599 Jy
! Total flux subtracted in 200 components = 0.029599 Jy
! Clean residual min=-0.012203 max=0.013020 Jy/beam
! Clean residual mean=-0.000076 rms=0.003762 Jy/beam
! Combined flux in latest and established models = 0.989939 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 51 components and 0.989939 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457626Jy  sigma=0.002312
! Fit after  self-cal, rms=0.458705Jy  sigma=0.002310
! 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.458705Jy  sigma=0.002310
! Fit after  self-cal, rms=0.460111Jy  sigma=0.002303
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.983 mas, bmaj=9.63 mas, bpa=-3.478 degrees
! Estimated noise=1245.81 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00990096 Jy
! Component: 100  -  total flux cleaned = 0.0107945 Jy
! Component: 150  -  total flux cleaned = 0.011025 Jy
! Component: 200  -  total flux cleaned = 0.011227 Jy
! Total flux subtracted in 200 components = 0.011227 Jy
! Clean residual min=-0.011284 max=0.010559 Jy/beam
! Clean residual mean=0.000073 rms=0.002934 Jy/beam
! Combined flux in latest and established models = 1.00117 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 64 components and 1.00117 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.459711Jy  sigma=0.002301
! Fit after  self-cal, rms=0.459829Jy  sigma=0.002300
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.00284746 Jy
! Component: 100  -  total flux cleaned = 0.00266824 Jy
! Component: 150  -  total flux cleaned = 0.00266935 Jy
! Component: 200  -  total flux cleaned = 0.0028184 Jy
! Total flux subtracted in 200 components = 0.0028184 Jy
! Clean residual min=-0.011054 max=0.010459 Jy/beam
! Clean residual mean=0.000010 rms=0.002836 Jy/beam
! Combined flux in latest and established models = 1.00398 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 70 components and 1.00398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.459699Jy  sigma=0.002300
! Fit after  self-cal, rms=0.459702Jy  sigma=0.002299
! 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.459702Jy  sigma=0.002299
! Fit after  self-cal, rms=0.458997Jy  sigma=0.002299
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.981 mas, bmaj=9.628 mas, bpa=-3.458 degrees
! Estimated noise=1244.3 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00391579 Jy
! Component: 100  -  total flux cleaned = 0.00453015 Jy
! Component: 150  -  total flux cleaned = 0.00452558 Jy
! Component: 200  -  total flux cleaned = 0.00452549 Jy
! Total flux subtracted in 200 components = 0.00452549 Jy
! Clean residual min=-0.010601 max=0.010110 Jy/beam
! Clean residual mean=0.000057 rms=0.002723 Jy/beam
! Combined flux in latest and established models = 1.00851 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 82 components and 1.00851 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.458890Jy  sigma=0.002298
! Fit after  self-cal, rms=0.458885Jy  sigma=0.002298
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.00149003 Jy
! Component: 100  -  total flux cleaned = 0.0014926 Jy
! Component: 150  -  total flux cleaned = 0.00159642 Jy
! Component: 200  -  total flux cleaned = 0.00169323 Jy
! Total flux subtracted in 200 components = 0.00169323 Jy
! Clean residual min=-0.010461 max=0.010116 Jy/beam
! Clean residual mean=0.000026 rms=0.002680 Jy/beam
! Combined flux in latest and established models = 1.0102 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 88 components and 1.0102 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.458832Jy  sigma=0.002298
! Fit after  self-cal, rms=0.458840Jy  sigma=0.002298
! 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.458840Jy  sigma=0.002298
! Fit after  self-cal, rms=0.458837Jy  sigma=0.002298
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.319 mas, bmaj=20.22 mas, bpa=-4.167 degrees
! Estimated noise=1614.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00100741 Jy
! Component: 100  -  total flux cleaned = 0.0011342 Jy
! Component: 150  -  total flux cleaned = 0.000977178 Jy
! Component: 200  -  total flux cleaned = 0.000837216 Jy
! Total flux subtracted in 200 components = 0.000837216 Jy
! Clean residual min=-0.010053 max=0.009822 Jy/beam
! Clean residual mean=0.000214 rms=0.003371 Jy/beam
! Combined flux in latest and established models = 1.01104 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 102 components and 1.01104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.458808Jy  sigma=0.002298
! Fit after  self-cal, rms=0.458810Jy  sigma=0.002298
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.000243958 Jy
! Component: 100  -  total flux cleaned = 0.000247452 Jy
! Component: 150  -  total flux cleaned = 0.000185927 Jy
! Component: 200  -  total flux cleaned = 7.47223e-05 Jy
! Total flux subtracted in 200 components = 7.47223e-05 Jy
! Clean residual min=-0.010047 max=0.009731 Jy/beam
! Clean residual mean=0.000210 rms=0.003347 Jy/beam
! Combined flux in latest and established models = 1.01112 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 113 components and 1.01112 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.458790Jy  sigma=0.002298
! Fit after  self-cal, rms=0.458795Jy  sigma=0.002298
! 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.979 mas, bmaj=9.627 mas, bpa=-3.454 degrees
! Estimated noise=1244.19 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.979 x 9.627 at -3.454 degrees (North through East)
! Clean map  min=-0.0097619  max=0.82408 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.458795Jy  sigma=0.002298
! Fit after  self-cal, rms=0.516076Jy  sigma=0.002126
! Inverting map and beam 
! Estimated beam: bmin=2.979 mas, bmaj=9.622 mas, bpa=-3.466 degrees
! Estimated noise=1243.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00105018 Jy
! Component: 100  -  total flux cleaned = 0.00155186 Jy
! Component: 150  -  total flux cleaned = 0.00163645 Jy
! Component: 200  -  total flux cleaned = 0.00171017 Jy
! Total flux subtracted in 200 components = 0.00171017 Jy
! Clean residual min=-0.010109 max=0.009591 Jy/beam
! Clean residual mean=0.000170 rms=0.002478 Jy/beam
! Combined flux in latest and established models = 1.01283 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 127 components and 1.01283 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.516033Jy  sigma=0.002125
! Fit after  self-cal, rms=0.516072Jy  sigma=0.002125
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000446398 Jy
! Component: 100  -  total flux cleaned = 0.000445839 Jy
! Component: 150  -  total flux cleaned = 0.000445897 Jy
! Component: 200  -  total flux cleaned = 0.000447212 Jy
! Total flux subtracted in 200 components = 0.000447212 Jy
! Clean residual min=-0.010060 max=0.009628 Jy/beam
! Clean residual mean=0.000162 rms=0.002474 Jy/beam
! Combined flux in latest and established models = 1.01327 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 132 components and 1.01327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.516050Jy  sigma=0.002125
! Fit after  self-cal, rms=0.516062Jy  sigma=0.002125
! 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.516062Jy  sigma=0.002125
! Fit after  self-cal, rms=0.569888Jy  sigma=0.002125
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.399 mas, bmaj=8.251 mas, bpa=-2.287 degrees
! Estimated noise=1874.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.634613 Jy
! Component: 100  -  total flux cleaned = 0.785479 Jy
! Component: 150  -  total flux cleaned = 0.853017 Jy
! Component: 200  -  total flux cleaned = 0.895528 Jy
! Total flux subtracted in 200 components = 0.895528 Jy
! Clean residual min=-0.016540 max=0.023040 Jy/beam
! Clean residual mean=0.000843 rms=0.005230 Jy/beam
! Combined flux in latest and established models = 0.895528 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 33 model components to the UV plane model.
! The established model now contains 33 components and 0.895528 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.978 mas, bmaj=9.624 mas, bpa=-3.473 degrees
! Estimated noise=1243.93 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.0415343 Jy
! Component: 100  -  total flux cleaned = 0.0668478 Jy
! Component: 150  -  total flux cleaned = 0.0836564 Jy
! Component: 200  -  total flux cleaned = 0.0951552 Jy
! Total flux subtracted in 200 components = 0.0951552 Jy
! Clean residual min=-0.012658 max=0.008935 Jy/beam
! Clean residual mean=0.000551 rms=0.002795 Jy/beam
! Combined flux in latest and established models = 0.990683 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 97 components and 0.990683 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.306 mas, bmaj=20.18 mas, bpa=-4.201 degrees
! Estimated noise=1616.13 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0122492 Jy
! Component: 100  -  total flux cleaned = 0.0180709 Jy
! Component: 150  -  total flux cleaned = 0.0195146 Jy
! Component: 200  -  total flux cleaned = 0.0199779 Jy
! Total flux subtracted in 200 components = 0.0199779 Jy
! Clean residual min=-0.010222 max=0.009965 Jy/beam
! Clean residual mean=0.000502 rms=0.003265 Jy/beam
! Combined flux in latest and established models = 1.01066 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.00020476 Jy
! Component: 100  -  total flux cleaned = 0.000478423 Jy
! Component: 150  -  total flux cleaned = 0.000641309 Jy
! Component: 200  -  total flux cleaned = 0.00086013 Jy
! Total flux subtracted in 200 components = 0.00086013 Jy
! Clean residual min=-0.009804 max=0.009799 Jy/beam
! Clean residual mean=0.000474 rms=0.003214 Jy/beam
! Combined flux in latest and established models = 1.01152 Jy
! Adding 71 model components to the UV plane model.
! The established model now contains 154 components and 1.01152 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.978 mas, bmaj=9.624 mas, bpa=-3.473 degrees
! Estimated noise=1243.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000386776 Jy
! Component: 100  -  total flux cleaned = 0.00061069 Jy
! Component: 150  -  total flux cleaned = 0.000706584 Jy
! Component: 200  -  total flux cleaned = 0.000792435 Jy
! Total flux subtracted in 200 components = 0.000792435 Jy
! Clean residual min=-0.010848 max=0.009490 Jy/beam
! Clean residual mean=0.000190 rms=0.002485 Jy/beam
! Combined flux in latest and established models = 1.01231 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 174 components and 1.01231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.569844Jy  sigma=0.002125
! Fit after  self-cal, rms=0.569880Jy  sigma=0.002125
wmodel J1454-3747_S_1998_10_01_pus_map.mod
! Writing 174 model components to file: J1454-3747_S_1998_10_01_pus_map.mod
wobs J1454-3747_S_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J1454-3747_S_1998_10_01_pus_uvs.fits
wwins J1454-3747_S_1998_10_01_pus_map.win
! wwins: Wrote 2 windows to J1454-3747_S_1998_10_01_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.00143829 Jy
! Component: 100  -  total flux cleaned = -0.000551475 Jy
! Component: 150  -  total flux cleaned = -4.4418e-06 Jy
! Component: 200  -  total flux cleaned = -0.000257437 Jy
! Component: 250  -  total flux cleaned = -0.000741407 Jy
! Component: 300  -  total flux cleaned = -0.00109163 Jy
! Component: 350  -  total flux cleaned = -0.00153976 Jy
! Component: 400  -  total flux cleaned = -0.00164738 Jy
! Component: 450  -  total flux cleaned = -0.00175554 Jy
! Component: 500  -  total flux cleaned = -0.00175722 Jy
! Component: 550  -  total flux cleaned = -0.00155625 Jy
! Component: 600  -  total flux cleaned = -0.00165588 Jy
! Component: 650  -  total flux cleaned = -0.00165651 Jy
! Component: 700  -  total flux cleaned = -0.00193887 Jy
! Component: 750  -  total flux cleaned = -0.00203033 Jy
! Component: 800  -  total flux cleaned = -0.00212068 Jy
! Component: 850  -  total flux cleaned = -0.00229875 Jy
! Component: 900  -  total flux cleaned = -0.00238631 Jy
! Component: 950  -  total flux cleaned = -0.00238768 Jy
! Component: 1000  -  total flux cleaned = -0.00272408 Jy
! Component: 1050  -  total flux cleaned = -0.00288973 Jy
! Component: 1100  -  total flux cleaned = -0.00329596 Jy
! Component: 1150  -  total flux cleaned = -0.00353355 Jy
! Component: 1200  -  total flux cleaned = -0.00361047 Jy
! Component: 1250  -  total flux cleaned = -0.0036109 Jy
! Component: 1300  -  total flux cleaned = -0.00383865 Jy
! Component: 1350  -  total flux cleaned = -0.00391237 Jy
! Component: 1400  -  total flux cleaned = -0.00398594 Jy
! Component: 1450  -  total flux cleaned = -0.00413168 Jy
! Component: 1500  -  total flux cleaned = -0.00449009 Jy
! Component: 1550  -  total flux cleaned = -0.0047013 Jy
! Component: 1600  -  total flux cleaned = -0.00470139 Jy
! Component: 1650  -  total flux cleaned = -0.00497784 Jy
! Component: 1700  -  total flux cleaned = -0.00518224 Jy
! Component: 1750  -  total flux cleaned = -0.00538364 Jy
! Component: 1800  -  total flux cleaned = -0.00545005 Jy
! Component: 1850  -  total flux cleaned = -0.00571274 Jy
! Component: 1900  -  total flux cleaned = -0.00571297 Jy
! Component: 1950  -  total flux cleaned = -0.0059052 Jy
! Component: 2000  -  total flux cleaned = -0.00584229 Jy
! Total flux subtracted in 2048 components = -0.0060928 Jy
! Clean residual min=-0.003616 max=0.004352 Jy/beam
! Clean residual mean=0.000139 rms=0.001315 Jy/beam
! Combined flux in latest and established models = 1.00622 Jy
keep
! Adding 155 model components to the UV plane model.
! The established model now contains 329 components and 1.00622 Jy
![Exited script file: muppet]
wmap "J1454-3747_S_1998_10_01_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.978 x 9.624 at -3.473 degrees (North through East)
! Clean map  min=-0.0092579  max=0.82752 Jy/beam
! Writing clean map to FITS file: J1454-3747_S_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.827524 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00129598 
device "J1454-3747_S_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J1454-3747_S_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.469828 0.469828 0.939656 1.87931 3.75862 7.51725 15.0345 30.069 60.138
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0038 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.827 
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.978 x 9.624 at -3.473 degrees (North through East)
! Clean map  min=-0.0092579  max=0.82752 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1454-3747_S_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J1454-3747_S_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1454-3747_S_1998_10_01_pus_uvs.log closed on Thu Feb  7 17:22:12 2008