! Started logfile: J1613+3412_S_2001_07_05_pus_uvs.log on Fri Aug 10 01:48:09 2007
obs J1613+3412_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1613+3412_S_2001_07_05_pus_uva.fits
! AN table 1: 193 integrations on 171 of 171 possible baselines.
! AN table 2: 150 integrations on 171 of 171 possible baselines.
! AN table 3: 229 integrations on 171 of 171 possible baselines.
! AN table 4: 8 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.188355 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1613+3412
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 74724 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 
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 2351 telescope corrections were flagged in sub-array 1.
!  A total of 2102 telescope corrections were flagged in sub-array 2.
!  A total of 2155 telescope corrections were flagged in sub-array 3.
!  A total of 131 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2351 telescope corrections were flagged in sub-array 1.
!  A total of 2102 telescope corrections were flagged in sub-array 2.
!  A total of 2155 telescope corrections were flagged in sub-array 3.
!  A total of 131 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2351 telescope corrections were flagged in sub-array 1.
!  A total of 2102 telescope corrections were flagged in sub-array 2.
!  A total of 2155 telescope corrections were flagged in sub-array 3.
!  A total of 131 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2351 telescope corrections were flagged in sub-array 1.
!  A total of 2102 telescope corrections were flagged in sub-array 2.
!  A total of 2155 telescope corrections were flagged in sub-array 3.
!  A total of 131 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.259137Jy  sigma=0.019494
! Fit after  self-cal, rms=1.903973Jy  sigma=0.016663
! 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.952 mas, bmaj=2.923 mas, bpa=6.155 degrees
! Estimated noise=812.189 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 = 1.46107 Jy
! Component: 100  -  total flux cleaned = 2.12945 Jy
! Total flux subtracted in 100 components = 2.12945 Jy
! Clean residual min=-0.110799 max=0.344515 Jy/beam
! Clean residual mean=0.000179 rms=0.030686 Jy/beam
! Combined flux in latest and established models = 2.12945 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 18 components and 2.12945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.253546Jy  sigma=0.010574
! Fit after  self-cal, rms=1.209532Jy  sigma=0.010415
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.517697 Jy
! Component: 100  -  total flux cleaned = 0.852022 Jy
! Total flux subtracted in 100 components = 0.852022 Jy
! Clean residual min=-0.068457 max=0.196216 Jy/beam
! Clean residual mean=0.000154 rms=0.018191 Jy/beam
! Combined flux in latest and established models = 2.98147 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 24 components and 2.98147 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.770571Jy  sigma=0.006215
! Fit after  self-cal, rms=0.751047Jy  sigma=0.006096
! Inverting map 
! Added new window around map position (2, -2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.270935 Jy
! Component: 100  -  total flux cleaned = 0.460851 Jy
! Total flux subtracted in 100 components = 0.460851 Jy
! Clean residual min=-0.042790 max=0.126908 Jy/beam
! Clean residual mean=0.000144 rms=0.011565 Jy/beam
! Combined flux in latest and established models = 3.44232 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 30 components and 3.44232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.556702Jy  sigma=0.004063
! Fit after  self-cal, rms=0.550647Jy  sigma=0.004015
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.154547 Jy
! Component: 100  -  total flux cleaned = 0.268492 Jy
! Total flux subtracted in 100 components = 0.268492 Jy
! Clean residual min=-0.031722 max=0.090316 Jy/beam
! Clean residual mean=0.000140 rms=0.008470 Jy/beam
! Combined flux in latest and established models = 3.71082 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 35 components and 3.71082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.472426Jy  sigma=0.003078
! Fit after  self-cal, rms=0.470300Jy  sigma=0.003058
! Inverting map 
! Added new window around map position (-2.5, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.10027 Jy
! Component: 100  -  total flux cleaned = 0.175097 Jy
! Total flux subtracted in 100 components = 0.175097 Jy
! Clean residual min=-0.030044 max=0.047096 Jy/beam
! Clean residual mean=0.000137 rms=0.006830 Jy/beam
! Combined flux in latest and established models = 3.88591 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 41 components and 3.88591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.438360Jy  sigma=0.002625
! Fit after  self-cal, rms=0.437662Jy  sigma=0.002618
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0631688 Jy
! Component: 100  -  total flux cleaned = 0.0991056 Jy
! Total flux subtracted in 100 components = 0.0991056 Jy
! Clean residual min=-0.030851 max=0.036214 Jy/beam
! Clean residual mean=0.000135 rms=0.006097 Jy/beam
! Combined flux in latest and established models = 3.98502 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 45 components and 3.98502 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.427511Jy  sigma=0.002471
! Fit after  self-cal, rms=0.427196Jy  sigma=0.002467
! 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.446 mas, bmaj=4.099 mas, bpa=9.562 degrees
! Estimated noise=330.45 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.0462843 Jy
! Component: 100  -  total flux cleaned = 0.0737791 Jy
! Component: 150  -  total flux cleaned = 0.0844095 Jy
! Component: 200  -  total flux cleaned = 0.0897578 Jy
! Total flux subtracted in 200 components = 0.0897578 Jy
! Clean residual min=-0.016521 max=0.023423 Jy/beam
! Clean residual mean=0.001124 rms=0.004212 Jy/beam
! Combined flux in latest and established models = 4.07478 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 51 components and 4.07478 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422431Jy  sigma=0.002395
! Fit after  self-cal, rms=0.422315Jy  sigma=0.002393
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.02     GC        0.99     GG        1.00*    
!   HH        1.18     HN        0.95     KK        1.03     KP        1.12     
!   LA        1.04     MC        0.89     MK        0.97     NL        0.98     
!   NY        1.02     OV        1.00     PT        1.00     SC        1.00     
!   TS        1.14     WF        1.00     WZ        0.97     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.83     KK        1.00*    KP        0.96     
!   LA        0.97     MC        0.97     MK        1.00*    NL        0.90     
!   NY        0.99     OV        1.00     PT        0.93     SC        0.96     
!   TS        1.00*    WF        0.99     WZ        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.01     GG        1.00*    
!   HH        0.83     HN        0.98     KK        1.03     KP        1.06     
!   LA        1.02     MC        0.96     MK        0.99     NL        1.00     
!   NY        0.97     OV        0.96     PT        0.96     SC        1.02     
!   TS        1.03     WF        1.01     WZ        0.97     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.04     GC        0.96     GG        1.00*    
!   HH        1.38     HN        0.96     KK        1.03     KP        0.99     
!   LA        1.01     MC        1.04     MK        0.97     NL        0.95     
!   NY        1.03     OV        1.04     PT        1.03     SC        1.03     
!   TS        1.10     WF        0.98     WZ        0.97     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.83     KK        1.00*    KP        1.01     
!   LA        0.94     MC        0.95     MK        1.00*    NL        0.88     
!   NY        0.98     OV        1.03     PT        0.97     SC        1.00     
!   TS        1.00*    WF        0.98     WZ        1.00     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        0.98     GG        1.00*    
!   HH        0.84     HN        0.99     KK        1.05     KP        0.94     
!   LA        0.98     MC        0.91     MK        0.93     NL        0.97     
!   NY        0.97     OV        0.98     PT        1.00     SC        1.04     
!   TS        1.01     WF        1.01     WZ        0.94     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.01     GC        1.01     GG        1.00*    
!   HH        1.40     HN        1.04     KK        1.02     KP        1.08     
!   LA        1.03     MC        0.96     MK        1.03     NL        1.01     
!   NY        1.03     OV        1.04     PT        1.04     SC        1.03     
!   TS        1.11     WF        1.00     WZ        0.97     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.94     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        1.01     
!   LA        1.00     MC        0.91     MK        1.00*    NL        0.94     
!   NY        1.02     OV        1.08     PT        0.96     SC        1.00     
!   TS        1.00*    WF        1.02     WZ        1.02     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.95     GC        1.04     GG        1.00*    
!   HH        0.82     HN        1.07     KK        1.04     KP        1.04     
!   LA        1.01     MC        0.92     MK        0.97     NL        1.03     
!   NY        0.97     OV        1.02     PT        0.99     SC        1.04     
!   TS        1.03     WF        1.02     WZ        0.98     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 150 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.04     GC        0.99     GG        1.00*    
!   HH        1.66     HN        0.94     KK        1.04     KP        1.11     
!   LA        1.03     MC        0.96     MK        1.01     NL        0.99     
!   NY        1.05     OV        1.05     PT        1.08     SC        1.03     
!   TS        1.11     WF        1.00     WZ        1.01     
! 
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.83     KK        1.00*    KP        1.01     
!   LA        0.98     MC        1.21     MK        1.00*    NL        0.92     
!   NY        1.02     OV        0.99     PT        1.01     SC        1.00     
!   TS        1.00*    WF        1.00     WZ        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        1.02     GG        1.00*    
!   HH        0.72     HN        0.96     KK        1.03     KP        1.04     
!   LA        1.01     MC        0.52     MK        0.95     NL        1.01     
!   NY        0.99     OV        0.99     PT        1.03     SC        1.04     
!   TS        1.03     WF        1.03     WZ        0.98     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.422315Jy  sigma=0.002393
! Fit after  self-cal, rms=0.391165Jy  sigma=0.001986
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.477 mas, bmaj=4.1 mas, bpa=9.617 degrees
! Estimated noise=332.396 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 (3, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00760263 Jy
! Component: 100  -  total flux cleaned = 0.0122678 Jy
! Component: 150  -  total flux cleaned = 0.0148504 Jy
! Component: 200  -  total flux cleaned = 0.0158071 Jy
! Total flux subtracted in 200 components = 0.0158071 Jy
! Clean residual min=-0.008030 max=0.011661 Jy/beam
! Clean residual mean=0.001081 rms=0.002351 Jy/beam
! Combined flux in latest and established models = 4.09058 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 69 components and 4.09058 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.389880Jy  sigma=0.001975
! Fit after  self-cal, rms=0.390019Jy  sigma=0.001974
! Inverting map 
! Added new window around map position (39, 55).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0131591 Jy
! Component: 100  -  total flux cleaned = 0.0177556 Jy
! Component: 150  -  total flux cleaned = 0.0204627 Jy
! Component: 200  -  total flux cleaned = 0.0226189 Jy
! Total flux subtracted in 200 components = 0.0226189 Jy
! Clean residual min=-0.007990 max=0.010474 Jy/beam
! Clean residual mean=0.000837 rms=0.002155 Jy/beam
! Combined flux in latest and established models = 4.1132 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 81 components and 4.1132 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.389265Jy  sigma=0.001967
! Fit after  self-cal, rms=0.389240Jy  sigma=0.001967
! 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.389240Jy  sigma=0.001967
! Fit after  self-cal, rms=0.409740Jy  sigma=0.001915
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.474 mas, bmaj=4.099 mas, bpa=9.524 degrees
! Estimated noise=331.848 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00419824 Jy
! Component: 100  -  total flux cleaned = 0.00694901 Jy
! Component: 150  -  total flux cleaned = 0.00906504 Jy
! Component: 200  -  total flux cleaned = 0.0109341 Jy
! Total flux subtracted in 200 components = 0.0109341 Jy
! Clean residual min=-0.007195 max=0.007177 Jy/beam
! Clean residual mean=0.000532 rms=0.001433 Jy/beam
! Combined flux in latest and established models = 4.12414 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 90 components and 4.12414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.409266Jy  sigma=0.001911
! Fit after  self-cal, rms=0.409320Jy  sigma=0.001911
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 (-4, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00348355 Jy
! Component: 100  -  total flux cleaned = 0.00480789 Jy
! Component: 150  -  total flux cleaned = 0.00542388 Jy
! Component: 200  -  total flux cleaned = 0.0058208 Jy
! Total flux subtracted in 200 components = 0.0058208 Jy
! Clean residual min=-0.007012 max=0.006211 Jy/beam
! Clean residual mean=0.000489 rms=0.001389 Jy/beam
! Combined flux in latest and established models = 4.12996 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 100 components and 4.12996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.409043Jy  sigma=0.001908
! Fit after  self-cal, rms=0.409022Jy  sigma=0.001908
! 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.409022Jy  sigma=0.001908
! Fit after  self-cal, rms=0.407541Jy  sigma=0.001907
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.471 mas, bmaj=4.098 mas, bpa=9.51 degrees
! Estimated noise=331.38 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00180947 Jy
! Component: 100  -  total flux cleaned = 0.00369695 Jy
! Component: 150  -  total flux cleaned = 0.00560201 Jy
! Component: 200  -  total flux cleaned = 0.00638482 Jy
! Total flux subtracted in 200 components = 0.00638482 Jy
! Clean residual min=-0.006572 max=0.005757 Jy/beam
! Clean residual mean=0.000391 rms=0.001299 Jy/beam
! Combined flux in latest and established models = 4.13634 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 105 components and 4.13634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407243Jy  sigma=0.001905
! Fit after  self-cal, rms=0.407235Jy  sigma=0.001904
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.000767939 Jy
! Component: 100  -  total flux cleaned = 0.00114036 Jy
! Component: 150  -  total flux cleaned = 0.00168244 Jy
! Component: 200  -  total flux cleaned = 0.00168885 Jy
! Total flux subtracted in 200 components = 0.00168885 Jy
! Clean residual min=-0.006487 max=0.005711 Jy/beam
! Clean residual mean=0.000379 rms=0.001280 Jy/beam
! Combined flux in latest and established models = 4.13803 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 108 components and 4.13803 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407021Jy  sigma=0.001903
! Fit after  self-cal, rms=0.407006Jy  sigma=0.001903
! 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.407006Jy  sigma=0.001903
! Fit after  self-cal, rms=0.405925Jy  sigma=0.001903
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.248 mas, bmaj=8.716 mas, bpa=86.94 degrees
! Estimated noise=463.517 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00190286 Jy
! Component: 100  -  total flux cleaned = 0.0030124 Jy
! Component: 150  -  total flux cleaned = 0.00371668 Jy
! Component: 200  -  total flux cleaned = 0.00397679 Jy
! Total flux subtracted in 200 components = 0.00397679 Jy
! Clean residual min=-0.004742 max=0.007396 Jy/beam
! Clean residual mean=0.000992 rms=0.001574 Jy/beam
! Combined flux in latest and established models = 4.14201 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 138 components and 4.14201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.405925Jy  sigma=0.001902
! Fit after  self-cal, rms=0.405912Jy  sigma=0.001902
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 (-34.5, -50).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00671144 Jy
! Component: 100  -  total flux cleaned = 0.0107436 Jy
! Component: 150  -  total flux cleaned = 0.0126883 Jy
! Component: 200  -  total flux cleaned = 0.0140802 Jy
! Total flux subtracted in 200 components = 0.0140802 Jy
! Clean residual min=-0.004179 max=0.004063 Jy/beam
! Clean residual mean=0.000546 rms=0.001252 Jy/beam
! Combined flux in latest and established models = 4.15609 Jy
! Performing phase self-cal
! Adding 61 model components to the UV plane model.
! The established model now contains 195 components and 4.15609 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.405846Jy  sigma=0.001902
! Fit after  self-cal, rms=0.405842Jy  sigma=0.001902
! 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.47 mas, bmaj=4.098 mas, bpa=9.505 degrees
! Estimated noise=331.01 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.47 x 4.098 at 9.505 degrees (North through East)
! Clean map  min=-0.0048637  max=2.0951 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.405842Jy  sigma=0.001902
! Fit after  self-cal, rms=0.690279Jy  sigma=0.001449
! Inverting map and beam 
! Estimated beam: bmin=2.469 mas, bmaj=4.095 mas, bpa=9.506 degrees
! Estimated noise=331.191 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000179164 Jy
! Component: 100  -  total flux cleaned = 0.000424791 Jy
! Component: 150  -  total flux cleaned = 0.000789997 Jy
! Component: 200  -  total flux cleaned = 0.000788855 Jy
! Total flux subtracted in 200 components = 0.000788855 Jy
! Clean residual min=-0.004264 max=0.005233 Jy/beam
! Clean residual mean=0.000179 rms=0.001057 Jy/beam
! Combined flux in latest and established models = 4.15688 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 210 components and 4.15688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.690155Jy  sigma=0.001446
! Fit after  self-cal, rms=0.690144Jy  sigma=0.001446
! Inverting map 
! Added new window around map position (34.5, 26.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00225029 Jy
! Component: 100  -  total flux cleaned = 0.00242442 Jy
! Component: 150  -  total flux cleaned = 0.00226178 Jy
! Component: 200  -  total flux cleaned = 0.00242668 Jy
! Total flux subtracted in 200 components = 0.00242668 Jy
! Clean residual min=-0.004059 max=0.004970 Jy/beam
! Clean residual mean=0.000157 rms=0.001029 Jy/beam
! Combined flux in latest and established models = 4.15931 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 218 components and 4.15931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.690015Jy  sigma=0.001445
! Fit after  self-cal, rms=0.690009Jy  sigma=0.001445
! Inverting map 
! Added new window around map position (-13, -7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000845231 Jy
! Component: 100  -  total flux cleaned = 0.000665768 Jy
! Component: 150  -  total flux cleaned = 0.000661526 Jy
! Component: 200  -  total flux cleaned = 0.000657594 Jy
! Total flux subtracted in 200 components = 0.000657594 Jy
! Clean residual min=-0.003882 max=0.004112 Jy/beam
! Clean residual mean=0.000152 rms=0.001008 Jy/beam
! Combined flux in latest and established models = 4.15996 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 225 components and 4.15996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.689898Jy  sigma=0.001443
! Fit after  self-cal, rms=0.689890Jy  sigma=0.001443
! 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.689890Jy  sigma=0.001443
! Fit after  self-cal, rms=0.690034Jy  sigma=0.001443
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.968 mas, bmaj=2.948 mas, bpa=5.502 degrees
! Estimated noise=842.712 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.50747 Jy
! Component: 100  -  total flux cleaned = 2.25777 Jy
! Component: 150  -  total flux cleaned = 2.72446 Jy
! Component: 200  -  total flux cleaned = 3.03264 Jy
! Total flux subtracted in 200 components = 3.03264 Jy
! Clean residual min=-0.041669 max=0.174195 Jy/beam
! Clean residual mean=0.000083 rms=0.013967 Jy/beam
! Combined flux in latest and established models = 3.03264 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 26 model components to the UV plane model.
! The established model now contains 26 components and 3.03264 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.468 mas, bmaj=4.095 mas, bpa=9.505 degrees
! Estimated noise=331.031 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.418686 Jy
! Component: 100  -  total flux cleaned = 0.651761 Jy
! Component: 150  -  total flux cleaned = 0.795088 Jy
! Component: 200  -  total flux cleaned = 0.887112 Jy
! Total flux subtracted in 200 components = 0.887112 Jy
! Clean residual min=-0.010143 max=0.051144 Jy/beam
! Clean residual mean=0.002165 rms=0.005716 Jy/beam
! Combined flux in latest and established models = 3.91975 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 67 components and 3.91975 Jy
! Inverting map 
! Added new window around map position (0, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0617333 Jy
! Component: 100  -  total flux cleaned = 0.103891 Jy
! Component: 150  -  total flux cleaned = 0.133713 Jy
! Component: 200  -  total flux cleaned = 0.155234 Jy
! Total flux subtracted in 200 components = 0.155234 Jy
! Clean residual min=-0.004533 max=0.012150 Jy/beam
! Clean residual mean=0.000898 rms=0.001811 Jy/beam
! Combined flux in latest and established models = 4.07499 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 90 components and 4.07499 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0159299 Jy
! Component: 100  -  total flux cleaned = 0.0282143 Jy
! Component: 150  -  total flux cleaned = 0.0360458 Jy
! Component: 200  -  total flux cleaned = 0.040404 Jy
! Total flux subtracted in 200 components = 0.040404 Jy
! Clean residual min=-0.005268 max=0.006840 Jy/beam
! Clean residual mean=0.000571 rms=0.001197 Jy/beam
! Combined flux in latest and established models = 4.11539 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 107 components and 4.11539 Jy
! Inverting map 
! Added new window around map position (9.5, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00391434 Jy
! Component: 100  -  total flux cleaned = 0.00698014 Jy
! Component: 150  -  total flux cleaned = 0.0095693 Jy
! Component: 200  -  total flux cleaned = 0.0119939 Jy
! Total flux subtracted in 200 components = 0.0119939 Jy
! Clean residual min=-0.003885 max=0.004882 Jy/beam
! Clean residual mean=0.000465 rms=0.001066 Jy/beam
! Combined flux in latest and established models = 4.12739 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 121 components and 4.12739 Jy
! Inverting map 
! Added new window around map position (-64, -60).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00311174 Jy
! Component: 100  -  total flux cleaned = 0.00526068 Jy
! Component: 150  -  total flux cleaned = 0.0072817 Jy
! Component: 200  -  total flux cleaned = 0.00919681 Jy
! Total flux subtracted in 200 components = 0.00919681 Jy
! Clean residual min=-0.003806 max=0.004407 Jy/beam
! Clean residual mean=0.000383 rms=0.000998 Jy/beam
! Combined flux in latest and established models = 4.13658 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 134 components and 4.13658 Jy
! Inverting map 
! Added new window around map position (7.5, 15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00304104 Jy
! Component: 100  -  total flux cleaned = 0.00444573 Jy
! Component: 150  -  total flux cleaned = 0.00579625 Jy
! Component: 200  -  total flux cleaned = 0.00677174 Jy
! Total flux subtracted in 200 components = 0.00677174 Jy
! Clean residual min=-0.003737 max=0.004104 Jy/beam
! Clean residual mean=0.000327 rms=0.000953 Jy/beam
! Combined flux in latest and established models = 4.14335 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 155 components and 4.14335 Jy
! Inverting map 
! Added new window around map position (44, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00235514 Jy
! Component: 100  -  total flux cleaned = 0.00327395 Jy
! Component: 150  -  total flux cleaned = 0.00416622 Jy
! Component: 200  -  total flux cleaned = 0.00474774 Jy
! Total flux subtracted in 200 components = 0.00474774 Jy
! Clean residual min=-0.003634 max=0.003879 Jy/beam
! Clean residual mean=0.000287 rms=0.000921 Jy/beam
! Combined flux in latest and established models = 4.1481 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 175 components and 4.1481 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=8.249 mas, bmaj=8.71 mas, bpa=86.8 degrees
! Estimated noise=463.927 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0038104 Jy
! Component: 100  -  total flux cleaned = 0.00649211 Jy
! Component: 150  -  total flux cleaned = 0.00872531 Jy
! Component: 200  -  total flux cleaned = 0.0106384 Jy
! Total flux subtracted in 200 components = 0.0106384 Jy
! Clean residual min=-0.002229 max=0.002317 Jy/beam
! Clean residual mean=0.000567 rms=0.000668 Jy/beam
! Combined flux in latest and established models = 4.15874 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.00135095 Jy
! Component: 100  -  total flux cleaned = 0.00238478 Jy
! Component: 150  -  total flux cleaned = 0.00316253 Jy
! Component: 200  -  total flux cleaned = 0.00387942 Jy
! Total flux subtracted in 200 components = 0.00387942 Jy
! Clean residual min=-0.002238 max=0.002305 Jy/beam
! Clean residual mean=0.000456 rms=0.000648 Jy/beam
! Combined flux in latest and established models = 4.16262 Jy
! Adding 74 model components to the UV plane model.
! The established model now contains 246 components and 4.16262 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.468 mas, bmaj=4.095 mas, bpa=9.505 degrees
! Estimated noise=331.031 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00264307 Jy
! Component: 100  -  total flux cleaned = -0.00292513 Jy
! Component: 150  -  total flux cleaned = -0.00319284 Jy
! Component: 200  -  total flux cleaned = -0.00305874 Jy
! Total flux subtracted in 200 components = -0.00305874 Jy
! Clean residual min=-0.003378 max=0.003397 Jy/beam
! Clean residual mean=0.000187 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 4.15956 Jy
selfcal
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 264 components and 4.15956 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.688553Jy  sigma=0.001431
! Fit after  self-cal, rms=0.687692Jy  sigma=0.001423
wmodel J1613+3412_S_2001_07_05_pus_map.mod
! Writing 264 model components to file: J1613+3412_S_2001_07_05_pus_map.mod
wobs J1613+3412_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1613+3412_S_2001_07_05_pus_uvs.fits
wwins J1613+3412_S_2001_07_05_pus_map.win
! wwins: Wrote 14 windows to J1613+3412_S_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00155911 Jy
! Component: 100  -  total flux cleaned = 0.00251297 Jy
! Component: 150  -  total flux cleaned = 0.00313934 Jy
! Component: 200  -  total flux cleaned = 0.00368976 Jy
! Component: 250  -  total flux cleaned = 0.00411961 Jy
! Component: 300  -  total flux cleaned = 0.0046468 Jy
! Component: 350  -  total flux cleaned = 0.00521591 Jy
! Component: 400  -  total flux cleaned = 0.00572402 Jy
! Component: 450  -  total flux cleaned = 0.00617537 Jy
! Component: 500  -  total flux cleaned = 0.00666988 Jy
! Component: 550  -  total flux cleaned = 0.00710868 Jy
! Component: 600  -  total flux cleaned = 0.00739784 Jy
! Component: 650  -  total flux cleaned = 0.00768447 Jy
! Component: 700  -  total flux cleaned = 0.00796768 Jy
! Component: 750  -  total flux cleaned = 0.00820201 Jy
! Component: 800  -  total flux cleaned = 0.00852717 Jy
! Component: 850  -  total flux cleaned = 0.00875722 Jy
! Component: 900  -  total flux cleaned = 0.00898582 Jy
! Component: 950  -  total flux cleaned = 0.00921234 Jy
! Component: 1000  -  total flux cleaned = 0.0094376 Jy
! Component: 1050  -  total flux cleaned = 0.00970591 Jy
! Component: 1100  -  total flux cleaned = 0.00997233 Jy
! Component: 1150  -  total flux cleaned = 0.0101485 Jy
! Component: 1200  -  total flux cleaned = 0.0103677 Jy
! Component: 1250  -  total flux cleaned = 0.0104984 Jy
! Component: 1300  -  total flux cleaned = 0.0107581 Jy
! Component: 1350  -  total flux cleaned = 0.01093 Jy
! Component: 1400  -  total flux cleaned = 0.0110585 Jy
! Component: 1450  -  total flux cleaned = 0.0112286 Jy
! Component: 1500  -  total flux cleaned = 0.0113558 Jy
! Component: 1550  -  total flux cleaned = 0.0114821 Jy
! Component: 1600  -  total flux cleaned = 0.0116078 Jy
! Component: 1650  -  total flux cleaned = 0.0117331 Jy
! Component: 1700  -  total flux cleaned = 0.011899 Jy
! Component: 1750  -  total flux cleaned = 0.0120229 Jy
! Component: 1800  -  total flux cleaned = 0.0121052 Jy
! Component: 1850  -  total flux cleaned = 0.0122282 Jy
! Component: 1900  -  total flux cleaned = 0.0122691 Jy
! Component: 1950  -  total flux cleaned = 0.0123503 Jy
! Component: 2000  -  total flux cleaned = 0.0125121 Jy
! Total flux subtracted in 2048 components = 0.0125928 Jy
! Clean residual min=-0.002456 max=0.002300 Jy/beam
! Clean residual mean=0.000066 rms=0.000727 Jy/beam
! Combined flux in latest and established models = 4.17215 Jy
keep
! Adding 164 model components to the UV plane model.
! The established model now contains 417 components and 4.17215 Jy
wmap "J1613+3412_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.468 x 4.095 at 9.505 degrees (North through East)
! Clean map  min=-0.0031201  max=2.0886 Jy/beam
! Writing clean map to FITS file: J1613+3412_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.08865 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000726751 
device "J1613+3412_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1613+3412_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.104386 0.104386 0.208772 0.417544 0.835088 1.67018 3.34035 6.68071 13.3614 26.7228 53.4456
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.088 
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.468 x 4.095 at 9.505 degrees (North through East)
! Clean map  min=-0.0031201  max=2.0886 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1613+3412_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1613+3412_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1613+3412_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 01:52:23 2007