! Started logfile: J0854+2006_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:33:11 2008
obs J0854+2006_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0854+2006_S_1999_05_10_pus_uva.fits
! AN table 1: 60 integrations on 153 of 153 possible baselines.
! AN table 2: 63 integrations on 153 of 153 possible baselines.
! AN table 3: 255 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.171335 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 1998 lines of history.
! 
! Reading 39636 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_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 930 telescope corrections were flagged in sub-array 1.
!  A total of 677 telescope corrections were flagged in sub-array 2.
!  A total of 2844 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 930 telescope corrections were flagged in sub-array 1.
!  A total of 677 telescope corrections were flagged in sub-array 2.
!  A total of 2844 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 930 telescope corrections were flagged in sub-array 1.
!  A total of 677 telescope corrections were flagged in sub-array 2.
!  A total of 2844 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 930 telescope corrections were flagged in sub-array 1.
!  A total of 677 telescope corrections were flagged in sub-array 2.
!  A total of 2887 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.192900Jy  sigma=0.008708
! Fit after  self-cal, rms=0.412386Jy  sigma=0.003217
! 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.25 mas, bmaj=3.238 mas, bpa=3.516 degrees
! Estimated noise=939.177 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.943697 Jy
! Component: 100  -  total flux cleaned = 1.18324 Jy
! Total flux subtracted in 100 components = 1.18324 Jy
! Clean residual min=-0.020468 max=0.102063 Jy/beam
! Clean residual mean=0.000142 rms=0.007115 Jy/beam
! Combined flux in latest and established models = 1.18324 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.18324 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322298Jy  sigma=0.002284
! Fit after  self-cal, rms=0.321803Jy  sigma=0.002282
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.110027 Jy
! Component: 100  -  total flux cleaned = 0.165798 Jy
! Total flux subtracted in 100 components = 0.165798 Jy
! Clean residual min=-0.015271 max=0.029673 Jy/beam
! Clean residual mean=0.000110 rms=0.004468 Jy/beam
! Combined flux in latest and established models = 1.34904 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 22 components and 1.34904 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275897Jy  sigma=0.001713
! Fit after  self-cal, rms=0.274949Jy  sigma=0.001710
! Inverting map 
! Added new window around map position (-2.5, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0398827 Jy
! Component: 100  -  total flux cleaned = 0.0678296 Jy
! Total flux subtracted in 100 components = 0.0678296 Jy
! Clean residual min=-0.014983 max=0.023226 Jy/beam
! Clean residual mean=0.000095 rms=0.003877 Jy/beam
! Combined flux in latest and established models = 1.41687 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 33 components and 1.41687 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267238Jy  sigma=0.001591
! Fit after  self-cal, rms=0.266748Jy  sigma=0.001589
! 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.685 mas, bmaj=4.241 mas, bpa=-6.021 degrees
! Estimated noise=491.728 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.0339368 Jy
! Component: 100  -  total flux cleaned = 0.0539571 Jy
! Component: 150  -  total flux cleaned = 0.066129 Jy
! Component: 200  -  total flux cleaned = 0.0735627 Jy
! Total flux subtracted in 200 components = 0.0735627 Jy
! Clean residual min=-0.009968 max=0.013104 Jy/beam
! Clean residual mean=-0.000163 rms=0.002484 Jy/beam
! Combined flux in latest and established models = 1.49043 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 40 components and 1.49043 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263655Jy  sigma=0.001530
! Fit after  self-cal, rms=0.263367Jy  sigma=0.001528
! Inverting map 
! Added new window around map position (-7.5, -8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0116757 Jy
! Component: 100  -  total flux cleaned = 0.0129609 Jy
! Component: 150  -  total flux cleaned = 0.0135101 Jy
! Component: 200  -  total flux cleaned = 0.01374 Jy
! Total flux subtracted in 200 components = 0.01374 Jy
! Clean residual min=-0.009863 max=0.010571 Jy/beam
! Clean residual mean=-0.000301 rms=0.002323 Jy/beam
! Combined flux in latest and established models = 1.50417 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 58 components and 1.50417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262731Jy  sigma=0.001519
! Fit after  self-cal, rms=0.262658Jy  sigma=0.001518
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.03     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.06     MK        1.00*    NL        1.00*    NY        0.99     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.10     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.03     GC        1.00*    HH        0.93     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.02     
!   MC        0.94     MK        1.00*    NL        1.01     NY        0.95     
!   ON        0.97     OV        1.00*    PT        1.05     SC        1.02     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        1.01     HH        1.00*    
!   HN        1.00     KK        0.99     KP        1.02     LA        0.99     
!   MC        1.04     MK        0.98     NL        0.98     NY        1.02     
!   ON        1.06     OV        1.02     PT        1.01     SC        0.97     
!   WF        1.00     WZ        1.07     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.02     
!   HN        1.05     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.91     MK        1.00*    NL        1.00*    NY        0.99     
!   ON        0.98     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.11     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.05     GC        1.00*    HH        0.99     
!   HN        1.01     KK        1.00*    KP        1.00*    LA        1.01     
!   MC        1.05     MK        1.00*    NL        0.99     NY        0.95     
!   ON        1.00     OV        1.00*    PT        1.02     SC        1.03     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        1.00     HH        1.00*    
!   HN        1.00     KK        0.99     KP        1.01     LA        0.96     
!   MC        0.99     MK        1.04     NL        0.99     NY        1.01     
!   ON        1.06     OV        0.99     PT        1.00     SC        0.98     
!   WF        0.99     WZ        1.02     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.01     
!   HN        1.06     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.71     MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.16     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.03     GC        1.00*    HH        0.97     
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.02     
!   MC        0.97     MK        1.00*    NL        1.02     NY        1.00     
!   ON        0.93     OV        1.00*    PT        0.98     SC        1.05     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.01     HH        1.00*    
!   HN        0.98     KK        0.99     KP        1.00     LA        0.98     
!   MC        0.88     MK        1.00     NL        1.01     NY        1.08     
!   ON        1.07     OV        0.98     PT        0.96     SC        0.98     
!   WF        0.99     WZ        1.06     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.99     
!   HN        1.04     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00     MK        1.00*    NL        1.00*    NY        1.02     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.17     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.03     GC        1.00*    HH        0.97     
!   HN        1.01     KK        1.00*    KP        1.00*    LA        1.03     
!   MC        1.01     MK        1.00*    NL        1.03     NY        1.01     
!   ON        1.02     OV        1.00*    PT        1.04     SC        1.02     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.99     GC        1.01     HH        1.00*    
!   HN        0.98     KK        0.98     KP        1.01     LA        0.98     
!   MC        1.13     MK        1.02     NL        1.02     NY        1.12     
!   ON        1.08     OV        0.94     PT        1.09     SC        0.93     
!   WF        1.01     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.262658Jy  sigma=0.001518
! Fit after  self-cal, rms=0.259820Jy  sigma=0.001456
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.698 mas, bmaj=4.282 mas, bpa=-5.847 degrees
! Estimated noise=493.196 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.00140943 Jy
! Component: 100  -  total flux cleaned = -0.00141168 Jy
! Component: 150  -  total flux cleaned = -0.00121747 Jy
! Component: 200  -  total flux cleaned = -0.00103718 Jy
! Total flux subtracted in 200 components = -0.00103718 Jy
! Clean residual min=-0.007244 max=0.008101 Jy/beam
! Clean residual mean=0.000107 rms=0.001838 Jy/beam
! Combined flux in latest and established models = 1.50313 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 73 components and 1.50313 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259437Jy  sigma=0.001453
! Fit after  self-cal, rms=0.259657Jy  sigma=0.001453
! 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.259657Jy  sigma=0.001453
! Fit after  self-cal, rms=0.257752Jy  sigma=0.001421
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.698 mas, bmaj=4.29 mas, bpa=-6.413 degrees
! Estimated noise=493.104 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000151512 Jy
! Component: 100  -  total flux cleaned = 0.000479866 Jy
! Component: 150  -  total flux cleaned = 0.000479102 Jy
! Component: 200  -  total flux cleaned = 0.000480053 Jy
! Total flux subtracted in 200 components = 0.000480053 Jy
! Clean residual min=-0.006486 max=0.006471 Jy/beam
! Clean residual mean=0.000100 rms=0.001529 Jy/beam
! Combined flux in latest and established models = 1.50361 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 86 components and 1.50361 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257504Jy  sigma=0.001420
! Fit after  self-cal, rms=0.257486Jy  sigma=0.001419
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.000241757 Jy
! Component: 100  -  total flux cleaned = 0.000474837 Jy
! Component: 150  -  total flux cleaned = 0.000359089 Jy
! Component: 200  -  total flux cleaned = 0.000253758 Jy
! Total flux subtracted in 200 components = 0.000253758 Jy
! Clean residual min=-0.006315 max=0.006480 Jy/beam
! Clean residual mean=0.000098 rms=0.001516 Jy/beam
! Combined flux in latest and established models = 1.50387 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 96 components and 1.50387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257361Jy  sigma=0.001419
! Fit after  self-cal, rms=0.257353Jy  sigma=0.001418
! Inverting map 
! Added new window around map position (-1, 18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00434443 Jy
! Component: 100  -  total flux cleaned = 0.00496184 Jy
! Component: 150  -  total flux cleaned = 0.00496773 Jy
! Component: 200  -  total flux cleaned = 0.0043938 Jy
! Total flux subtracted in 200 components = 0.0043938 Jy
! Clean residual min=-0.006364 max=0.005261 Jy/beam
! Clean residual mean=0.000055 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 1.50826 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 110 components and 1.50826 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257120Jy  sigma=0.001415
! Fit after  self-cal, rms=0.257095Jy  sigma=0.001415
! 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.257095Jy  sigma=0.001415
! Fit after  self-cal, rms=0.253530Jy  sigma=0.001372
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.7 mas, bmaj=4.292 mas, bpa=-6.524 degrees
! Estimated noise=492.834 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00127197 Jy
! Component: 100  -  total flux cleaned = 0.000882999 Jy
! Component: 150  -  total flux cleaned = 0.000768494 Jy
! Component: 200  -  total flux cleaned = 0.000550313 Jy
! Total flux subtracted in 200 components = 0.000550313 Jy
! Clean residual min=-0.003835 max=0.004989 Jy/beam
! Clean residual mean=0.000086 rms=0.001064 Jy/beam
! Combined flux in latest and established models = 1.50881 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 127 components and 1.50881 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253392Jy  sigma=0.001371
! Fit after  self-cal, rms=0.253401Jy  sigma=0.001371
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.5, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00190329 Jy
! Component: 100  -  total flux cleaned = 0.0015088 Jy
! Component: 150  -  total flux cleaned = 0.000898991 Jy
! Component: 200  -  total flux cleaned = 0.000790888 Jy
! Total flux subtracted in 200 components = 0.000790888 Jy
! Clean residual min=-0.004212 max=0.004651 Jy/beam
! Clean residual mean=0.000078 rms=0.001043 Jy/beam
! Combined flux in latest and established models = 1.5096 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 140 components and 1.5096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253228Jy  sigma=0.001369
! Fit after  self-cal, rms=0.253213Jy  sigma=0.001369
! Inverting map 
! Added new window around map position (-6.5, 23.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00194461 Jy
! Component: 100  -  total flux cleaned = 0.00230007 Jy
! Component: 150  -  total flux cleaned = 0.00219202 Jy
! Component: 200  -  total flux cleaned = 0.00208828 Jy
! Total flux subtracted in 200 components = 0.00208828 Jy
! Clean residual min=-0.004140 max=0.004094 Jy/beam
! Clean residual mean=0.000057 rms=0.001024 Jy/beam
! Combined flux in latest and established models = 1.51169 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 158 components and 1.51169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253094Jy  sigma=0.001368
! Fit after  self-cal, rms=0.253087Jy  sigma=0.001368
! 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.253087Jy  sigma=0.001368
! Fit after  self-cal, rms=0.252918Jy  sigma=0.001368
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.147 mas, bmaj=8.585 mas, bpa=13.42 degrees
! Estimated noise=645.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000802797 Jy
! Component: 100  -  total flux cleaned = -0.00161153 Jy
! Component: 150  -  total flux cleaned = -0.00198154 Jy
! Component: 200  -  total flux cleaned = -0.00217193 Jy
! Total flux subtracted in 200 components = -0.00217193 Jy
! Clean residual min=-0.003763 max=0.003606 Jy/beam
! Clean residual mean=0.000144 rms=0.001115 Jy/beam
! Combined flux in latest and established models = 1.50952 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 166 components and 1.50952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252903Jy  sigma=0.001368
! Fit after  self-cal, rms=0.252901Jy  sigma=0.001368
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 = -9.45857e-05 Jy
! Component: 100  -  total flux cleaned = -0.00031914 Jy
! Component: 150  -  total flux cleaned = -0.000419368 Jy
! Component: 200  -  total flux cleaned = -0.000556655 Jy
! Total flux subtracted in 200 components = -0.000556655 Jy
! Clean residual min=-0.003729 max=0.003650 Jy/beam
! Clean residual mean=0.000160 rms=0.001091 Jy/beam
! Combined flux in latest and established models = 1.50896 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 175 components and 1.50896 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252898Jy  sigma=0.001368
! Fit after  self-cal, rms=0.252899Jy  sigma=0.001367
! 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.701 mas, bmaj=4.293 mas, bpa=-6.549 degrees
! Estimated noise=492.5 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.701 x 4.293 at -6.549 degrees (North through East)
! Clean map  min=-0.0035665  max=1.25 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.252899Jy  sigma=0.001367
! Fit after  self-cal, rms=0.240098Jy  sigma=0.001231
! Inverting map and beam 
! Estimated beam: bmin=2.7 mas, bmaj=4.293 mas, bpa=-6.533 degrees
! Estimated noise=492.147 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000970949 Jy
! Component: 100  -  total flux cleaned = 0.000866601 Jy
! Component: 150  -  total flux cleaned = 0.000868473 Jy
! Component: 200  -  total flux cleaned = 0.000678323 Jy
! Total flux subtracted in 200 components = 0.000678323 Jy
! Clean residual min=-0.003732 max=0.003672 Jy/beam
! Clean residual mean=0.000013 rms=0.000929 Jy/beam
! Combined flux in latest and established models = 1.50964 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 187 components and 1.50964 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240003Jy  sigma=0.001230
! Fit after  self-cal, rms=0.240001Jy  sigma=0.001230
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -4.11699e-06 Jy
! Component: 100  -  total flux cleaned = -5.59193e-06 Jy
! Component: 150  -  total flux cleaned = 7.60152e-05 Jy
! Component: 200  -  total flux cleaned = 0.000234289 Jy
! Total flux subtracted in 200 components = 0.000234289 Jy
! Clean residual min=-0.003638 max=0.003697 Jy/beam
! Clean residual mean=0.000011 rms=0.000922 Jy/beam
! Combined flux in latest and established models = 1.50987 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 194 components and 1.50987 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239938Jy  sigma=0.001230
! Fit after  self-cal, rms=0.239937Jy  sigma=0.001230
! 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.239937Jy  sigma=0.001230
! Fit after  self-cal, rms=0.239899Jy  sigma=0.001230
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.272 mas, bmaj=3.249 mas, bpa=4.188 degrees
! Estimated noise=893.06 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.94745 Jy
! Component: 100  -  total flux cleaned = 1.18915 Jy
! Component: 150  -  total flux cleaned = 1.30054 Jy
! Component: 200  -  total flux cleaned = 1.35747 Jy
! Total flux subtracted in 200 components = 1.35747 Jy
! Clean residual min=-0.009184 max=0.028680 Jy/beam
! Clean residual mean=0.000068 rms=0.003042 Jy/beam
! Combined flux in latest and established models = 1.35747 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 16 model components to the UV plane model.
! The established model now contains 16 components and 1.35747 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.7 mas, bmaj=4.293 mas, bpa=-6.542 degrees
! Estimated noise=491.913 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.0539047 Jy
! Component: 100  -  total flux cleaned = 0.0851136 Jy
! Component: 150  -  total flux cleaned = 0.105342 Jy
! Component: 200  -  total flux cleaned = 0.119407 Jy
! Total flux subtracted in 200 components = 0.119407 Jy
! Clean residual min=-0.003646 max=0.010140 Jy/beam
! Clean residual mean=0.000328 rms=0.001374 Jy/beam
! Combined flux in latest and established models = 1.47687 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 48 components and 1.47687 Jy
! Inverting map 
! Added new window around map position (0, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0107406 Jy
! Component: 100  -  total flux cleaned = 0.0186389 Jy
! Component: 150  -  total flux cleaned = 0.0236363 Jy
! Component: 200  -  total flux cleaned = 0.0262076 Jy
! Total flux subtracted in 200 components = 0.0262076 Jy
! Clean residual min=-0.003694 max=0.006175 Jy/beam
! Clean residual mean=0.000068 rms=0.001083 Jy/beam
! Combined flux in latest and established models = 1.50308 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 69 components and 1.50308 Jy
! Inverting map 
! Added new window around map position (-13, -15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00443895 Jy
! Component: 100  -  total flux cleaned = 0.00606037 Jy
! Component: 150  -  total flux cleaned = 0.00672686 Jy
! Component: 200  -  total flux cleaned = 0.00734947 Jy
! Total flux subtracted in 200 components = 0.00734947 Jy
! Clean residual min=-0.003415 max=0.004568 Jy/beam
! Clean residual mean=-0.000003 rms=0.001005 Jy/beam
! Combined flux in latest and established models = 1.51043 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 87 components and 1.51043 Jy
! Inverting map 
! Added new window around map position (-14, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00238304 Jy
! Component: 100  -  total flux cleaned = 0.00279838 Jy
! Component: 150  -  total flux cleaned = 0.00319203 Jy
! Component: 200  -  total flux cleaned = 0.0034386 Jy
! Total flux subtracted in 200 components = 0.0034386 Jy
! Clean residual min=-0.003531 max=0.004132 Jy/beam
! Clean residual mean=-0.000036 rms=0.000963 Jy/beam
! Combined flux in latest and established models = 1.51387 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 104 components and 1.51387 Jy
! Inverting map 
! Added new window around map position (38.5, 57).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00336471 Jy
! Component: 100  -  total flux cleaned = 0.00372394 Jy
! Component: 150  -  total flux cleaned = 0.00372545 Jy
! Component: 200  -  total flux cleaned = 0.00394951 Jy
! Total flux subtracted in 200 components = 0.00394951 Jy
! Clean residual min=-0.003424 max=0.003926 Jy/beam
! Clean residual mean=-0.000070 rms=0.000931 Jy/beam
! Combined flux in latest and established models = 1.51782 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 126 components and 1.51782 Jy
! Inverting map 
! Added new window around map position (-41, -61).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00219505 Jy
! Component: 100  -  total flux cleaned = 0.00185019 Jy
! Component: 150  -  total flux cleaned = 0.00174362 Jy
! Component: 200  -  total flux cleaned = 0.00163804 Jy
! Total flux subtracted in 200 components = 0.00163804 Jy
! Clean residual min=-0.003494 max=0.003611 Jy/beam
! Clean residual mean=-0.000079 rms=0.000906 Jy/beam
! Combined flux in latest and established models = 1.51946 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 154 components and 1.51946 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.142 mas, bmaj=8.582 mas, bpa=12.9 degrees
! Estimated noise=645.177 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000249346 Jy
! Component: 100  -  total flux cleaned = -0.00162322 Jy
! Component: 150  -  total flux cleaned = -0.00269257 Jy
! Component: 200  -  total flux cleaned = -0.00371006 Jy
! Total flux subtracted in 200 components = -0.00371006 Jy
! Clean residual min=-0.003434 max=0.003469 Jy/beam
! Clean residual mean=-0.000133 rms=0.000982 Jy/beam
! Combined flux in latest and established models = 1.51575 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.000733387 Jy
! Component: 100  -  total flux cleaned = -0.00140365 Jy
! Component: 150  -  total flux cleaned = -0.0018175 Jy
! Component: 200  -  total flux cleaned = -0.00215763 Jy
! Total flux subtracted in 200 components = -0.00215763 Jy
! Clean residual min=-0.003379 max=0.003545 Jy/beam
! Clean residual mean=-0.000077 rms=0.000969 Jy/beam
! Combined flux in latest and established models = 1.51359 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 200 components and 1.51359 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.7 mas, bmaj=4.293 mas, bpa=-6.542 degrees
! Estimated noise=491.913 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00136517 Jy
! Component: 100  -  total flux cleaned = 0.00207524 Jy
! Component: 150  -  total flux cleaned = 0.00226859 Jy
! Component: 200  -  total flux cleaned = 0.00226955 Jy
! Total flux subtracted in 200 components = 0.00226955 Jy
! Clean residual min=-0.003458 max=0.003481 Jy/beam
! Clean residual mean=-0.000049 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 1.51586 Jy
selfcal
! Performing phase self-cal
! Adding 49 model components to the UV plane model.
! The established model now contains 214 components and 1.51586 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239596Jy  sigma=0.001227
! Fit after  self-cal, rms=0.239545Jy  sigma=0.001226
wmodel J0854+2006_S_1999_05_10_pus_map.mod
! Writing 214 model components to file: J0854+2006_S_1999_05_10_pus_map.mod
wobs J0854+2006_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0854+2006_S_1999_05_10_pus_uvs.fits
wwins J0854+2006_S_1999_05_10_pus_map.win
! wwins: Wrote 11 windows to J0854+2006_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.00119826 Jy
! Component: 100  -  total flux cleaned = 0.00186549 Jy
! Component: 150  -  total flux cleaned = 0.00250338 Jy
! Component: 200  -  total flux cleaned = 0.00312011 Jy
! Component: 250  -  total flux cleaned = 0.0036645 Jy
! Component: 300  -  total flux cleaned = 0.00398182 Jy
! Component: 350  -  total flux cleaned = 0.00418905 Jy
! Component: 400  -  total flux cleaned = 0.00434175 Jy
! Component: 450  -  total flux cleaned = 0.0043416 Jy
! Component: 500  -  total flux cleaned = 0.00439077 Jy
! Component: 550  -  total flux cleaned = 0.00434217 Jy
! Component: 600  -  total flux cleaned = 0.00429458 Jy
! Component: 650  -  total flux cleaned = 0.00420055 Jy
! Component: 700  -  total flux cleaned = 0.00415408 Jy
! Component: 750  -  total flux cleaned = 0.00410784 Jy
! Component: 800  -  total flux cleaned = 0.00410759 Jy
! Component: 850  -  total flux cleaned = 0.00406179 Jy
! Component: 900  -  total flux cleaned = 0.00401652 Jy
! Component: 950  -  total flux cleaned = 0.00397198 Jy
! Component: 1000  -  total flux cleaned = 0.0038839 Jy
! Component: 1050  -  total flux cleaned = 0.00392781 Jy
! Component: 1100  -  total flux cleaned = 0.0039276 Jy
! Component: 1150  -  total flux cleaned = 0.00392751 Jy
! Component: 1200  -  total flux cleaned = 0.00392735 Jy
! Component: 1250  -  total flux cleaned = 0.00384247 Jy
! Component: 1300  -  total flux cleaned = 0.00384283 Jy
! Component: 1350  -  total flux cleaned = 0.00380082 Jy
! Component: 1400  -  total flux cleaned = 0.00380067 Jy
! Component: 1450  -  total flux cleaned = 0.00367642 Jy
! Component: 1500  -  total flux cleaned = 0.00371771 Jy
! Component: 1550  -  total flux cleaned = 0.00371774 Jy
! Component: 1600  -  total flux cleaned = 0.00359584 Jy
! Component: 1650  -  total flux cleaned = 0.00363634 Jy
! Component: 1700  -  total flux cleaned = 0.00359623 Jy
! Component: 1750  -  total flux cleaned = 0.00351616 Jy
! Component: 1800  -  total flux cleaned = 0.00347645 Jy
! Component: 1850  -  total flux cleaned = 0.00347638 Jy
! Component: 1900  -  total flux cleaned = 0.00335827 Jy
! Component: 1950  -  total flux cleaned = 0.00339737 Jy
! Component: 2000  -  total flux cleaned = 0.00339724 Jy
! Total flux subtracted in 2048 components = 0.00335851 Jy
! Clean residual min=-0.002377 max=0.002205 Jy/beam
! Clean residual mean=-0.000077 rms=0.000740 Jy/beam
! Combined flux in latest and established models = 1.51922 Jy
keep
! Adding 157 model components to the UV plane model.
! The established model now contains 371 components and 1.51922 Jy
![Exited script file: muppet]
wmap "J0854+2006_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.7 x 4.293 at -6.542 degrees (North through East)
! Clean map  min=-0.0053466  max=1.2492 Jy/beam
! Writing clean map to FITS file: J0854+2006_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 1.24924 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000739906 
device "J0854+2006_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0854+2006_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.177685 0.177685 0.355371 0.710742 1.42148 2.84297 5.68593 11.3719 22.7437 45.4875 90.9749
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.249 
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.7 x 4.293 at -6.542 degrees (North through East)
! Clean map  min=-0.0053466  max=1.2492 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0854+2006_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0854+2006_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0854+2006_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:33:33 2008