! Started logfile: J1608+1029_S_2000_12_04_pus_uvs.log on Fri Oct 19 10:01:08 2007
obs J1608+1029_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1608+1029_S_2000_12_04_pus_uva.fits
! AN table 1: 73 integrations on 190 of 190 possible baselines.
! AN table 2: 27 integrations on 190 of 190 possible baselines.
! AN table 3: 95 integrations on 190 of 190 possible baselines.
! AN table 4: 202 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.116558 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1608+1029
! 
! 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 35168 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 J1608+1029_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 1089 telescope corrections were flagged in sub-array 1.
!  A total of 252 telescope corrections were flagged in sub-array 2.
!  A total of 1472 telescope corrections were flagged in sub-array 3.
!  A total of 3025 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1089 telescope corrections were flagged in sub-array 1.
!  A total of 252 telescope corrections were flagged in sub-array 2.
!  A total of 1472 telescope corrections were flagged in sub-array 3.
!  A total of 3026 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1089 telescope corrections were flagged in sub-array 1.
!  A total of 252 telescope corrections were flagged in sub-array 2.
!  A total of 1472 telescope corrections were flagged in sub-array 3.
!  A total of 3014 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1089 telescope corrections were flagged in sub-array 1.
!  A total of 252 telescope corrections were flagged in sub-array 2.
!  A total of 1472 telescope corrections were flagged in sub-array 3.
!  A total of 3017 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.252411Jy  sigma=0.008647
! Fit after  self-cal, rms=0.609048Jy  sigma=0.004359
! 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.798 mas, bmaj=3.482 mas, bpa=5.089 degrees
! Estimated noise=976.35 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.937665 Jy
! Component: 100  -  total flux cleaned = 1.23351 Jy
! Total flux subtracted in 100 components = 1.23351 Jy
! Clean residual min=-0.029558 max=0.134586 Jy/beam
! Clean residual mean=0.000614 rms=0.010162 Jy/beam
! Combined flux in latest and established models = 1.23351 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.23351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.503310Jy  sigma=0.003432
! Fit after  self-cal, rms=0.501472Jy  sigma=0.003428
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.155369 Jy
! Component: 100  -  total flux cleaned = 0.245691 Jy
! Total flux subtracted in 100 components = 0.245691 Jy
! Clean residual min=-0.024356 max=0.046803 Jy/beam
! Clean residual mean=0.000322 rms=0.006806 Jy/beam
! Combined flux in latest and established models = 1.4792 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 24 components and 1.4792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.444287Jy  sigma=0.002865
! Fit after  self-cal, rms=0.443385Jy  sigma=0.002862
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0588335 Jy
! Component: 100  -  total flux cleaned = 0.0978964 Jy
! Total flux subtracted in 100 components = 0.0978964 Jy
! Clean residual min=-0.023754 max=0.028308 Jy/beam
! Clean residual mean=0.000208 rms=0.006157 Jy/beam
! Combined flux in latest and established models = 1.5771 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 31 components and 1.5771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.435885Jy  sigma=0.002784
! Fit after  self-cal, rms=0.435690Jy  sigma=0.002783
! 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.199 mas, bmaj=3.809 mas, bpa=6.924 degrees
! Estimated noise=550.333 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.0231913 Jy
! Component: 100  -  total flux cleaned = 0.0306067 Jy
! Component: 150  -  total flux cleaned = 0.032353 Jy
! Component: 200  -  total flux cleaned = 0.0333052 Jy
! Total flux subtracted in 200 components = 0.0333052 Jy
! Clean residual min=-0.029395 max=0.025704 Jy/beam
! Clean residual mean=0.000273 rms=0.007382 Jy/beam
! Combined flux in latest and established models = 1.6104 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 40 components and 1.6104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434226Jy  sigma=0.002773
! Fit after  self-cal, rms=0.434156Jy  sigma=0.002773
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     GC        1.12     GG        1.00*    
!   HH        1.15     HN        0.99     KK        1.00*    KP        1.03     
!   LA        1.03     MA        2.92     MC        0.96     MK        1.00*    
!   NL        0.96     NY        0.97     OV        1.01     PT        0.99     
!   SC        1.00     TS        1.00*    WF        1.61     WZ        0.82     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.05     KP        1.09     
!   LA        1.03     MA        1.00*    MC        1.05     MK        1.01     
!   NL        0.98     NY        1.01     OV        0.98     PT        0.99     
!   SC        0.98     TS        1.00*    WF        1.00     WZ        1.01     
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.93     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        0.96     
!   LA        0.96     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        0.92     NY        1.00*    OV        0.94     PT        0.95     
!   SC        1.06     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        0.97     HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.09     MA        0.90     MC        0.96     MK        1.00*    
!   NL        0.89     NY        1.01     OV        1.00*    PT        1.08     
!   SC        1.03     TS        1.00*    WF        1.01     WZ        0.98     
! 
! 
! Correcting IF 2.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.13     GG        1.00*    
!   HH        1.10     HN        0.97     KK        1.00*    KP        0.98     
!   LA        0.98     MA        0.99     MC        0.95     MK        1.00*    
!   NL        0.92     NY        0.98     OV        0.98     PT        1.01     
!   SC        0.97     TS        1.00*    WF        1.75     WZ        0.83     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.06     KP        1.00     
!   LA        0.99     MA        1.00*    MC        1.24     MK        1.01     
!   NL        0.94     NY        1.22     OV        0.95     PT        1.01     
!   SC        0.95     TS        1.00*    WF        0.98     WZ        1.00     
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        0.90     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.88     NY        1.00*    OV        0.92     PT        0.97     
!   SC        1.00     TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.08     GC        1.00*    GG        1.00*    
!   HH        0.97     HN        1.01     KK        1.00*    KP        1.00*    
!   LA        1.06     MA        1.22     MC        0.90     MK        1.00*    
!   NL        0.87     NY        1.01     OV        1.00*    PT        1.10     
!   SC        1.00     TS        1.00*    WF        1.02     WZ        0.99     
! 
! 
! Correcting IF 3.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.03     GC        1.04     GG        1.00*    
!   HH        1.07     HN        1.02     KK        1.00*    KP        1.01     
!   LA        1.06     MA        0.89     MC        2.32     MK        1.00*    
!   NL        1.03     NY        0.97     OV        1.07     PT        1.03     
!   SC        0.96     TS        1.00*    WF        0.98     WZ        0.70     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.01     KP        1.04     
!   LA        1.05     MA        1.00*    MC        1.44     MK        0.98     
!   NL        1.05     NY        1.04     OV        1.05     PT        1.04     
!   SC        0.94     TS        1.00*    WF        0.93     WZ        0.86     
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.18     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.11     KK        1.00*    KP        0.97     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        0.86     NY        1.00*    OV        1.20     PT        0.90     
!   SC        1.04     TS        1.00*    WF        0.98     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.46     GC        1.00*    GG        1.00*    
!   HH        0.94     HN        1.03     KK        1.00*    KP        1.00*    
!   LA        0.92     MA        0.97     MC        2.68     MK        1.00*    
!   NL        1.01     NY        1.01     OV        1.00*    PT        1.11     
!   SC        1.03     TS        1.00*    WF        0.73     WZ        0.82     
! 
! 
! Correcting IF 4.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        1.20     GG        1.00*    
!   HH        1.07     HN        0.98     KK        1.00*    KP        1.00     
!   LA        0.98     MA        1.09     MC        1.41     MK        1.00*    
!   NL        0.96     NY        1.01     OV        1.00     PT        1.01     
!   SC        1.01     TS        1.00*    WF        1.09     WZ        0.84     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.05     KP        0.98     
!   LA        0.99     MA        1.00*    MC        2.12     MK        1.00     
!   NL        0.98     NY        1.09     OV        0.99     PT        1.02     
!   SC        0.97     TS        1.00*    WF        0.99     WZ        1.00     
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.94     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        0.90     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        0.92     NY        1.00*    OV        0.96     PT        1.02     
!   SC        1.05     TS        1.00*    WF        0.95     WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.08     GC        1.00*    GG        1.00*    
!   HH        0.91     HN        1.00     KK        1.00*    KP        1.00*    
!   LA        1.07     MA        0.98     MC        1.19     MK        1.00*    
!   NL        0.90     NY        1.02     OV        1.00*    PT        1.11     
!   SC        1.03     TS        1.00*    WF        0.96     WZ        1.01     
! 
! 
! Fit before self-cal, rms=0.434156Jy  sigma=0.002773
! Fit after  self-cal, rms=0.483026Jy  sigma=0.002402
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.234 mas, bmaj=3.813 mas, bpa=7.218 degrees
! Estimated noise=561.981 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, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00919404 Jy
! Component: 100  -  total flux cleaned = 0.0113263 Jy
! Component: 150  -  total flux cleaned = 0.0130919 Jy
! Component: 200  -  total flux cleaned = 0.0149355 Jy
! Total flux subtracted in 200 components = 0.0149355 Jy
! Clean residual min=-0.011628 max=0.010800 Jy/beam
! Clean residual mean=0.000158 rms=0.003176 Jy/beam
! Combined flux in latest and established models = 1.62534 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 54 components and 1.62534 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.481683Jy  sigma=0.002390
! Fit after  self-cal, rms=0.483445Jy  sigma=0.002385
! 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.483445Jy  sigma=0.002385
! Fit after  self-cal, rms=0.491559Jy  sigma=0.002286
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.238 mas, bmaj=3.805 mas, bpa=7.481 degrees
! Estimated noise=563.894 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00625384 Jy
! Component: 100  -  total flux cleaned = 0.00742338 Jy
! Component: 150  -  total flux cleaned = 0.00873315 Jy
! Component: 200  -  total flux cleaned = 0.00981358 Jy
! Total flux subtracted in 200 components = 0.00981358 Jy
! Clean residual min=-0.010046 max=0.008296 Jy/beam
! Clean residual mean=0.000041 rms=0.002159 Jy/beam
! Combined flux in latest and established models = 1.63515 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 65 components and 1.63515 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.490984Jy  sigma=0.002281
! Fit after  self-cal, rms=0.491087Jy  sigma=0.002280
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.00138711 Jy
! Component: 100  -  total flux cleaned = 0.00257661 Jy
! Component: 150  -  total flux cleaned = 0.00298361 Jy
! Component: 200  -  total flux cleaned = 0.00315884 Jy
! Total flux subtracted in 200 components = 0.00315884 Jy
! Clean residual min=-0.009514 max=0.007991 Jy/beam
! Clean residual mean=-0.000001 rms=0.002102 Jy/beam
! Combined flux in latest and established models = 1.63831 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 70 components and 1.63831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.490851Jy  sigma=0.002278
! Fit after  self-cal, rms=0.490809Jy  sigma=0.002278
! 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.490809Jy  sigma=0.002278
! Fit after  self-cal, rms=0.493172Jy  sigma=0.002247
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.246 mas, bmaj=3.809 mas, bpa=7.637 degrees
! Estimated noise=564.488 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0056187 Jy
! Component: 100  -  total flux cleaned = -0.00559031 Jy
! Component: 150  -  total flux cleaned = -0.00503463 Jy
! Component: 200  -  total flux cleaned = -0.00472518 Jy
! Total flux subtracted in 200 components = -0.00472518 Jy
! Clean residual min=-0.006802 max=0.006216 Jy/beam
! Clean residual mean=0.000159 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 1.63359 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 76 components and 1.63359 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.492906Jy  sigma=0.002245
! Fit after  self-cal, rms=0.492916Jy  sigma=0.002245
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.000566471 Jy
! Component: 100  -  total flux cleaned = 0.0011507 Jy
! Component: 150  -  total flux cleaned = 0.00153018 Jy
! Component: 200  -  total flux cleaned = 0.00176189 Jy
! Total flux subtracted in 200 components = 0.00176189 Jy
! Clean residual min=-0.006445 max=0.005984 Jy/beam
! Clean residual mean=0.000135 rms=0.001445 Jy/beam
! Combined flux in latest and established models = 1.63535 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 81 components and 1.63535 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.492824Jy  sigma=0.002244
! Fit after  self-cal, rms=0.492801Jy  sigma=0.002244
! 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.492801Jy  sigma=0.002244
! Fit after  self-cal, rms=0.494842Jy  sigma=0.002243
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.777 mas, bmaj=10.34 mas, bpa=-9.605 degrees
! Estimated noise=741.969 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000278379 Jy
! Component: 100  -  total flux cleaned = -0.000137119 Jy
! Component: 150  -  total flux cleaned = -4.28687e-06 Jy
! Component: 200  -  total flux cleaned = 4.57573e-05 Jy
! Total flux subtracted in 200 components = 4.57573e-05 Jy
! Clean residual min=-0.006043 max=0.006454 Jy/beam
! Clean residual mean=0.000307 rms=0.001958 Jy/beam
! Combined flux in latest and established models = 1.63539 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 88 components and 1.63539 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.494820Jy  sigma=0.002243
! Fit after  self-cal, rms=0.494802Jy  sigma=0.002243
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.000227278 Jy
! Component: 100  -  total flux cleaned = 0.000391283 Jy
! Component: 150  -  total flux cleaned = 0.000558984 Jy
! Component: 200  -  total flux cleaned = 0.000676957 Jy
! Total flux subtracted in 200 components = 0.000676957 Jy
! Clean residual min=-0.005975 max=0.006418 Jy/beam
! Clean residual mean=0.000284 rms=0.001956 Jy/beam
! Combined flux in latest and established models = 1.63607 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 96 components and 1.63607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.494798Jy  sigma=0.002243
! Fit after  self-cal, rms=0.494777Jy  sigma=0.002243
! 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.251 mas, bmaj=3.816 mas, bpa=7.67 degrees
! Estimated noise=564.948 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.251 x 3.816 at 7.67 degrees (North through East)
! Clean map  min=-0.0055177  max=1.2288 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.494777Jy  sigma=0.002243
! Fit after  self-cal, rms=0.572463Jy  sigma=0.002039
! Inverting map and beam 
! Estimated beam: bmin=2.252 mas, bmaj=3.814 mas, bpa=7.642 degrees
! Estimated noise=563.739 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00259681 Jy
! Component: 100  -  total flux cleaned = -0.002999 Jy
! Component: 150  -  total flux cleaned = -0.00322487 Jy
! Component: 200  -  total flux cleaned = -0.00322561 Jy
! Total flux subtracted in 200 components = -0.00322561 Jy
! Clean residual min=-0.005166 max=0.005882 Jy/beam
! Clean residual mean=-0.000018 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 1.63284 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 101 components and 1.63284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.572379Jy  sigma=0.002038
! Fit after  self-cal, rms=0.572380Jy  sigma=0.002038
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000138731 Jy
! Component: 100  -  total flux cleaned = 0.000144776 Jy
! Component: 150  -  total flux cleaned = 0.000146817 Jy
! Component: 200  -  total flux cleaned = 6.60924e-05 Jy
! Total flux subtracted in 200 components = 6.60924e-05 Jy
! Clean residual min=-0.005094 max=0.005849 Jy/beam
! Clean residual mean=-0.000019 rms=0.001252 Jy/beam
! Combined flux in latest and established models = 1.63291 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 105 components and 1.63291 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.572333Jy  sigma=0.002038
! Fit after  self-cal, rms=0.572322Jy  sigma=0.002038
! Inverting map 
! Added new window around map position (15.5, -15.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00551362 Jy
! Component: 100  -  total flux cleaned = 0.00671544 Jy
! Component: 150  -  total flux cleaned = 0.00734639 Jy
! Component: 200  -  total flux cleaned = 0.00758942 Jy
! Total flux subtracted in 200 components = 0.00758942 Jy
! Clean residual min=-0.005097 max=0.005230 Jy/beam
! Clean residual mean=-0.000119 rms=0.001195 Jy/beam
! Combined flux in latest and established models = 1.6405 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 114 components and 1.6405 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.572257Jy  sigma=0.002037
! Fit after  self-cal, rms=0.572253Jy  sigma=0.002037
! 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.572253Jy  sigma=0.002037
! Fit after  self-cal, rms=0.592120Jy  sigma=0.002037
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.86 mas, bmaj=3.484 mas, bpa=5.486 degrees
! Estimated noise=1012.89 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.96378 Jy
! Component: 100  -  total flux cleaned = 1.25283 Jy
! Component: 150  -  total flux cleaned = 1.38379 Jy
! Component: 200  -  total flux cleaned = 1.45412 Jy
! Total flux subtracted in 200 components = 1.45412 Jy
! Clean residual min=-0.010229 max=0.034583 Jy/beam
! Clean residual mean=0.000225 rms=0.003125 Jy/beam
! Combined flux in latest and established models = 1.45412 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 19 model components to the UV plane model.
! The established model now contains 19 components and 1.45412 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.254 mas, bmaj=3.816 mas, bpa=7.702 degrees
! Estimated noise=563.786 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.0692997 Jy
! Component: 100  -  total flux cleaned = 0.107981 Jy
! Component: 150  -  total flux cleaned = 0.131425 Jy
! Component: 200  -  total flux cleaned = 0.146432 Jy
! Total flux subtracted in 200 components = 0.146432 Jy
! Clean residual min=-0.005197 max=0.008714 Jy/beam
! Clean residual mean=0.000445 rms=0.001676 Jy/beam
! Combined flux in latest and established models = 1.60055 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 55 components and 1.60056 Jy
! Inverting map 
! Added new window around map position (-7, 11.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104802 Jy
! Component: 100  -  total flux cleaned = 0.0185333 Jy
! Component: 150  -  total flux cleaned = 0.0248611 Jy
! Component: 200  -  total flux cleaned = 0.0298475 Jy
! Total flux subtracted in 200 components = 0.0298475 Jy
! Clean residual min=-0.005732 max=0.004940 Jy/beam
! Clean residual mean=0.000046 rms=0.001235 Jy/beam
! Combined flux in latest and established models = 1.6304 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 78 components and 1.6304 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.783 mas, bmaj=10.34 mas, bpa=-9.577 degrees
! Estimated noise=738.887 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00610111 Jy
! Component: 100  -  total flux cleaned = 0.00934548 Jy
! Component: 150  -  total flux cleaned = 0.0103032 Jy
! Component: 200  -  total flux cleaned = 0.0108568 Jy
! Total flux subtracted in 200 components = 0.0108568 Jy
! Clean residual min=-0.005678 max=0.004416 Jy/beam
! Clean residual mean=-0.000263 rms=0.001619 Jy/beam
! Combined flux in latest and established models = 1.64126 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.0005209 Jy
! Component: 100  -  total flux cleaned = 0.000773665 Jy
! Component: 150  -  total flux cleaned = 0.000953601 Jy
! Component: 200  -  total flux cleaned = 0.000995204 Jy
! Total flux subtracted in 200 components = 0.000995204 Jy
! Clean residual min=-0.005560 max=0.004366 Jy/beam
! Clean residual mean=-0.000299 rms=0.001596 Jy/beam
! Combined flux in latest and established models = 1.64225 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 118 components and 1.64225 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.254 mas, bmaj=3.816 mas, bpa=7.702 degrees
! Estimated noise=563.786 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00100789 Jy
! Component: 100  -  total flux cleaned = 0.00155546 Jy
! Component: 150  -  total flux cleaned = 0.00184525 Jy
! Component: 200  -  total flux cleaned = 0.00211363 Jy
! Total flux subtracted in 200 components = 0.00211363 Jy
! Clean residual min=-0.006021 max=0.005151 Jy/beam
! Clean residual mean=-0.000139 rms=0.001142 Jy/beam
! Combined flux in latest and established models = 1.64437 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 127 components and 1.64437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.592185Jy  sigma=0.002037
! Fit after  self-cal, rms=0.592110Jy  sigma=0.002036
wmodel J1608+1029_S_2000_12_04_pus_map.mod
! Writing 127 model components to file: J1608+1029_S_2000_12_04_pus_map.mod
wobs J1608+1029_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1608+1029_S_2000_12_04_pus_uvs.fits
wwins J1608+1029_S_2000_12_04_pus_map.win
! wwins: Wrote 4 windows to J1608+1029_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.00117223 Jy
! Component: 100  -  total flux cleaned = -0.000928557 Jy
! Component: 150  -  total flux cleaned = -0.000540542 Jy
! Component: 200  -  total flux cleaned = -0.000172775 Jy
! Component: 250  -  total flux cleaned = 4.01814e-05 Jy
! Component: 300  -  total flux cleaned = 0.000109116 Jy
! Component: 350  -  total flux cleaned = -2.45976e-05 Jy
! Component: 400  -  total flux cleaned = -0.000283592 Jy
! Component: 450  -  total flux cleaned = -0.000474135 Jy
! Component: 500  -  total flux cleaned = -0.000662943 Jy
! Component: 550  -  total flux cleaned = -0.00103283 Jy
! Component: 600  -  total flux cleaned = -0.00127439 Jy
! Component: 650  -  total flux cleaned = -0.00139309 Jy
! Component: 700  -  total flux cleaned = -0.00162738 Jy
! Component: 750  -  total flux cleaned = -0.00191599 Jy
! Component: 800  -  total flux cleaned = -0.00220006 Jy
! Component: 850  -  total flux cleaned = -0.0023676 Jy
! Component: 900  -  total flux cleaned = -0.00258856 Jy
! Component: 950  -  total flux cleaned = -0.00269748 Jy
! Component: 1000  -  total flux cleaned = -0.00291373 Jy
! Component: 1050  -  total flux cleaned = -0.00312797 Jy
! Component: 1100  -  total flux cleaned = -0.00333931 Jy
! Component: 1150  -  total flux cleaned = -0.00344413 Jy
! Component: 1200  -  total flux cleaned = -0.0036516 Jy
! Component: 1250  -  total flux cleaned = -0.00380591 Jy
! Component: 1300  -  total flux cleaned = -0.00405976 Jy
! Component: 1350  -  total flux cleaned = -0.00431112 Jy
! Component: 1400  -  total flux cleaned = -0.00436066 Jy
! Component: 1450  -  total flux cleaned = -0.00455866 Jy
! Component: 1500  -  total flux cleaned = -0.00475465 Jy
! Component: 1550  -  total flux cleaned = -0.00485156 Jy
! Component: 1600  -  total flux cleaned = -0.00485131 Jy
! Component: 1650  -  total flux cleaned = -0.00494721 Jy
! Component: 1700  -  total flux cleaned = -0.00504241 Jy
! Component: 1750  -  total flux cleaned = -0.00499515 Jy
! Component: 1800  -  total flux cleaned = -0.00518277 Jy
! Component: 1850  -  total flux cleaned = -0.00513611 Jy
! Component: 1900  -  total flux cleaned = -0.00522858 Jy
! Component: 1950  -  total flux cleaned = -0.0052285 Jy
! Component: 2000  -  total flux cleaned = -0.00527432 Jy
! Total flux subtracted in 2048 components = -0.00545617 Jy
! Clean residual min=-0.003075 max=0.002741 Jy/beam
! Clean residual mean=-0.000081 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 1.63891 Jy
keep
! Adding 170 model components to the UV plane model.
! The established model now contains 296 components and 1.63891 Jy
![Exited script file: muppet]
wmap "J1608+1029_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.254 x 3.816 at 7.702 degrees (North through East)
! Clean map  min=-0.0050582  max=1.2411 Jy/beam
! Writing clean map to FITS file: J1608+1029_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 1.24109 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000871118 
device "J1608+1029_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1608+1029_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.21057 0.21057 0.421139 0.842278 1.68456 3.36911 6.73823 13.4765 26.9529 53.9058
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.241 
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.254 x 3.816 at 7.702 degrees (North through East)
! Clean map  min=-0.0050582  max=1.2411 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1608+1029_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1608+1029_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1608+1029_S_2000_12_04_pus_uvs.log closed on Fri Oct 19 10:01:28 2007