! Started logfile: J1354-0206_S_2001_04_09_pus_uvs.log on Fri Oct  5 16:05:02 2007
obs J1354-0206_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1354-0206_S_2001_04_09_pus_uva.fits
! AN table 1: 17 integrations on 190 of 190 possible baselines.
! AN table 2: 144 integrations on 190 of 190 possible baselines.
! AN table 3: 198 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.150462 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1354-0206
! 
! 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 1949 lines of history.
! 
! Reading 41052 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 J1354-0206_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 340 telescope corrections were flagged in sub-array 1.
!  A total of 2040 telescope corrections were flagged in sub-array 2.
!  A total of 2564 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 340 telescope corrections were flagged in sub-array 1.
!  A total of 2100 telescope corrections were flagged in sub-array 2.
!  A total of 2564 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 340 telescope corrections were flagged in sub-array 1.
!  A total of 2100 telescope corrections were flagged in sub-array 2.
!  A total of 2564 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 340 telescope corrections were flagged in sub-array 1.
!  A total of 2100 telescope corrections were flagged in sub-array 2.
!  A total of 2564 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.609923Jy  sigma=0.004483
! Fit after  self-cal, rms=0.444210Jy  sigma=0.003180
! 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=1.806 mas, bmaj=4.176 mas, bpa=7.609 degrees
! Estimated noise=732.591 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.480002 Jy
! Component: 100  -  total flux cleaned = 0.612437 Jy
! Total flux subtracted in 100 components = 0.612437 Jy
! Clean residual min=-0.013751 max=0.055398 Jy/beam
! Clean residual mean=0.000271 rms=0.004260 Jy/beam
! Combined flux in latest and established models = 0.612437 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.612437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245496Jy  sigma=0.001631
! Fit after  self-cal, rms=0.245262Jy  sigma=0.001630
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.059316 Jy
! Component: 100  -  total flux cleaned = 0.0901733 Jy
! Total flux subtracted in 100 components = 0.0901733 Jy
! Clean residual min=-0.010004 max=0.015401 Jy/beam
! Clean residual mean=0.000150 rms=0.002347 Jy/beam
! Combined flux in latest and established models = 0.702611 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 16 components and 0.702611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229958Jy  sigma=0.001423
! Fit after  self-cal, rms=0.229776Jy  sigma=0.001422
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0177912 Jy
! Component: 100  -  total flux cleaned = 0.0279976 Jy
! Total flux subtracted in 100 components = 0.0279976 Jy
! Clean residual min=-0.010194 max=0.012346 Jy/beam
! Clean residual mean=0.000112 rms=0.002108 Jy/beam
! Combined flux in latest and established models = 0.730608 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 22 components and 0.730608 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228413Jy  sigma=0.001401
! Fit after  self-cal, rms=0.228366Jy  sigma=0.001400
! Inverting map 
! Added new window around map position (-2, 8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101945 Jy
! Component: 100  -  total flux cleaned = 0.0120635 Jy
! Total flux subtracted in 100 components = 0.0120635 Jy
! Clean residual min=-0.009447 max=0.009771 Jy/beam
! Clean residual mean=0.000092 rms=0.002012 Jy/beam
! Combined flux in latest and established models = 0.742672 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 32 components and 0.742672 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227878Jy  sigma=0.001394
! Fit after  self-cal, rms=0.227818Jy  sigma=0.001394
! 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.245 mas, bmaj=5.07 mas, bpa=5.119 degrees
! Estimated noise=441.585 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.00717664 Jy
! Component: 100  -  total flux cleaned = 0.0103372 Jy
! Component: 150  -  total flux cleaned = 0.0110218 Jy
! Component: 200  -  total flux cleaned = 0.0113351 Jy
! Total flux subtracted in 200 components = 0.0113351 Jy
! Clean residual min=-0.005977 max=0.007965 Jy/beam
! Clean residual mean=0.000046 rms=0.001587 Jy/beam
! Combined flux in latest and established models = 0.754007 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 45 components and 0.754007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227586Jy  sigma=0.001391
! Fit after  self-cal, rms=0.227551Jy  sigma=0.001390
! 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        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*    
! 
!  A total of 144 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.04     HN        0.99     KK        1.00*    KP        1.02     
!   LA        0.95     MA        1.83     MC        0.98     MK        1.00*    
!   NL        0.97     NY        1.00*    OV        1.05     PT        0.96     
!   SC        0.93     TS        1.00*    WF        0.99     WZ        0.93     
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.02     KP        0.95     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00     NY        1.00*    OV        1.02     PT        0.95     
!   SC        0.99     TS        0.99     WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    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*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.07     HN        0.99     KK        1.00*    KP        1.19     
!   LA        1.02     MA        1.92     MC        0.98     MK        1.00*    
!   NL        0.98     NY        1.00*    OV        1.04     PT        0.98     
!   SC        0.95     TS        1.00*    WF        1.02     WZ        0.95     
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.96     KP        0.98     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.01     NY        1.00*    OV        0.99     PT        0.99     
!   SC        1.00     TS        1.00     WF        1.03     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    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*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.09     HN        1.03     KK        1.00*    KP        1.03     
!   LA        0.97     MA        1.08     MC        0.94     MK        1.00*    
!   NL        1.01     NY        1.00*    OV        1.05     PT        1.01     
!   SC        0.93     TS        1.00*    WF        1.00     WZ        0.96     
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.99     KP        1.01     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.01     NY        1.00*    OV        0.99     PT        0.99     
!   SC        0.97     TS        1.01     WF        1.04     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    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*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.11     HN        1.04     KK        1.00*    KP        1.02     
!   LA        1.01     MA        0.92     MC        1.36     MK        1.00*    
!   NL        1.01     NY        1.00*    OV        1.03     PT        1.00     
!   SC        0.97     TS        1.00*    WF        1.02     WZ        0.97     
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.02     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.96     KP        0.99     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        1.01     NY        1.00*    OV        0.99     PT        1.00     
!   SC        0.99     TS        0.96     WF        1.03     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.227551Jy  sigma=0.001390
! Fit after  self-cal, rms=0.257898Jy  sigma=0.001356
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.274 mas, bmaj=5.278 mas, bpa=4.452 degrees
! Estimated noise=444.34 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.000842665 Jy
! Component: 100  -  total flux cleaned = -0.000465789 Jy
! Component: 150  -  total flux cleaned = -0.000362007 Jy
! Component: 200  -  total flux cleaned = -0.000167819 Jy
! Total flux subtracted in 200 components = -0.000167819 Jy
! Clean residual min=-0.003537 max=0.004240 Jy/beam
! Clean residual mean=0.000098 rms=0.000800 Jy/beam
! Combined flux in latest and established models = 0.753839 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 56 components and 0.753839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257745Jy  sigma=0.001355
! Fit after  self-cal, rms=0.258410Jy  sigma=0.001354
! Inverting map 
! Added new window around map position (-2.5, 16).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00350656 Jy
! Component: 100  -  total flux cleaned = 0.00442414 Jy
! Component: 150  -  total flux cleaned = 0.00480104 Jy
! Component: 200  -  total flux cleaned = 0.00497003 Jy
! Total flux subtracted in 200 components = 0.00497003 Jy
! Clean residual min=-0.003204 max=0.003328 Jy/beam
! Clean residual mean=0.000064 rms=0.000718 Jy/beam
! Combined flux in latest and established models = 0.758809 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 71 components and 0.758809 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258290Jy  sigma=0.001353
! Fit after  self-cal, rms=0.258271Jy  sigma=0.001353
! 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.258271Jy  sigma=0.001353
! Fit after  self-cal, rms=0.262330Jy  sigma=0.001348
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.281 mas, bmaj=5.287 mas, bpa=4.43 degrees
! Estimated noise=444.324 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00121552 Jy
! Component: 100  -  total flux cleaned = -0.000870298 Jy
! Component: 150  -  total flux cleaned = -0.000557854 Jy
! Component: 200  -  total flux cleaned = -0.000348772 Jy
! Total flux subtracted in 200 components = -0.000348772 Jy
! Clean residual min=-0.002763 max=0.002878 Jy/beam
! Clean residual mean=0.000008 rms=0.000603 Jy/beam
! Combined flux in latest and established models = 0.75846 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 78 components and 0.75846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262249Jy  sigma=0.001347
! Fit after  self-cal, rms=0.262300Jy  sigma=0.001347
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 (-7.5, 11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171208 Jy
! Component: 100  -  total flux cleaned = 0.00199017 Jy
! Component: 150  -  total flux cleaned = 0.00217481 Jy
! Component: 200  -  total flux cleaned = 0.00234115 Jy
! Total flux subtracted in 200 components = 0.00234115 Jy
! Clean residual min=-0.002700 max=0.002347 Jy/beam
! Clean residual mean=-0.000011 rms=0.000574 Jy/beam
! Combined flux in latest and established models = 0.760802 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 89 components and 0.760802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262248Jy  sigma=0.001347
! Fit after  self-cal, rms=0.262242Jy  sigma=0.001347
! 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.262242Jy  sigma=0.001347
! Fit after  self-cal, rms=0.264016Jy  sigma=0.001347
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.285 mas, bmaj=5.293 mas, bpa=4.416 degrees
! Estimated noise=444.306 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000911573 Jy
! Component: 100  -  total flux cleaned = -0.00051346 Jy
! Component: 150  -  total flux cleaned = -0.000412143 Jy
! Component: 200  -  total flux cleaned = -0.00031597 Jy
! Total flux subtracted in 200 components = -0.00031597 Jy
! Clean residual min=-0.002408 max=0.002318 Jy/beam
! Clean residual mean=-0.000020 rms=0.000555 Jy/beam
! Combined flux in latest and established models = 0.760486 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 93 components and 0.760486 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263981Jy  sigma=0.001347
! Fit after  self-cal, rms=0.263999Jy  sigma=0.001347
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 = -3.88059e-05 Jy
! Component: 100  -  total flux cleaned = 4.96834e-05 Jy
! Component: 150  -  total flux cleaned = 9.10074e-05 Jy
! Component: 200  -  total flux cleaned = 0.000130671 Jy
! Total flux subtracted in 200 components = 0.000130671 Jy
! Clean residual min=-0.002313 max=0.002273 Jy/beam
! Clean residual mean=-0.000021 rms=0.000547 Jy/beam
! Combined flux in latest and established models = 0.760616 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 99 components and 0.760616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263978Jy  sigma=0.001347
! Fit after  self-cal, rms=0.263974Jy  sigma=0.001346
! 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.263974Jy  sigma=0.001346
! Fit after  self-cal, rms=0.265002Jy  sigma=0.001346
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.407 mas, bmaj=11.42 mas, bpa=0.6884 degrees
! Estimated noise=588.446 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.73677e-05 Jy
! Component: 100  -  total flux cleaned = 0.000145976 Jy
! Component: 150  -  total flux cleaned = 0.000211593 Jy
! Component: 200  -  total flux cleaned = 0.000211577 Jy
! Total flux subtracted in 200 components = 0.000211577 Jy
! Clean residual min=-0.001691 max=0.002499 Jy/beam
! Clean residual mean=-0.000076 rms=0.000576 Jy/beam
! Combined flux in latest and established models = 0.760828 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 109 components and 0.760828 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265001Jy  sigma=0.001346
! Fit after  self-cal, rms=0.265006Jy  sigma=0.001346
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 (48, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00156375 Jy
! Component: 100  -  total flux cleaned = 0.00157312 Jy
! Component: 150  -  total flux cleaned = 0.00152801 Jy
! Component: 200  -  total flux cleaned = 0.00148987 Jy
! Total flux subtracted in 200 components = 0.00148987 Jy
! Clean residual min=-0.001649 max=0.001716 Jy/beam
! Clean residual mean=-0.000095 rms=0.000515 Jy/beam
! Combined flux in latest and established models = 0.762318 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 143 components and 0.762318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264992Jy  sigma=0.001346
! Fit after  self-cal, rms=0.264991Jy  sigma=0.001346
! 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.287 mas, bmaj=5.297 mas, bpa=4.409 degrees
! Estimated noise=444.294 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.287 x 5.297 at 4.409 degrees (North through East)
! Clean map  min=-0.0018801  max=0.64375 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.264991Jy  sigma=0.001346
! Fit after  self-cal, rms=0.587009Jy  sigma=0.001262
! Inverting map and beam 
! Estimated beam: bmin=2.287 mas, bmaj=5.294 mas, bpa=4.42 degrees
! Estimated noise=444.074 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00064751 Jy
! Component: 100  -  total flux cleaned = -0.000784214 Jy
! Component: 150  -  total flux cleaned = -0.00097352 Jy
! Component: 200  -  total flux cleaned = -0.00109128 Jy
! Total flux subtracted in 200 components = -0.00109128 Jy
! Clean residual min=-0.002175 max=0.002038 Jy/beam
! Clean residual mean=0.000002 rms=0.000494 Jy/beam
! Combined flux in latest and established models = 0.761226 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 168 components and 0.761226 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586986Jy  sigma=0.001262
! Fit after  self-cal, rms=0.587000Jy  sigma=0.001262
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000252346 Jy
! Component: 100  -  total flux cleaned = -0.000203353 Jy
! Component: 150  -  total flux cleaned = -0.000205307 Jy
! Component: 200  -  total flux cleaned = -0.000205111 Jy
! Total flux subtracted in 200 components = -0.000205111 Jy
! Clean residual min=-0.002054 max=0.001930 Jy/beam
! Clean residual mean=0.000004 rms=0.000484 Jy/beam
! Combined flux in latest and established models = 0.761021 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 180 components and 0.761021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.586984Jy  sigma=0.001262
! Fit after  self-cal, rms=0.586986Jy  sigma=0.001261
! 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.586986Jy  sigma=0.001261
! Fit after  self-cal, rms=0.875481Jy  sigma=0.001261
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=1.839 mas, bmaj=4.252 mas, bpa=7.016 degrees
! Estimated noise=745.307 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.484241 Jy
! Component: 100  -  total flux cleaned = 0.611878 Jy
! Component: 150  -  total flux cleaned = 0.667295 Jy
! Component: 200  -  total flux cleaned = 0.6959 Jy
! Total flux subtracted in 200 components = 0.6959 Jy
! Clean residual min=-0.005003 max=0.013982 Jy/beam
! Clean residual mean=0.000099 rms=0.001534 Jy/beam
! Combined flux in latest and established models = 0.6959 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 0.6959 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.288 mas, bmaj=5.299 mas, bpa=4.401 degrees
! Estimated noise=443.96 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.0236848 Jy
! Component: 100  -  total flux cleaned = 0.0368801 Jy
! Component: 150  -  total flux cleaned = 0.0453581 Jy
! Component: 200  -  total flux cleaned = 0.0512405 Jy
! Total flux subtracted in 200 components = 0.0512405 Jy
! Clean residual min=-0.002458 max=0.003817 Jy/beam
! Clean residual mean=0.000103 rms=0.000713 Jy/beam
! Combined flux in latest and established models = 0.74714 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 48 components and 0.74714 Jy
! Inverting map 
! Added new window around map position (1.5, 9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00443757 Jy
! Component: 100  -  total flux cleaned = 0.00702031 Jy
! Component: 150  -  total flux cleaned = 0.00869619 Jy
! Component: 200  -  total flux cleaned = 0.0100371 Jy
! Total flux subtracted in 200 components = 0.0100371 Jy
! Clean residual min=-0.002278 max=0.002227 Jy/beam
! Clean residual mean=0.000032 rms=0.000552 Jy/beam
! Combined flux in latest and established models = 0.757177 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 69 components and 0.757177 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.41 mas, bmaj=11.42 mas, bpa=0.7093 degrees
! Estimated noise=587.817 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00233765 Jy
! Component: 100  -  total flux cleaned = 0.00355838 Jy
! Component: 150  -  total flux cleaned = 0.00420011 Jy
! Component: 200  -  total flux cleaned = 0.00457889 Jy
! Total flux subtracted in 200 components = 0.00457889 Jy
! Clean residual min=-0.001488 max=0.001990 Jy/beam
! Clean residual mean=0.000006 rms=0.000517 Jy/beam
! Combined flux in latest and established models = 0.761756 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.000215085 Jy
! Component: 100  -  total flux cleaned = 0.000412674 Jy
! Component: 150  -  total flux cleaned = 0.000522877 Jy
! Component: 200  -  total flux cleaned = 0.000658558 Jy
! Total flux subtracted in 200 components = 0.000658558 Jy
! Clean residual min=-0.001503 max=0.001899 Jy/beam
! Clean residual mean=-0.000006 rms=0.000491 Jy/beam
! Combined flux in latest and established models = 0.762415 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 146 components and 0.762415 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.288 mas, bmaj=5.299 mas, bpa=4.401 degrees
! Estimated noise=443.96 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00120593 Jy
! Component: 100  -  total flux cleaned = -0.00127675 Jy
! Component: 150  -  total flux cleaned = -0.00140311 Jy
! Component: 200  -  total flux cleaned = -0.00146198 Jy
! Total flux subtracted in 200 components = -0.00146198 Jy
! Clean residual min=-0.002235 max=0.002056 Jy/beam
! Clean residual mean=0.000007 rms=0.000497 Jy/beam
! Combined flux in latest and established models = 0.760953 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 172 components and 0.760953 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.875459Jy  sigma=0.001262
! Fit after  self-cal, rms=0.875404Jy  sigma=0.001262
wmodel J1354-0206_S_2001_04_09_pus_map.mod
! Writing 172 model components to file: J1354-0206_S_2001_04_09_pus_map.mod
wobs J1354-0206_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1354-0206_S_2001_04_09_pus_uvs.fits
wwins J1354-0206_S_2001_04_09_pus_map.win
! wwins: Wrote 6 windows to J1354-0206_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.000380615 Jy
! Component: 100  -  total flux cleaned = -0.000517762 Jy
! Component: 150  -  total flux cleaned = -0.000319733 Jy
! Component: 200  -  total flux cleaned = -9.51213e-05 Jy
! Component: 250  -  total flux cleaned = 0.000124268 Jy
! Component: 300  -  total flux cleaned = 0.000277255 Jy
! Component: 350  -  total flux cleaned = 0.000457609 Jy
! Component: 400  -  total flux cleaned = 0.000605203 Jy
! Component: 450  -  total flux cleaned = 0.000721106 Jy
! Component: 500  -  total flux cleaned = 0.000863637 Jy
! Component: 550  -  total flux cleaned = 0.000948246 Jy
! Component: 600  -  total flux cleaned = 0.00108744 Jy
! Component: 650  -  total flux cleaned = 0.00119718 Jy
! Component: 700  -  total flux cleaned = 0.00135973 Jy
! Component: 750  -  total flux cleaned = 0.00146669 Jy
! Component: 800  -  total flux cleaned = 0.00151952 Jy
! Component: 850  -  total flux cleaned = 0.00162397 Jy
! Component: 900  -  total flux cleaned = 0.00172709 Jy
! Component: 950  -  total flux cleaned = 0.00175246 Jy
! Component: 1000  -  total flux cleaned = 0.00182848 Jy
! Component: 1050  -  total flux cleaned = 0.00187882 Jy
! Component: 1100  -  total flux cleaned = 0.00197812 Jy
! Component: 1150  -  total flux cleaned = 0.00200248 Jy
! Component: 1200  -  total flux cleaned = 0.00207585 Jy
! Component: 1250  -  total flux cleaned = 0.00217233 Jy
! Component: 1300  -  total flux cleaned = 0.00214824 Jy
! Component: 1350  -  total flux cleaned = 0.00221959 Jy
! Component: 1400  -  total flux cleaned = 0.00226678 Jy
! Component: 1450  -  total flux cleaned = 0.00229027 Jy
! Component: 1500  -  total flux cleaned = 0.00231346 Jy
! Component: 1550  -  total flux cleaned = 0.00233662 Jy
! Component: 1600  -  total flux cleaned = 0.00240584 Jy
! Component: 1650  -  total flux cleaned = 0.00245163 Jy
! Component: 1700  -  total flux cleaned = 0.0024971 Jy
! Component: 1750  -  total flux cleaned = 0.00254231 Jy
! Component: 1800  -  total flux cleaned = 0.00251978 Jy
! Component: 1850  -  total flux cleaned = 0.0025643 Jy
! Component: 1900  -  total flux cleaned = 0.00256438 Jy
! Component: 1950  -  total flux cleaned = 0.00260844 Jy
! Component: 2000  -  total flux cleaned = 0.00263035 Jy
! Total flux subtracted in 2048 components = 0.00263036 Jy
! Clean residual min=-0.001186 max=0.001352 Jy/beam
! Clean residual mean=-0.000010 rms=0.000404 Jy/beam
! Combined flux in latest and established models = 0.763584 Jy
keep
! Adding 132 model components to the UV plane model.
! The established model now contains 303 components and 0.763583 Jy
![Exited script file: muppet]
wmap "J1354-0206_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.288 x 5.299 at 4.401 degrees (North through East)
! Clean map  min=-0.0020389  max=0.64427 Jy/beam
! Writing clean map to FITS file: J1354-0206_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.644266 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000403217 
device "J1354-0206_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1354-0206_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.187756 0.187756 0.375513 0.751026 1.50205 3.0041 6.00821 12.0164 24.0328 48.0656 96.1313
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.644 
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.288 x 5.299 at 4.401 degrees (North through East)
! Clean map  min=-0.0020389  max=0.64427 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1354-0206_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1354-0206_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1354-0206_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 16:05:21 2007