! Started logfile: J1608+1029_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:26:03 2008
obs J1608+1029_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1608+1029_S_2001_10_29_pus_uva.fits
! AN table 1: 127 integrations on 153 of 153 possible baselines.
! AN table 2: 174 integrations on 153 of 153 possible baselines.
! AN table 3: 58 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.102955 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 2604 lines of history.
! 
! Reading 22620 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_10_29_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 1749 telescope corrections were flagged in sub-array 1.
!  A total of 2620 telescope corrections were flagged in sub-array 2.
!  A total of 574 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1749 telescope corrections were flagged in sub-array 1.
!  A total of 2620 telescope corrections were flagged in sub-array 2.
!  A total of 574 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1749 telescope corrections were flagged in sub-array 1.
!  A total of 2620 telescope corrections were flagged in sub-array 2.
!  A total of 574 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1749 telescope corrections were flagged in sub-array 1.
!  A total of 2666 telescope corrections were flagged in sub-array 2.
!  A total of 649 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.596215Jy  sigma=0.011827
! Fit after  self-cal, rms=0.938919Jy  sigma=0.006943
! 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.92 mas, bmaj=4.186 mas, bpa=2.036 degrees
! Estimated noise=1181.82 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.32463 Jy
! Component: 100  -  total flux cleaned = 1.70529 Jy
! Total flux subtracted in 100 components = 1.70529 Jy
! Clean residual min=-0.046791 max=0.165285 Jy/beam
! Clean residual mean=0.000467 rms=0.014338 Jy/beam
! Combined flux in latest and established models = 1.70529 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.70529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.446877Jy  sigma=0.002828
! Fit after  self-cal, rms=0.445928Jy  sigma=0.002825
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.183581 Jy
! Component: 100  -  total flux cleaned = 0.280955 Jy
! Total flux subtracted in 100 components = 0.280955 Jy
! Clean residual min=-0.028789 max=0.052730 Jy/beam
! Clean residual mean=0.000185 rms=0.007976 Jy/beam
! Combined flux in latest and established models = 1.98624 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 19 components and 1.98624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355047Jy  sigma=0.001901
! Fit after  self-cal, rms=0.354196Jy  sigma=0.001897
! Inverting map 
! Added new window around map position (-2, 4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0615398 Jy
! Component: 100  -  total flux cleaned = 0.101362 Jy
! Total flux subtracted in 100 components = 0.101362 Jy
! Clean residual min=-0.024550 max=0.028329 Jy/beam
! Clean residual mean=0.000081 rms=0.006758 Jy/beam
! Combined flux in latest and established models = 2.0876 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 26 components and 2.0876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344713Jy  sigma=0.001781
! Fit after  self-cal, rms=0.344338Jy  sigma=0.001779
! 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.473 mas, bmaj=5.718 mas, bpa=-3.515 degrees
! Estimated noise=677.815 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.0259763 Jy
! Component: 100  -  total flux cleaned = 0.0335721 Jy
! Component: 150  -  total flux cleaned = 0.0369194 Jy
! Component: 200  -  total flux cleaned = 0.0374705 Jy
! Total flux subtracted in 200 components = 0.0374705 Jy
! Clean residual min=-0.021358 max=0.028550 Jy/beam
! Clean residual mean=0.001197 rms=0.006177 Jy/beam
! Combined flux in latest and established models = 2.12507 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 37 components and 2.12507 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.342585Jy  sigma=0.001757
! Fit after  self-cal, rms=0.342312Jy  sigma=0.001755
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.90     KK        1.02     KP        0.96     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        1.00     
!   OV        0.97     PT        0.98     SC        1.00     TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.20     KK        1.02     KP        1.01     LA        1.00     
!   MA        1.00*    MC        1.30     MK        1.02     NL        0.97     
!   OV        0.97     PT        1.00     SC        0.93     TS        1.06     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.10     FD        1.00*    GG        1.00*    HH        1.04     
!   HN        1.00     KK        1.00*    KP        0.97     LA        1.00*    
!   MA        0.97     MC        1.01     MK        1.00*    NL        0.99     
!   OV        1.00*    PT        1.06     SC        1.01     TS        1.00*    
!   WF        0.94     WZ        0.99     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        0.99     KP        0.97     LA        0.93     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.00     
!   OV        1.00     PT        0.98     SC        0.98     TS        1.00*    
!   WF        0.94     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.90     KK        1.00     KP        0.92     LA        0.98     
!   MA        1.00*    MC        1.04     MK        1.05     NL        0.98     
!   OV        0.99     PT        0.99     SC        0.94     TS        1.08     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        1.00*    GG        1.00*    HH        0.98     
!   HN        1.00     KK        1.00*    KP        0.91     LA        1.00*    
!   MA        1.35     MC        1.01     MK        1.00*    NL        1.00     
!   OV        1.00*    PT        1.06     SC        1.01     TS        1.00*    
!   WF        1.01     WZ        1.00     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        0.98     KP        1.00     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.93     NL        1.04     
!   OV        1.02     PT        0.97     SC        0.99     TS        1.00*    
!   WF        0.98     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.97     KK        0.97     KP        1.01     LA        1.02     
!   MA        1.00*    MC        1.13     MK        1.00     NL        1.05     
!   OV        1.00     PT        1.03     SC        0.95     TS        0.93     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.12     FD        1.00*    GG        1.00*    HH        1.00     
!   HN        1.01     KK        1.00*    KP        1.04     LA        1.00*    
!   MA        0.94     MC        1.25     MK        1.00*    NL        0.99     
!   OV        1.00*    PT        1.06     SC        1.02     TS        1.00*    
!   WF        1.03     WZ        0.97     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        0.95     KP        0.97     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.03     
!   OV        0.99     PT        0.93     SC        0.99     TS        1.00*    
!   WF        0.95     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.95     KK        0.95     KP        1.00     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.04     NL        1.01     
!   OV        0.98     PT        0.99     SC        0.92     TS        0.97     
!   WF        0.97     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.12     FD        1.00*    GG        1.00*    HH        0.93     
!   HN        1.01     KK        1.00*    KP        1.04     LA        1.00*    
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   OV        1.00*    PT        1.06     SC        1.02     TS        1.00*    
!   WF        1.01     WZ        0.91     
! 
! 
! Fit before self-cal, rms=0.342312Jy  sigma=0.001755
! Fit after  self-cal, rms=0.318708Jy  sigma=0.001504
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.488 mas, bmaj=5.743 mas, bpa=-3.643 degrees
! Estimated noise=681.877 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.000247437 Jy
! Component: 100  -  total flux cleaned = -0.00257386 Jy
! Component: 150  -  total flux cleaned = -0.00375655 Jy
! Component: 200  -  total flux cleaned = -0.00412832 Jy
! Total flux subtracted in 200 components = -0.00412832 Jy
! Clean residual min=-0.011765 max=0.012663 Jy/beam
! Clean residual mean=0.000026 rms=0.002632 Jy/beam
! Combined flux in latest and established models = 2.12094 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 47 components and 2.12094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318146Jy  sigma=0.001496
! Fit after  self-cal, rms=0.318004Jy  sigma=0.001495
! 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.318004Jy  sigma=0.001495
! Fit after  self-cal, rms=0.318078Jy  sigma=0.001431
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.496 mas, bmaj=5.742 mas, bpa=-3.595 degrees
! Estimated noise=682.237 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00101272 Jy
! Component: 100  -  total flux cleaned = -0.00197049 Jy
! Component: 150  -  total flux cleaned = -0.00196609 Jy
! Component: 200  -  total flux cleaned = -0.00229054 Jy
! Total flux subtracted in 200 components = -0.00229054 Jy
! Clean residual min=-0.007590 max=0.013645 Jy/beam
! Clean residual mean=0.000040 rms=0.001937 Jy/beam
! Combined flux in latest and established models = 2.11865 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 54 components and 2.11865 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317780Jy  sigma=0.001427
! Fit after  self-cal, rms=0.317755Jy  sigma=0.001427
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 (-5.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0105745 Jy
! Component: 100  -  total flux cleaned = 0.0103285 Jy
! Component: 150  -  total flux cleaned = 0.0099426 Jy
! Component: 200  -  total flux cleaned = 0.0101155 Jy
! Total flux subtracted in 200 components = 0.0101155 Jy
! Clean residual min=-0.007204 max=0.005924 Jy/beam
! Clean residual mean=-0.000128 rms=0.001677 Jy/beam
! Combined flux in latest and established models = 2.12877 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 73 components and 2.12877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317287Jy  sigma=0.001421
! Fit after  self-cal, rms=0.317216Jy  sigma=0.001420
! 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.317216Jy  sigma=0.001420
! Fit after  self-cal, rms=0.317422Jy  sigma=0.001419
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.499 mas, bmaj=5.743 mas, bpa=-3.582 degrees
! Estimated noise=682.051 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00131515 Jy
! Component: 100  -  total flux cleaned = 0.00150823 Jy
! Component: 150  -  total flux cleaned = 0.00165397 Jy
! Component: 200  -  total flux cleaned = 0.00164942 Jy
! Total flux subtracted in 200 components = 0.00164942 Jy
! Clean residual min=-0.006255 max=0.004696 Jy/beam
! Clean residual mean=-0.000198 rms=0.001486 Jy/beam
! Combined flux in latest and established models = 2.13042 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 79 components and 2.13042 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317212Jy  sigma=0.001417
! Fit after  self-cal, rms=0.317178Jy  sigma=0.001417
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.000730744 Jy
! Component: 100  -  total flux cleaned = 0.000866884 Jy
! Component: 150  -  total flux cleaned = 0.000992121 Jy
! Component: 200  -  total flux cleaned = 0.000996568 Jy
! Total flux subtracted in 200 components = 0.000996568 Jy
! Clean residual min=-0.006099 max=0.004525 Jy/beam
! Clean residual mean=-0.000214 rms=0.001437 Jy/beam
! Combined flux in latest and established models = 2.13142 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 81 components and 2.13142 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317072Jy  sigma=0.001415
! Fit after  self-cal, rms=0.317058Jy  sigma=0.001415
! 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.317058Jy  sigma=0.001415
! Fit after  self-cal, rms=0.317193Jy  sigma=0.001415
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.23 mas, bmaj=9.735 mas, bpa=-2.884 degrees
! Estimated noise=939.116 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000874346 Jy
! Component: 100  -  total flux cleaned = -0.00110445 Jy
! Component: 150  -  total flux cleaned = -0.00128248 Jy
! Component: 200  -  total flux cleaned = -0.00136001 Jy
! Total flux subtracted in 200 components = -0.00136001 Jy
! Clean residual min=-0.005402 max=0.004038 Jy/beam
! Clean residual mean=-0.000557 rms=0.001552 Jy/beam
! Combined flux in latest and established models = 2.13006 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 99 components and 2.13006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317158Jy  sigma=0.001414
! Fit after  self-cal, rms=0.317132Jy  sigma=0.001414
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.000126903 Jy
! Component: 100  -  total flux cleaned = 0.000296395 Jy
! Component: 150  -  total flux cleaned = 0.000172946 Jy
! Component: 200  -  total flux cleaned = 0.000172316 Jy
! Total flux subtracted in 200 components = 0.000172316 Jy
! Clean residual min=-0.005673 max=0.003816 Jy/beam
! Clean residual mean=-0.000564 rms=0.001530 Jy/beam
! Combined flux in latest and established models = 2.13023 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 103 components and 2.13023 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317142Jy  sigma=0.001414
! Fit after  self-cal, rms=0.317124Jy  sigma=0.001414
! 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.501 mas, bmaj=5.742 mas, bpa=-3.57 degrees
! Estimated noise=682.044 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.501 x 5.742 at -3.57 degrees (North through East)
! Clean map  min=-0.0061846  max=1.7865 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.317124Jy  sigma=0.001414
! Fit after  self-cal, rms=0.559396Jy  sigma=0.001219
! Inverting map and beam 
! Estimated beam: bmin=2.501 mas, bmaj=5.743 mas, bpa=-3.583 degrees
! Estimated noise=681.243 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00116819 Jy
! Component: 100  -  total flux cleaned = 0.0012777 Jy
! Component: 150  -  total flux cleaned = 0.00137253 Jy
! Component: 200  -  total flux cleaned = 0.00137065 Jy
! Total flux subtracted in 200 components = 0.00137065 Jy
! Clean residual min=-0.004608 max=0.004160 Jy/beam
! Clean residual mean=-0.000035 rms=0.001116 Jy/beam
! Combined flux in latest and established models = 2.1316 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 110 components and 2.1316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.559353Jy  sigma=0.001218
! Fit after  self-cal, rms=0.559346Jy  sigma=0.001218
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -5.50993e-05 Jy
! Component: 100  -  total flux cleaned = 2.47183e-05 Jy
! Component: 150  -  total flux cleaned = 0.000173603 Jy
! Component: 200  -  total flux cleaned = 0.000172349 Jy
! Total flux subtracted in 200 components = 0.000172349 Jy
! Clean residual min=-0.004507 max=0.004030 Jy/beam
! Clean residual mean=-0.000038 rms=0.001100 Jy/beam
! Combined flux in latest and established models = 2.13177 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 114 components and 2.13177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.559317Jy  sigma=0.001218
! Fit after  self-cal, rms=0.559314Jy  sigma=0.001218
! 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.559314Jy  sigma=0.001218
! Fit after  self-cal, rms=0.559463Jy  sigma=0.001218
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.953 mas, bmaj=4.176 mas, bpa=2.226 degrees
! Estimated noise=1203.56 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.33552 Jy
! Component: 100  -  total flux cleaned = 1.71358 Jy
! Component: 150  -  total flux cleaned = 1.88124 Jy
! Component: 200  -  total flux cleaned = 1.96666 Jy
! Total flux subtracted in 200 components = 1.96666 Jy
! Clean residual min=-0.014098 max=0.041351 Jy/beam
! Clean residual mean=0.000191 rms=0.004485 Jy/beam
! Combined flux in latest and established models = 1.96666 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.96666 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.503 mas, bmaj=5.742 mas, bpa=-3.579 degrees
! Estimated noise=681.055 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.0643724 Jy
! Component: 100  -  total flux cleaned = 0.100644 Jy
! Component: 150  -  total flux cleaned = 0.122855 Jy
! Component: 200  -  total flux cleaned = 0.137539 Jy
! Total flux subtracted in 200 components = 0.137539 Jy
! Clean residual min=-0.005130 max=0.008032 Jy/beam
! Clean residual mean=0.000413 rms=0.001633 Jy/beam
! Combined flux in latest and established models = 2.1042 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 55 components and 2.1042 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101146 Jy
! Component: 100  -  total flux cleaned = 0.0170919 Jy
! Component: 150  -  total flux cleaned = 0.0202757 Jy
! Component: 200  -  total flux cleaned = 0.021822 Jy
! Total flux subtracted in 200 components = 0.021822 Jy
! Clean residual min=-0.004413 max=0.005502 Jy/beam
! Clean residual mean=0.000047 rms=0.001258 Jy/beam
! Combined flux in latest and established models = 2.12602 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 73 components and 2.12602 Jy
! Inverting map 
! Added new window around map position (-21.5, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00283291 Jy
! Component: 100  -  total flux cleaned = 0.00378683 Jy
! Component: 150  -  total flux cleaned = 0.00449509 Jy
! Component: 200  -  total flux cleaned = 0.00488522 Jy
! Total flux subtracted in 200 components = 0.00488522 Jy
! Clean residual min=-0.004401 max=0.004548 Jy/beam
! Clean residual mean=-0.000034 rms=0.001172 Jy/beam
! Combined flux in latest and established models = 2.13091 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 84 components and 2.13091 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.221 mas, bmaj=9.735 mas, bpa=-2.942 degrees
! Estimated noise=938 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00220164 Jy
! Component: 100  -  total flux cleaned = 0.00212335 Jy
! Component: 150  -  total flux cleaned = 0.00205956 Jy
! Component: 200  -  total flux cleaned = 0.00205848 Jy
! Total flux subtracted in 200 components = 0.00205848 Jy
! Clean residual min=-0.004284 max=0.003463 Jy/beam
! Clean residual mean=-0.000180 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 2.13297 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 = -3.37853e-06 Jy
! Component: 100  -  total flux cleaned = -3.05798e-06 Jy
! Component: 150  -  total flux cleaned = -2.28959e-06 Jy
! Component: 200  -  total flux cleaned = -2.9187e-06 Jy
! Total flux subtracted in 200 components = -2.9187e-06 Jy
! Clean residual min=-0.004261 max=0.003429 Jy/beam
! Clean residual mean=-0.000181 rms=0.001158 Jy/beam
! Combined flux in latest and established models = 2.13296 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 113 components and 2.13296 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.503 mas, bmaj=5.742 mas, bpa=-3.579 degrees
! Estimated noise=681.055 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000399216 Jy
! Component: 100  -  total flux cleaned = -0.000525011 Jy
! Component: 150  -  total flux cleaned = -0.000419308 Jy
! Component: 200  -  total flux cleaned = -0.00042054 Jy
! Total flux subtracted in 200 components = -0.00042054 Jy
! Clean residual min=-0.004474 max=0.004332 Jy/beam
! Clean residual mean=-0.000062 rms=0.001106 Jy/beam
! Combined flux in latest and established models = 2.13254 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 126 components and 2.13254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.559613Jy  sigma=0.001218
! Fit after  self-cal, rms=0.559465Jy  sigma=0.001217
wmodel J1608+1029_S_2001_10_29_pus_map.mod
! Writing 126 model components to file: J1608+1029_S_2001_10_29_pus_map.mod
wobs J1608+1029_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1608+1029_S_2001_10_29_pus_uvs.fits
wwins J1608+1029_S_2001_10_29_pus_map.win
! wwins: Wrote 4 windows to J1608+1029_S_2001_10_29_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.000589288 Jy
! Component: 100  -  total flux cleaned = 0.00103427 Jy
! Component: 150  -  total flux cleaned = 0.0012486 Jy
! Component: 200  -  total flux cleaned = 0.00131698 Jy
! Component: 250  -  total flux cleaned = 0.00125017 Jy
! Component: 300  -  total flux cleaned = 0.00131501 Jy
! Component: 350  -  total flux cleaned = 0.00131537 Jy
! Component: 400  -  total flux cleaned = 0.00143917 Jy
! Component: 450  -  total flux cleaned = 0.0014988 Jy
! Component: 500  -  total flux cleaned = 0.00149853 Jy
! Component: 550  -  total flux cleaned = 0.00155607 Jy
! Component: 600  -  total flux cleaned = 0.00155599 Jy
! Component: 650  -  total flux cleaned = 0.00166719 Jy
! Component: 700  -  total flux cleaned = 0.00161224 Jy
! Component: 750  -  total flux cleaned = 0.0016657 Jy
! Component: 800  -  total flux cleaned = 0.00161267 Jy
! Component: 850  -  total flux cleaned = 0.00156101 Jy
! Component: 900  -  total flux cleaned = 0.00161271 Jy
! Component: 950  -  total flux cleaned = 0.00156183 Jy
! Component: 1000  -  total flux cleaned = 0.00151156 Jy
! Component: 1050  -  total flux cleaned = 0.00141193 Jy
! Component: 1100  -  total flux cleaned = 0.00126481 Jy
! Component: 1150  -  total flux cleaned = 0.00126448 Jy
! Component: 1200  -  total flux cleaned = 0.00102426 Jy
! Component: 1250  -  total flux cleaned = 0.000977041 Jy
! Component: 1300  -  total flux cleaned = 0.000835794 Jy
! Component: 1350  -  total flux cleaned = 0.000696336 Jy
! Component: 1400  -  total flux cleaned = 0.000558127 Jy
! Component: 1450  -  total flux cleaned = 0.000558335 Jy
! Component: 1500  -  total flux cleaned = 0.000376666 Jy
! Component: 1550  -  total flux cleaned = 0.00033154 Jy
! Component: 1600  -  total flux cleaned = 0.000197617 Jy
! Component: 1650  -  total flux cleaned = 6.49648e-05 Jy
! Component: 1700  -  total flux cleaned = 2.11336e-05 Jy
! Component: 1750  -  total flux cleaned = 2.099e-05 Jy
! Component: 1800  -  total flux cleaned = -6.55634e-05 Jy
! Component: 1850  -  total flux cleaned = -0.000151165 Jy
! Component: 1900  -  total flux cleaned = -0.000278574 Jy
! Component: 1950  -  total flux cleaned = -0.00023604 Jy
! Component: 2000  -  total flux cleaned = -0.000278074 Jy
! Total flux subtracted in 2048 components = -0.000361377 Jy
! Clean residual min=-0.002609 max=0.002072 Jy/beam
! Clean residual mean=-0.000058 rms=0.000790 Jy/beam
! Combined flux in latest and established models = 2.13218 Jy
keep
! Adding 130 model components to the UV plane model.
! The established model now contains 255 components and 2.13218 Jy
![Exited script file: muppet]
wmap "J1608+1029_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.503 x 5.742 at -3.579 degrees (North through East)
! Clean map  min=-0.0035508  max=1.7879 Jy/beam
! Writing clean map to FITS file: J1608+1029_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.78787 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000791357 
device "J1608+1029_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1608+1029_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.132787 0.132787 0.265575 0.531149 1.0623 2.1246 4.24919 8.49839 16.9968 33.9936 67.9871
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.787 
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.503 x 5.742 at -3.579 degrees (North through East)
! Clean map  min=-0.0035508  max=1.7879 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1608+1029_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1608+1029_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1608+1029_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:26:17 2008