! Started logfile: J1608+1029_S_2001_04_09_pus_uvs.log on Fri Oct  5 16:08:52 2007
obs J1608+1029_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1608+1029_S_2001_04_09_pus_uva.fits
! AN table 1: 55 integrations on 190 of 190 possible baselines.
! AN table 2: 11 integrations on 190 of 190 possible baselines.
! AN table 3: 151 integrations on 190 of 190 possible baselines.
! AN table 4: 203 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.102619 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1949 lines of history.
! 
! Reading 32756 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_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 908 telescope corrections were flagged in sub-array 1.
!  A total of 193 telescope corrections were flagged in sub-array 2.
!  A total of 2067 telescope corrections were flagged in sub-array 3.
!  A total of 2747 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 908 telescope corrections were flagged in sub-array 1.
!  A total of 193 telescope corrections were flagged in sub-array 2.
!  A total of 2067 telescope corrections were flagged in sub-array 3.
!  A total of 2747 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 908 telescope corrections were flagged in sub-array 1.
!  A total of 193 telescope corrections were flagged in sub-array 2.
!  A total of 2067 telescope corrections were flagged in sub-array 3.
!  A total of 2747 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 908 telescope corrections were flagged in sub-array 1.
!  A total of 193 telescope corrections were flagged in sub-array 2.
!  A total of 2067 telescope corrections were flagged in sub-array 3.
!  A total of 2747 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.053399Jy  sigma=0.008688
! Fit after  self-cal, rms=0.768784Jy  sigma=0.006474
! 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.943 mas, bmaj=3.73 mas, bpa=-0.5084 degrees
! Estimated noise=1145.25 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.17892 Jy
! Component: 100  -  total flux cleaned = 1.49562 Jy
! Total flux subtracted in 100 components = 1.49562 Jy
! Clean residual min=-0.053492 max=0.139952 Jy/beam
! Clean residual mean=0.000480 rms=0.013105 Jy/beam
! Combined flux in latest and established models = 1.49562 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.49562 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.392692Jy  sigma=0.003083
! Fit after  self-cal, rms=0.392294Jy  sigma=0.003081
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.157725 Jy
! Component: 100  -  total flux cleaned = 0.245387 Jy
! Total flux subtracted in 100 components = 0.245387 Jy
! Clean residual min=-0.032027 max=0.043915 Jy/beam
! Clean residual mean=0.000193 rms=0.007304 Jy/beam
! Combined flux in latest and established models = 1.741 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 19 components and 1.741 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287178Jy  sigma=0.001983
! Fit after  self-cal, rms=0.286570Jy  sigma=0.001978
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0541302 Jy
! Component: 100  -  total flux cleaned = 0.0875982 Jy
! Total flux subtracted in 100 components = 0.0875982 Jy
! Clean residual min=-0.023730 max=0.026745 Jy/beam
! Clean residual mean=0.000092 rms=0.006108 Jy/beam
! Combined flux in latest and established models = 1.8286 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 26 components and 1.8286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275562Jy  sigma=0.001823
! Fit after  self-cal, rms=0.275412Jy  sigma=0.001822
! 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.655 mas, bmaj=6.405 mas, bpa=-2.494 degrees
! Estimated noise=467.592 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 (-2, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0270791 Jy
! Component: 100  -  total flux cleaned = 0.0372626 Jy
! Component: 150  -  total flux cleaned = 0.0388461 Jy
! Component: 200  -  total flux cleaned = 0.0404464 Jy
! Total flux subtracted in 200 components = 0.0404464 Jy
! Clean residual min=-0.019937 max=0.015538 Jy/beam
! Clean residual mean=0.000586 rms=0.004481 Jy/beam
! Combined flux in latest and established models = 1.86905 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 44 components and 1.86905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273171Jy  sigma=0.001785
! Fit after  self-cal, rms=0.273016Jy  sigma=0.001783
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.34     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.96     MC        1.08     MK        1.00*    
!   NL        1.00*    NY        0.97     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.04     WF        1.00*    WZ        0.88     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.93     GC        1.02     GG        1.00*    
!   HH        1.09     HN        0.97     KK        1.05     KP        0.99     
!   LA        0.97     MA        0.94     MC        0.88     MK        0.97     
!   NL        0.99     NY        0.99     OV        1.02     PT        0.95     
!   SC        1.04     TS        1.01     WF        1.04     WZ        0.98     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.03     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        0.93     KP        1.11     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.00*    NY        1.11     OV        1.02     PT        0.97     
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.30     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.01     MC        1.00     MK        1.00*    
!   NL        1.00*    NY        1.00     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.10     WF        1.00*    WZ        0.92     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.91     GC        0.99     GG        1.00*    
!   HH        1.07     HN        0.97     KK        0.99     KP        1.00     
!   LA        0.98     MA        0.88     MC        0.97     MK        0.99     
!   NL        0.99     NY        1.01     OV        0.98     PT        0.99     
!   SC        1.03     TS        1.06     WF        1.03     WZ        1.01     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.01     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.93     KP        0.91     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.00*    NY        1.19     OV        0.99     PT        1.00     
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.22     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.02     MC        0.91     MK        1.00*    
!   NL        1.00*    NY        0.96     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.09     WF        1.00*    WZ        0.89     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.92     GC        1.00     GG        1.00*    
!   HH        1.05     HN        1.00     KK        1.01     KP        1.01     
!   LA        0.95     MA        1.03     MC        0.86     MK        0.96     
!   NL        0.99     NY        0.98     OV        0.99     PT        0.99     
!   SC        1.02     TS        1.06     WF        1.02     WZ        1.00     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.03     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.95     KP        1.22     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.00*    NY        1.11     OV        0.99     PT        1.00     
!   SC        1.00*    TS        1.00     WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.16     HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.40     MC        1.18     MK        1.00*    
!   NL        1.00*    NY        1.04     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.95     WF        1.00*    WZ        0.98     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    NY        0.00*    OV        0.00*    PT        0.00*    
!   SC        0.00*    TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.91     GC        1.02     GG        1.00*    
!   HH        1.09     HN        1.02     KK        0.97     KP        1.00     
!   LA        0.99     MA        1.32     MC        2.01     MK        0.93     
!   NL        0.99     NY        0.98     OV        0.99     PT        1.01     
!   SC        1.02     TS        1.00     WF        1.03     WZ        1.18     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.03     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.92     KP        1.17     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00*    NY        1.14     OV        0.99     PT        1.04     
!   SC        1.00*    TS        0.96     WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.273016Jy  sigma=0.001783
! Fit after  self-cal, rms=0.284008Jy  sigma=0.001540
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.666 mas, bmaj=6.59 mas, bpa=-2.791 degrees
! Estimated noise=470.634 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.00818339 Jy
! Component: 100  -  total flux cleaned = 0.00916622 Jy
! Component: 150  -  total flux cleaned = 0.00953346 Jy
! Component: 200  -  total flux cleaned = 0.0100069 Jy
! Total flux subtracted in 200 components = 0.0100069 Jy
! Clean residual min=-0.005595 max=0.006816 Jy/beam
! Clean residual mean=0.000083 rms=0.001595 Jy/beam
! Combined flux in latest and established models = 1.87905 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 53 components and 1.87905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283574Jy  sigma=0.001535
! Fit after  self-cal, rms=0.285735Jy  sigma=0.001533
! 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.285735Jy  sigma=0.001533
! Fit after  self-cal, rms=0.292485Jy  sigma=0.001532
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.665 mas, bmaj=6.591 mas, bpa=-2.815 degrees
! Estimated noise=471.066 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00502553 Jy
! Component: 100  -  total flux cleaned = 0.00554741 Jy
! Component: 150  -  total flux cleaned = 0.00584693 Jy
! Component: 200  -  total flux cleaned = 0.00623987 Jy
! Total flux subtracted in 200 components = 0.00623987 Jy
! Clean residual min=-0.004927 max=0.005769 Jy/beam
! Clean residual mean=0.000072 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 1.88529 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 57 components and 1.88529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292271Jy  sigma=0.001529
! Fit after  self-cal, rms=0.292737Jy  sigma=0.001528
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.000516238 Jy
! Component: 100  -  total flux cleaned = 0.000911499 Jy
! Component: 150  -  total flux cleaned = 0.00102375 Jy
! Component: 200  -  total flux cleaned = 0.00102537 Jy
! Total flux subtracted in 200 components = 0.00102537 Jy
! Clean residual min=-0.004875 max=0.005495 Jy/beam
! Clean residual mean=0.000064 rms=0.001438 Jy/beam
! Combined flux in latest and established models = 1.88632 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 61 components and 1.88632 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292632Jy  sigma=0.001527
! Fit after  self-cal, rms=0.292620Jy  sigma=0.001527
! 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.292620Jy  sigma=0.001527
! Fit after  self-cal, rms=0.294053Jy  sigma=0.001526
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.665 mas, bmaj=6.592 mas, bpa=-2.841 degrees
! Estimated noise=471.371 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00320907 Jy
! Component: 100  -  total flux cleaned = 0.00394555 Jy
! Component: 150  -  total flux cleaned = 0.00415684 Jy
! Component: 200  -  total flux cleaned = 0.00425548 Jy
! Total flux subtracted in 200 components = 0.00425548 Jy
! Clean residual min=-0.004274 max=0.005358 Jy/beam
! Clean residual mean=0.000047 rms=0.001348 Jy/beam
! Combined flux in latest and established models = 1.89058 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 62 components and 1.89057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293946Jy  sigma=0.001524
! Fit after  self-cal, rms=0.293993Jy  sigma=0.001524
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.000532647 Jy
! Component: 100  -  total flux cleaned = 0.000727573 Jy
! Component: 150  -  total flux cleaned = 0.00072451 Jy
! Component: 200  -  total flux cleaned = 0.000725023 Jy
! Total flux subtracted in 200 components = 0.000725023 Jy
! Clean residual min=-0.004154 max=0.005405 Jy/beam
! Clean residual mean=0.000041 rms=0.001329 Jy/beam
! Combined flux in latest and established models = 1.8913 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 63 components and 1.8913 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293933Jy  sigma=0.001523
! Fit after  self-cal, rms=0.293926Jy  sigma=0.001523
! 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.293926Jy  sigma=0.001523
! Fit after  self-cal, rms=0.294285Jy  sigma=0.001522
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.708 mas, bmaj=10.7 mas, bpa=-18.54 degrees
! Estimated noise=603.984 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00352068 Jy
! Component: 100  -  total flux cleaned = 0.00373955 Jy
! Component: 150  -  total flux cleaned = 0.00369115 Jy
! Component: 200  -  total flux cleaned = 0.00369189 Jy
! Total flux subtracted in 200 components = 0.00369189 Jy
! Clean residual min=-0.003956 max=0.005027 Jy/beam
! Clean residual mean=0.000052 rms=0.001642 Jy/beam
! Combined flux in latest and established models = 1.89499 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 78 components and 1.89499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294285Jy  sigma=0.001522
! Fit after  self-cal, rms=0.294277Jy  sigma=0.001522
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.000433656 Jy
! Component: 100  -  total flux cleaned = 0.000581718 Jy
! Component: 150  -  total flux cleaned = 0.000581604 Jy
! Component: 200  -  total flux cleaned = 0.000582023 Jy
! Total flux subtracted in 200 components = 0.000582023 Jy
! Clean residual min=-0.003960 max=0.005025 Jy/beam
! Clean residual mean=0.000044 rms=0.001633 Jy/beam
! Combined flux in latest and established models = 1.89557 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 83 components and 1.89557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294283Jy  sigma=0.001522
! Fit after  self-cal, rms=0.294283Jy  sigma=0.001522
! 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.666 mas, bmaj=6.594 mas, bpa=-2.857 degrees
! Estimated noise=471.633 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.666 x 6.594 at -2.857 degrees (North through East)
! Clean map  min=-0.0044865  max=1.637 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.294283Jy  sigma=0.001522
! Fit after  self-cal, rms=0.589317Jy  sigma=0.001176
! Inverting map and beam 
! Estimated beam: bmin=2.666 mas, bmaj=6.594 mas, bpa=-2.851 degrees
! Estimated noise=471.522 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00128988 Jy
! Component: 100  -  total flux cleaned = 0.00119265 Jy
! Component: 150  -  total flux cleaned = 0.00109897 Jy
! Component: 200  -  total flux cleaned = 0.00101535 Jy
! Total flux subtracted in 200 components = 0.00101535 Jy
! Clean residual min=-0.003700 max=0.003496 Jy/beam
! Clean residual mean=0.000025 rms=0.000835 Jy/beam
! Combined flux in latest and established models = 1.89659 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 86 components and 1.89659 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.589296Jy  sigma=0.001175
! Fit after  self-cal, rms=0.589300Jy  sigma=0.001175
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000323141 Jy
! Component: 100  -  total flux cleaned = 0.000177489 Jy
! Component: 150  -  total flux cleaned = 0.000175202 Jy
! Component: 200  -  total flux cleaned = 0.000176574 Jy
! Total flux subtracted in 200 components = 0.000176574 Jy
! Clean residual min=-0.003606 max=0.003396 Jy/beam
! Clean residual mean=0.000023 rms=0.000818 Jy/beam
! Combined flux in latest and established models = 1.89677 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 88 components and 1.89677 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.589288Jy  sigma=0.001175
! Fit after  self-cal, rms=0.589278Jy  sigma=0.001175
! 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.589278Jy  sigma=0.001175
! Fit after  self-cal, rms=0.814138Jy  sigma=0.001174
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.96 mas, bmaj=3.997 mas, bpa=-1.247 degrees
! Estimated noise=1143.02 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.18702 Jy
! Component: 100  -  total flux cleaned = 1.50194 Jy
! Component: 150  -  total flux cleaned = 1.64973 Jy
! Component: 200  -  total flux cleaned = 1.728 Jy
! Total flux subtracted in 200 components = 1.728 Jy
! Clean residual min=-0.014342 max=0.038575 Jy/beam
! Clean residual mean=0.000207 rms=0.004169 Jy/beam
! Combined flux in latest and established models = 1.728 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.728 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.666 mas, bmaj=6.595 mas, bpa=-2.862 degrees
! Estimated noise=471.524 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.0789197 Jy
! Component: 100  -  total flux cleaned = 0.116926 Jy
! Component: 150  -  total flux cleaned = 0.138453 Jy
! Component: 200  -  total flux cleaned = 0.151209 Jy
! Total flux subtracted in 200 components = 0.151209 Jy
! Clean residual min=-0.003906 max=0.009550 Jy/beam
! Clean residual mean=0.000162 rms=0.001409 Jy/beam
! Combined flux in latest and established models = 1.87921 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 57 components and 1.87921 Jy
! Inverting map 
! Added new window around map position (-7, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00904494 Jy
! Component: 100  -  total flux cleaned = 0.0145821 Jy
! Component: 150  -  total flux cleaned = 0.0172332 Jy
! Component: 200  -  total flux cleaned = 0.01854 Jy
! Total flux subtracted in 200 components = 0.01854 Jy
! Clean residual min=-0.003738 max=0.003366 Jy/beam
! Clean residual mean=0.000017 rms=0.000835 Jy/beam
! Combined flux in latest and established models = 1.89775 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 72 components and 1.89775 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.705 mas, bmaj=10.69 mas, bpa=-18.39 degrees
! Estimated noise=604.329 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000327425 Jy
! Component: 100  -  total flux cleaned = 0.000685663 Jy
! Component: 150  -  total flux cleaned = 0.000962994 Jy
! Component: 200  -  total flux cleaned = 0.00114757 Jy
! Total flux subtracted in 200 components = 0.00114757 Jy
! Clean residual min=-0.002719 max=0.003682 Jy/beam
! Clean residual mean=0.000020 rms=0.000914 Jy/beam
! Combined flux in latest and established models = 1.8989 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 = 4.03675e-05 Jy
! Component: 100  -  total flux cleaned = 7.69738e-05 Jy
! Component: 150  -  total flux cleaned = 0.000109685 Jy
! Component: 200  -  total flux cleaned = 0.000108787 Jy
! Total flux subtracted in 200 components = 0.000108787 Jy
! Clean residual min=-0.002614 max=0.003570 Jy/beam
! Clean residual mean=0.000018 rms=0.000897 Jy/beam
! Combined flux in latest and established models = 1.899 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 109 components and 1.89901 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.666 mas, bmaj=6.595 mas, bpa=-2.862 degrees
! Estimated noise=471.524 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000455544 Jy
! Component: 100  -  total flux cleaned = 0.000457085 Jy
! Component: 150  -  total flux cleaned = 0.000456095 Jy
! Component: 200  -  total flux cleaned = 0.000516712 Jy
! Total flux subtracted in 200 components = 0.000516712 Jy
! Clean residual min=-0.003423 max=0.003202 Jy/beam
! Clean residual mean=0.000004 rms=0.000772 Jy/beam
! Combined flux in latest and established models = 1.89952 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 120 components and 1.89952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.814162Jy  sigma=0.001174
! Fit after  self-cal, rms=0.814138Jy  sigma=0.001174
wmodel J1608+1029_S_2001_04_09_pus_map.mod
! Writing 120 model components to file: J1608+1029_S_2001_04_09_pus_map.mod
wobs J1608+1029_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1608+1029_S_2001_04_09_pus_uvs.fits
wwins J1608+1029_S_2001_04_09_pus_map.win
! wwins: Wrote 3 windows to J1608+1029_S_2001_04_09_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000139411 Jy
! Component: 100  -  total flux cleaned = 0.000725288 Jy
! Component: 150  -  total flux cleaned = 0.00123957 Jy
! Component: 200  -  total flux cleaned = 0.00154766 Jy
! Component: 250  -  total flux cleaned = 0.00184501 Jy
! Component: 300  -  total flux cleaned = 0.00192639 Jy
! Component: 350  -  total flux cleaned = 0.00188544 Jy
! Component: 400  -  total flux cleaned = 0.00180758 Jy
! Component: 450  -  total flux cleaned = 0.00192096 Jy
! Component: 500  -  total flux cleaned = 0.00195793 Jy
! Component: 550  -  total flux cleaned = 0.00188555 Jy
! Component: 600  -  total flux cleaned = 0.0019573 Jy
! Component: 650  -  total flux cleaned = 0.00199235 Jy
! Component: 700  -  total flux cleaned = 0.00199202 Jy
! Component: 750  -  total flux cleaned = 0.00202565 Jy
! Component: 800  -  total flux cleaned = 0.00199268 Jy
! Component: 850  -  total flux cleaned = 0.00205841 Jy
! Component: 900  -  total flux cleaned = 0.00209044 Jy
! Component: 950  -  total flux cleaned = 0.0021539 Jy
! Component: 1000  -  total flux cleaned = 0.00218481 Jy
! Component: 1050  -  total flux cleaned = 0.002185 Jy
! Component: 1100  -  total flux cleaned = 0.00212509 Jy
! Component: 1150  -  total flux cleaned = 0.00218519 Jy
! Component: 1200  -  total flux cleaned = 0.00215513 Jy
! Component: 1250  -  total flux cleaned = 0.00206719 Jy
! Component: 1300  -  total flux cleaned = 0.00203842 Jy
! Component: 1350  -  total flux cleaned = 0.00200999 Jy
! Component: 1400  -  total flux cleaned = 0.00203854 Jy
! Component: 1450  -  total flux cleaned = 0.00189784 Jy
! Component: 1500  -  total flux cleaned = 0.00192609 Jy
! Component: 1550  -  total flux cleaned = 0.00198121 Jy
! Component: 1600  -  total flux cleaned = 0.0018986 Jy
! Component: 1650  -  total flux cleaned = 0.00184409 Jy
! Component: 1700  -  total flux cleaned = 0.00181686 Jy
! Component: 1750  -  total flux cleaned = 0.00168316 Jy
! Component: 1800  -  total flux cleaned = 0.0017629 Jy
! Component: 1850  -  total flux cleaned = 0.00160476 Jy
! Component: 1900  -  total flux cleaned = 0.00160483 Jy
! Component: 1950  -  total flux cleaned = 0.00165647 Jy
! Component: 2000  -  total flux cleaned = 0.00152758 Jy
! Total flux subtracted in 2048 components = 0.00152775 Jy
! Clean residual min=-0.001276 max=0.001570 Jy/beam
! Clean residual mean=-0.000005 rms=0.000473 Jy/beam
! Combined flux in latest and established models = 1.90105 Jy
keep
! Adding 126 model components to the UV plane model.
! The established model now contains 243 components and 1.90105 Jy
![Exited script file: muppet]
wmap "J1608+1029_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.666 x 6.595 at -2.862 degrees (North through East)
! Clean map  min=-0.0030379  max=1.633 Jy/beam
! Writing clean map to FITS file: J1608+1029_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.63299 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000472702 
device "J1608+1029_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1608+1029_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0868409 0.0868409 0.173682 0.347364 0.694727 1.38945 2.77891 5.55782 11.1156 22.2313 44.4626 88.9251
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.632 
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.666 x 6.595 at -2.862 degrees (North through East)
! Clean map  min=-0.0030379  max=1.633 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1608+1029_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1608+1029_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1608+1029_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 16:09:10 2007