! Started logfile: J1159+2914_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:38:04 2008
obs J1159+2914_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1159+2914_S_1999_05_10_pus_uva.fits
! AN table 1: 51 integrations on 153 of 153 possible baselines.
! AN table 2: 98 integrations on 153 of 153 possible baselines.
! AN table 3: 350 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.090403 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1159+2914
! 
! 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 1998 lines of history.
! 
! Reading 27608 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 J1159+2914_S_1999_05_10_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 695 telescope corrections were flagged in sub-array 1.
!  A total of 1482 telescope corrections were flagged in sub-array 2.
!  A total of 4563 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 695 telescope corrections were flagged in sub-array 1.
!  A total of 1482 telescope corrections were flagged in sub-array 2.
!  A total of 4562 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 695 telescope corrections were flagged in sub-array 1.
!  A total of 1482 telescope corrections were flagged in sub-array 2.
!  A total of 4562 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 695 telescope corrections were flagged in sub-array 1.
!  A total of 1482 telescope corrections were flagged in sub-array 2.
!  A total of 4651 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.748691Jy  sigma=0.004472
! Fit after  self-cal, rms=0.468169Jy  sigma=0.002373
! 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.718 mas, bmaj=3.121 mas, bpa=5.307 degrees
! Estimated noise=1312.66 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.569114 Jy
! Component: 100  -  total flux cleaned = 0.702404 Jy
! Total flux subtracted in 100 components = 0.702404 Jy
! Clean residual min=-0.019671 max=0.069594 Jy/beam
! Clean residual mean=0.000617 rms=0.007700 Jy/beam
! Combined flux in latest and established models = 0.702403 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.702403 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.405116Jy  sigma=0.002120
! Fit after  self-cal, rms=0.404515Jy  sigma=0.002119
! Inverting map 
! Added new window around map position (0, 4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0736923 Jy
! Component: 100  -  total flux cleaned = 0.119638 Jy
! Total flux subtracted in 100 components = 0.119638 Jy
! Clean residual min=-0.016539 max=0.046456 Jy/beam
! Clean residual mean=0.000469 rms=0.005799 Jy/beam
! Combined flux in latest and established models = 0.822042 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 26 components and 0.822042 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380412Jy  sigma=0.001809
! Fit after  self-cal, rms=0.378900Jy  sigma=0.001799
! Inverting map 
! Added new window around map position (3.5, 5.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0473445 Jy
! Component: 100  -  total flux cleaned = 0.0792307 Jy
! Total flux subtracted in 100 components = 0.0792307 Jy
! Clean residual min=-0.014731 max=0.032900 Jy/beam
! Clean residual mean=0.000373 rms=0.004547 Jy/beam
! Combined flux in latest and established models = 0.901273 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 49 components and 0.901273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.367251Jy  sigma=0.001637
! Fit after  self-cal, rms=0.366252Jy  sigma=0.001628
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0300503 Jy
! Component: 100  -  total flux cleaned = 0.0519336 Jy
! Total flux subtracted in 100 components = 0.0519336 Jy
! Clean residual min=-0.012309 max=0.022235 Jy/beam
! Clean residual mean=0.000309 rms=0.003814 Jy/beam
! Combined flux in latest and established models = 0.953206 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 64 components and 0.953206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360729Jy  sigma=0.001545
! Fit after  self-cal, rms=0.360343Jy  sigma=0.001542
! Inverting map 
! Added new window around map position (4, 10.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0236092 Jy
! Component: 100  -  total flux cleaned = 0.0406706 Jy
! Total flux subtracted in 100 components = 0.0406706 Jy
! Clean residual min=-0.011099 max=0.017542 Jy/beam
! Clean residual mean=0.000261 rms=0.003298 Jy/beam
! Combined flux in latest and established models = 0.993877 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 74 components and 0.993877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357137Jy  sigma=0.001491
! Fit after  self-cal, rms=0.356937Jy  sigma=0.001489
! 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.129 mas, bmaj=3.677 mas, bpa=6.999 degrees
! Estimated noise=693.901 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.0410292 Jy
! Component: 100  -  total flux cleaned = 0.0667621 Jy
! Component: 150  -  total flux cleaned = 0.0845255 Jy
! Component: 200  -  total flux cleaned = 0.0969499 Jy
! Total flux subtracted in 200 components = 0.0969499 Jy
! Clean residual min=-0.011047 max=0.018904 Jy/beam
! Clean residual mean=0.002088 rms=0.003944 Jy/beam
! Combined flux in latest and established models = 1.09083 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 108 components and 1.09083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352638Jy  sigma=0.001420
! Fit after  self-cal, rms=0.352254Jy  sigma=0.001415
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        0.94     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.06     NY        0.97     
!   ON        1.09     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        0.92     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        0.94     
!   ON        0.91     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.96     GC        1.02     HH        1.00*    
!   HN        1.00     KK        0.98     KP        0.95     LA        0.99     
!   MC        1.00     MK        0.98     NL        1.01     NY        0.99     
!   ON        0.95     OV        1.00     PT        0.98     SC        1.04     
!   WF        1.08     WZ        0.96     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        0.97     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.08     NY        0.96     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        0.90     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.97     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        0.91     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.08     WZ        1.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.03     GC        0.99     HH        1.00*    
!   HN        0.97     KK        0.99     KP        1.01     LA        0.97     
!   MC        1.01     MK        1.03     NL        1.05     NY        0.99     
!   ON        0.99     OV        0.97     PT        0.97     SC        1.11     
!   WF        1.00     WZ        0.99     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        0.96     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.06     NY        1.04     
!   ON        1.10     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        0.91     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.93     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.94     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        0.94     WZ        1.00*    
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.07     FD        0.99     GC        0.99     HH        1.00*    
!   HN        0.99     KK        0.95     KP        0.99     LA        0.99     
!   MC        0.92     MK        0.96     NL        1.04     NY        1.04     
!   ON        0.97     OV        0.96     PT        0.94     SC        1.09     
!   WF        1.06     WZ        0.93     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.00*    
!   HN        0.95     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.07     NY        1.02     
!   ON        1.04     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        0.89     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.01     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.90     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        0.96     WZ        1.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.98     GC        0.98     HH        1.00*    
!   HN        1.00     KK        0.95     KP        0.98     LA        1.00     
!   MC        0.96     MK        0.97     NL        1.03     NY        1.03     
!   ON        1.02     OV        0.94     PT        1.01     SC        1.09     
!   WF        1.05     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.352254Jy  sigma=0.001415
! Fit after  self-cal, rms=0.348662Jy  sigma=0.001388
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.162 mas, bmaj=3.692 mas, bpa=8.235 degrees
! Estimated noise=693.768 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.00561559 Jy
! Component: 100  -  total flux cleaned = 0.00561427 Jy
! Component: 150  -  total flux cleaned = 0.0057614 Jy
! Component: 200  -  total flux cleaned = 0.00576893 Jy
! Total flux subtracted in 200 components = 0.00576893 Jy
! Clean residual min=-0.006305 max=0.011042 Jy/beam
! Clean residual mean=0.001551 rms=0.002411 Jy/beam
! Combined flux in latest and established models = 1.0966 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 124 components and 1.0966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348449Jy  sigma=0.001386
! Fit after  self-cal, rms=0.348540Jy  sigma=0.001386
! 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.348540Jy  sigma=0.001386
! Fit after  self-cal, rms=0.349067Jy  sigma=0.001371
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.16 mas, bmaj=3.688 mas, bpa=7.932 degrees
! Estimated noise=693.093 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00380109 Jy
! Component: 100  -  total flux cleaned = 0.00432342 Jy
! Component: 150  -  total flux cleaned = 0.00493964 Jy
! Component: 200  -  total flux cleaned = 0.00510682 Jy
! Total flux subtracted in 200 components = 0.00510682 Jy
! Clean residual min=-0.004870 max=0.010027 Jy/beam
! Clean residual mean=0.001501 rms=0.001945 Jy/beam
! Combined flux in latest and established models = 1.1017 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 131 components and 1.1017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348951Jy  sigma=0.001370
! Fit after  self-cal, rms=0.349099Jy  sigma=0.001369
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 (7, 24).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00962049 Jy
! Component: 100  -  total flux cleaned = 0.0150149 Jy
! Component: 150  -  total flux cleaned = 0.0172065 Jy
! Component: 200  -  total flux cleaned = 0.0176747 Jy
! Total flux subtracted in 200 components = 0.0176747 Jy
! Clean residual min=-0.004633 max=0.007681 Jy/beam
! Clean residual mean=0.001200 rms=0.001666 Jy/beam
! Combined flux in latest and established models = 1.11938 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 153 components and 1.11938 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348762Jy  sigma=0.001367
! Fit after  self-cal, rms=0.348744Jy  sigma=0.001366
! Inverting map 
! Added new window around map position (-1, 32).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00703163 Jy
! Component: 100  -  total flux cleaned = 0.00999156 Jy
! Component: 150  -  total flux cleaned = 0.0113265 Jy
! Component: 200  -  total flux cleaned = 0.0117436 Jy
! Total flux subtracted in 200 components = 0.0117436 Jy
! Clean residual min=-0.004345 max=0.006818 Jy/beam
! Clean residual mean=0.000992 rms=0.001520 Jy/beam
! Combined flux in latest and established models = 1.13112 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 174 components and 1.13112 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348543Jy  sigma=0.001365
! Fit after  self-cal, rms=0.348542Jy  sigma=0.001364
! Inverting map 
! Added new window around map position (-28, 40).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00600225 Jy
! Component: 100  -  total flux cleaned = 0.00943716 Jy
! Component: 150  -  total flux cleaned = 0.0116308 Jy
! Component: 200  -  total flux cleaned = 0.0126416 Jy
! Total flux subtracted in 200 components = 0.0126416 Jy
! Clean residual min=-0.004352 max=0.005655 Jy/beam
! Clean residual mean=0.000777 rms=0.001377 Jy/beam
! Combined flux in latest and established models = 1.14376 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 194 components and 1.14376 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348368Jy  sigma=0.001363
! Fit after  self-cal, rms=0.348382Jy  sigma=0.001363
! 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.348382Jy  sigma=0.001363
! Fit after  self-cal, rms=0.348268Jy  sigma=0.001362
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.158 mas, bmaj=3.686 mas, bpa=7.862 degrees
! Estimated noise=692.497 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00404073 Jy
! Component: 100  -  total flux cleaned = 0.00664598 Jy
! Component: 150  -  total flux cleaned = 0.00785889 Jy
! Component: 200  -  total flux cleaned = 0.00850022 Jy
! Total flux subtracted in 200 components = 0.00850022 Jy
! Clean residual min=-0.003842 max=0.005785 Jy/beam
! Clean residual mean=0.000911 rms=0.001332 Jy/beam
! Combined flux in latest and established models = 1.15226 Jy
selfcal
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 204 components and 1.15226 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348160Jy  sigma=0.001362
! Fit after  self-cal, rms=0.348186Jy  sigma=0.001362
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 (-31, -35).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00585871 Jy
! Component: 100  -  total flux cleaned = 0.00753873 Jy
! Component: 150  -  total flux cleaned = 0.00863746 Jy
! Component: 200  -  total flux cleaned = 0.00950471 Jy
! Total flux subtracted in 200 components = 0.0095047 Jy
! Clean residual min=-0.003459 max=0.005584 Jy/beam
! Clean residual mean=0.000749 rms=0.001253 Jy/beam
! Combined flux in latest and established models = 1.16177 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 220 components and 1.16177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347990Jy  sigma=0.001361
! Fit after  self-cal, rms=0.347982Jy  sigma=0.001361
! Inverting map 
! Added new window around map position (40.5, 21).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00501668 Jy
! Component: 100  -  total flux cleaned = 0.00767037 Jy
! Component: 150  -  total flux cleaned = 0.00872469 Jy
! Component: 200  -  total flux cleaned = 0.00968595 Jy
! Total flux subtracted in 200 components = 0.00968595 Jy
! Clean residual min=-0.004056 max=0.005108 Jy/beam
! Clean residual mean=0.000573 rms=0.001217 Jy/beam
! Combined flux in latest and established models = 1.17145 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 234 components and 1.17145 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347837Jy  sigma=0.001360
! Fit after  self-cal, rms=0.347833Jy  sigma=0.001360
! 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.347833Jy  sigma=0.001360
! Fit after  self-cal, rms=0.347632Jy  sigma=0.001360
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.718 mas, bmaj=10.93 mas, bpa=-79.9 degrees
! Estimated noise=897.991 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00580554 Jy
! Component: 100  -  total flux cleaned = 0.00965893 Jy
! Component: 150  -  total flux cleaned = 0.0116033 Jy
! Component: 200  -  total flux cleaned = 0.0128633 Jy
! Total flux subtracted in 200 components = 0.0128633 Jy
! Clean residual min=-0.003598 max=0.006039 Jy/beam
! Clean residual mean=0.001267 rms=0.001613 Jy/beam
! Combined flux in latest and established models = 1.18432 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 243 components and 1.18432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347553Jy  sigma=0.001360
! Fit after  self-cal, rms=0.347578Jy  sigma=0.001360
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.00106556 Jy
! Component: 100  -  total flux cleaned = 0.00210786 Jy
! Component: 150  -  total flux cleaned = 0.00247412 Jy
! Component: 200  -  total flux cleaned = 0.00266806 Jy
! Total flux subtracted in 200 components = 0.00266806 Jy
! Clean residual min=-0.003524 max=0.005729 Jy/beam
! Clean residual mean=0.001154 rms=0.001563 Jy/beam
! Combined flux in latest and established models = 1.18699 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 253 components and 1.18699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347560Jy  sigma=0.001360
! Fit after  self-cal, rms=0.347566Jy  sigma=0.001360
! 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.155 mas, bmaj=3.686 mas, bpa=7.985 degrees
! Estimated noise=692.356 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.155 x 3.686 at 7.985 degrees (North through East)
! Clean map  min=-0.0035441  max=0.71099 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.347566Jy  sigma=0.001360
! Fit after  self-cal, rms=0.636726Jy  sigma=0.001118
! Inverting map and beam 
! Estimated beam: bmin=3.155 mas, bmaj=3.688 mas, bpa=7.923 degrees
! Estimated noise=694.131 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00270376 Jy
! Component: 100  -  total flux cleaned = -0.00362583 Jy
! Component: 150  -  total flux cleaned = -0.00396112 Jy
! Component: 200  -  total flux cleaned = -0.00434884 Jy
! Total flux subtracted in 200 components = -0.00434884 Jy
! Clean residual min=-0.003138 max=0.004220 Jy/beam
! Clean residual mean=0.000140 rms=0.000936 Jy/beam
! Combined flux in latest and established models = 1.18264 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 274 components and 1.18264 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.636685Jy  sigma=0.001118
! Fit after  self-cal, rms=0.636694Jy  sigma=0.001118
! Inverting map 
! Added new window around map position (-18, 55).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00249121 Jy
! Component: 100  -  total flux cleaned = 0.00261561 Jy
! Component: 150  -  total flux cleaned = 0.00238453 Jy
! Component: 200  -  total flux cleaned = 0.00201801 Jy
! Total flux subtracted in 200 components = 0.00201801 Jy
! Clean residual min=-0.003340 max=0.003786 Jy/beam
! Clean residual mean=0.000096 rms=0.000879 Jy/beam
! Combined flux in latest and established models = 1.18465 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 292 components and 1.18465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.636591Jy  sigma=0.001117
! Fit after  self-cal, rms=0.636585Jy  sigma=0.001117
! Inverting map 
! Added new window around map position (9.5, 9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00287296 Jy
! Component: 100  -  total flux cleaned = 0.00296668 Jy
! Component: 150  -  total flux cleaned = 0.00280219 Jy
! Component: 200  -  total flux cleaned = 0.00256624 Jy
! Total flux subtracted in 200 components = 0.00256624 Jy
! Clean residual min=-0.003289 max=0.003523 Jy/beam
! Clean residual mean=0.000061 rms=0.000851 Jy/beam
! Combined flux in latest and established models = 1.18722 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 310 components and 1.18722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.636550Jy  sigma=0.001116
! Fit after  self-cal, rms=0.636543Jy  sigma=0.001116
! 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.636543Jy  sigma=0.001116
! Fit after  self-cal, rms=0.902878Jy  sigma=0.001116
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.736 mas, bmaj=3.128 mas, bpa=3.044 degrees
! Estimated noise=1302.05 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.563478 Jy
! Component: 100  -  total flux cleaned = 0.713356 Jy
! Component: 150  -  total flux cleaned = 0.798452 Jy
! Component: 200  -  total flux cleaned = 0.856806 Jy
! Total flux subtracted in 200 components = 0.856806 Jy
! Clean residual min=-0.011444 max=0.032893 Jy/beam
! Clean residual mean=0.000390 rms=0.004637 Jy/beam
! Combined flux in latest and established models = 0.856807 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 32 model components to the UV plane model.
! The established model now contains 32 components and 0.856807 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.154 mas, bmaj=3.686 mas, bpa=7.994 degrees
! Estimated noise=694.516 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.0901479 Jy
! Component: 100  -  total flux cleaned = 0.144518 Jy
! Component: 150  -  total flux cleaned = 0.180389 Jy
! Component: 200  -  total flux cleaned = 0.20521 Jy
! Total flux subtracted in 200 components = 0.20521 Jy
! Clean residual min=-0.005282 max=0.015901 Jy/beam
! Clean residual mean=0.002232 rms=0.003065 Jy/beam
! Combined flux in latest and established models = 1.06202 Jy
! Adding 91 model components to the UV plane model.
! The established model now contains 110 components and 1.06202 Jy
! Inverting map 
! Added new window around map position (-1.5, 9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0186803 Jy
! Component: 100  -  total flux cleaned = 0.0329275 Jy
! Component: 150  -  total flux cleaned = 0.0441966 Jy
! Component: 200  -  total flux cleaned = 0.0533694 Jy
! Total flux subtracted in 200 components = 0.0533694 Jy
! Clean residual min=-0.003450 max=0.006996 Jy/beam
! Clean residual mean=0.001318 rms=0.001593 Jy/beam
! Combined flux in latest and established models = 1.11538 Jy
! Adding 63 model components to the UV plane model.
! The established model now contains 164 components and 1.11538 Jy
! Inverting map 
! Added new window around map position (18.5, 21).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00799441 Jy
! Component: 100  -  total flux cleaned = 0.0147424 Jy
! Component: 150  -  total flux cleaned = 0.0206887 Jy
! Component: 200  -  total flux cleaned = 0.0259689 Jy
! Total flux subtracted in 200 components = 0.0259689 Jy
! Clean residual min=-0.003284 max=0.004901 Jy/beam
! Clean residual mean=0.000864 rms=0.001208 Jy/beam
! Combined flux in latest and established models = 1.14135 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 200 components and 1.14135 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.711 mas, bmaj=10.94 mas, bpa=-79.85 degrees
! Estimated noise=901.316 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00897947 Jy
! Component: 100  -  total flux cleaned = 0.0155476 Jy
! Component: 150  -  total flux cleaned = 0.0209004 Jy
! Component: 200  -  total flux cleaned = 0.0253145 Jy
! Total flux subtracted in 200 components = 0.0253145 Jy
! Clean residual min=-0.003994 max=0.005513 Jy/beam
! Clean residual mean=0.001052 rms=0.001380 Jy/beam
! Combined flux in latest and established models = 1.16667 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.00368938 Jy
! Component: 100  -  total flux cleaned = 0.0067937 Jy
! Component: 150  -  total flux cleaned = 0.00941713 Jy
! Component: 200  -  total flux cleaned = 0.01164 Jy
! Total flux subtracted in 200 components = 0.01164 Jy
! Clean residual min=-0.003758 max=0.004277 Jy/beam
! Clean residual mean=0.000536 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 1.17831 Jy
! Adding 93 model components to the UV plane model.
! The established model now contains 281 components and 1.17831 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.154 mas, bmaj=3.686 mas, bpa=7.994 degrees
! Estimated noise=694.516 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000402592 Jy
! Component: 100  -  total flux cleaned = 0.000394314 Jy
! Component: 150  -  total flux cleaned = 0.000709881 Jy
! Component: 200  -  total flux cleaned = 0.000905166 Jy
! Total flux subtracted in 200 components = 0.000905166 Jy
! Clean residual min=-0.002849 max=0.003743 Jy/beam
! Clean residual mean=0.000207 rms=0.000890 Jy/beam
! Combined flux in latest and established models = 1.17921 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 303 components and 1.17921 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.903015Jy  sigma=0.001116
! Fit after  self-cal, rms=0.902898Jy  sigma=0.001115
wmodel J1159+2914_S_1999_05_10_pus_map.mod
! Writing 303 model components to file: J1159+2914_S_1999_05_10_pus_map.mod
wobs J1159+2914_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1159+2914_S_1999_05_10_pus_uvs.fits
wwins J1159+2914_S_1999_05_10_pus_map.win
! wwins: Wrote 13 windows to J1159+2914_S_1999_05_10_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.00167594 Jy
! Component: 100  -  total flux cleaned = 0.00314538 Jy
! Component: 150  -  total flux cleaned = 0.00434708 Jy
! Component: 200  -  total flux cleaned = 0.00496691 Jy
! Component: 250  -  total flux cleaned = 0.00551661 Jy
! Component: 300  -  total flux cleaned = 0.00600294 Jy
! Component: 350  -  total flux cleaned = 0.00647595 Jy
! Component: 400  -  total flux cleaned = 0.00689227 Jy
! Component: 450  -  total flux cleaned = 0.00734529 Jy
! Component: 500  -  total flux cleaned = 0.0077001 Jy
! Component: 550  -  total flux cleaned = 0.00804858 Jy
! Component: 600  -  total flux cleaned = 0.00834822 Jy
! Component: 650  -  total flux cleaned = 0.00864215 Jy
! Component: 700  -  total flux cleaned = 0.0089309 Jy
! Component: 750  -  total flux cleaned = 0.00917491 Jy
! Component: 800  -  total flux cleaned = 0.00937568 Jy
! Component: 850  -  total flux cleaned = 0.00965264 Jy
! Component: 900  -  total flux cleaned = 0.00980905 Jy
! Component: 950  -  total flux cleaned = 0.0100017 Jy
! Component: 1000  -  total flux cleaned = 0.0101159 Jy
! Component: 1050  -  total flux cleaned = 0.0102665 Jy
! Component: 1100  -  total flux cleaned = 0.0104155 Jy
! Component: 1150  -  total flux cleaned = 0.0104894 Jy
! Component: 1200  -  total flux cleaned = 0.0106355 Jy
! Component: 1250  -  total flux cleaned = 0.010708 Jy
! Component: 1300  -  total flux cleaned = 0.01078 Jy
! Component: 1350  -  total flux cleaned = 0.0108511 Jy
! Component: 1400  -  total flux cleaned = 0.0109922 Jy
! Component: 1450  -  total flux cleaned = 0.0109921 Jy
! Component: 1500  -  total flux cleaned = 0.0110963 Jy
! Component: 1550  -  total flux cleaned = 0.0110965 Jy
! Component: 1600  -  total flux cleaned = 0.0111651 Jy
! Component: 1650  -  total flux cleaned = 0.0112332 Jy
! Component: 1700  -  total flux cleaned = 0.0113006 Jy
! Component: 1750  -  total flux cleaned = 0.0113339 Jy
! Component: 1800  -  total flux cleaned = 0.011334 Jy
! Component: 1850  -  total flux cleaned = 0.011433 Jy
! Component: 1900  -  total flux cleaned = 0.0114656 Jy
! Component: 1950  -  total flux cleaned = 0.0114332 Jy
! Component: 2000  -  total flux cleaned = 0.0114983 Jy
! Total flux subtracted in 2048 components = 0.0114983 Jy
! Clean residual min=-0.001725 max=0.002116 Jy/beam
! Clean residual mean=0.000006 rms=0.000621 Jy/beam
! Combined flux in latest and established models = 1.19071 Jy
keep
! Adding 140 model components to the UV plane model.
! The established model now contains 442 components and 1.19071 Jy
![Exited script file: muppet]
wmap "J1159+2914_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.154 x 3.686 at 7.994 degrees (North through East)
! Clean map  min=-0.0026273  max=0.70891 Jy/beam
! Writing clean map to FITS file: J1159+2914_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.708914 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000615339 
device "J1159+2914_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1159+2914_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.2604 0.2604 0.520801 1.0416 2.0832 4.16641 8.33282 16.6656 33.3313 66.6625
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.708 
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.154 x 3.686 at 7.994 degrees (North through East)
! Clean map  min=-0.0026273  max=0.70891 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1159+2914_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1159+2914_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1159+2914_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:38:26 2008