! Started logfile: J1017+6116_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:16:19 2008
obs J1017+6116_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J1017+6116_S_1999_03_08_pus_uva.fits
! AN table 1: 338 integrations on 190 of 190 possible baselines.
! AN table 2: 183 integrations on 190 of 190 possible baselines.
! AN table 3: 55 integrations on 190 of 190 possible baselines.
! AN table 4: 92 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.211054 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1017+6116
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2332 lines of history.
! 
! Reading 107148 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 J1017+6116_S_1999_03_08_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 3322 telescope corrections were flagged in sub-array 1.
!  A total of 2530 telescope corrections were flagged in sub-array 2.
!  A total of 890 telescope corrections were flagged in sub-array 3.
!  A total of 1494 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 3322 telescope corrections were flagged in sub-array 1.
!  A total of 2530 telescope corrections were flagged in sub-array 2.
!  A total of 890 telescope corrections were flagged in sub-array 3.
!  A total of 1494 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 3323 telescope corrections were flagged in sub-array 1.
!  A total of 2530 telescope corrections were flagged in sub-array 2.
!  A total of 890 telescope corrections were flagged in sub-array 3.
!  A total of 1494 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 3322 telescope corrections were flagged in sub-array 1.
!  A total of 2530 telescope corrections were flagged in sub-array 2.
!  A total of 890 telescope corrections were flagged in sub-array 3.
!  A total of 1494 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.728868Jy  sigma=0.004793
! Fit after  self-cal, rms=0.605016Jy  sigma=0.004141
! 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=2.129 mas, bmaj=2.363 mas, bpa=-3.276 degrees
! Estimated noise=699.716 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.346012 Jy
! Component: 100  -  total flux cleaned = 0.426038 Jy
! Total flux subtracted in 100 components = 0.426038 Jy
! Clean residual min=-0.008954 max=0.030862 Jy/beam
! Clean residual mean=0.000110 rms=0.002464 Jy/beam
! Combined flux in latest and established models = 0.426038 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.426038 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287439Jy  sigma=0.001530
! Fit after  self-cal, rms=0.287419Jy  sigma=0.001530
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0326589 Jy
! Component: 100  -  total flux cleaned = 0.0508615 Jy
! Total flux subtracted in 100 components = 0.0508615 Jy
! Clean residual min=-0.007778 max=0.013788 Jy/beam
! Clean residual mean=0.000057 rms=0.002075 Jy/beam
! Combined flux in latest and established models = 0.476899 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 0.476899 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281822Jy  sigma=0.001470
! Fit after  self-cal, rms=0.281784Jy  sigma=0.001469
! Inverting map 
! Added new window around map position (3, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0141727 Jy
! Component: 100  -  total flux cleaned = 0.023814 Jy
! Total flux subtracted in 100 components = 0.023814 Jy
! Clean residual min=-0.007735 max=0.008679 Jy/beam
! Clean residual mean=0.000033 rms=0.001998 Jy/beam
! Combined flux in latest and established models = 0.500713 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 18 components and 0.500713 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280576Jy  sigma=0.001457
! Fit after  self-cal, rms=0.280538Jy  sigma=0.001456
! 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.689 mas, bmaj=2.909 mas, bpa=-8.606 degrees
! Estimated noise=313.738 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.0131385 Jy
! Component: 100  -  total flux cleaned = 0.0211771 Jy
! Component: 150  -  total flux cleaned = 0.0265323 Jy
! Component: 200  -  total flux cleaned = 0.0302024 Jy
! Total flux subtracted in 200 components = 0.0302024 Jy
! Clean residual min=-0.005133 max=0.005516 Jy/beam
! Clean residual mean=-0.000041 rms=0.001310 Jy/beam
! Combined flux in latest and established models = 0.530915 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 37 components and 0.530915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279833Jy  sigma=0.001450
! Fit after  self-cal, rms=0.279803Jy  sigma=0.001449
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     GC        0.99     GG        1.00*    
!   HN        0.99     KP        0.96     LA        0.98     NL        1.02     
!   OV        0.99     PT        1.03     SC        1.03     WF        0.97     
!   GN        0.95     HH        1.00*    KK        1.07     MC        1.11     
!   MK        1.00     NY        1.00     ON        1.00     WZ        1.00     
! 
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.01     GC        0.99     GG        1.00*    
!   HN        1.04     KP        0.97     LA        0.96     NL        0.94     
!   OV        1.01     PT        1.06     SC        1.03     WF        0.99     
!   GN        0.95     HH        1.00*    KK        1.00*    MC        1.01     
!   MK        1.00*    NY        1.01     ON        1.00*    WZ        0.86     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        0.99     GG        1.00*    
!   HN        1.00*    KP        0.74     LA        1.01     NL        1.07     
!   OV        0.98     PT        1.07     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.05     MC        0.94     
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.94     GC        1.01     GG        1.00*    
!   HN        0.96     KP        0.96     LA        1.00*    NL        1.05     
!   OV        0.96     PT        0.94     SC        1.03     WF        0.99     
!   GN        0.96     HH        1.00*    KK        0.99     MC        1.00*    
!   MK        0.97     NY        0.96     ON        0.94     WZ        1.13     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        1.00     GG        1.00*    
!   HN        0.96     KP        0.99     LA        0.95     NL        1.05     
!   OV        0.96     PT        1.00     SC        1.07     WF        0.99     
!   GN        0.96     HH        1.00*    KK        1.04     MC        1.13     
!   MK        1.01     NY        0.99     ON        1.03     WZ        1.02     
! 
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.03     GC        1.02     GG        1.00*    
!   HN        0.96     KP        1.18     LA        0.98     NL        1.00     
!   OV        0.98     PT        1.01     SC        1.08     WF        1.00     
!   GN        0.94     HH        1.00*    KK        1.00*    MC        0.94     
!   MK        1.00*    NY        1.00     ON        1.00*    WZ        0.90     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.03     GC        1.00     GG        1.00*    
!   HN        1.00*    KP        1.25     LA        0.99     NL        0.97     
!   OV        0.98     PT        0.95     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        0.99     MC        1.40     
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.18     FD        0.97     GC        1.05     GG        1.00*    
!   HN        0.94     KP        1.01     LA        1.00*    NL        0.95     
!   OV        0.96     PT        0.95     SC        1.13     WF        0.97     
!   GN        0.95     HH        1.00*    KK        1.01     MC        1.00*    
!   MK        1.02     NY        0.95     ON        0.98     WZ        1.23     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        0.99     GG        1.00*    
!   HN        1.21     KP        0.97     LA        0.99     NL        1.01     
!   OV        0.99     PT        0.97     SC        1.05     WF        0.97     
!   GN        0.94     HH        1.00*    KK        1.04     MC        0.82     
!   MK        0.99     NY        0.99     ON        0.97     WZ        1.04     
! 
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.02     GC        0.99     GG        1.00*    
!   HN        1.23     KP        1.05     LA        1.03     NL        0.94     
!   OV        0.98     PT        0.97     SC        1.05     WF        0.97     
!   GN        0.94     HH        1.00*    KK        1.00*    MC        1.49     
!   MK        1.00*    NY        0.97     ON        1.00*    WZ        0.91     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.01     GC        1.01     GG        1.00*    
!   HN        1.00*    KP        1.23     LA        1.00     NL        1.03     
!   OV        0.94     PT        0.92     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        0.97     MC        1.01     
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.17     FD        0.94     GC        0.98     GG        1.00*    
!   HN        1.18     KP        0.96     LA        1.00*    NL        1.04     
!   OV        0.99     PT        0.98     SC        1.04     WF        0.97     
!   GN        0.93     HH        1.00*    KK        0.98     MC        1.00*    
!   MK        0.97     NY        0.99     ON        1.01     WZ        1.14     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     GC        1.02     GG        1.00*    
!   HN        1.15     KP        0.98     LA        0.98     NL        1.05     
!   OV        1.00     PT        0.98     SC        1.04     WF        0.97     
!   GN        0.94     HH        1.00*    KK        1.08     MC        0.80     
!   MK        1.01     NY        0.98     ON        0.97     WZ        1.04     
! 
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        1.02     GG        1.00*    
!   HN        1.17     KP        1.16     LA        1.00     NL        0.96     
!   OV        0.99     PT        0.95     SC        1.06     WF        0.95     
!   GN        0.95     HH        1.00*    KK        1.00*    MC        1.26     
!   MK        1.00*    NY        0.99     ON        1.00*    WZ        0.89     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.95     GC        1.00     GG        1.00*    
!   HN        1.00*    KP        1.30     LA        0.96     NL        0.98     
!   OV        0.98     PT        0.87     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.08     MC        0.77     
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.17     FD        0.95     GC        0.99     GG        1.00*    
!   HN        1.17     KP        0.99     LA        1.00*    NL        1.03     
!   OV        0.95     PT        1.12     SC        1.09     WF        0.91     
!   GN        0.91     HH        1.00*    KK        1.06     MC        1.00*    
!   MK        1.05     NY        0.96     ON        0.87     WZ        1.19     
! 
! 
! Fit before self-cal, rms=0.279803Jy  sigma=0.001449
! Fit after  self-cal, rms=0.267743Jy  sigma=0.001410
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.68 mas, bmaj=2.906 mas, bpa=-9.709 degrees
! Estimated noise=313.616 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.00267005 Jy
! Component: 100  -  total flux cleaned = 0.00395518 Jy
! Component: 150  -  total flux cleaned = 0.00419363 Jy
! Component: 200  -  total flux cleaned = 0.00435492 Jy
! Total flux subtracted in 200 components = 0.00435492 Jy
! Clean residual min=-0.003469 max=0.003558 Jy/beam
! Clean residual mean=0.000011 rms=0.000833 Jy/beam
! Combined flux in latest and established models = 0.53527 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 44 components and 0.53527 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267708Jy  sigma=0.001409
! Fit after  self-cal, rms=0.267867Jy  sigma=0.001409
! 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.267867Jy  sigma=0.001409
! Fit after  self-cal, rms=0.269207Jy  sigma=0.001393
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.672 mas, bmaj=2.909 mas, bpa=-10.48 degrees
! Estimated noise=314.108 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00169764 Jy
! Component: 100  -  total flux cleaned = 0.00202796 Jy
! Component: 150  -  total flux cleaned = 0.00217355 Jy
! Component: 200  -  total flux cleaned = 0.00229061 Jy
! Total flux subtracted in 200 components = 0.00229061 Jy
! Clean residual min=-0.001862 max=0.002750 Jy/beam
! Clean residual mean=0.000033 rms=0.000510 Jy/beam
! Combined flux in latest and established models = 0.537561 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 46 components and 0.537561 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269182Jy  sigma=0.001393
! Fit after  self-cal, rms=0.269309Jy  sigma=0.001393
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 (6.5, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00233382 Jy
! Component: 100  -  total flux cleaned = 0.00290014 Jy
! Component: 150  -  total flux cleaned = 0.00307259 Jy
! Component: 200  -  total flux cleaned = 0.00307346 Jy
! Total flux subtracted in 200 components = 0.00307346 Jy
! Clean residual min=-0.001923 max=0.002106 Jy/beam
! Clean residual mean=0.000005 rms=0.000495 Jy/beam
! Combined flux in latest and established models = 0.540634 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 66 components and 0.540634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269279Jy  sigma=0.001393
! Fit after  self-cal, rms=0.269278Jy  sigma=0.001393
! 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.269278Jy  sigma=0.001393
! Fit after  self-cal, rms=0.269726Jy  sigma=0.001393
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.667 mas, bmaj=2.909 mas, bpa=-11.05 degrees
! Estimated noise=314.528 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00153256 Jy
! Component: 100  -  total flux cleaned = 0.00216768 Jy
! Component: 150  -  total flux cleaned = 0.00247041 Jy
! Component: 200  -  total flux cleaned = 0.00257243 Jy
! Total flux subtracted in 200 components = 0.00257243 Jy
! Clean residual min=-0.001924 max=0.002145 Jy/beam
! Clean residual mean=0.000010 rms=0.000487 Jy/beam
! Combined flux in latest and established models = 0.543207 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 70 components and 0.543207 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269706Jy  sigma=0.001393
! Fit after  self-cal, rms=0.269714Jy  sigma=0.001393
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 (53.5, -15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00191091 Jy
! Component: 100  -  total flux cleaned = 0.00258744 Jy
! Component: 150  -  total flux cleaned = 0.00261962 Jy
! Component: 200  -  total flux cleaned = 0.00261891 Jy
! Total flux subtracted in 200 components = 0.00261891 Jy
! Clean residual min=-0.001888 max=0.001676 Jy/beam
! Clean residual mean=-0.000011 rms=0.000475 Jy/beam
! Combined flux in latest and established models = 0.545825 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 83 components and 0.545825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269694Jy  sigma=0.001393
! Fit after  self-cal, rms=0.269691Jy  sigma=0.001393
! 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.269691Jy  sigma=0.001393
! Fit after  self-cal, rms=0.270144Jy  sigma=0.001393
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.514 mas, bmaj=7.89 mas, bpa=-81.67 degrees
! Estimated noise=475.535 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00157525 Jy
! Component: 100  -  total flux cleaned = 0.00241768 Jy
! Component: 150  -  total flux cleaned = 0.0029048 Jy
! Component: 200  -  total flux cleaned = 0.00305034 Jy
! Total flux subtracted in 200 components = 0.00305034 Jy
! Clean residual min=-0.002311 max=0.002760 Jy/beam
! Clean residual mean=-0.000070 rms=0.000825 Jy/beam
! Combined flux in latest and established models = 0.548876 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 100 components and 0.548876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270139Jy  sigma=0.001393
! Fit after  self-cal, rms=0.270141Jy  sigma=0.001393
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.000415204 Jy
! Component: 100  -  total flux cleaned = 0.00051973 Jy
! Component: 150  -  total flux cleaned = 0.000575604 Jy
! Component: 200  -  total flux cleaned = 0.00061541 Jy
! Total flux subtracted in 200 components = 0.00061541 Jy
! Clean residual min=-0.002314 max=0.002755 Jy/beam
! Clean residual mean=-0.000087 rms=0.000822 Jy/beam
! Combined flux in latest and established models = 0.549491 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 108 components and 0.549491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270141Jy  sigma=0.001393
! Fit after  self-cal, rms=0.270139Jy  sigma=0.001393
! 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.665 mas, bmaj=2.909 mas, bpa=-11.3 degrees
! Estimated noise=314.967 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.665 x 2.909 at -11.3 degrees (North through East)
! Clean map  min=-0.0017497  max=0.45855 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=2.112 mas, bmaj=2.368 mas, bpa=-6.966 degrees
! Estimated noise=702.337 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.345934 Jy
! Component: 100  -  total flux cleaned = 0.427767 Jy
! Component: 150  -  total flux cleaned = 0.462129 Jy
! Component: 200  -  total flux cleaned = 0.48246 Jy
! Total flux subtracted in 200 components = 0.48246 Jy
! Clean residual min=-0.005544 max=0.011068 Jy/beam
! Clean residual mean=0.000058 rms=0.001326 Jy/beam
! Combined flux in latest and established models = 0.48246 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.48246 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.665 mas, bmaj=2.909 mas, bpa=-11.3 degrees
! Estimated noise=314.967 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.0218703 Jy
! Component: 100  -  total flux cleaned = 0.0343979 Jy
! Component: 150  -  total flux cleaned = 0.0424883 Jy
! Component: 200  -  total flux cleaned = 0.0479451 Jy
! Total flux subtracted in 200 components = 0.0479451 Jy
! Clean residual min=-0.001894 max=0.003049 Jy/beam
! Clean residual mean=0.000144 rms=0.000566 Jy/beam
! Combined flux in latest and established models = 0.530405 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 44 components and 0.530405 Jy
! Inverting map 
! Added new window around map position (2, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00387024 Jy
! Component: 100  -  total flux cleaned = 0.00683595 Jy
! Component: 150  -  total flux cleaned = 0.00918909 Jy
! Component: 200  -  total flux cleaned = 0.0111013 Jy
! Total flux subtracted in 200 components = 0.0111013 Jy
! Clean residual min=-0.001777 max=0.001943 Jy/beam
! Clean residual mean=0.000045 rms=0.000486 Jy/beam
! Combined flux in latest and established models = 0.541506 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 72 components and 0.541506 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.514 mas, bmaj=7.89 mas, bpa=-81.67 degrees
! Estimated noise=475.535 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00315779 Jy
! Component: 100  -  total flux cleaned = 0.00500247 Jy
! Component: 150  -  total flux cleaned = 0.00623016 Jy
! Component: 200  -  total flux cleaned = 0.00707626 Jy
! Total flux subtracted in 200 components = 0.00707626 Jy
! Clean residual min=-0.002309 max=0.002781 Jy/beam
! Clean residual mean=-0.000059 rms=0.000819 Jy/beam
! Combined flux in latest and established models = 0.548582 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.000569644 Jy
! Component: 100  -  total flux cleaned = 0.000767833 Jy
! Component: 150  -  total flux cleaned = 0.000916599 Jy
! Component: 200  -  total flux cleaned = 0.00101809 Jy
! Total flux subtracted in 200 components = 0.00101809 Jy
! Clean residual min=-0.002346 max=0.002764 Jy/beam
! Clean residual mean=-0.000092 rms=0.000817 Jy/beam
! Combined flux in latest and established models = 0.5496 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 121 components and 0.5496 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.665 mas, bmaj=2.909 mas, bpa=-11.3 degrees
! Estimated noise=314.967 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000870046 Jy
! Component: 100  -  total flux cleaned = -0.00102296 Jy
! Component: 150  -  total flux cleaned = -0.0010572 Jy
! Component: 200  -  total flux cleaned = -0.00105662 Jy
! Total flux subtracted in 200 components = -0.00105662 Jy
! Clean residual min=-0.001791 max=0.001827 Jy/beam
! Clean residual mean=-0.000015 rms=0.000468 Jy/beam
! Combined flux in latest and established models = 0.548544 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 134 components and 0.548544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270136Jy  sigma=0.001393
! Fit after  self-cal, rms=0.270126Jy  sigma=0.001393
wmodel J1017+6116_S_1999_03_08_pus_map.mod
! Writing 134 model components to file: J1017+6116_S_1999_03_08_pus_map.mod
wobs J1017+6116_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J1017+6116_S_1999_03_08_pus_uvs.fits
wwins J1017+6116_S_1999_03_08_pus_map.win
! wwins: Wrote 5 windows to J1017+6116_S_1999_03_08_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.000131838 Jy
! Component: 100  -  total flux cleaned = -0.000322272 Jy
! Component: 150  -  total flux cleaned = -0.000444342 Jy
! Component: 200  -  total flux cleaned = -0.000532927 Jy
! Component: 250  -  total flux cleaned = -0.000561313 Jy
! Component: 300  -  total flux cleaned = -0.000645554 Jy
! Component: 350  -  total flux cleaned = -0.000700376 Jy
! Component: 400  -  total flux cleaned = -0.000727295 Jy
! Component: 450  -  total flux cleaned = -0.000780847 Jy
! Component: 500  -  total flux cleaned = -0.000807286 Jy
! Component: 550  -  total flux cleaned = -0.000885473 Jy
! Component: 600  -  total flux cleaned = -0.000911044 Jy
! Component: 650  -  total flux cleaned = -0.000936107 Jy
! Component: 700  -  total flux cleaned = -0.000910978 Jy
! Component: 750  -  total flux cleaned = -0.000910959 Jy
! Component: 800  -  total flux cleaned = -0.000911 Jy
! Component: 850  -  total flux cleaned = -0.000959826 Jy
! Component: 900  -  total flux cleaned = -0.000935423 Jy
! Component: 950  -  total flux cleaned = -0.000959393 Jy
! Component: 1000  -  total flux cleaned = -0.000911783 Jy
! Component: 1050  -  total flux cleaned = -0.000911931 Jy
! Component: 1100  -  total flux cleaned = -0.000911903 Jy
! Component: 1150  -  total flux cleaned = -0.000911879 Jy
! Component: 1200  -  total flux cleaned = -0.000934967 Jy
! Component: 1250  -  total flux cleaned = -0.000934944 Jy
! Component: 1300  -  total flux cleaned = -0.000957695 Jy
! Component: 1350  -  total flux cleaned = -0.000957617 Jy
! Component: 1400  -  total flux cleaned = -0.000957594 Jy
! Component: 1450  -  total flux cleaned = -0.00102454 Jy
! Component: 1500  -  total flux cleaned = -0.00102444 Jy
! Component: 1550  -  total flux cleaned = -0.00100233 Jy
! Component: 1600  -  total flux cleaned = -0.00102428 Jy
! Component: 1650  -  total flux cleaned = -0.00106789 Jy
! Component: 1700  -  total flux cleaned = -0.000981076 Jy
! Component: 1750  -  total flux cleaned = -0.00104584 Jy
! Component: 1800  -  total flux cleaned = -0.00100286 Jy
! Component: 1850  -  total flux cleaned = -0.00100292 Jy
! Component: 1900  -  total flux cleaned = -0.00102421 Jy
! Component: 1950  -  total flux cleaned = -0.00102426 Jy
! Component: 2000  -  total flux cleaned = -0.00100324 Jy
! Total flux subtracted in 2048 components = -0.00102431 Jy
! Clean residual min=-0.001192 max=0.001368 Jy/beam
! Clean residual mean=-0.000012 rms=0.000397 Jy/beam
! Combined flux in latest and established models = 0.547519 Jy
keep
! Adding 172 model components to the UV plane model.
! The established model now contains 306 components and 0.547519 Jy
![Exited script file: muppet]
wmap "J1017+6116_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.665 x 2.909 at -11.3 degrees (North through East)
! Clean map  min=-0.0016141  max=0.45934 Jy/beam
! Writing clean map to FITS file: J1017+6116_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.45934 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0003975 
device "J1017+6116_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J1017+6116_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.259612 0.259612 0.519224 1.03845 2.07689 4.15379 8.30758 16.6152 33.2303 66.4606
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.459 
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.665 x 2.909 at -11.3 degrees (North through East)
! Clean map  min=-0.0016141  max=0.45934 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1017+6116_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J1017+6116_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1017+6116_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:17:10 2008