! Started logfile: J0956+2515_S_2001_04_09_pus_uvs.log on Fri Oct  5 16:00:19 2007
obs J0956+2515_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J0956+2515_S_2001_04_09_pus_uva.fits
! AN table 1: 216 integrations on 190 of 190 possible baselines.
! AN table 2: 236 integrations on 190 of 190 possible baselines.
! AN table 3: 93 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.148585 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0956+2515
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1949 lines of history.
! 
! Reading 61544 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 J0956+2515_S_2001_04_09_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 3793 telescope corrections were flagged in sub-array 1.
!  A total of 2498 telescope corrections were flagged in sub-array 2.
!  A total of 1349 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3793 telescope corrections were flagged in sub-array 1.
!  A total of 2543 telescope corrections were flagged in sub-array 2.
!  A total of 1349 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3793 telescope corrections were flagged in sub-array 1.
!  A total of 2543 telescope corrections were flagged in sub-array 2.
!  A total of 1349 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3793 telescope corrections were flagged in sub-array 1.
!  A total of 2543 telescope corrections were flagged in sub-array 2.
!  A total of 1349 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.687269Jy  sigma=0.005725
! Fit after  self-cal, rms=0.320288Jy  sigma=0.002604
! 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.866 mas, bmaj=3.637 mas, bpa=-3.042 degrees
! Estimated noise=764.799 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.592695 Jy
! Component: 100  -  total flux cleaned = 0.755314 Jy
! Total flux subtracted in 100 components = 0.755314 Jy
! Clean residual min=-0.015280 max=0.072846 Jy/beam
! Clean residual mean=0.000029 rms=0.004438 Jy/beam
! Combined flux in latest and established models = 0.755314 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.755314 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242514Jy  sigma=0.001806
! Fit after  self-cal, rms=0.242264Jy  sigma=0.001806
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0787363 Jy
! Component: 100  -  total flux cleaned = 0.118394 Jy
! Total flux subtracted in 100 components = 0.118394 Jy
! Clean residual min=-0.008983 max=0.018687 Jy/beam
! Clean residual mean=0.000010 rms=0.002457 Jy/beam
! Combined flux in latest and established models = 0.873708 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 11 components and 0.873708 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216406Jy  sigma=0.001467
! Fit after  self-cal, rms=0.216158Jy  sigma=0.001467
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0225474 Jy
! Component: 100  -  total flux cleaned = 0.0371434 Jy
! Total flux subtracted in 100 components = 0.0371434 Jy
! Clean residual min=-0.008608 max=0.012849 Jy/beam
! Clean residual mean=0.000004 rms=0.002180 Jy/beam
! Combined flux in latest and established models = 0.910851 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 19 components and 0.910851 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214695Jy  sigma=0.001441
! Fit after  self-cal, rms=0.214643Jy  sigma=0.001441
! 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.249 mas, bmaj=4.526 mas, bpa=-1.517 degrees
! Estimated noise=326.462 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.00586317 Jy
! Component: 100  -  total flux cleaned = 0.00645966 Jy
! Component: 150  -  total flux cleaned = 0.00667007 Jy
! Component: 200  -  total flux cleaned = 0.0069445 Jy
! Total flux subtracted in 200 components = 0.0069445 Jy
! Clean residual min=-0.006916 max=0.007641 Jy/beam
! Clean residual mean=0.000010 rms=0.001645 Jy/beam
! Combined flux in latest and established models = 0.917796 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 28 components and 0.917796 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.214406Jy  sigma=0.001438
! Fit after  self-cal, rms=0.214409Jy  sigma=0.001438
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.04     KP        0.90     
!   LA        0.92     MA        1.00*    MC        0.97     MK        1.02     
!   NL        0.90     NY        0.96     OV        0.92     PT        0.87     
!   SC        0.96     TS        0.95     WF        1.05     WZ        1.04     
! 
!  A total of 93 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00     KP        0.98     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.01     NY        0.99     OV        1.02     PT        0.96     
!   SC        1.00     TS        0.96     WF        0.99     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.94     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.00*    KP        0.80     
!   LA        0.94     MA        0.92     MC        1.31     MK        1.00*    
!   NL        0.97     NY        0.97     OV        1.02     PT        0.93     
!   SC        0.95     TS        1.00*    WF        1.04     WZ        1.02     
! 
! 
! Correcting IF 2.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.92     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00     KP        1.02     
!   LA        0.95     MA        1.00*    MC        1.12     MK        1.02     
!   NL        0.92     NY        0.98     OV        0.91     PT        0.91     
!   SC        0.97     TS        1.00     WF        1.02     WZ        1.12     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.98     KP        0.97     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.02     NY        1.00     OV        0.99     PT        1.00     
!   SC        1.01     TS        1.00     WF        1.02     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.95     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.00*    KP        1.01     
!   LA        0.97     MA        0.78     MC        1.32     MK        1.00*    
!   NL        0.96     NY        1.00     OV        1.01     PT        0.97     
!   SC        0.93     TS        1.00*    WF        1.03     WZ        1.03     
! 
! 
! Correcting IF 3.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.92     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.01     KP        0.92     
!   LA        0.92     MA        1.00*    MC        1.19     MK        1.00     
!   NL        0.91     NY        0.97     OV        0.92     PT        0.92     
!   SC        0.96     TS        1.03     WF        0.95     WZ        1.18     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.01     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.97     KP        1.02     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.03     NY        0.99     OV        1.00     PT        1.01     
!   SC        1.01     TS        1.03     WF        1.04     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.96     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00*    KP        0.93     
!   LA        0.95     MA        0.96     MC        1.01     MK        1.00*    
!   NL        0.99     NY        0.95     OV        1.00     PT        0.99     
!   SC        0.95     TS        1.00*    WF        1.03     WZ        1.02     
! 
! 
! Correcting IF 4.
!  A total of 207 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.95     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.96     KP        0.93     
!   LA        0.94     MA        1.00*    MC        1.35     MK        0.97     
!   NL        0.93     NY        1.00     OV        0.93     PT        0.95     
!   SC        0.97     TS        0.98     WF        1.01     WZ        1.19     
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.02     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        0.95     KP        1.01     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.02     NY        1.04     OV        1.00     PT        1.06     
!   SC        1.02     TS        0.98     WF        1.04     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.96     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        0.88     
!   LA        0.98     MA        0.79     MC        1.09     MK        1.00*    
!   NL        0.99     NY        1.02     OV        0.99     PT        1.02     
!   SC        0.97     TS        1.00*    WF        1.02     WZ        1.19     
! 
! 
! Fit before self-cal, rms=0.214409Jy  sigma=0.001438
! Fit after  self-cal, rms=0.207185Jy  sigma=0.001380
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.257 mas, bmaj=4.511 mas, bpa=-1.421 degrees
! Estimated noise=329.525 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 = 5.71795e-05 Jy
! Component: 100  -  total flux cleaned = -0.000130172 Jy
! Component: 150  -  total flux cleaned = -0.000230423 Jy
! Component: 200  -  total flux cleaned = -0.000271764 Jy
! Total flux subtracted in 200 components = -0.000271764 Jy
! Clean residual min=-0.005295 max=0.006547 Jy/beam
! Clean residual mean=0.000161 rms=0.001386 Jy/beam
! Combined flux in latest and established models = 0.917524 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 34 components and 0.917524 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207148Jy  sigma=0.001379
! Fit after  self-cal, rms=0.207069Jy  sigma=0.001379
! 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.207069Jy  sigma=0.001379
! Fit after  self-cal, rms=0.207163Jy  sigma=0.001356
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.256 mas, bmaj=4.517 mas, bpa=-1.39 degrees
! Estimated noise=329.662 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00163879 Jy
! Component: 100  -  total flux cleaned = 0.00159794 Jy
! Component: 150  -  total flux cleaned = 0.00151824 Jy
! Component: 200  -  total flux cleaned = 0.0014824 Jy
! Total flux subtracted in 200 components = 0.0014824 Jy
! Clean residual min=-0.002826 max=0.007090 Jy/beam
! Clean residual mean=0.000088 rms=0.000894 Jy/beam
! Combined flux in latest and established models = 0.919006 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 38 components and 0.919007 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207139Jy  sigma=0.001355
! Fit after  self-cal, rms=0.207159Jy  sigma=0.001355
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 (-10.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00652568 Jy
! Component: 100  -  total flux cleaned = 0.00975906 Jy
! Component: 150  -  total flux cleaned = 0.0115901 Jy
! Component: 200  -  total flux cleaned = 0.0123635 Jy
! Total flux subtracted in 200 components = 0.0123635 Jy
! Clean residual min=-0.002515 max=0.002892 Jy/beam
! Clean residual mean=0.000035 rms=0.000680 Jy/beam
! Combined flux in latest and established models = 0.93137 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 64 components and 0.93137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206958Jy  sigma=0.001353
! Fit after  self-cal, rms=0.206935Jy  sigma=0.001353
! Inverting map 
! Added new window around map position (-4.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00243978 Jy
! Component: 100  -  total flux cleaned = 0.00263136 Jy
! Component: 150  -  total flux cleaned = 0.0027899 Jy
! Component: 200  -  total flux cleaned = 0.00296208 Jy
! Total flux subtracted in 200 components = 0.00296208 Jy
! Clean residual min=-0.002654 max=0.002468 Jy/beam
! Clean residual mean=0.000023 rms=0.000637 Jy/beam
! Combined flux in latest and established models = 0.934332 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 77 components and 0.934332 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206885Jy  sigma=0.001352
! Fit after  self-cal, rms=0.206878Jy  sigma=0.001352
! 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.206878Jy  sigma=0.001352
! Fit after  self-cal, rms=0.207049Jy  sigma=0.001351
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.255 mas, bmaj=4.517 mas, bpa=-1.392 degrees
! Estimated noise=329.974 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00242864 Jy
! Component: 100  -  total flux cleaned = 0.00345141 Jy
! Component: 150  -  total flux cleaned = 0.00396211 Jy
! Component: 200  -  total flux cleaned = 0.00418775 Jy
! Total flux subtracted in 200 components = 0.00418775 Jy
! Clean residual min=-0.002412 max=0.002388 Jy/beam
! Clean residual mean=-0.000008 rms=0.000589 Jy/beam
! Combined flux in latest and established models = 0.93852 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 86 components and 0.93852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207007Jy  sigma=0.001351
! Fit after  self-cal, rms=0.207000Jy  sigma=0.001351
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.000584265 Jy
! Component: 100  -  total flux cleaned = 0.000687172 Jy
! Component: 150  -  total flux cleaned = 0.000781248 Jy
! Component: 200  -  total flux cleaned = 0.000808958 Jy
! Total flux subtracted in 200 components = 0.000808958 Jy
! Clean residual min=-0.002445 max=0.002347 Jy/beam
! Clean residual mean=-0.000011 rms=0.000580 Jy/beam
! Combined flux in latest and established models = 0.939329 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 93 components and 0.939329 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206988Jy  sigma=0.001351
! Fit after  self-cal, rms=0.206985Jy  sigma=0.001351
! 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.206985Jy  sigma=0.001351
! Fit after  self-cal, rms=0.206900Jy  sigma=0.001351
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.776 mas, bmaj=9.248 mas, bpa=-11.42 degrees
! Estimated noise=464.485 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00160351 Jy
! Component: 100  -  total flux cleaned = 0.00188922 Jy
! Component: 150  -  total flux cleaned = 0.00185278 Jy
! Component: 200  -  total flux cleaned = 0.00186716 Jy
! Total flux subtracted in 200 components = 0.00186716 Jy
! Clean residual min=-0.002916 max=0.003308 Jy/beam
! Clean residual mean=-0.000076 rms=0.001072 Jy/beam
! Combined flux in latest and established models = 0.941196 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 111 components and 0.941196 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206891Jy  sigma=0.001351
! Fit after  self-cal, rms=0.206890Jy  sigma=0.001351
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.000204761 Jy
! Component: 100  -  total flux cleaned = 0.000159341 Jy
! Component: 150  -  total flux cleaned = 0.000106081 Jy
! Component: 200  -  total flux cleaned = 7.0379e-05 Jy
! Total flux subtracted in 200 components = 7.0379e-05 Jy
! Clean residual min=-0.002868 max=0.003305 Jy/beam
! Clean residual mean=-0.000077 rms=0.001070 Jy/beam
! Combined flux in latest and established models = 0.941266 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 124 components and 0.941266 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206889Jy  sigma=0.001351
! Fit after  self-cal, rms=0.206888Jy  sigma=0.001350
! 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.254 mas, bmaj=4.518 mas, bpa=-1.397 degrees
! Estimated noise=330.198 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.254 x 4.518 at -1.397 degrees (North through East)
! Clean map  min=-0.002155  max=0.78804 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.206888Jy  sigma=0.001350
! Fit after  self-cal, rms=0.492678Jy  sigma=0.001217
! Inverting map and beam 
! Estimated beam: bmin=2.257 mas, bmaj=4.515 mas, bpa=-1.396 degrees
! Estimated noise=330.179 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00167982 Jy
! Component: 100  -  total flux cleaned = -0.00263725 Jy
! Component: 150  -  total flux cleaned = -0.00295959 Jy
! Component: 200  -  total flux cleaned = -0.00321331 Jy
! Total flux subtracted in 200 components = -0.00321331 Jy
! Clean residual min=-0.001751 max=0.001531 Jy/beam
! Clean residual mean=-0.000017 rms=0.000413 Jy/beam
! Combined flux in latest and established models = 0.938053 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 136 components and 0.938053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.492658Jy  sigma=0.001217
! Fit after  self-cal, rms=0.492693Jy  sigma=0.001217
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000324368 Jy
! Component: 100  -  total flux cleaned = -0.000464279 Jy
! Component: 150  -  total flux cleaned = -0.000542613 Jy
! Component: 200  -  total flux cleaned = -0.000616217 Jy
! Total flux subtracted in 200 components = -0.000616217 Jy
! Clean residual min=-0.001727 max=0.001499 Jy/beam
! Clean residual mean=-0.000015 rms=0.000409 Jy/beam
! Combined flux in latest and established models = 0.937437 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 152 components and 0.937437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.492687Jy  sigma=0.001217
! Fit after  self-cal, rms=0.492691Jy  sigma=0.001217
! 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.492691Jy  sigma=0.001217
! Fit after  self-cal, rms=0.619925Jy  sigma=0.001217
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.898 mas, bmaj=3.626 mas, bpa=-2.817 degrees
! Estimated noise=762.299 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.590447 Jy
! Component: 100  -  total flux cleaned = 0.748627 Jy
! Component: 150  -  total flux cleaned = 0.824585 Jy
! Component: 200  -  total flux cleaned = 0.862774 Jy
! Total flux subtracted in 200 components = 0.862773 Jy
! Clean residual min=-0.005193 max=0.017837 Jy/beam
! Clean residual mean=0.000016 rms=0.001492 Jy/beam
! Combined flux in latest and established models = 0.862773 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 11 model components to the UV plane model.
! The established model now contains 11 components and 0.862773 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.259 mas, bmaj=4.516 mas, bpa=-1.397 degrees
! Estimated noise=330.166 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.0273361 Jy
! Component: 100  -  total flux cleaned = 0.0408712 Jy
! Component: 150  -  total flux cleaned = 0.0499444 Jy
! Component: 200  -  total flux cleaned = 0.056404 Jy
! Total flux subtracted in 200 components = 0.056404 Jy
! Clean residual min=-0.002319 max=0.003626 Jy/beam
! Clean residual mean=0.000065 rms=0.000641 Jy/beam
! Combined flux in latest and established models = 0.919177 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 56 components and 0.919177 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00471907 Jy
! Component: 100  -  total flux cleaned = 0.00823793 Jy
! Component: 150  -  total flux cleaned = 0.0108897 Jy
! Component: 200  -  total flux cleaned = 0.0128979 Jy
! Total flux subtracted in 200 components = 0.0128979 Jy
! Clean residual min=-0.001859 max=0.001571 Jy/beam
! Clean residual mean=0.000008 rms=0.000437 Jy/beam
! Combined flux in latest and established models = 0.932075 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 72 components and 0.932075 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.787 mas, bmaj=9.261 mas, bpa=-11.31 degrees
! Estimated noise=463.017 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00195045 Jy
! Component: 100  -  total flux cleaned = 0.00217217 Jy
! Component: 150  -  total flux cleaned = 0.00233481 Jy
! Component: 200  -  total flux cleaned = 0.0024579 Jy
! Total flux subtracted in 200 components = 0.0024579 Jy
! Clean residual min=-0.001515 max=0.001514 Jy/beam
! Clean residual mean=-0.000007 rms=0.000534 Jy/beam
! Combined flux in latest and established models = 0.934533 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 = 9.49274e-05 Jy
! Component: 100  -  total flux cleaned = 0.000141671 Jy
! Component: 150  -  total flux cleaned = 0.000154172 Jy
! Component: 200  -  total flux cleaned = 0.000155109 Jy
! Total flux subtracted in 200 components = 0.000155109 Jy
! Clean residual min=-0.001535 max=0.001524 Jy/beam
! Clean residual mean=-0.000009 rms=0.000530 Jy/beam
! Combined flux in latest and established models = 0.934688 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 105 components and 0.934688 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.259 mas, bmaj=4.516 mas, bpa=-1.397 degrees
! Estimated noise=330.166 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -6.13696e-05 Jy
! Component: 100  -  total flux cleaned = 2.94574e-05 Jy
! Component: 150  -  total flux cleaned = 0.00011385 Jy
! Component: 200  -  total flux cleaned = 0.000190809 Jy
! Total flux subtracted in 200 components = 0.000190809 Jy
! Clean residual min=-0.001743 max=0.001560 Jy/beam
! Clean residual mean=-0.000004 rms=0.000413 Jy/beam
! Combined flux in latest and established models = 0.934879 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 115 components and 0.934879 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619918Jy  sigma=0.001217
! Fit after  self-cal, rms=0.619944Jy  sigma=0.001217
wmodel J0956+2515_S_2001_04_09_pus_map.mod
! Writing 115 model components to file: J0956+2515_S_2001_04_09_pus_map.mod
wobs J0956+2515_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J0956+2515_S_2001_04_09_pus_uvs.fits
wwins J0956+2515_S_2001_04_09_pus_map.win
! wwins: Wrote 3 windows to J0956+2515_S_2001_04_09_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000343088 Jy
! Component: 100  -  total flux cleaned = -0.000371346 Jy
! Component: 150  -  total flux cleaned = -0.000371617 Jy
! Component: 200  -  total flux cleaned = -0.000496346 Jy
! Component: 250  -  total flux cleaned = -0.000666292 Jy
! Component: 300  -  total flux cleaned = -0.00076164 Jy
! Component: 350  -  total flux cleaned = -0.000854913 Jy
! Component: 400  -  total flux cleaned = -0.000946489 Jy
! Component: 450  -  total flux cleaned = -0.000946215 Jy
! Component: 500  -  total flux cleaned = -0.000946259 Jy
! Component: 550  -  total flux cleaned = -0.000990058 Jy
! Component: 600  -  total flux cleaned = -0.00103301 Jy
! Component: 650  -  total flux cleaned = -0.00103305 Jy
! Component: 700  -  total flux cleaned = -0.00105417 Jy
! Component: 750  -  total flux cleaned = -0.00115831 Jy
! Component: 800  -  total flux cleaned = -0.00115824 Jy
! Component: 850  -  total flux cleaned = -0.00121973 Jy
! Component: 900  -  total flux cleaned = -0.00128034 Jy
! Component: 950  -  total flux cleaned = -0.00128045 Jy
! Component: 1000  -  total flux cleaned = -0.00135992 Jy
! Component: 1050  -  total flux cleaned = -0.00139918 Jy
! Component: 1100  -  total flux cleaned = -0.00143831 Jy
! Component: 1150  -  total flux cleaned = -0.00147693 Jy
! Component: 1200  -  total flux cleaned = -0.00147696 Jy
! Component: 1250  -  total flux cleaned = -0.00159129 Jy
! Component: 1300  -  total flux cleaned = -0.00162892 Jy
! Component: 1350  -  total flux cleaned = -0.00166639 Jy
! Component: 1400  -  total flux cleaned = -0.00174082 Jy
! Component: 1450  -  total flux cleaned = -0.00170383 Jy
! Component: 1500  -  total flux cleaned = -0.00179609 Jy
! Component: 1550  -  total flux cleaned = -0.001851 Jy
! Component: 1600  -  total flux cleaned = -0.00185116 Jy
! Component: 1650  -  total flux cleaned = -0.00195958 Jy
! Component: 1700  -  total flux cleaned = -0.00197753 Jy
! Component: 1750  -  total flux cleaned = -0.00197758 Jy
! Component: 1800  -  total flux cleaned = -0.00203086 Jy
! Component: 1850  -  total flux cleaned = -0.00206621 Jy
! Component: 1900  -  total flux cleaned = -0.00208389 Jy
! Component: 1950  -  total flux cleaned = -0.00211878 Jy
! Component: 2000  -  total flux cleaned = -0.00213609 Jy
! Total flux subtracted in 2048 components = -0.00211877 Jy
! Clean residual min=-0.000981 max=0.001023 Jy/beam
! Clean residual mean=0.000006 rms=0.000328 Jy/beam
! Combined flux in latest and established models = 0.93276 Jy
keep
! Adding 154 model components to the UV plane model.
! The established model now contains 269 components and 0.93276 Jy
![Exited script file: muppet]
wmap "J0956+2515_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.259 x 4.516 at -1.397 degrees (North through East)
! Clean map  min=-0.0015208  max=0.78952 Jy/beam
! Writing clean map to FITS file: J0956+2515_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.789522 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000327477 
device "J0956+2515_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J0956+2515_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.124434 0.124434 0.248867 0.497735 0.995469 1.99094 3.98188 7.96376 15.9275 31.855 63.71
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.789 
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.259 x 4.516 at -1.397 degrees (North through East)
! Clean map  min=-0.0015208  max=0.78952 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0956+2515_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J0956+2515_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0956+2515_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 16:00:45 2007