! Started logfile: J0854+2006_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:10:44 2008
obs J0854+2006_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0854+2006_S_1999_03_08_pus_uva.fits
! AN table 1: 76 integrations on 190 of 190 possible baselines.
! AN table 2: 180 integrations on 190 of 190 possible baselines.
! AN table 3: 254 integrations on 190 of 190 possible baselines.
! AN table 4: 88 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.172188 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0854+2006
! 
! 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 78256 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 J0854+2006_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 1158 telescope corrections were flagged in sub-array 1.
!  A total of 1765 telescope corrections were flagged in sub-array 2.
!  A total of 3460 telescope corrections were flagged in sub-array 3.
!  A total of 1548 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1158 telescope corrections were flagged in sub-array 1.
!  A total of 1765 telescope corrections were flagged in sub-array 2.
!  A total of 3460 telescope corrections were flagged in sub-array 3.
!  A total of 1548 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1149 telescope corrections were flagged in sub-array 1.
!  A total of 1765 telescope corrections were flagged in sub-array 2.
!  A total of 3354 telescope corrections were flagged in sub-array 3.
!  A total of 1492 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1149 telescope corrections were flagged in sub-array 1.
!  A total of 1765 telescope corrections were flagged in sub-array 2.
!  A total of 3357 telescope corrections were flagged in sub-array 3.
!  A total of 1491 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.943701Jy  sigma=0.006054
! Fit after  self-cal, rms=0.461513Jy  sigma=0.003007
! 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.072 mas, bmaj=3.529 mas, bpa=-2.951 degrees
! Estimated noise=718.835 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.849148 Jy
! Component: 100  -  total flux cleaned = 1.07676 Jy
! Total flux subtracted in 100 components = 1.07676 Jy
! Clean residual min=-0.021735 max=0.101603 Jy/beam
! Clean residual mean=0.000188 rms=0.006578 Jy/beam
! Combined flux in latest and established models = 1.07676 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.07676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434178Jy  sigma=0.002687
! Fit after  self-cal, rms=0.433576Jy  sigma=0.002685
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.112326 Jy
! Component: 100  -  total flux cleaned = 0.170546 Jy
! Total flux subtracted in 100 components = 0.170546 Jy
! Clean residual min=-0.019706 max=0.032537 Jy/beam
! Clean residual mean=0.000093 rms=0.004649 Jy/beam
! Combined flux in latest and established models = 1.24731 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 11 components and 1.24731 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.396815Jy  sigma=0.002139
! Fit after  self-cal, rms=0.396343Jy  sigma=0.002136
! Inverting map 
! Added new window around map position (-2.5, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0395384 Jy
! Component: 100  -  total flux cleaned = 0.0673092 Jy
! Total flux subtracted in 100 components = 0.0673091 Jy
! Clean residual min=-0.019611 max=0.027907 Jy/beam
! Clean residual mean=0.000056 rms=0.004303 Jy/beam
! Combined flux in latest and established models = 1.31462 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 24 components and 1.31462 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391174Jy  sigma=0.002034
! Fit after  self-cal, rms=0.390970Jy  sigma=0.002032
! 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.61 mas, bmaj=4.792 mas, bpa=-7.91 degrees
! Estimated noise=344.612 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.0394371 Jy
! Component: 100  -  total flux cleaned = 0.0594736 Jy
! Component: 150  -  total flux cleaned = 0.0716337 Jy
! Component: 200  -  total flux cleaned = 0.079409 Jy
! Total flux subtracted in 200 components = 0.079409 Jy
! Clean residual min=-0.015023 max=0.016676 Jy/beam
! Clean residual mean=-0.000370 rms=0.003827 Jy/beam
! Combined flux in latest and established models = 1.39402 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 39 components and 1.39402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.388701Jy  sigma=0.001963
! Fit after  self-cal, rms=0.388551Jy  sigma=0.001962
! 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.10     GC        1.00*    GG        1.00*    
!   HN        1.04     KP        1.00*    LA        1.09     NL        0.96     
!   OV        1.00*    PT        1.00*    SC        1.21     WF        0.99     
!   GN        0.98     HH        1.00*    KK        1.00*    MC        1.31     
!   MK        1.00*    NY        1.03     ON        0.94     WZ        0.85     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.97     GC        0.94     GG        1.00*    
!   HN        0.98     KP        0.97     LA        0.97     NL        1.04     
!   OV        0.98     PT        1.01     SC        0.97     WF        1.00     
!   GN        0.96     HH        1.00*    KK        1.03     MC        1.00*    
!   MK        0.93     NY        1.04     ON        1.00*    WZ        1.00*    
! 
!  A total of 138 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        1.01     GG        1.00*    
!   HN        0.99     KP        0.99     LA        0.98     NL        0.96     
!   OV        0.98     PT        1.02     SC        0.98     WF        0.95     
!   GN        0.95     HH        1.00*    KK        1.15     MC        1.07     
!   MK        0.98     NY        1.01     ON        0.99     WZ        0.94     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.14     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.06     WF        1.14     
!   GN        1.52     HH        1.00*    KK        1.00*    MC        0.95     
!   MK        1.00*    NY        0.98     ON        0.98     WZ        0.85     
! 
! 
! 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.16     GC        1.00*    GG        1.00*    
!   HN        0.95     KP        1.00*    LA        1.06     NL        0.94     
!   OV        1.00*    PT        1.00*    SC        1.21     WF        1.01     
!   GN        0.98     HH        1.00*    KK        1.00*    MC        0.86     
!   MK        1.00*    NY        1.00     ON        0.97     WZ        0.88     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.01     GC        0.97     GG        1.00*    
!   HN        0.95     KP        0.96     LA        0.95     NL        1.07     
!   OV        0.93     PT        0.98     SC        1.02     WF        0.99     
!   GN        0.96     HH        1.00*    KK        0.99     MC        1.00*    
!   MK        0.96     NY        1.03     ON        1.00*    WZ        1.00*    
! 
!  A total of 138 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.01     GC        1.03     GG        1.00*    
!   HN        0.96     KP        0.99     LA        0.97     NL        1.21     
!   OV        0.96     PT        0.98     SC        1.02     WF        0.96     
!   GN        0.95     HH        1.00*    KK        1.12     MC        1.47     
!   MK        1.04     NY        1.01     ON        1.03     WZ        0.95     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        0.98     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.08     WF        1.17     
!   GN        1.52     HH        1.00*    KK        1.00*    MC        0.94     
!   MK        1.00*    NY        0.99     ON        1.00     WZ        0.88     
! 
! 
! 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.13     GC        1.00*    GG        1.00*    
!   HN        1.22     KP        1.00*    LA        1.06     NL        0.96     
!   OV        1.00*    PT        1.00*    SC        1.18     WF        1.02     
!   GN        0.99     HH        0.83     KK        1.00*    MC        1.81     
!   MK        1.00*    NY        1.01     ON        0.96     WZ        0.95     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        0.96     GG        1.00*    
!   HN        1.22     KP        0.96     LA        0.97     NL        1.04     
!   OV        0.96     PT        0.97     SC        0.99     WF        1.01     
!   GN        0.96     HH        1.00*    KK        1.00     MC        1.00*    
!   MK        0.95     NY        1.06     ON        1.00*    WZ        1.00*    
! 
!  A total of 156 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00     GC        1.03     GG        1.00*    
!   HN        1.29     KP        0.99     LA        0.99     NL        0.99     
!   OV        1.00     PT        0.96     SC        1.10     WF        1.27     
!   GN        1.11     HH        0.85     KK        1.18     MC        1.20     
!   MK        1.03     NY        1.00     ON        1.01     WZ        0.96     
! 
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.30     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.07     WF        1.14     
!   GN        1.48     HH        0.81     KK        1.00*    MC        0.75     
!   MK        1.00*    NY        1.02     ON        0.99     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.15     GC        1.00*    GG        1.00*    
!   HN        1.21     KP        1.00*    LA        1.11     NL        0.98     
!   OV        1.00*    PT        1.00*    SC        1.12     WF        1.01     
!   GN        0.99     HH        0.83     KK        1.00*    MC        1.83     
!   MK        1.00*    NY        1.01     ON        0.98     WZ        0.99     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.98     GC        0.98     GG        1.00*    
!   HN        1.15     KP        0.97     LA        0.97     NL        1.06     
!   OV        0.96     PT        0.98     SC        0.99     WF        0.99     
!   GN        0.95     HH        1.00*    KK        1.02     MC        1.00*    
!   MK        0.97     NY        1.05     ON        1.00*    WZ        1.00*    
! 
!  A total of 156 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        1.03     GG        1.00*    
!   HN        1.16     KP        1.00     LA        0.98     NL        1.16     
!   OV        1.00     PT        0.95     SC        0.99     WF        0.98     
!   GN        0.95     HH        0.91     KK        1.17     MC        1.41     
!   MK        1.06     NY        1.01     ON        0.97     WZ        0.95     
! 
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.22     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.10     WF        1.11     
!   GN        1.51     HH        0.83     KK        1.00*    MC        1.13     
!   MK        1.00*    NY        0.97     ON        1.02     WZ        0.94     
! 
! 
! Fit before self-cal, rms=0.388551Jy  sigma=0.001962
! Fit after  self-cal, rms=0.394125Jy  sigma=0.001729
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.627 mas, bmaj=4.789 mas, bpa=-7.792 degrees
! Estimated noise=344.676 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.00392715 Jy
! Component: 100  -  total flux cleaned = 0.00288356 Jy
! Component: 150  -  total flux cleaned = 0.00253212 Jy
! Component: 200  -  total flux cleaned = 0.00232527 Jy
! Total flux subtracted in 200 components = 0.00232527 Jy
! Clean residual min=-0.005937 max=0.007149 Jy/beam
! Clean residual mean=0.000127 rms=0.001570 Jy/beam
! Combined flux in latest and established models = 1.39635 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 46 components and 1.39635 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393944Jy  sigma=0.001727
! Fit after  self-cal, rms=0.393996Jy  sigma=0.001726
! 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.393996Jy  sigma=0.001726
! Fit after  self-cal, rms=0.486679Jy  sigma=0.001632
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.636 mas, bmaj=4.784 mas, bpa=-7.805 degrees
! Estimated noise=345.771 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000684072 Jy
! Component: 100  -  total flux cleaned = 0.000848241 Jy
! Component: 150  -  total flux cleaned = 0.000714004 Jy
! Component: 200  -  total flux cleaned = 0.000484343 Jy
! Total flux subtracted in 200 components = 0.000484343 Jy
! Clean residual min=-0.004100 max=0.009470 Jy/beam
! Clean residual mean=0.000091 rms=0.001123 Jy/beam
! Combined flux in latest and established models = 1.39683 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 55 components and 1.39683 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.486473Jy  sigma=0.001630
! Fit after  self-cal, rms=0.486606Jy  sigma=0.001630
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-6.5, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00743191 Jy
! Component: 100  -  total flux cleaned = 0.00852866 Jy
! Component: 150  -  total flux cleaned = 0.00914807 Jy
! Component: 200  -  total flux cleaned = 0.00955085 Jy
! Total flux subtracted in 200 components = 0.00955085 Jy
! Clean residual min=-0.003615 max=0.003813 Jy/beam
! Clean residual mean=0.000034 rms=0.000995 Jy/beam
! Combined flux in latest and established models = 1.40639 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 72 components and 1.40639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.486327Jy  sigma=0.001628
! Fit after  self-cal, rms=0.486307Jy  sigma=0.001627
! 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.486307Jy  sigma=0.001627
! Fit after  self-cal, rms=0.728745Jy  sigma=0.001610
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.637 mas, bmaj=4.788 mas, bpa=-7.839 degrees
! Estimated noise=346.003 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00280072 Jy
! Component: 100  -  total flux cleaned = 0.00313597 Jy
! Component: 150  -  total flux cleaned = 0.00332638 Jy
! Component: 200  -  total flux cleaned = 0.00349078 Jy
! Total flux subtracted in 200 components = 0.00349078 Jy
! Clean residual min=-0.003183 max=0.003709 Jy/beam
! Clean residual mean=0.000046 rms=0.000859 Jy/beam
! Combined flux in latest and established models = 1.40988 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 83 components and 1.40988 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.728603Jy  sigma=0.001610
! Fit after  self-cal, rms=0.728824Jy  sigma=0.001609
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 (-14, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00342193 Jy
! Component: 100  -  total flux cleaned = 0.00432373 Jy
! Component: 150  -  total flux cleaned = 0.0045523 Jy
! Component: 200  -  total flux cleaned = 0.00475691 Jy
! Total flux subtracted in 200 components = 0.00475691 Jy
! Clean residual min=-0.002948 max=0.003015 Jy/beam
! Clean residual mean=0.000017 rms=0.000811 Jy/beam
! Combined flux in latest and established models = 1.41463 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 101 components and 1.41463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.728714Jy  sigma=0.001609
! Fit after  self-cal, rms=0.728716Jy  sigma=0.001609
! 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.728716Jy  sigma=0.001609
! Fit after  self-cal, rms=0.731296Jy  sigma=0.001608
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.094 mas, bmaj=9.116 mas, bpa=2.121 degrees
! Estimated noise=468.412 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00335872 Jy
! Component: 100  -  total flux cleaned = 0.00418196 Jy
! Component: 150  -  total flux cleaned = 0.00432065 Jy
! Component: 200  -  total flux cleaned = 0.00442869 Jy
! Total flux subtracted in 200 components = 0.00442869 Jy
! Clean residual min=-0.004062 max=0.003843 Jy/beam
! Clean residual mean=0.000020 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 1.41906 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 126 components and 1.41906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.731269Jy  sigma=0.001608
! Fit after  self-cal, rms=0.731273Jy  sigma=0.001608
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.000641368 Jy
! Component: 100  -  total flux cleaned = 0.00067559 Jy
! Component: 150  -  total flux cleaned = 0.000677042 Jy
! Component: 200  -  total flux cleaned = 0.000635364 Jy
! Total flux subtracted in 200 components = 0.000635364 Jy
! Clean residual min=-0.004181 max=0.003838 Jy/beam
! Clean residual mean=0.000011 rms=0.001173 Jy/beam
! Combined flux in latest and established models = 1.4197 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 136 components and 1.4197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.731265Jy  sigma=0.001608
! Fit after  self-cal, rms=0.731260Jy  sigma=0.001608
! 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.638 mas, bmaj=4.789 mas, bpa=-7.862 degrees
! Estimated noise=346.233 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.638 x 4.789 at -7.862 degrees (North through East)
! Clean map  min=-0.0026365  max=1.1684 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.731260Jy  sigma=0.001608
! Fit after  self-cal, rms=1.723017Jy  sigma=0.001296
! Inverting map and beam 
! Estimated beam: bmin=2.636 mas, bmaj=4.792 mas, bpa=-7.922 degrees
! Estimated noise=345.967 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00267571 Jy
! Component: 100  -  total flux cleaned = -0.00314237 Jy
! Component: 150  -  total flux cleaned = -0.00334655 Jy
! Component: 200  -  total flux cleaned = -0.00347224 Jy
! Total flux subtracted in 200 components = -0.00347224 Jy
! Clean residual min=-0.002271 max=0.002355 Jy/beam
! Clean residual mean=0.000042 rms=0.000630 Jy/beam
! Combined flux in latest and established models = 1.41623 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 144 components and 1.41623 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.723005Jy  sigma=0.001296
! Fit after  self-cal, rms=1.722973Jy  sigma=0.001296
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000368124 Jy
! Component: 100  -  total flux cleaned = -0.000424412 Jy
! Component: 150  -  total flux cleaned = -0.000581735 Jy
! Component: 200  -  total flux cleaned = -0.00067951 Jy
! Total flux subtracted in 200 components = -0.00067951 Jy
! Clean residual min=-0.002190 max=0.002283 Jy/beam
! Clean residual mean=0.000046 rms=0.000621 Jy/beam
! Combined flux in latest and established models = 1.41555 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 147 components and 1.41555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.722971Jy  sigma=0.001296
! Fit after  self-cal, rms=1.722949Jy  sigma=0.001296
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.722949Jy  sigma=0.001296
! Fit after  self-cal, rms=2.015720Jy  sigma=0.001295
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.102 mas, bmaj=3.487 mas, bpa=-1.907 degrees
! Estimated noise=740.159 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.873067 Jy
! Component: 100  -  total flux cleaned = 1.09994 Jy
! Component: 150  -  total flux cleaned = 1.20566 Jy
! Component: 200  -  total flux cleaned = 1.25937 Jy
! Total flux subtracted in 200 components = 1.25937 Jy
! Clean residual min=-0.006906 max=0.025881 Jy/beam
! Clean residual mean=0.000090 rms=0.002284 Jy/beam
! Combined flux in latest and established models = 1.25937 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 1.25937 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.637 mas, bmaj=4.794 mas, bpa=-7.943 degrees
! Estimated noise=345.856 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.0513904 Jy
! Component: 100  -  total flux cleaned = 0.0800972 Jy
! Component: 150  -  total flux cleaned = 0.0986029 Jy
! Component: 200  -  total flux cleaned = 0.111361 Jy
! Total flux subtracted in 200 components = 0.111361 Jy
! Clean residual min=-0.002967 max=0.007139 Jy/beam
! Clean residual mean=0.000301 rms=0.001207 Jy/beam
! Combined flux in latest and established models = 1.37073 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 68 components and 1.37073 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0092345 Jy
! Component: 100  -  total flux cleaned = 0.0160985 Jy
! Component: 150  -  total flux cleaned = 0.0214244 Jy
! Component: 200  -  total flux cleaned = 0.0256731 Jy
! Total flux subtracted in 200 components = 0.0256731 Jy
! Clean residual min=-0.002328 max=0.002776 Jy/beam
! Clean residual mean=0.000152 rms=0.000729 Jy/beam
! Combined flux in latest and established models = 1.3964 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 99 components and 1.3964 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.098 mas, bmaj=9.119 mas, bpa=2.111 degrees
! Estimated noise=467.476 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00667462 Jy
! Component: 100  -  total flux cleaned = 0.0105346 Jy
! Component: 150  -  total flux cleaned = 0.0129391 Jy
! Component: 200  -  total flux cleaned = 0.0144699 Jy
! Total flux subtracted in 200 components = 0.0144699 Jy
! Clean residual min=-0.002933 max=0.003164 Jy/beam
! Clean residual mean=0.000199 rms=0.000910 Jy/beam
! Combined flux in latest and established models = 1.41087 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.000714934 Jy
! Component: 100  -  total flux cleaned = 0.00102514 Jy
! Component: 150  -  total flux cleaned = 0.00126772 Jy
! Component: 200  -  total flux cleaned = 0.00142388 Jy
! Total flux subtracted in 200 components = 0.00142388 Jy
! Clean residual min=-0.002956 max=0.003073 Jy/beam
! Clean residual mean=0.000175 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 1.4123 Jy
! Adding 93 model components to the UV plane model.
! The established model now contains 183 components and 1.4123 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.637 mas, bmaj=4.794 mas, bpa=-7.943 degrees
! Estimated noise=345.856 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000283817 Jy
! Component: 100  -  total flux cleaned = 0.000179855 Jy
! Component: 150  -  total flux cleaned = 0.000455434 Jy
! Component: 200  -  total flux cleaned = 0.00055235 Jy
! Total flux subtracted in 200 components = 0.00055235 Jy
! Clean residual min=-0.002068 max=0.002385 Jy/beam
! Clean residual mean=0.000057 rms=0.000613 Jy/beam
! Combined flux in latest and established models = 1.41285 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 195 components and 1.41285 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.015737Jy  sigma=0.001295
! Fit after  self-cal, rms=2.015560Jy  sigma=0.001295
wmodel J0854+2006_S_1999_03_08_pus_map.mod
! Writing 195 model components to file: J0854+2006_S_1999_03_08_pus_map.mod
wobs J0854+2006_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0854+2006_S_1999_03_08_pus_uvs.fits
wwins J0854+2006_S_1999_03_08_pus_map.win
! wwins: Wrote 4 windows to J0854+2006_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.0008623 Jy
! Component: 100  -  total flux cleaned = 0.00126402 Jy
! Component: 150  -  total flux cleaned = 0.00168594 Jy
! Component: 200  -  total flux cleaned = 0.00198244 Jy
! Component: 250  -  total flux cleaned = 0.00230712 Jy
! Component: 300  -  total flux cleaned = 0.00255486 Jy
! Component: 350  -  total flux cleaned = 0.00283268 Jy
! Component: 400  -  total flux cleaned = 0.00310587 Jy
! Component: 450  -  total flux cleaned = 0.00334129 Jy
! Component: 500  -  total flux cleaned = 0.00350732 Jy
! Component: 550  -  total flux cleaned = 0.0037043 Jy
! Component: 600  -  total flux cleaned = 0.00396369 Jy
! Component: 650  -  total flux cleaned = 0.00412372 Jy
! Component: 700  -  total flux cleaned = 0.00434543 Jy
! Component: 750  -  total flux cleaned = 0.00450211 Jy
! Component: 800  -  total flux cleaned = 0.00471924 Jy
! Component: 850  -  total flux cleaned = 0.00493408 Jy
! Component: 900  -  total flux cleaned = 0.00505564 Jy
! Component: 950  -  total flux cleaned = 0.0052966 Jy
! Component: 1000  -  total flux cleaned = 0.00544565 Jy
! Component: 1050  -  total flux cleaned = 0.0056525 Jy
! Component: 1100  -  total flux cleaned = 0.00574048 Jy
! Component: 1150  -  total flux cleaned = 0.00600216 Jy
! Component: 1200  -  total flux cleaned = 0.00620402 Jy
! Component: 1250  -  total flux cleaned = 0.00634688 Jy
! Component: 1300  -  total flux cleaned = 0.00651743 Jy
! Component: 1350  -  total flux cleaned = 0.00668634 Jy
! Component: 1400  -  total flux cleaned = 0.00685378 Jy
! Component: 1450  -  total flux cleaned = 0.00704775 Jy
! Component: 1500  -  total flux cleaned = 0.00715787 Jy
! Component: 1550  -  total flux cleaned = 0.00729464 Jy
! Component: 1600  -  total flux cleaned = 0.00743039 Jy
! Component: 1650  -  total flux cleaned = 0.0075925 Jy
! Component: 1700  -  total flux cleaned = 0.00775336 Jy
! Component: 1750  -  total flux cleaned = 0.00788666 Jy
! Component: 1800  -  total flux cleaned = 0.00796645 Jy
! Component: 1850  -  total flux cleaned = 0.00817707 Jy
! Component: 1900  -  total flux cleaned = 0.00833399 Jy
! Component: 1950  -  total flux cleaned = 0.00851601 Jy
! Component: 2000  -  total flux cleaned = 0.00859354 Jy
! Total flux subtracted in 2048 components = 0.00864496 Jy
! Clean residual min=-0.001418 max=0.001453 Jy/beam
! Clean residual mean=0.000019 rms=0.000499 Jy/beam
! Combined flux in latest and established models = 1.42149 Jy
keep
! Adding 162 model components to the UV plane model.
! The established model now contains 357 components and 1.42149 Jy
![Exited script file: muppet]
wmap "J0854+2006_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.637 x 4.794 at -7.943 degrees (North through East)
! Clean map  min=-0.0018879  max=1.1689 Jy/beam
! Writing clean map to FITS file: J0854+2006_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 1.16888 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000498033 
device "J0854+2006_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0854+2006_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.127823 0.127823 0.255645 0.51129 1.02258 2.04516 4.09032 8.18064 16.3613 32.7226 65.4451
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.168 
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.637 x 4.794 at -7.943 degrees (North through East)
! Clean map  min=-0.0018879  max=1.1689 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0854+2006_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0854+2006_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0854+2006_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:12:01 2008