! Started logfile: J1640+3946_S_2000_12_04_pus_uvs.log on Fri Oct 19 10:05:39 2007
obs J1640+3946_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1640+3946_S_2000_12_04_pus_uva.fits
! AN table 1: 306 integrations on 190 of 190 possible baselines.
! AN table 2: 310 integrations on 190 of 190 possible baselines.
! AN table 3: 58 integrations on 190 of 190 possible baselines.
! AN table 4: 40 integrations on 190 of 190 possible baselines.
! AN table 5: 193 integrations on 190 of 190 possible baselines.
! AN table 6: 202 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.193636 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1640+3946
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2173 lines of history.
! 
! Reading 163204 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 J1640+3946_S_2000_12_04_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 2591 telescope corrections were flagged in sub-array 1.
!  A total of 4286 telescope corrections were flagged in sub-array 2.
!  A total of 1004 telescope corrections were flagged in sub-array 3.
!  A total of 329 telescope corrections were flagged in sub-array 4.
!  A total of 2565 telescope corrections were flagged in sub-array 5.
!  A total of 2955 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 2592 telescope corrections were flagged in sub-array 1.
!  A total of 4283 telescope corrections were flagged in sub-array 2.
!  A total of 1004 telescope corrections were flagged in sub-array 3.
!  A total of 329 telescope corrections were flagged in sub-array 4.
!  A total of 2565 telescope corrections were flagged in sub-array 5.
!  A total of 2955 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 2601 telescope corrections were flagged in sub-array 1.
!  A total of 4283 telescope corrections were flagged in sub-array 2.
!  A total of 1055 telescope corrections were flagged in sub-array 3.
!  A total of 329 telescope corrections were flagged in sub-array 4.
!  A total of 2565 telescope corrections were flagged in sub-array 5.
!  A total of 2957 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 2590 telescope corrections were flagged in sub-array 1.
!  A total of 4281 telescope corrections were flagged in sub-array 2.
!  A total of 1004 telescope corrections were flagged in sub-array 3.
!  A total of 329 telescope corrections were flagged in sub-array 4.
!  A total of 2565 telescope corrections were flagged in sub-array 5.
!  A total of 2961 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.680998Jy  sigma=0.005224
! Fit after  self-cal, rms=0.431943Jy  sigma=0.003250
! 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.855 mas, bmaj=2.692 mas, bpa=3.828 degrees
! Estimated noise=575.107 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.549924 Jy
! Component: 100  -  total flux cleaned = 0.687232 Jy
! Total flux subtracted in 100 components = 0.687232 Jy
! Clean residual min=-0.010489 max=0.055033 Jy/beam
! Clean residual mean=0.000085 rms=0.003174 Jy/beam
! Combined flux in latest and established models = 0.687232 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.687232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364342Jy  sigma=0.002746
! Fit after  self-cal, rms=0.364295Jy  sigma=0.002746
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0589071 Jy
! Component: 100  -  total flux cleaned = 0.0943384 Jy
! Total flux subtracted in 100 components = 0.0943384 Jy
! Clean residual min=-0.008738 max=0.019373 Jy/beam
! Clean residual mean=0.000043 rms=0.002343 Jy/beam
! Combined flux in latest and established models = 0.78157 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 14 components and 0.78157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349318Jy  sigma=0.002577
! Fit after  self-cal, rms=0.349233Jy  sigma=0.002576
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0246116 Jy
! Component: 100  -  total flux cleaned = 0.0415987 Jy
! Total flux subtracted in 100 components = 0.0415987 Jy
! Clean residual min=-0.008427 max=0.009636 Jy/beam
! Clean residual mean=0.000025 rms=0.002162 Jy/beam
! Combined flux in latest and established models = 0.823169 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 15 components and 0.823169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346832Jy  sigma=0.002547
! Fit after  self-cal, rms=0.346797Jy  sigma=0.002546
! 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.575 mas, bmaj=3.863 mas, bpa=-12.83 degrees
! Estimated noise=215.876 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.014702 Jy
! Component: 100  -  total flux cleaned = 0.0221275 Jy
! Component: 150  -  total flux cleaned = 0.0260831 Jy
! Component: 200  -  total flux cleaned = 0.02815 Jy
! Total flux subtracted in 200 components = 0.02815 Jy
! Clean residual min=-0.005609 max=0.007667 Jy/beam
! Clean residual mean=0.000601 rms=0.001551 Jy/beam
! Combined flux in latest and established models = 0.851319 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 28 components and 0.851319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346401Jy  sigma=0.002540
! Fit after  self-cal, rms=0.346397Jy  sigma=0.002540
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.96     KP        0.97     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.99     NY        0.95     OV        0.97     PT        1.00     
!   SC        1.08     TS        0.99     WF        0.83     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.03     GC        1.03     GG        1.00*    
!   HH        1.28     HN        0.98     KK        1.00*    KP        0.99     
!   LA        1.04     MA        1.37     MC        0.99     MK        1.00*    
!   NL        0.97     NY        1.01     OV        1.00*    PT        1.00     
!   SC        1.06     TS        1.00*    WF        0.93     WZ        1.00     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.95     MK        1.00*    
!   NL        1.00*    NY        1.03     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        0.93     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.04     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.97     
!   LA        1.05     MA        1.93     MC        0.94     MK        1.00*    
!   NL        1.01     NY        0.98     OV        1.01     PT        1.02     
!   SC        1.01     TS        1.00*    WF        1.09     WZ        0.96     
! 
!  A total of 234 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        0.93     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.94     
!   LA        0.98     MA        1.00*    MC        1.07     MK        1.00     
!   NL        0.95     NY        0.95     OV        0.95     PT        0.95     
!   SC        1.02     TS        1.03     WF        0.97     WZ        1.00*    
! 
!  A total of 246 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.94     FD        0.92     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.94     KP        1.04     
!   LA        0.96     MA        1.37     MC        1.12     MK        1.05     
!   NL        0.91     NY        1.03     OV        0.93     PT        0.93     
!   SC        0.99     TS        1.00*    WF        1.66     WZ        0.94     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.95     KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.95     NY        0.95     OV        0.95     PT        1.01     
!   SC        1.06     TS        0.99     WF        1.03     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.04     GC        1.04     GG        1.00*    
!   HH        1.28     HN        0.98     KK        1.00*    KP        1.00     
!   LA        1.01     MA        0.94     MC        1.14     MK        1.00*    
!   NL        0.95     NY        1.03     OV        1.00*    PT        1.02     
!   SC        1.01     TS        1.00*    WF        0.98     WZ        0.98     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.90     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.11     MK        1.00*    
!   NL        1.00*    NY        1.09     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.04     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.01     
!   LA        1.02     MA        0.99     MC        0.97     MK        1.00*    
!   NL        0.98     NY        0.95     OV        0.99     PT        1.04     
!   SC        0.97     TS        1.00*    WF        1.10     WZ        0.95     
! 
!  A total of 234 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.95     
!   LA        0.96     MA        1.00*    MC        1.05     MK        1.02     
!   NL        0.91     NY        0.95     OV        0.91     PT        0.97     
!   SC        0.98     TS        1.04     WF        0.96     WZ        1.00*    
! 
!  A total of 246 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.94     FD        0.94     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.09     KP        0.95     
!   LA        0.94     MA        1.67     MC        1.04     MK        1.05     
!   NL        0.87     NY        0.97     OV        0.91     PT        0.94     
!   SC        0.97     TS        1.00*    WF        1.32     WZ        0.91     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.03     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.93     KP        1.03     
!   LA        1.06     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.09     NY        0.91     OV        1.03     PT        1.01     
!   SC        1.12     TS        0.92     WF        1.01     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        1.04     GC        1.22     GG        1.00*    
!   HH        1.25     HN        1.03     KK        1.00*    KP        0.83     
!   LA        0.87     MA        0.99     MC        0.88     MK        1.00*    
!   NL        1.07     NY        1.05     OV        1.00*    PT        1.01     
!   SC        1.13     TS        1.00*    WF        1.12     WZ        0.85     
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.24     GG        1.00*    
!   HH        1.05     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.12     MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.08     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.07     WF        1.00*    WZ        0.75     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.08     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        1.11     
!   LA        1.10     MA        1.54     MC        0.90     MK        1.00*    
!   NL        1.08     NY        1.03     OV        1.09     PT        1.08     
!   SC        0.99     TS        1.00*    WF        0.96     WZ        0.82     
! 
!  A total of 234 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.93     FD        1.10     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.00*    KP        1.04     
!   LA        1.22     MA        1.00*    MC        1.49     MK        1.08     
!   NL        0.95     NY        0.95     OV        0.98     PT        1.01     
!   SC        1.04     TS        1.08     WF        1.18     WZ        1.00*    
! 
!  A total of 246 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        0.98     GC        0.93     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.04     KP        0.99     
!   LA        0.98     MA        0.98     MC        0.94     MK        1.03     
!   NL        0.99     NY        0.99     OV        1.04     PT        0.97     
!   SC        0.97     TS        1.00*    WF        1.12     WZ        0.81     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.97     KP        0.99     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00     NY        0.99     OV        1.00     PT        1.03     
!   SC        1.13     TS        1.03     WF        1.04     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.04     GC        1.06     GG        1.00*    
!   HH        1.32     HN        1.01     KK        1.00*    KP        1.02     
!   LA        1.01     MA        1.26     MC        0.76     MK        1.00*    
!   NL        0.99     NY        1.02     OV        1.00*    PT        1.03     
!   SC        1.08     TS        1.00*    WF        1.01     WZ        1.01     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        0.80     MK        1.00*    
!   NL        1.00*    NY        0.99     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.03     WF        1.00*    WZ        0.95     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.02     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        1.02     
!   LA        1.03     MA        1.59     MC        1.05     MK        1.00*    
!   NL        1.02     NY        1.04     OV        1.01     PT        1.04     
!   SC        1.04     TS        1.00*    WF        1.04     WZ        1.01     
! 
!  A total of 234 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        0.96     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        0.97     
!   LA        0.96     MA        1.00*    MC        0.93     MK        1.02     
!   NL        0.97     NY        0.98     OV        0.97     PT        1.06     
!   SC        1.06     TS        1.06     WF        0.98     WZ        1.00*    
! 
!  A total of 240 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.95     FD        0.95     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.09     KP        0.96     
!   LA        0.95     MA        0.96     MC        1.23     MK        1.06     
!   NL        0.92     NY        1.00     OV        0.96     PT        0.97     
!   SC        1.02     TS        1.00*    WF        1.22     WZ        0.98     
! 
! 
! Fit before self-cal, rms=0.346397Jy  sigma=0.002540
! Fit after  self-cal, rms=0.370227Jy  sigma=0.002491
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.586 mas, bmaj=3.965 mas, bpa=-14.26 degrees
! Estimated noise=217.225 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 (-4.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00522712 Jy
! Component: 100  -  total flux cleaned = 0.00566932 Jy
! Component: 150  -  total flux cleaned = 0.00601625 Jy
! Component: 200  -  total flux cleaned = 0.00641626 Jy
! Total flux subtracted in 200 components = 0.00641626 Jy
! Clean residual min=-0.003268 max=0.003973 Jy/beam
! Clean residual mean=0.000347 rms=0.000823 Jy/beam
! Combined flux in latest and established models = 0.857735 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 46 components and 0.857735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.370084Jy  sigma=0.002490
! Fit after  self-cal, rms=0.370634Jy  sigma=0.002489
! 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.370634Jy  sigma=0.002489
! Fit after  self-cal, rms=0.437910Jy  sigma=0.002477
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.595 mas, bmaj=3.989 mas, bpa=-15.06 degrees
! Estimated noise=217.618 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00216527 Jy
! Component: 100  -  total flux cleaned = 0.00248568 Jy
! Component: 150  -  total flux cleaned = 0.00258469 Jy
! Component: 200  -  total flux cleaned = 0.00267413 Jy
! Total flux subtracted in 200 components = 0.00267413 Jy
! Clean residual min=-0.002385 max=0.003167 Jy/beam
! Clean residual mean=0.000311 rms=0.000690 Jy/beam
! Combined flux in latest and established models = 0.860409 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 49 components and 0.860409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437838Jy  sigma=0.002477
! Fit after  self-cal, rms=0.438788Jy  sigma=0.002477
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 (37, -31).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00189232 Jy
! Component: 100  -  total flux cleaned = 0.00232579 Jy
! Component: 150  -  total flux cleaned = 0.00240361 Jy
! Component: 200  -  total flux cleaned = 0.00247612 Jy
! Total flux subtracted in 200 components = 0.00247612 Jy
! Clean residual min=-0.002342 max=0.002805 Jy/beam
! Clean residual mean=0.000287 rms=0.000670 Jy/beam
! Combined flux in latest and established models = 0.862885 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 60 components and 0.862885 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.438745Jy  sigma=0.002476
! Fit after  self-cal, rms=0.438767Jy  sigma=0.002476
! 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.438767Jy  sigma=0.002476
! Fit after  self-cal, rms=0.468861Jy  sigma=0.002473
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.597 mas, bmaj=3.947 mas, bpa=-14.87 degrees
! Estimated noise=217.612 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00136219 Jy
! Component: 100  -  total flux cleaned = 0.00198618 Jy
! Component: 150  -  total flux cleaned = 0.00223185 Jy
! Component: 200  -  total flux cleaned = 0.00240381 Jy
! Total flux subtracted in 200 components = 0.00240381 Jy
! Clean residual min=-0.002106 max=0.002453 Jy/beam
! Clean residual mean=0.000262 rms=0.000622 Jy/beam
! Combined flux in latest and established models = 0.865289 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 71 components and 0.865289 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468835Jy  sigma=0.002473
! Fit after  self-cal, rms=0.468976Jy  sigma=0.002473
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.000258751 Jy
! Component: 100  -  total flux cleaned = 0.00052199 Jy
! Component: 150  -  total flux cleaned = 0.000668223 Jy
! Component: 200  -  total flux cleaned = 0.000809618 Jy
! Total flux subtracted in 200 components = 0.000809618 Jy
! Clean residual min=-0.002088 max=0.002427 Jy/beam
! Clean residual mean=0.000254 rms=0.000617 Jy/beam
! Combined flux in latest and established models = 0.866099 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 76 components and 0.866099 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468961Jy  sigma=0.002473
! Fit after  self-cal, rms=0.468975Jy  sigma=0.002472
! 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.468975Jy  sigma=0.002472
! Fit after  self-cal, rms=0.471864Jy  sigma=0.002471
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.654 mas, bmaj=8.975 mas, bpa=-37.64 degrees
! Estimated noise=299.43 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00172 Jy
! Component: 100  -  total flux cleaned = 0.00263449 Jy
! Component: 150  -  total flux cleaned = 0.00291752 Jy
! Component: 200  -  total flux cleaned = 0.00293645 Jy
! Total flux subtracted in 200 components = 0.00293645 Jy
! Clean residual min=-0.002046 max=0.003354 Jy/beam
! Clean residual mean=0.000629 rms=0.000892 Jy/beam
! Combined flux in latest and established models = 0.869035 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 89 components and 0.869035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.471859Jy  sigma=0.002471
! Fit after  self-cal, rms=0.471872Jy  sigma=0.002471
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.000344863 Jy
! Component: 100  -  total flux cleaned = 0.00038142 Jy
! Component: 150  -  total flux cleaned = 0.000381931 Jy
! Component: 200  -  total flux cleaned = 0.00039488 Jy
! Total flux subtracted in 200 components = 0.00039488 Jy
! Clean residual min=-0.002071 max=0.003317 Jy/beam
! Clean residual mean=0.000618 rms=0.000886 Jy/beam
! Combined flux in latest and established models = 0.86943 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 98 components and 0.86943 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.471875Jy  sigma=0.002471
! Fit after  self-cal, rms=0.471873Jy  sigma=0.002471
! 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.598 mas, bmaj=3.952 mas, bpa=-14.94 degrees
! Estimated noise=217.772 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.598 x 3.952 at -14.94 degrees (North through East)
! Clean map  min=-0.0019493  max=0.7639 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.471873Jy  sigma=0.002471
! Fit after  self-cal, rms=1.639824Jy  sigma=0.002241
! Inverting map and beam 
! Estimated beam: bmin=2.6 mas, bmaj=3.958 mas, bpa=-15.01 degrees
! Estimated noise=218.011 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00120067 Jy
! Component: 100  -  total flux cleaned = -0.00163242 Jy
! Component: 150  -  total flux cleaned = -0.00188687 Jy
! Component: 200  -  total flux cleaned = -0.00194236 Jy
! Total flux subtracted in 200 components = -0.00194236 Jy
! Clean residual min=-0.002057 max=0.002460 Jy/beam
! Clean residual mean=0.000255 rms=0.000539 Jy/beam
! Combined flux in latest and established models = 0.867488 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 104 components and 0.867488 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.639806Jy  sigma=0.002241
! Fit after  self-cal, rms=1.639916Jy  sigma=0.002241
! Inverting map 
! Added new window around map position (17, -50).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00140052 Jy
! Component: 100  -  total flux cleaned = 0.00180694 Jy
! Component: 150  -  total flux cleaned = 0.00207012 Jy
! Component: 200  -  total flux cleaned = 0.0022658 Jy
! Total flux subtracted in 200 components = 0.0022658 Jy
! Clean residual min=-0.002091 max=0.002431 Jy/beam
! Clean residual mean=0.000228 rms=0.000523 Jy/beam
! Combined flux in latest and established models = 0.869753 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 112 components and 0.869753 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.639901Jy  sigma=0.002241
! Fit after  self-cal, rms=1.639941Jy  sigma=0.002241
! Inverting map 
! Added new window around map position (-12.5, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00160208 Jy
! Component: 100  -  total flux cleaned = 0.00149136 Jy
! Component: 150  -  total flux cleaned = 0.00164141 Jy
! Component: 200  -  total flux cleaned = 0.00173178 Jy
! Total flux subtracted in 200 components = 0.00173178 Jy
! Clean residual min=-0.002027 max=0.002292 Jy/beam
! Clean residual mean=0.000210 rms=0.000515 Jy/beam
! Combined flux in latest and established models = 0.871485 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 130 components and 0.871485 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.639931Jy  sigma=0.002240
! Fit after  self-cal, rms=1.639949Jy  sigma=0.002240
! Inverting map 
! Added new window around map position (47.5, -53).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00201925 Jy
! Component: 100  -  total flux cleaned = 0.00306753 Jy
! Component: 150  -  total flux cleaned = 0.00357828 Jy
! Component: 200  -  total flux cleaned = 0.00392855 Jy
! Total flux subtracted in 200 components = 0.00392855 Jy
! Clean residual min=-0.002113 max=0.002135 Jy/beam
! Clean residual mean=0.000168 rms=0.000503 Jy/beam
! Combined flux in latest and established models = 0.875414 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 145 components and 0.875414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.639935Jy  sigma=0.002240
! Fit after  self-cal, rms=1.639982Jy  sigma=0.002240
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.639982Jy  sigma=0.002240
! Fit after  self-cal, rms=2.499210Jy  sigma=0.002240
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.901 mas, bmaj=2.744 mas, bpa=0.136 degrees
! Estimated noise=590.046 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.564489 Jy
! Component: 100  -  total flux cleaned = 0.693721 Jy
! Component: 150  -  total flux cleaned = 0.742369 Jy
! Component: 200  -  total flux cleaned = 0.771449 Jy
! Total flux subtracted in 200 components = 0.771449 Jy
! Clean residual min=-0.005155 max=0.015836 Jy/beam
! Clean residual mean=0.000060 rms=0.001394 Jy/beam
! Combined flux in latest and established models = 0.771449 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.771449 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.604 mas, bmaj=3.967 mas, bpa=-15.11 degrees
! Estimated noise=218.168 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.036771 Jy
! Component: 100  -  total flux cleaned = 0.0549489 Jy
! Component: 150  -  total flux cleaned = 0.0659381 Jy
! Component: 200  -  total flux cleaned = 0.0732811 Jy
! Total flux subtracted in 200 components = 0.0732811 Jy
! Clean residual min=-0.002229 max=0.005799 Jy/beam
! Clean residual mean=0.000517 rms=0.000756 Jy/beam
! Combined flux in latest and established models = 0.84473 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 63 components and 0.84473 Jy
! Inverting map 
! Added new window around map position (0.5, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00580809 Jy
! Component: 100  -  total flux cleaned = 0.0100072 Jy
! Component: 150  -  total flux cleaned = 0.0134169 Jy
! Component: 200  -  total flux cleaned = 0.0163061 Jy
! Total flux subtracted in 200 components = 0.0163061 Jy
! Clean residual min=-0.002075 max=0.002603 Jy/beam
! Clean residual mean=0.000344 rms=0.000553 Jy/beam
! Combined flux in latest and established models = 0.861036 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 86 components and 0.861036 Jy
! Inverting map 
! Added new window around map position (1, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00269411 Jy
! Component: 100  -  total flux cleaned = 0.00447845 Jy
! Component: 150  -  total flux cleaned = 0.00577808 Jy
! Component: 200  -  total flux cleaned = 0.00705365 Jy
! Total flux subtracted in 200 components = 0.00705365 Jy
! Clean residual min=-0.002034 max=0.002215 Jy/beam
! Clean residual mean=0.000269 rms=0.000510 Jy/beam
! Combined flux in latest and established models = 0.86809 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 109 components and 0.86809 Jy
! Inverting map 
! Added new window around map position (-26.5, 29.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00179946 Jy
! Component: 100  -  total flux cleaned = 0.00300234 Jy
! Component: 150  -  total flux cleaned = 0.00400066 Jy
! Component: 200  -  total flux cleaned = 0.0048824 Jy
! Total flux subtracted in 200 components = 0.0048824 Jy
! Clean residual min=-0.002027 max=0.001970 Jy/beam
! Clean residual mean=0.000219 rms=0.000497 Jy/beam
! Combined flux in latest and established models = 0.872972 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 123 components and 0.872972 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.654 mas, bmaj=8.978 mas, bpa=-37.63 degrees
! Estimated noise=298.932 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00236015 Jy
! Component: 100  -  total flux cleaned = 0.00397075 Jy
! Component: 150  -  total flux cleaned = 0.00525078 Jy
! Component: 200  -  total flux cleaned = 0.00623661 Jy
! Total flux subtracted in 200 components = 0.00623661 Jy
! Clean residual min=-0.001810 max=0.002947 Jy/beam
! Clean residual mean=0.000433 rms=0.000736 Jy/beam
! Combined flux in latest and established models = 0.879209 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.000668314 Jy
! Component: 100  -  total flux cleaned = 0.00113306 Jy
! Component: 150  -  total flux cleaned = 0.00158609 Jy
! Component: 200  -  total flux cleaned = 0.00194512 Jy
! Total flux subtracted in 200 components = 0.00194512 Jy
! Clean residual min=-0.001810 max=0.002925 Jy/beam
! Clean residual mean=0.000374 rms=0.000727 Jy/beam
! Combined flux in latest and established models = 0.881154 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 171 components and 0.881154 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.604 mas, bmaj=3.967 mas, bpa=-15.11 degrees
! Estimated noise=218.168 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000153687 Jy
! Component: 100  -  total flux cleaned = -5.803e-05 Jy
! Component: 150  -  total flux cleaned = 3.50478e-05 Jy
! Component: 200  -  total flux cleaned = 7.76779e-05 Jy
! Total flux subtracted in 200 components = 7.76779e-05 Jy
! Clean residual min=-0.002061 max=0.001917 Jy/beam
! Clean residual mean=0.000131 rms=0.000483 Jy/beam
! Combined flux in latest and established models = 0.881231 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 183 components and 0.881231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.499166Jy  sigma=0.002240
! Fit after  self-cal, rms=2.499167Jy  sigma=0.002240
wmodel J1640+3946_S_2000_12_04_pus_map.mod
! Writing 183 model components to file: J1640+3946_S_2000_12_04_pus_map.mod
wobs J1640+3946_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1640+3946_S_2000_12_04_pus_uvs.fits
wwins J1640+3946_S_2000_12_04_pus_map.win
! wwins: Wrote 9 windows to J1640+3946_S_2000_12_04_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.000201283 Jy
! Component: 100  -  total flux cleaned = 0.000675911 Jy
! Component: 150  -  total flux cleaned = 0.00112813 Jy
! Component: 200  -  total flux cleaned = 0.00143905 Jy
! Component: 250  -  total flux cleaned = 0.00167949 Jy
! Component: 300  -  total flux cleaned = 0.00197218 Jy
! Component: 350  -  total flux cleaned = 0.00228727 Jy
! Component: 400  -  total flux cleaned = 0.00259704 Jy
! Component: 450  -  total flux cleaned = 0.00292889 Jy
! Component: 500  -  total flux cleaned = 0.00325517 Jy
! Component: 550  -  total flux cleaned = 0.00357648 Jy
! Component: 600  -  total flux cleaned = 0.00394535 Jy
! Component: 650  -  total flux cleaned = 0.00420518 Jy
! Component: 700  -  total flux cleaned = 0.00453881 Jy
! Component: 750  -  total flux cleaned = 0.00484261 Jy
! Component: 800  -  total flux cleaned = 0.0051427 Jy
! Component: 850  -  total flux cleaned = 0.00541428 Jy
! Component: 900  -  total flux cleaned = 0.0056342 Jy
! Component: 950  -  total flux cleaned = 0.00585184 Jy
! Component: 1000  -  total flux cleaned = 0.00604346 Jy
! Component: 1050  -  total flux cleaned = 0.00628047 Jy
! Component: 1100  -  total flux cleaned = 0.00644496 Jy
! Component: 1150  -  total flux cleaned = 0.00660801 Jy
! Component: 1200  -  total flux cleaned = 0.00679295 Jy
! Component: 1250  -  total flux cleaned = 0.0069763 Jy
! Component: 1300  -  total flux cleaned = 0.00718072 Jy
! Component: 1350  -  total flux cleaned = 0.00736094 Jy
! Component: 1400  -  total flux cleaned = 0.00749526 Jy
! Component: 1450  -  total flux cleaned = 0.00767285 Jy
! Component: 1500  -  total flux cleaned = 0.00782697 Jy
! Component: 1550  -  total flux cleaned = 0.00793628 Jy
! Component: 1600  -  total flux cleaned = 0.0080667 Jy
! Component: 1650  -  total flux cleaned = 0.00819598 Jy
! Component: 1700  -  total flux cleaned = 0.00830311 Jy
! Component: 1750  -  total flux cleaned = 0.00845205 Jy
! Component: 1800  -  total flux cleaned = 0.00855774 Jy
! Component: 1850  -  total flux cleaned = 0.00864172 Jy
! Component: 1900  -  total flux cleaned = 0.00872534 Jy
! Component: 1950  -  total flux cleaned = 0.00889153 Jy
! Component: 2000  -  total flux cleaned = 0.0089739 Jy
! Total flux subtracted in 2048 components = 0.00907643 Jy
! Clean residual min=-0.001320 max=0.001207 Jy/beam
! Clean residual mean=0.000038 rms=0.000395 Jy/beam
! Combined flux in latest and established models = 0.890308 Jy
keep
! Adding 169 model components to the UV plane model.
! The established model now contains 352 components and 0.890308 Jy
![Exited script file: muppet]
wmap "J1640+3946_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.604 x 3.967 at -15.11 degrees (North through East)
! Clean map  min=-0.0020857  max=0.76468 Jy/beam
! Writing clean map to FITS file: J1640+3946_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.76468 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000394474 
device "J1640+3946_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1640+3946_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.154761 0.154761 0.309521 0.619042 1.23808 2.47617 4.95234 9.90468 19.8094 39.6187 79.2374
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.764 
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.604 x 3.967 at -15.11 degrees (North through East)
! Clean map  min=-0.0020857  max=0.76468 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1640+3946_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1640+3946_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1640+3946_S_2000_12_04_pus_uvs.log closed on Fri Oct 19 10:06:44 2007