! Started logfile: J0956+2515_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:14:51 2008
obs J0956+2515_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0956+2515_S_1999_03_08_pus_uva.fits
! AN table 1: 15 integrations on 190 of 190 possible baselines.
! AN table 2: 14 integrations on 190 of 190 possible baselines.
! AN table 3: 72 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.163471 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.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 12548 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_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 233 telescope corrections were flagged in sub-array 1.
!  A total of 244 telescope corrections were flagged in sub-array 2.
!  A total of 848 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 233 telescope corrections were flagged in sub-array 1.
!  A total of 244 telescope corrections were flagged in sub-array 2.
!  A total of 848 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 233 telescope corrections were flagged in sub-array 1.
!  A total of 244 telescope corrections were flagged in sub-array 2.
!  A total of 848 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 233 telescope corrections were flagged in sub-array 1.
!  A total of 244 telescope corrections were flagged in sub-array 2.
!  A total of 848 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.588246Jy  sigma=0.003864
! Fit after  self-cal, rms=0.252059Jy  sigma=0.001855
! 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.769 mas, bmaj=3.568 mas, bpa=-6.373 degrees
! Estimated noise=1194.44 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.66483 Jy
! Component: 100  -  total flux cleaned = 0.816055 Jy
! Total flux subtracted in 100 components = 0.816055 Jy
! Clean residual min=-0.020895 max=0.055335 Jy/beam
! Clean residual mean=0.000146 rms=0.005334 Jy/beam
! Combined flux in latest and established models = 0.816055 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.816055 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215705Jy  sigma=0.001629
! Fit after  self-cal, rms=0.215711Jy  sigma=0.001629
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0579103 Jy
! Component: 100  -  total flux cleaned = 0.0853239 Jy
! Total flux subtracted in 100 components = 0.0853239 Jy
! Clean residual min=-0.014790 max=0.014766 Jy/beam
! Clean residual mean=-0.000002 rms=0.003498 Jy/beam
! Combined flux in latest and established models = 0.901379 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 0.901379 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.200085Jy  sigma=0.001453
! Fit after  self-cal, rms=0.200102Jy  sigma=0.001453
! 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=3.188 mas, bmaj=4.304 mas, bpa=-5.352 degrees
! Estimated noise=799.452 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.0210177 Jy
! Component: 100  -  total flux cleaned = 0.0323971 Jy
! Component: 150  -  total flux cleaned = 0.0389476 Jy
! Component: 200  -  total flux cleaned = 0.0427683 Jy
! Total flux subtracted in 200 components = 0.0427683 Jy
! Clean residual min=-0.011836 max=0.011635 Jy/beam
! Clean residual mean=-0.000124 rms=0.002850 Jy/beam
! Combined flux in latest and established models = 0.944147 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 29 components and 0.944147 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198421Jy  sigma=0.001428
! Fit after  self-cal, rms=0.198429Jy  sigma=0.001428
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.97     LA        0.95     NL        1.00*    
!   OV        0.99     PT        1.01     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        0.98     ON        1.00*    WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.98     GC        0.96     GG        1.00*    
!   HN        1.00     KP        0.95     LA        1.00     NL        1.06     
!   OV        0.98     PT        1.02     SC        1.02     WF        0.98     
!   GN        0.95     HH        1.00*    KK        1.00     MC        1.00*    
!   MK        0.98     NY        1.01     ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.96     LA        0.97     NL        1.00*    
!   OV        0.94     PT        0.97     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.07     ON        1.00*    WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.05     GC        0.99     GG        1.00*    
!   HN        0.98     KP        1.00     LA        0.98     NL        1.00     
!   OV        0.98     PT        0.99     SC        1.09     WF        0.98     
!   GN        0.94     HH        1.00*    KK        0.95     MC        1.00*    
!   MK        1.00     NY        1.01     ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.93     LA        0.96     NL        1.00*    
!   OV        0.97     PT        0.95     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.06     ON        1.00*    WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.03     GC        1.01     GG        1.00*    
!   HN        1.23     KP        0.99     LA        1.00     NL        1.05     
!   OV        1.01     PT        0.94     SC        1.07     WF        0.97     
!   GN        0.96     HH        1.00*    KK        0.97     MC        1.00*    
!   MK        0.98     NY        1.00     ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.96     LA        0.95     NL        1.00*    
!   OV        0.96     PT        0.92     SC        1.00*    WF        1.00*    
!   GN        1.00*    HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.03     ON        1.00*    WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.02     GC        1.01     GG        1.00*    
!   HN        1.17     KP        1.00     LA        0.98     NL        1.02     
!   OV        1.01     PT        0.97     SC        1.06     WF        0.97     
!   GN        0.95     HH        1.00*    KK        1.03     MC        1.00*    
!   MK        1.02     NY        1.02     ON        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.198429Jy  sigma=0.001428
! Fit after  self-cal, rms=0.189683Jy  sigma=0.001335
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.195 mas, bmaj=4.365 mas, bpa=-6.419 degrees
! Estimated noise=806.033 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.00584063 Jy
! Component: 100  -  total flux cleaned = -0.00689396 Jy
! Component: 150  -  total flux cleaned = -0.00765678 Jy
! Component: 200  -  total flux cleaned = -0.00803247 Jy
! Total flux subtracted in 200 components = -0.00803247 Jy
! Clean residual min=-0.005823 max=0.008287 Jy/beam
! Clean residual mean=0.000048 rms=0.001652 Jy/beam
! Combined flux in latest and established models = 0.936115 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 36 components and 0.936115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189413Jy  sigma=0.001334
! Fit after  self-cal, rms=0.189445Jy  sigma=0.001334
! Inverting map 
! Added new window around map position (-9.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00729567 Jy
! Component: 100  -  total flux cleaned = 0.00817946 Jy
! Component: 150  -  total flux cleaned = 0.00789746 Jy
! Component: 200  -  total flux cleaned = 0.0075348 Jy
! Total flux subtracted in 200 components = 0.0075348 Jy
! Clean residual min=-0.005396 max=0.005800 Jy/beam
! Clean residual mean=0.000021 rms=0.001520 Jy/beam
! Combined flux in latest and established models = 0.94365 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 52 components and 0.94365 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189054Jy  sigma=0.001330
! Fit after  self-cal, rms=0.189034Jy  sigma=0.001330
! 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.189034Jy  sigma=0.001330
! Fit after  self-cal, rms=0.188748Jy  sigma=0.001312
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.198 mas, bmaj=4.366 mas, bpa=-6.524 degrees
! Estimated noise=806.164 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00465256 Jy
! Component: 100  -  total flux cleaned = 0.00621081 Jy
! Component: 150  -  total flux cleaned = 0.00676421 Jy
! Component: 200  -  total flux cleaned = 0.00690108 Jy
! Total flux subtracted in 200 components = 0.00690108 Jy
! Clean residual min=-0.003774 max=0.003941 Jy/beam
! Clean residual mean=0.000095 rms=0.001024 Jy/beam
! Combined flux in latest and established models = 0.950551 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 72 components and 0.950551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188590Jy  sigma=0.001311
! Fit after  self-cal, rms=0.188592Jy  sigma=0.001311
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.000907487 Jy
! Component: 100  -  total flux cleaned = 0.00109875 Jy
! Component: 150  -  total flux cleaned = 0.00115675 Jy
! Component: 200  -  total flux cleaned = 0.00121037 Jy
! Total flux subtracted in 200 components = 0.00121037 Jy
! Clean residual min=-0.003713 max=0.004004 Jy/beam
! Clean residual mean=0.000090 rms=0.001006 Jy/beam
! Combined flux in latest and established models = 0.951761 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 79 components and 0.951761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188548Jy  sigma=0.001311
! Fit after  self-cal, rms=0.188544Jy  sigma=0.001311
! 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.188544Jy  sigma=0.001311
! Fit after  self-cal, rms=0.188689Jy  sigma=0.001311
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.196 mas, bmaj=4.366 mas, bpa=-6.608 degrees
! Estimated noise=806.392 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00156744 Jy
! Component: 100  -  total flux cleaned = 0.00198164 Jy
! Component: 150  -  total flux cleaned = 0.00203416 Jy
! Component: 200  -  total flux cleaned = 0.00208352 Jy
! Total flux subtracted in 200 components = 0.00208352 Jy
! Clean residual min=-0.003647 max=0.004124 Jy/beam
! Clean residual mean=0.000074 rms=0.000993 Jy/beam
! Combined flux in latest and established models = 0.953845 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 87 components and 0.953845 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188647Jy  sigma=0.001311
! Fit after  self-cal, rms=0.188645Jy  sigma=0.001311
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.000317319 Jy
! Component: 100  -  total flux cleaned = 0.000318033 Jy
! Component: 150  -  total flux cleaned = 0.000361738 Jy
! Component: 200  -  total flux cleaned = 0.000362111 Jy
! Total flux subtracted in 200 components = 0.000362111 Jy
! Clean residual min=-0.003606 max=0.004172 Jy/beam
! Clean residual mean=0.000073 rms=0.000986 Jy/beam
! Combined flux in latest and established models = 0.954207 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 93 components and 0.954207 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188624Jy  sigma=0.001310
! Fit after  self-cal, rms=0.188623Jy  sigma=0.001310
! 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.188623Jy  sigma=0.001310
! Fit after  self-cal, rms=0.188771Jy  sigma=0.001310
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.806 mas, bmaj=9.248 mas, bpa=0.7583 degrees
! Estimated noise=1065.52 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00133905 Jy
! Component: 100  -  total flux cleaned = 0.00134584 Jy
! Component: 150  -  total flux cleaned = 0.00128126 Jy
! Component: 200  -  total flux cleaned = 0.0012253 Jy
! Total flux subtracted in 200 components = 0.0012253 Jy
! Clean residual min=-0.004603 max=0.003799 Jy/beam
! Clean residual mean=0.000177 rms=0.001156 Jy/beam
! Combined flux in latest and established models = 0.955432 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 105 components and 0.955432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188766Jy  sigma=0.001310
! Fit after  self-cal, rms=0.188765Jy  sigma=0.001310
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 = 7.9096e-05 Jy
! Component: 100  -  total flux cleaned = 5.33641e-05 Jy
! Component: 150  -  total flux cleaned = 6.05399e-06 Jy
! Component: 200  -  total flux cleaned = -1.4285e-05 Jy
! Total flux subtracted in 200 components = -1.4285e-05 Jy
! Clean residual min=-0.004563 max=0.003798 Jy/beam
! Clean residual mean=0.000178 rms=0.001150 Jy/beam
! Combined flux in latest and established models = 0.955418 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 110 components and 0.955418 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188768Jy  sigma=0.001311
! Fit after  self-cal, rms=0.188768Jy  sigma=0.001311
! 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=3.195 mas, bmaj=4.367 mas, bpa=-6.675 degrees
! Estimated noise=806.764 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.195 x 4.367 at -6.675 degrees (North through East)
! Clean map  min=-0.003537  max=0.86316 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.188768Jy  sigma=0.001311
! Fit after  self-cal, rms=0.178830Jy  sigma=0.001210
! Inverting map and beam 
! Estimated beam: bmin=3.194 mas, bmaj=4.366 mas, bpa=-6.769 degrees
! Estimated noise=806.497 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000334015 Jy
! Component: 100  -  total flux cleaned = -0.000328905 Jy
! Component: 150  -  total flux cleaned = -0.000370548 Jy
! Component: 200  -  total flux cleaned = -0.000449126 Jy
! Total flux subtracted in 200 components = -0.000449126 Jy
! Clean residual min=-0.003634 max=0.003868 Jy/beam
! Clean residual mean=0.000068 rms=0.000957 Jy/beam
! Combined flux in latest and established models = 0.954969 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 116 components and 0.954969 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178806Jy  sigma=0.001210
! Fit after  self-cal, rms=0.178807Jy  sigma=0.001210
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -1.00285e-06 Jy
! Component: 100  -  total flux cleaned = -3.61896e-05 Jy
! Component: 150  -  total flux cleaned = -6.8401e-05 Jy
! Component: 200  -  total flux cleaned = -6.8938e-05 Jy
! Total flux subtracted in 200 components = -6.8938e-05 Jy
! Clean residual min=-0.003648 max=0.003882 Jy/beam
! Clean residual mean=0.000068 rms=0.000955 Jy/beam
! Combined flux in latest and established models = 0.9549 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 119 components and 0.9549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178792Jy  sigma=0.001209
! Fit after  self-cal, rms=0.178792Jy  sigma=0.001209
! 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.178792Jy  sigma=0.001209
! Fit after  self-cal, rms=0.178864Jy  sigma=0.001209
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.758 mas, bmaj=3.622 mas, bpa=-8.948 degrees
! Estimated noise=1206.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.664189 Jy
! Component: 100  -  total flux cleaned = 0.814414 Jy
! Component: 150  -  total flux cleaned = 0.870454 Jy
! Component: 200  -  total flux cleaned = 0.896424 Jy
! Total flux subtracted in 200 components = 0.896424 Jy
! Clean residual min=-0.008010 max=0.011994 Jy/beam
! Clean residual mean=0.000118 rms=0.002066 Jy/beam
! Combined flux in latest and established models = 0.896424 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.896424 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.194 mas, bmaj=4.366 mas, bpa=-6.794 degrees
! Estimated noise=806.707 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.0214372 Jy
! Component: 100  -  total flux cleaned = 0.0346304 Jy
! Component: 150  -  total flux cleaned = 0.0433763 Jy
! Component: 200  -  total flux cleaned = 0.0493047 Jy
! Total flux subtracted in 200 components = 0.0493047 Jy
! Clean residual min=-0.003890 max=0.005698 Jy/beam
! Clean residual mean=0.000101 rms=0.001108 Jy/beam
! Combined flux in latest and established models = 0.945729 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 40 components and 0.945729 Jy
! Inverting map 
! Added new window around map position (-2, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0051639 Jy
! Component: 100  -  total flux cleaned = 0.00771672 Jy
! Component: 150  -  total flux cleaned = 0.00858383 Jy
! Component: 200  -  total flux cleaned = 0.00886784 Jy
! Total flux subtracted in 200 components = 0.00886784 Jy
! Clean residual min=-0.004322 max=0.003465 Jy/beam
! Clean residual mean=0.000071 rms=0.000993 Jy/beam
! Combined flux in latest and established models = 0.954596 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 60 components and 0.954596 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.812 mas, bmaj=9.251 mas, bpa=0.7368 degrees
! Estimated noise=1065.11 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00131581 Jy
! Component: 100  -  total flux cleaned = 0.00137529 Jy
! Component: 150  -  total flux cleaned = 0.00132807 Jy
! Component: 200  -  total flux cleaned = 0.0013266 Jy
! Total flux subtracted in 200 components = 0.0013266 Jy
! Clean residual min=-0.004792 max=0.003295 Jy/beam
! Clean residual mean=0.000173 rms=0.001085 Jy/beam
! Combined flux in latest and established models = 0.955923 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.92896e-05 Jy
! Component: 100  -  total flux cleaned = -7.36817e-05 Jy
! Component: 150  -  total flux cleaned = -0.000106016 Jy
! Component: 200  -  total flux cleaned = -0.00010691 Jy
! Total flux subtracted in 200 components = -0.00010691 Jy
! Clean residual min=-0.004699 max=0.003230 Jy/beam
! Clean residual mean=0.000174 rms=0.001075 Jy/beam
! Combined flux in latest and established models = 0.955816 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 85 components and 0.955816 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.194 mas, bmaj=4.366 mas, bpa=-6.794 degrees
! Estimated noise=806.707 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -5.42158e-05 Jy
! Component: 100  -  total flux cleaned = -5.69428e-05 Jy
! Component: 150  -  total flux cleaned = 1.44701e-05 Jy
! Component: 200  -  total flux cleaned = 1.62438e-05 Jy
! Total flux subtracted in 200 components = 1.62438e-05 Jy
! Clean residual min=-0.003918 max=0.003364 Jy/beam
! Clean residual mean=0.000066 rms=0.000951 Jy/beam
! Combined flux in latest and established models = 0.955832 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 100 components and 0.955832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.178926Jy  sigma=0.001210
! Fit after  self-cal, rms=0.178898Jy  sigma=0.001210
wmodel J0956+2515_S_1999_03_08_pus_map.mod
! Writing 100 model components to file: J0956+2515_S_1999_03_08_pus_map.mod
wobs J0956+2515_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0956+2515_S_1999_03_08_pus_uvs.fits
wwins J0956+2515_S_1999_03_08_pus_map.win
! wwins: Wrote 3 windows to J0956+2515_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.00116473 Jy
! Component: 100  -  total flux cleaned = -0.00160091 Jy
! Component: 150  -  total flux cleaned = -0.00160224 Jy
! Component: 200  -  total flux cleaned = -0.0014341 Jy
! Component: 250  -  total flux cleaned = -0.00132512 Jy
! Component: 300  -  total flux cleaned = -0.00116482 Jy
! Component: 350  -  total flux cleaned = -0.00111241 Jy
! Component: 400  -  total flux cleaned = -0.00100895 Jy
! Component: 450  -  total flux cleaned = -0.000957653 Jy
! Component: 500  -  total flux cleaned = -0.000809026 Jy
! Component: 550  -  total flux cleaned = -0.000711476 Jy
! Component: 600  -  total flux cleaned = -0.000518994 Jy
! Component: 650  -  total flux cleaned = -0.000518788 Jy
! Component: 700  -  total flux cleaned = -0.000283858 Jy
! Component: 750  -  total flux cleaned = -7.40051e-06 Jy
! Component: 800  -  total flux cleaned = 0.000219096 Jy
! Component: 850  -  total flux cleaned = 0.000353464 Jy
! Component: 900  -  total flux cleaned = 0.000706821 Jy
! Component: 950  -  total flux cleaned = 0.000880819 Jy
! Component: 1000  -  total flux cleaned = 0.00118292 Jy
! Component: 1050  -  total flux cleaned = 0.00148104 Jy
! Component: 1100  -  total flux cleaned = 0.00164977 Jy
! Component: 1150  -  total flux cleaned = 0.00194265 Jy
! Component: 1200  -  total flux cleaned = 0.00223178 Jy
! Component: 1250  -  total flux cleaned = 0.00235447 Jy
! Component: 1300  -  total flux cleaned = 0.00267789 Jy
! Component: 1350  -  total flux cleaned = 0.00291764 Jy
! Component: 1400  -  total flux cleaned = 0.00311678 Jy
! Component: 1450  -  total flux cleaned = 0.00350893 Jy
! Component: 1500  -  total flux cleaned = 0.0036256 Jy
! Component: 1550  -  total flux cleaned = 0.0040112 Jy
! Component: 1600  -  total flux cleaned = 0.00420236 Jy
! Component: 1650  -  total flux cleaned = 0.00431628 Jy
! Component: 1700  -  total flux cleaned = 0.00472974 Jy
! Component: 1750  -  total flux cleaned = 0.00487864 Jy
! Component: 1800  -  total flux cleaned = 0.00513708 Jy
! Component: 1850  -  total flux cleaned = 0.0052837 Jy
! Component: 1900  -  total flux cleaned = 0.00557479 Jy
! Component: 1950  -  total flux cleaned = 0.00568289 Jy
! Component: 2000  -  total flux cleaned = 0.0058624 Jy
! Total flux subtracted in 2048 components = 0.00611133 Jy
! Clean residual min=-0.001971 max=0.001843 Jy/beam
! Clean residual mean=0.000049 rms=0.000691 Jy/beam
! Combined flux in latest and established models = 0.961944 Jy
keep
! Adding 137 model components to the UV plane model.
! The established model now contains 237 components and 0.961943 Jy
![Exited script file: muppet]
wmap "J0956+2515_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.194 x 4.366 at -6.794 degrees (North through East)
! Clean map  min=-0.003011  max=0.86383 Jy/beam
! Writing clean map to FITS file: J0956+2515_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.863825 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000689287 
device "J0956+2515_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0956+2515_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.239384 0.239384 0.478769 0.957538 1.91508 3.83015 7.6603 15.3206 30.6412 61.2824
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.863 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.194 x 4.366 at -6.794 degrees (North through East)
! Clean map  min=-0.003011  max=0.86383 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0956+2515_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0956+2515_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0956+2515_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:15:25 2008