! Started logfile: J0204+1514_S_2001_04_09_pus_uvs.log on Fri Oct  5 15:50:14 2007
obs J0204+1514_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0204+1514_S_2001_04_09_pus_uva.fits
! AN table 1: 80 integrations on 190 of 190 possible baselines.
! AN table 2: 226 integrations on 190 of 190 possible baselines.
! AN table 3: 51 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.191493 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0204+1514
! 
! 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 51956 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 J0204+1514_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 869 telescope corrections were flagged in sub-array 1.
!  A total of 2758 telescope corrections were flagged in sub-array 2.
!  A total of 802 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 869 telescope corrections were flagged in sub-array 1.
!  A total of 2758 telescope corrections were flagged in sub-array 2.
!  A total of 802 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 869 telescope corrections were flagged in sub-array 1.
!  A total of 2758 telescope corrections were flagged in sub-array 2.
!  A total of 802 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 869 telescope corrections were flagged in sub-array 1.
!  A total of 2781 telescope corrections were flagged in sub-array 2.
!  A total of 802 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.158378Jy  sigma=0.009516
! Fit after  self-cal, rms=0.449244Jy  sigma=0.003390
! 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.903 mas, bmaj=3.988 mas, bpa=-8.082 degrees
! Estimated noise=794.221 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.593392 Jy
! Component: 100  -  total flux cleaned = 0.777893 Jy
! Total flux subtracted in 100 components = 0.777893 Jy
! Clean residual min=-0.025792 max=0.160505 Jy/beam
! Clean residual mean=0.001207 rms=0.010160 Jy/beam
! Combined flux in latest and established models = 0.777893 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.777893 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.399000Jy  sigma=0.003227
! Fit after  self-cal, rms=0.397612Jy  sigma=0.003218
! Inverting map 
! Added new window around map position (-3.5, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.14562 Jy
! Component: 100  -  total flux cleaned = 0.231887 Jy
! Total flux subtracted in 100 components = 0.231887 Jy
! Clean residual min=-0.019379 max=0.052073 Jy/beam
! Clean residual mean=0.000913 rms=0.006302 Jy/beam
! Combined flux in latest and established models = 1.00978 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 27 components and 1.00978 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.315293Jy  sigma=0.002368
! Fit after  self-cal, rms=0.307361Jy  sigma=0.002301
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0740392 Jy
! Component: 100  -  total flux cleaned = 0.124643 Jy
! Total flux subtracted in 100 components = 0.124643 Jy
! Clean residual min=-0.011862 max=0.029076 Jy/beam
! Clean residual mean=0.000756 rms=0.004066 Jy/beam
! Combined flux in latest and established models = 1.13442 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 41 components and 1.13442 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278046Jy  sigma=0.001961
! Fit after  self-cal, rms=0.276136Jy  sigma=0.001944
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0434728 Jy
! Component: 100  -  total flux cleaned = 0.0743843 Jy
! Total flux subtracted in 100 components = 0.0743843 Jy
! Clean residual min=-0.010003 max=0.019497 Jy/beam
! Clean residual mean=0.000663 rms=0.003029 Jy/beam
! Combined flux in latest and established models = 1.20881 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 52 components and 1.20881 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265055Jy  sigma=0.001805
! Fit after  self-cal, rms=0.264379Jy  sigma=0.001800
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.027088 Jy
! Component: 100  -  total flux cleaned = 0.0470326 Jy
! Total flux subtracted in 100 components = 0.0470326 Jy
! Clean residual min=-0.009670 max=0.014583 Jy/beam
! Clean residual mean=0.000605 rms=0.002524 Jy/beam
! Combined flux in latest and established models = 1.25584 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 62 components and 1.25584 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260052Jy  sigma=0.001742
! Fit after  self-cal, rms=0.259786Jy  sigma=0.001740
! 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.156 mas, bmaj=5.493 mas, bpa=-8.027 degrees
! Estimated noise=386.423 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.027928 Jy
! Component: 100  -  total flux cleaned = 0.0452 Jy
! Component: 150  -  total flux cleaned = 0.0570121 Jy
! Component: 200  -  total flux cleaned = 0.0652428 Jy
! Total flux subtracted in 200 components = 0.0652428 Jy
! Clean residual min=-0.008855 max=0.014276 Jy/beam
! Clean residual mean=0.001358 rms=0.003387 Jy/beam
! Combined flux in latest and established models = 1.32108 Jy
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 88 components and 1.32108 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257063Jy  sigma=0.001700
! Fit after  self-cal, rms=0.256901Jy  sigma=0.001698
! 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.99     FD        0.98     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.96     KP        0.93     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        1.00     NY        1.00*    OV        1.03     PT        0.93     
!   SC        1.05     TS        0.99     WF        1.01     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.05     GC        1.05     GG        1.00*    
!   HH        1.00     HN        0.96     KK        1.00*    KP        1.02     
!   LA        0.96     MA        1.06     MC        1.07     MK        1.04     
!   NL        0.97     NY        1.00     OV        0.99     PT        0.97     
!   SC        1.02     TS        0.96     WF        0.90     WZ        1.03     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00*    KP        1.08     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.99     NY        1.03     OV        0.99     PT        0.92     
!   SC        1.00*    TS        1.00*    WF        0.92     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.96     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.93     KP        0.93     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.96     
!   NL        1.00     NY        1.00*    OV        1.03     PT        0.97     
!   SC        1.04     TS        1.01     WF        1.00     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.04     GC        1.03     GG        1.00*    
!   HH        1.18     HN        0.96     KK        1.00*    KP        1.04     
!   LA        0.99     MA        1.26     MC        1.10     MK        1.08     
!   NL        0.98     NY        1.04     OV        0.96     PT        1.01     
!   SC        1.00     TS        0.99     WF        0.82     WZ        1.01     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        0.88     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.00     NY        1.10     OV        0.94     PT        0.95     
!   SC        1.00*    TS        1.00*    WF        0.91     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.94     KP        0.98     
!   LA        0.93     MA        1.00*    MC        1.00*    MK        0.92     
!   NL        0.99     NY        1.00*    OV        1.01     PT        1.00     
!   SC        1.04     TS        1.00     WF        1.00     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.04     GC        1.04     GG        1.00*    
!   HH        1.01     HN        1.01     KK        1.00*    KP        1.01     
!   LA        0.97     MA        1.09     MC        1.07     MK        1.05     
!   NL        0.98     NY        0.98     OV        0.97     PT        1.02     
!   SC        0.99     TS        1.01     WF        0.85     WZ        1.02     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.01     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.98     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.01     NY        1.03     OV        0.96     PT        0.97     
!   SC        1.00*    TS        1.00*    WF        0.89     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.92     KP        0.97     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.91     
!   NL        0.98     NY        1.00*    OV        1.00     PT        1.09     
!   SC        1.05     TS        0.96     WF        0.97     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.05     GC        1.04     GG        1.00*    
!   HH        1.31     HN        1.01     KK        1.00*    KP        0.99     
!   LA        1.00     MA        0.95     MC        0.92     MK        1.03     
!   NL        0.97     NY        1.07     OV        0.96     PT        1.12     
!   SC        0.97     TS        0.95     WF        0.90     WZ        1.08     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.01     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.99     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.92     
!   NL        1.01     NY        1.07     OV        0.94     PT        1.08     
!   SC        1.00*    TS        1.00*    WF        0.91     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.256901Jy  sigma=0.001698
! Fit after  self-cal, rms=0.250610Jy  sigma=0.001633
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.174 mas, bmaj=5.576 mas, bpa=-7.986 degrees
! Estimated noise=386.973 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.00290211 Jy
! Component: 100  -  total flux cleaned = 0.00325158 Jy
! Component: 150  -  total flux cleaned = 0.00336724 Jy
! Component: 200  -  total flux cleaned = 0.00357897 Jy
! Total flux subtracted in 200 components = 0.00357897 Jy
! Clean residual min=-0.007030 max=0.012125 Jy/beam
! Clean residual mean=0.001077 rms=0.002790 Jy/beam
! Combined flux in latest and established models = 1.32466 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 96 components and 1.32466 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250366Jy  sigma=0.001631
! Fit after  self-cal, rms=0.250598Jy  sigma=0.001631
! 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.250598Jy  sigma=0.001631
! Fit after  self-cal, rms=0.254089Jy  sigma=0.001615
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.172 mas, bmaj=5.58 mas, bpa=-8.026 degrees
! Estimated noise=386.431 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00281722 Jy
! Component: 100  -  total flux cleaned = 0.00336846 Jy
! Component: 150  -  total flux cleaned = 0.00355352 Jy
! Component: 200  -  total flux cleaned = 0.00388208 Jy
! Total flux subtracted in 200 components = 0.00388208 Jy
! Clean residual min=-0.006635 max=0.011864 Jy/beam
! Clean residual mean=0.001063 rms=0.002711 Jy/beam
! Combined flux in latest and established models = 1.32854 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 105 components and 1.32854 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253998Jy  sigma=0.001614
! Fit after  self-cal, rms=0.254395Jy  sigma=0.001613
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 (-22.5, -31).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0131235 Jy
! Component: 100  -  total flux cleaned = 0.0218474 Jy
! Component: 150  -  total flux cleaned = 0.0282293 Jy
! Component: 200  -  total flux cleaned = 0.0330882 Jy
! Total flux subtracted in 200 components = 0.0330882 Jy
! Clean residual min=-0.006727 max=0.011575 Jy/beam
! Clean residual mean=0.001018 rms=0.002373 Jy/beam
! Combined flux in latest and established models = 1.36163 Jy
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 147 components and 1.36163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253605Jy  sigma=0.001604
! Fit after  self-cal, rms=0.253551Jy  sigma=0.001604
! Inverting map 
! Added new window around map position (-7.5, -45.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113767 Jy
! Component: 100  -  total flux cleaned = 0.0184059 Jy
! Component: 150  -  total flux cleaned = 0.0237205 Jy
! Component: 200  -  total flux cleaned = 0.02831 Jy
! Total flux subtracted in 200 components = 0.02831 Jy
! Clean residual min=-0.006114 max=0.007697 Jy/beam
! Clean residual mean=0.000944 rms=0.002144 Jy/beam
! Combined flux in latest and established models = 1.38994 Jy
! Performing phase self-cal
! Adding 49 model components to the UV plane model.
! The established model now contains 186 components and 1.38994 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252940Jy  sigma=0.001597
! Fit after  self-cal, rms=0.252934Jy  sigma=0.001596
! 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.252934Jy  sigma=0.001596
! Fit after  self-cal, rms=0.253615Jy  sigma=0.001595
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.175 mas, bmaj=5.58 mas, bpa=-8.027 degrees
! Estimated noise=386.113 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00522619 Jy
! Component: 100  -  total flux cleaned = 0.00954915 Jy
! Component: 150  -  total flux cleaned = 0.0133978 Jy
! Component: 200  -  total flux cleaned = 0.0168842 Jy
! Total flux subtracted in 200 components = 0.0168842 Jy
! Clean residual min=-0.005690 max=0.007545 Jy/beam
! Clean residual mean=0.000905 rms=0.002025 Jy/beam
! Combined flux in latest and established models = 1.40683 Jy
selfcal
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 204 components and 1.40683 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253412Jy  sigma=0.001593
! Fit after  self-cal, rms=0.253468Jy  sigma=0.001593
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.00337235 Jy
! Component: 100  -  total flux cleaned = 0.00641519 Jy
! Component: 150  -  total flux cleaned = 0.00919522 Jy
! Component: 200  -  total flux cleaned = 0.0117527 Jy
! Total flux subtracted in 200 components = 0.0117527 Jy
! Clean residual min=-0.005730 max=0.007445 Jy/beam
! Clean residual mean=0.000880 rms=0.001988 Jy/beam
! Combined flux in latest and established models = 1.41858 Jy
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 217 components and 1.41858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253368Jy  sigma=0.001592
! Fit after  self-cal, rms=0.253365Jy  sigma=0.001592
! 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.253365Jy  sigma=0.001592
! Fit after  self-cal, rms=0.253547Jy  sigma=0.001591
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.358 mas, bmaj=9.965 mas, bpa=-4.795 degrees
! Estimated noise=530.551 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00964874 Jy
! Component: 100  -  total flux cleaned = 0.0169222 Jy
! Component: 150  -  total flux cleaned = 0.0228461 Jy
! Component: 200  -  total flux cleaned = 0.0277782 Jy
! Total flux subtracted in 200 components = 0.0277782 Jy
! Clean residual min=-0.011461 max=0.015320 Jy/beam
! Clean residual mean=0.002460 rms=0.004396 Jy/beam
! Combined flux in latest and established models = 1.44636 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 241 components and 1.44636 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253529Jy  sigma=0.001591
! Fit after  self-cal, rms=0.253521Jy  sigma=0.001590
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.00490522 Jy
! Component: 100  -  total flux cleaned = 0.00877847 Jy
! Component: 150  -  total flux cleaned = 0.0120317 Jy
! Component: 200  -  total flux cleaned = 0.0147877 Jy
! Total flux subtracted in 200 components = 0.0147877 Jy
! Clean residual min=-0.011273 max=0.015934 Jy/beam
! Clean residual mean=0.002368 rms=0.004333 Jy/beam
! Combined flux in latest and established models = 1.46114 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 242 components and 1.46114 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253589Jy  sigma=0.001591
! Fit after  self-cal, rms=0.253586Jy  sigma=0.001591
! 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.175 mas, bmaj=5.58 mas, bpa=-8.026 degrees
! Estimated noise=386.208 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.175 x 5.58 at -8.026 degrees (North through East)
! Clean map  min=-0.0057613  max=0.77333 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.253586Jy  sigma=0.001591
! Fit after  self-cal, rms=0.561506Jy  sigma=0.001435
! Inverting map and beam 
! Estimated beam: bmin=2.173 mas, bmaj=5.577 mas, bpa=-8.029 degrees
! Estimated noise=386.335 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0021553 Jy
! Component: 100  -  total flux cleaned = -0.00343139 Jy
! Component: 150  -  total flux cleaned = -0.00416746 Jy
! Component: 200  -  total flux cleaned = -0.00458369 Jy
! Total flux subtracted in 200 components = -0.00458369 Jy
! Clean residual min=-0.005440 max=0.007224 Jy/beam
! Clean residual mean=0.000759 rms=0.001857 Jy/beam
! Combined flux in latest and established models = 1.45656 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 263 components and 1.45656 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.561467Jy  sigma=0.001434
! Fit after  self-cal, rms=0.561482Jy  sigma=0.001434
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000467464 Jy
! Component: 100  -  total flux cleaned = -0.000687642 Jy
! Component: 150  -  total flux cleaned = -0.000826631 Jy
! Component: 200  -  total flux cleaned = -0.000956907 Jy
! Total flux subtracted in 200 components = -0.000956907 Jy
! Clean residual min=-0.005367 max=0.007193 Jy/beam
! Clean residual mean=0.000759 rms=0.001852 Jy/beam
! Combined flux in latest and established models = 1.4556 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 273 components and 1.4556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.561465Jy  sigma=0.001433
! Fit after  self-cal, rms=0.561467Jy  sigma=0.001433
! 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.561467Jy  sigma=0.001433
! Fit after  self-cal, rms=1.024621Jy  sigma=0.001433
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.922 mas, bmaj=4.145 mas, bpa=-8.832 degrees
! Estimated noise=778.951 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.593772 Jy
! Component: 100  -  total flux cleaned = 0.82055 Jy
! Component: 150  -  total flux cleaned = 0.959554 Jy
! Component: 200  -  total flux cleaned = 1.05295 Jy
! Total flux subtracted in 200 components = 1.05295 Jy
! Clean residual min=-0.012093 max=0.051345 Jy/beam
! Clean residual mean=0.000764 rms=0.004856 Jy/beam
! Combined flux in latest and established models = 1.05295 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 22 model components to the UV plane model.
! The established model now contains 22 components and 1.05295 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.174 mas, bmaj=5.577 mas, bpa=-8.026 degrees
! Estimated noise=386.422 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.104198 Jy
! Component: 100  -  total flux cleaned = 0.164523 Jy
! Component: 150  -  total flux cleaned = 0.202096 Jy
! Component: 200  -  total flux cleaned = 0.226826 Jy
! Total flux subtracted in 200 components = 0.226826 Jy
! Clean residual min=-0.008002 max=0.014290 Jy/beam
! Clean residual mean=0.001185 rms=0.003248 Jy/beam
! Combined flux in latest and established models = 1.27977 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 68 components and 1.27977 Jy
! Inverting map 
! Added new window around map position (-0.5, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0179145 Jy
! Component: 100  -  total flux cleaned = 0.0327137 Jy
! Component: 150  -  total flux cleaned = 0.0456243 Jy
! Component: 200  -  total flux cleaned = 0.057117 Jy
! Total flux subtracted in 200 components = 0.057117 Jy
! Clean residual min=-0.007100 max=0.010929 Jy/beam
! Clean residual mean=0.001033 rms=0.002518 Jy/beam
! Combined flux in latest and established models = 1.33689 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 110 components and 1.33689 Jy
! Inverting map 
! Added new window around map position (-18, -37).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0115264 Jy
! Component: 100  -  total flux cleaned = 0.0211629 Jy
! Component: 150  -  total flux cleaned = 0.029869 Jy
! Component: 200  -  total flux cleaned = 0.0377885 Jy
! Total flux subtracted in 200 components = 0.0377885 Jy
! Clean residual min=-0.006627 max=0.007899 Jy/beam
! Clean residual mean=0.000948 rms=0.002148 Jy/beam
! Combined flux in latest and established models = 1.37468 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 139 components and 1.37468 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.353 mas, bmaj=9.961 mas, bpa=-4.707 degrees
! Estimated noise=531.793 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0177609 Jy
! Component: 100  -  total flux cleaned = 0.031787 Jy
! Component: 150  -  total flux cleaned = 0.0435958 Jy
! Component: 200  -  total flux cleaned = 0.053682 Jy
! Total flux subtracted in 200 components = 0.053682 Jy
! Clean residual min=-0.010971 max=0.013489 Jy/beam
! Clean residual mean=0.002460 rms=0.004419 Jy/beam
! Combined flux in latest and established models = 1.42836 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.00867582 Jy
! Component: 100  -  total flux cleaned = 0.0161724 Jy
! Component: 150  -  total flux cleaned = 0.0226961 Jy
! Component: 200  -  total flux cleaned = 0.0283831 Jy
! Total flux subtracted in 200 components = 0.0283831 Jy
! Clean residual min=-0.010208 max=0.013031 Jy/beam
! Clean residual mean=0.002270 rms=0.004160 Jy/beam
! Combined flux in latest and established models = 1.45675 Jy
! Adding 126 model components to the UV plane model.
! The established model now contains 247 components and 1.45675 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.174 mas, bmaj=5.577 mas, bpa=-8.026 degrees
! Estimated noise=386.422 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00244551 Jy
! Component: 100  -  total flux cleaned = 0.00538464 Jy
! Component: 150  -  total flux cleaned = 0.00726739 Jy
! Component: 200  -  total flux cleaned = 0.00876125 Jy
! Total flux subtracted in 200 components = 0.00876124 Jy
! Clean residual min=-0.005728 max=0.006506 Jy/beam
! Clean residual mean=0.000750 rms=0.001759 Jy/beam
! Combined flux in latest and established models = 1.46551 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 265 components and 1.46551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.024389Jy  sigma=0.001431
! Fit after  self-cal, rms=1.024447Jy  sigma=0.001431
wmodel J0204+1514_S_2001_04_09_pus_map.mod
! Writing 265 model components to file: J0204+1514_S_2001_04_09_pus_map.mod
wobs J0204+1514_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0204+1514_S_2001_04_09_pus_uvs.fits
wwins J0204+1514_S_2001_04_09_pus_map.win
! wwins: Wrote 6 windows to J0204+1514_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.00293457 Jy
! Component: 100  -  total flux cleaned = 0.00544552 Jy
! Component: 150  -  total flux cleaned = 0.0075222 Jy
! Component: 200  -  total flux cleaned = 0.00921462 Jy
! Component: 250  -  total flux cleaned = 0.0109499 Jy
! Component: 300  -  total flux cleaned = 0.0126346 Jy
! Component: 350  -  total flux cleaned = 0.0142727 Jy
! Component: 400  -  total flux cleaned = 0.01578 Jy
! Component: 450  -  total flux cleaned = 0.0173397 Jy
! Component: 500  -  total flux cleaned = 0.0186967 Jy
! Component: 550  -  total flux cleaned = 0.02011 Jy
! Component: 600  -  total flux cleaned = 0.0214965 Jy
! Component: 650  -  total flux cleaned = 0.0228585 Jy
! Component: 700  -  total flux cleaned = 0.0241987 Jy
! Component: 750  -  total flux cleaned = 0.0255957 Jy
! Component: 800  -  total flux cleaned = 0.0270485 Jy
! Component: 850  -  total flux cleaned = 0.0283301 Jy
! Component: 900  -  total flux cleaned = 0.0297421 Jy
! Component: 950  -  total flux cleaned = 0.0310611 Jy
! Component: 1000  -  total flux cleaned = 0.0322911 Jy
! Component: 1050  -  total flux cleaned = 0.033648 Jy
! Component: 1100  -  total flux cleaned = 0.0349174 Jy
! Component: 1150  -  total flux cleaned = 0.0362413 Jy
! Component: 1200  -  total flux cleaned = 0.0374797 Jy
! Component: 1250  -  total flux cleaned = 0.0388398 Jy
! Component: 1300  -  total flux cleaned = 0.0400502 Jy
! Component: 1350  -  total flux cleaned = 0.0413129 Jy
! Component: 1400  -  total flux cleaned = 0.0425609 Jy
! Component: 1450  -  total flux cleaned = 0.0438609 Jy
! Component: 1500  -  total flux cleaned = 0.0451466 Jy
! Component: 1550  -  total flux cleaned = 0.0463554 Jy
! Component: 1600  -  total flux cleaned = 0.0476154 Jy
! Component: 1650  -  total flux cleaned = 0.0489868 Jy
! Component: 1700  -  total flux cleaned = 0.0500974 Jy
! Component: 1750  -  total flux cleaned = 0.0514412 Jy
! Component: 1800  -  total flux cleaned = 0.0526507 Jy
! Component: 1850  -  total flux cleaned = 0.0537895 Jy
! Component: 1900  -  total flux cleaned = 0.0550358 Jy
! Component: 1950  -  total flux cleaned = 0.0562135 Jy
! Component: 2000  -  total flux cleaned = 0.0574387 Jy
! Total flux subtracted in 2048 components = 0.0585954 Jy
! Clean residual min=-0.003503 max=0.003156 Jy/beam
! Clean residual mean=0.000664 rms=0.001180 Jy/beam
! Combined flux in latest and established models = 1.5241 Jy
keep
! Adding 196 model components to the UV plane model.
! The established model now contains 461 components and 1.5241 Jy
![Exited script file: muppet]
wmap "J0204+1514_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.174 x 5.577 at -8.026 degrees (North through East)
! Clean map  min=-0.0042721  max=0.77413 Jy/beam
! Writing clean map to FITS file: J0204+1514_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.774125 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00116969 
device "J0204+1514_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0204+1514_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.453293 0.453293 0.906587 1.81317 3.62635 7.25269 14.5054 29.0108 58.0215
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0035 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.774 
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.174 x 5.577 at -8.026 degrees (North through East)
! Clean map  min=-0.0042721  max=0.77413 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0204+1514_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0204+1514_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0204+1514_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 15:50:40 2007