! Started logfile: J1642+6856_S_2001_10_29_pus_uvs.log on Thu Feb 28 13:21:58 2008
obs J1642+6856_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1642+6856_S_2001_10_29_pus_uva.fits
! AN table 1: 294 integrations on 153 of 153 possible baselines.
! AN table 2: 340 integrations on 153 of 153 possible baselines.
! AN table 3: 144 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.198582 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1642+6856
! 
! 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 94552 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 J1642+6856_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 3883 telescope corrections were flagged in sub-array 1.
!  A total of 3662 telescope corrections were flagged in sub-array 2.
!  A total of 1445 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3886 telescope corrections were flagged in sub-array 1.
!  A total of 3666 telescope corrections were flagged in sub-array 2.
!  A total of 1445 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3883 telescope corrections were flagged in sub-array 1.
!  A total of 3662 telescope corrections were flagged in sub-array 2.
!  A total of 1445 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 4151 telescope corrections were flagged in sub-array 1.
!  A total of 3686 telescope corrections were flagged in sub-array 2.
!  A total of 1468 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.877617Jy  sigma=0.006085
! Fit after  self-cal, rms=0.710664Jy  sigma=0.005039
! 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.807 mas, bmaj=1.962 mas, bpa=13.41 degrees
! Estimated noise=679.57 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.247382 Jy
! Component: 100  -  total flux cleaned = 0.339679 Jy
! Total flux subtracted in 100 components = 0.339679 Jy
! Clean residual min=-0.018605 max=0.083561 Jy/beam
! Clean residual mean=0.000222 rms=0.004389 Jy/beam
! Combined flux in latest and established models = 0.339679 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.339679 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332354Jy  sigma=0.002114
! Fit after  self-cal, rms=0.331763Jy  sigma=0.002111
! Inverting map 
! Added new window around map position (-1, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.074567 Jy
! Component: 100  -  total flux cleaned = 0.116397 Jy
! Total flux subtracted in 100 components = 0.116397 Jy
! Clean residual min=-0.013199 max=0.048122 Jy/beam
! Clean residual mean=0.000170 rms=0.003337 Jy/beam
! Combined flux in latest and established models = 0.456076 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 12 components and 0.456076 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302805Jy  sigma=0.001844
! Fit after  self-cal, rms=0.300887Jy  sigma=0.001832
! Inverting map 
! Added new window around map position (-2, -8.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0478153 Jy
! Component: 100  -  total flux cleaned = 0.0769104 Jy
! Total flux subtracted in 100 components = 0.0769104 Jy
! Clean residual min=-0.010877 max=0.023380 Jy/beam
! Clean residual mean=0.000138 rms=0.002573 Jy/beam
! Combined flux in latest and established models = 0.532986 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 23 components and 0.532986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287188Jy  sigma=0.001700
! Fit after  self-cal, rms=0.286201Jy  sigma=0.001694
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0261426 Jy
! Component: 100  -  total flux cleaned = 0.0457497 Jy
! Total flux subtracted in 100 components = 0.0457497 Jy
! Clean residual min=-0.009612 max=0.015599 Jy/beam
! Clean residual mean=0.000118 rms=0.002255 Jy/beam
! Combined flux in latest and established models = 0.578736 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 32 components and 0.578736 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280618Jy  sigma=0.001638
! Fit after  self-cal, rms=0.280287Jy  sigma=0.001636
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0180132 Jy
! Component: 100  -  total flux cleaned = 0.032357 Jy
! Total flux subtracted in 100 components = 0.032357 Jy
! Clean residual min=-0.008817 max=0.011438 Jy/beam
! Clean residual mean=0.000104 rms=0.002089 Jy/beam
! Combined flux in latest and established models = 0.611093 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 38 components and 0.611093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277345Jy  sigma=0.001606
! Fit after  self-cal, rms=0.277185Jy  sigma=0.001606
! 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.211 mas, bmaj=2.525 mas, bpa=37.7 degrees
! Estimated noise=331.448 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.0301714 Jy
! Component: 100  -  total flux cleaned = 0.0504078 Jy
! Component: 150  -  total flux cleaned = 0.0648166 Jy
! Component: 200  -  total flux cleaned = 0.0753337 Jy
! Total flux subtracted in 200 components = 0.0753337 Jy
! Clean residual min=-0.006253 max=0.009887 Jy/beam
! Clean residual mean=0.000791 rms=0.001919 Jy/beam
! Combined flux in latest and established models = 0.686426 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 58 components and 0.686426 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273462Jy  sigma=0.001566
! Fit after  self-cal, rms=0.273128Jy  sigma=0.001564
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 429 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.95     KK        0.92     KP        1.17     LA        0.95     
!   MA        0.88     MC        1.12     MK        0.91     NL        0.87     
!   OV        0.94     PT        0.96     SC        0.98     TS        1.09     
!   WF        1.03     WZ        0.97     
! 
!  A total of 129 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.95     KK        1.07     KP        1.17     LA        0.97     
!   MA        0.87     MC        1.35     MK        0.98     NL        1.00     
!   OV        0.99     PT        0.99     SC        1.04     TS        1.02     
!   WF        0.92     WZ        0.93     
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        0.98     KP        1.06     LA        0.96     
!   MA        0.79     MC        1.03     MK        1.02     NL        0.99     
!   OV        0.98     PT        0.98     SC        1.00*    TS        0.98     
!   WF        1.09     WZ        0.91     
! 
! 
! Correcting IF 2.
!  A total of 426 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.94     KK        0.94     KP        0.98     LA        0.94     
!   MA        0.93     MC        0.98     MK        0.95     NL        0.89     
!   OV        0.97     PT        0.95     SC        1.00     TS        1.10     
!   WF        0.98     WZ        0.97     
! 
!  A total of 126 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.00     KK        1.06     KP        1.05     LA        0.95     
!   MA        0.91     MC        1.16     MK        0.98     NL        1.02     
!   OV        1.01     PT        0.97     SC        1.06     TS        1.04     
!   WF        1.16     WZ        0.94     
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        0.96     KP        1.10     LA        0.95     
!   MA        0.94     MC        1.05     MK        1.07     NL        0.99     
!   OV        1.01     PT        0.97     SC        1.00*    TS        1.03     
!   WF        0.99     WZ        0.92     
! 
! 
! Correcting IF 3.
!  A total of 429 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.93     KK        1.00     KP        1.01     LA        0.92     
!   MA        0.95     MC        1.03     MK        0.93     NL        0.87     
!   OV        0.96     PT        0.91     SC        1.02     TS        1.10     
!   WF        0.98     WZ        1.00     
! 
!  A total of 129 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.08     KP        1.03     LA        0.95     
!   MA        1.00     MC        1.01     MK        0.94     NL        0.98     
!   OV        1.03     PT        0.99     SC        1.06     TS        1.06     
!   WF        1.02     WZ        0.95     
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.06     KP        1.03     LA        0.95     
!   MA        1.00     MC        2.21     MK        0.99     NL        0.99     
!   OV        1.01     PT        0.99     SC        1.00*    TS        0.98     
!   WF        0.99     WZ        0.95     
! 
! 
! Correcting IF 4.
!  A total of 165 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        0.96     KP        1.04     LA        0.96     
!   MA        0.92     MC        0.65     MK        0.95     NL        0.95     
!   OV        0.98     PT        0.95     SC        0.99     TS        1.06     
!   WF        1.02     WZ        1.00     
! 
!  A total of 105 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.00     KK        1.05     KP        1.13     LA        0.99     
!   MA        0.87     MC        0.96     MK        0.98     NL        1.04     
!   OV        1.01     PT        1.00     SC        1.06     TS        1.07     
!   WF        0.97     WZ        0.97     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.05     KP        1.03     LA        1.00     
!   MA        0.66     MC        0.85     MK        0.97     NL        1.05     
!   OV        1.00     PT        0.96     SC        1.00*    TS        1.03     
!   WF        1.00     WZ        1.01     
! 
! 
! Fit before self-cal, rms=0.273128Jy  sigma=0.001564
! Fit after  self-cal, rms=0.264495Jy  sigma=0.001537
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.222 mas, bmaj=2.534 mas, bpa=38.34 degrees
! Estimated noise=327.919 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.00683854 Jy
! Component: 100  -  total flux cleaned = 0.00885656 Jy
! Component: 150  -  total flux cleaned = 0.0104391 Jy
! Component: 200  -  total flux cleaned = 0.011592 Jy
! Total flux subtracted in 200 components = 0.011592 Jy
! Clean residual min=-0.005618 max=0.006088 Jy/beam
! Clean residual mean=0.000474 rms=0.001680 Jy/beam
! Combined flux in latest and established models = 0.698018 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 66 components and 0.698018 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264224Jy  sigma=0.001534
! Fit after  self-cal, rms=0.264336Jy  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.264336Jy  sigma=0.001533
! Fit after  self-cal, rms=0.297929Jy  sigma=0.001488
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.227 mas, bmaj=2.524 mas, bpa=37.87 degrees
! Estimated noise=327.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00496762 Jy
! Component: 100  -  total flux cleaned = 0.00701947 Jy
! Component: 150  -  total flux cleaned = 0.00772653 Jy
! Component: 200  -  total flux cleaned = 0.00821073 Jy
! Total flux subtracted in 200 components = 0.00821073 Jy
! Clean residual min=-0.002379 max=0.003750 Jy/beam
! Clean residual mean=0.000246 rms=0.000688 Jy/beam
! Combined flux in latest and established models = 0.706229 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 70 components and 0.706229 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297823Jy  sigma=0.001487
! Fit after  self-cal, rms=0.298461Jy  sigma=0.001486
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 (1, -22).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00347753 Jy
! Component: 100  -  total flux cleaned = 0.00486575 Jy
! Component: 150  -  total flux cleaned = 0.00598993 Jy
! Component: 200  -  total flux cleaned = 0.00653781 Jy
! Total flux subtracted in 200 components = 0.00653781 Jy
! Clean residual min=-0.002407 max=0.003441 Jy/beam
! Clean residual mean=0.000210 rms=0.000643 Jy/beam
! Combined flux in latest and established models = 0.712767 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 84 components and 0.712767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298406Jy  sigma=0.001485
! Fit after  self-cal, rms=0.298403Jy  sigma=0.001485
! Inverting map 
! Added new window around map position (-5, -40).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00342145 Jy
! Component: 100  -  total flux cleaned = 0.00530865 Jy
! Component: 150  -  total flux cleaned = 0.00632974 Jy
! Component: 200  -  total flux cleaned = 0.00680767 Jy
! Total flux subtracted in 200 components = 0.00680767 Jy
! Clean residual min=-0.002539 max=0.002863 Jy/beam
! Clean residual mean=0.000169 rms=0.000614 Jy/beam
! Combined flux in latest and established models = 0.719574 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 105 components and 0.719574 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298366Jy  sigma=0.001485
! Fit after  self-cal, rms=0.298365Jy  sigma=0.001485
! Inverting map 
! Added new window around map position (-5.5, -11.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00301378 Jy
! Component: 100  -  total flux cleaned = 0.00431482 Jy
! Component: 150  -  total flux cleaned = 0.00476753 Jy
! Component: 200  -  total flux cleaned = 0.00521321 Jy
! Total flux subtracted in 200 components = 0.00521321 Jy
! Clean residual min=-0.002435 max=0.002544 Jy/beam
! Clean residual mean=0.000135 rms=0.000597 Jy/beam
! Combined flux in latest and established models = 0.724788 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 118 components and 0.724787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298330Jy  sigma=0.001484
! Fit after  self-cal, rms=0.298326Jy  sigma=0.001484
! 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.298326Jy  sigma=0.001484
! Fit after  self-cal, rms=0.302521Jy  sigma=0.001484
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.228 mas, bmaj=2.523 mas, bpa=37.85 degrees
! Estimated noise=328.162 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00232961 Jy
! Component: 100  -  total flux cleaned = 0.0039416 Jy
! Component: 150  -  total flux cleaned = 0.00492899 Jy
! Component: 200  -  total flux cleaned = 0.00538932 Jy
! Total flux subtracted in 200 components = 0.00538932 Jy
! Clean residual min=-0.002257 max=0.002766 Jy/beam
! Clean residual mean=0.000117 rms=0.000561 Jy/beam
! Combined flux in latest and established models = 0.730177 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 127 components and 0.730177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302487Jy  sigma=0.001484
! Fit after  self-cal, rms=0.302529Jy  sigma=0.001484
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, 10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0019462 Jy
! Component: 100  -  total flux cleaned = 0.00233024 Jy
! Component: 150  -  total flux cleaned = 0.0026641 Jy
! Component: 200  -  total flux cleaned = 0.00301432 Jy
! Total flux subtracted in 200 components = 0.00301432 Jy
! Clean residual min=-0.002115 max=0.002163 Jy/beam
! Clean residual mean=0.000098 rms=0.000548 Jy/beam
! Combined flux in latest and established models = 0.733191 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 140 components and 0.733191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302504Jy  sigma=0.001483
! Fit after  self-cal, rms=0.302504Jy  sigma=0.001483
! 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.302504Jy  sigma=0.001483
! Fit after  self-cal, rms=0.303454Jy  sigma=0.001483
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.013 mas, bmaj=9.635 mas, bpa=82.77 degrees
! Estimated noise=537.092 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00360682 Jy
! Component: 100  -  total flux cleaned = 0.00562787 Jy
! Component: 150  -  total flux cleaned = 0.00664943 Jy
! Component: 200  -  total flux cleaned = 0.00719678 Jy
! Total flux subtracted in 200 components = 0.00719678 Jy
! Clean residual min=-0.002474 max=0.002713 Jy/beam
! Clean residual mean=0.000242 rms=0.000778 Jy/beam
! Combined flux in latest and established models = 0.740388 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 148 components and 0.740388 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303446Jy  sigma=0.001483
! Fit after  self-cal, rms=0.303450Jy  sigma=0.001483
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.000897235 Jy
! Component: 100  -  total flux cleaned = 0.00111705 Jy
! Component: 150  -  total flux cleaned = 0.00117598 Jy
! Component: 200  -  total flux cleaned = 0.00119966 Jy
! Total flux subtracted in 200 components = 0.00119966 Jy
! Clean residual min=-0.002520 max=0.002609 Jy/beam
! Clean residual mean=0.000215 rms=0.000772 Jy/beam
! Combined flux in latest and established models = 0.741588 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 151 components and 0.741588 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303455Jy  sigma=0.001483
! Fit after  self-cal, rms=0.303454Jy  sigma=0.001483
! 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.228 mas, bmaj=2.522 mas, bpa=37.83 degrees
! Estimated noise=328.824 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.228 x 2.522 at 37.83 degrees (North through East)
! Clean map  min=-0.0019093  max=0.32513 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
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.814 mas, bmaj=1.971 mas, bpa=8.218 degrees
! Estimated noise=676.232 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.24711 Jy
! Component: 100  -  total flux cleaned = 0.35601 Jy
! Component: 150  -  total flux cleaned = 0.427115 Jy
! Component: 200  -  total flux cleaned = 0.477782 Jy
! Total flux subtracted in 200 components = 0.477782 Jy
! Clean residual min=-0.009078 max=0.028867 Jy/beam
! Clean residual mean=0.000141 rms=0.002414 Jy/beam
! Combined flux in latest and established models = 0.477782 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 15 model components to the UV plane model.
! The established model now contains 15 components and 0.477782 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.228 mas, bmaj=2.522 mas, bpa=37.83 degrees
! Estimated noise=328.824 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.0723545 Jy
! Component: 100  -  total flux cleaned = 0.119968 Jy
! Component: 150  -  total flux cleaned = 0.153195 Jy
! Component: 200  -  total flux cleaned = 0.176785 Jy
! Total flux subtracted in 200 components = 0.176785 Jy
! Clean residual min=-0.003753 max=0.014524 Jy/beam
! Clean residual mean=0.000643 rms=0.001585 Jy/beam
! Combined flux in latest and established models = 0.654567 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 40 components and 0.654567 Jy
! Inverting map 
! Added new window around map position (-2.5, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0170904 Jy
! Component: 100  -  total flux cleaned = 0.0293969 Jy
! Component: 150  -  total flux cleaned = 0.0384839 Jy
! Component: 200  -  total flux cleaned = 0.0453568 Jy
! Total flux subtracted in 200 components = 0.0453568 Jy
! Clean residual min=-0.002516 max=0.004382 Jy/beam
! Clean residual mean=0.000331 rms=0.000765 Jy/beam
! Combined flux in latest and established models = 0.699924 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 83 components and 0.699924 Jy
! Inverting map 
! Added new window around map position (-1, -11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00545672 Jy
! Component: 100  -  total flux cleaned = 0.00999183 Jy
! Component: 150  -  total flux cleaned = 0.0138687 Jy
! Component: 200  -  total flux cleaned = 0.0172299 Jy
! Total flux subtracted in 200 components = 0.0172299 Jy
! Clean residual min=-0.002169 max=0.003314 Jy/beam
! Clean residual mean=0.000218 rms=0.000610 Jy/beam
! Combined flux in latest and established models = 0.717154 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 112 components and 0.717154 Jy
! Inverting map 
! Added new window around map position (-3, -21.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00330141 Jy
! Component: 100  -  total flux cleaned = 0.00593666 Jy
! Component: 150  -  total flux cleaned = 0.0082541 Jy
! Component: 200  -  total flux cleaned = 0.0103154 Jy
! Total flux subtracted in 200 components = 0.0103154 Jy
! Clean residual min=-0.002184 max=0.002513 Jy/beam
! Clean residual mean=0.000150 rms=0.000551 Jy/beam
! Combined flux in latest and established models = 0.727469 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 133 components and 0.727469 Jy
! Inverting map 
! Added new window around map position (41.5, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00238511 Jy
! Component: 100  -  total flux cleaned = 0.00413151 Jy
! Component: 150  -  total flux cleaned = 0.00570023 Jy
! Component: 200  -  total flux cleaned = 0.00700857 Jy
! Total flux subtracted in 200 components = 0.00700857 Jy
! Clean residual min=-0.002136 max=0.002089 Jy/beam
! Clean residual mean=0.000105 rms=0.000525 Jy/beam
! Combined flux in latest and established models = 0.734477 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 158 components and 0.734478 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.013 mas, bmaj=9.635 mas, bpa=82.77 degrees
! Estimated noise=537.092 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00317329 Jy
! Component: 100  -  total flux cleaned = 0.00527147 Jy
! Component: 150  -  total flux cleaned = 0.0065201 Jy
! Component: 200  -  total flux cleaned = 0.00706664 Jy
! Total flux subtracted in 200 components = 0.00706664 Jy
! Clean residual min=-0.002275 max=0.002422 Jy/beam
! Clean residual mean=0.000225 rms=0.000744 Jy/beam
! Combined flux in latest and established models = 0.741544 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.000367574 Jy
! Component: 100  -  total flux cleaned = 0.000645096 Jy
! Component: 150  -  total flux cleaned = 0.000887005 Jy
! Component: 200  -  total flux cleaned = 0.00100665 Jy
! Total flux subtracted in 200 components = 0.00100665 Jy
! Clean residual min=-0.002316 max=0.002200 Jy/beam
! Clean residual mean=0.000200 rms=0.000738 Jy/beam
! Combined flux in latest and established models = 0.742551 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 195 components and 0.742551 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.228 mas, bmaj=2.522 mas, bpa=37.83 degrees
! Estimated noise=328.824 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00153226 Jy
! Component: 100  -  total flux cleaned = -0.00195095 Jy
! Component: 150  -  total flux cleaned = -0.00207812 Jy
! Component: 200  -  total flux cleaned = -0.00215742 Jy
! Total flux subtracted in 200 components = -0.00215742 Jy
! Clean residual min=-0.002189 max=0.002133 Jy/beam
! Clean residual mean=0.000066 rms=0.000510 Jy/beam
! Combined flux in latest and established models = 0.740393 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 212 components and 0.740393 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303410Jy  sigma=0.001483
! Fit after  self-cal, rms=0.303408Jy  sigma=0.001483
wmodel J1642+6856_S_2001_10_29_pus_map.mod
! Writing 212 model components to file: J1642+6856_S_2001_10_29_pus_map.mod
wobs J1642+6856_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1642+6856_S_2001_10_29_pus_uvs.fits
wwins J1642+6856_S_2001_10_29_pus_map.win
! wwins: Wrote 11 windows to J1642+6856_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.0001312 Jy
! Component: 100  -  total flux cleaned = 0.000195061 Jy
! Component: 150  -  total flux cleaned = 0.000403024 Jy
! Component: 200  -  total flux cleaned = 0.000740583 Jy
! Component: 250  -  total flux cleaned = 0.00103799 Jy
! Component: 300  -  total flux cleaned = 0.00139476 Jy
! Component: 350  -  total flux cleaned = 0.00171401 Jy
! Component: 400  -  total flux cleaned = 0.0020915 Jy
! Component: 450  -  total flux cleaned = 0.00237039 Jy
! Component: 500  -  total flux cleaned = 0.00258478 Jy
! Component: 550  -  total flux cleaned = 0.00282707 Jy
! Component: 600  -  total flux cleaned = 0.0030965 Jy
! Component: 650  -  total flux cleaned = 0.00327436 Jy
! Component: 700  -  total flux cleaned = 0.00350941 Jy
! Component: 750  -  total flux cleaned = 0.00365487 Jy
! Component: 800  -  total flux cleaned = 0.00388589 Jy
! Component: 850  -  total flux cleaned = 0.00402877 Jy
! Component: 900  -  total flux cleaned = 0.00422716 Jy
! Component: 950  -  total flux cleaned = 0.00433949 Jy
! Component: 1000  -  total flux cleaned = 0.00450698 Jy
! Component: 1050  -  total flux cleaned = 0.00467297 Jy
! Component: 1100  -  total flux cleaned = 0.0048103 Jy
! Component: 1150  -  total flux cleaned = 0.00497384 Jy
! Component: 1200  -  total flux cleaned = 0.00505524 Jy
! Component: 1250  -  total flux cleaned = 0.00527048 Jy
! Component: 1300  -  total flux cleaned = 0.00537756 Jy
! Component: 1350  -  total flux cleaned = 0.0055899 Jy
! Component: 1400  -  total flux cleaned = 0.00572155 Jy
! Component: 1450  -  total flux cleaned = 0.00582634 Jy
! Component: 1500  -  total flux cleaned = 0.00598239 Jy
! Component: 1550  -  total flux cleaned = 0.00600818 Jy
! Component: 1600  -  total flux cleaned = 0.00618817 Jy
! Component: 1650  -  total flux cleaned = 0.00626479 Jy
! Component: 1700  -  total flux cleaned = 0.0063157 Jy
! Component: 1750  -  total flux cleaned = 0.00644216 Jy
! Component: 1800  -  total flux cleaned = 0.00644216 Jy
! Component: 1850  -  total flux cleaned = 0.00656745 Jy
! Component: 1900  -  total flux cleaned = 0.00664209 Jy
! Component: 1950  -  total flux cleaned = 0.00671648 Jy
! Component: 2000  -  total flux cleaned = 0.00676581 Jy
! Total flux subtracted in 2048 components = 0.00686398 Jy
! Clean residual min=-0.001297 max=0.001877 Jy/beam
! Clean residual mean=0.000032 rms=0.000438 Jy/beam
! Combined flux in latest and established models = 0.747257 Jy
keep
! Adding 165 model components to the UV plane model.
! The established model now contains 377 components and 0.747257 Jy
![Exited script file: muppet]
wmap "J1642+6856_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.228 x 2.522 at 37.83 degrees (North through East)
! Clean map  min=-0.0018558  max=0.32416 Jy/beam
! Writing clean map to FITS file: J1642+6856_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 0.324157 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000437872 
device "J1642+6856_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1642+6856_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.405241 0.405241 0.810482 1.62096 3.24193 6.48386 12.9677 25.9354 51.8709
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.324 
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.228 x 2.522 at 37.83 degrees (North through East)
! Clean map  min=-0.0018558  max=0.32416 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1642+6856_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1642+6856_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1642+6856_S_2001_10_29_pus_uvs.log closed on Thu Feb 28 13:22:36 2008