! Started logfile: J0825+6157_S_2000_05_22_pus_uvs.log on Mon Nov 19 18:41:10 2007
obs J0825+6157_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0825+6157_S_2000_05_22_pus_uva.fits
! AN table 1: 191 integrations on 190 of 190 possible baselines.
! AN table 2: 195 integrations on 190 of 190 possible baselines.
! AN table 3: 219 integrations on 190 of 190 possible baselines.
! AN table 4: 363 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.206274 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0825+6157
! 
! 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 2003 lines of history.
! 
! Reading 151752 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 J0825+6157_S_2000_05_22_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 2819 telescope corrections were flagged in sub-array 1.
!  A total of 2678 telescope corrections were flagged in sub-array 2.
!  A total of 2791 telescope corrections were flagged in sub-array 3.
!  A total of 4827 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2767 telescope corrections were flagged in sub-array 1.
!  A total of 2551 telescope corrections were flagged in sub-array 2.
!  A total of 2944 telescope corrections were flagged in sub-array 3.
!  A total of 4868 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2763 telescope corrections were flagged in sub-array 1.
!  A total of 2551 telescope corrections were flagged in sub-array 2.
!  A total of 2820 telescope corrections were flagged in sub-array 3.
!  A total of 4827 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2763 telescope corrections were flagged in sub-array 1.
!  A total of 2551 telescope corrections were flagged in sub-array 2.
!  A total of 2963 telescope corrections were flagged in sub-array 3.
!  A total of 4827 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.896546Jy  sigma=0.007361
! Fit after  self-cal, rms=0.812254Jy  sigma=0.006601
! 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.002 mas, bmaj=2.038 mas, bpa=-8.556 degrees
! Estimated noise=451.081 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.200795 Jy
! Component: 100  -  total flux cleaned = 0.262761 Jy
! Total flux subtracted in 100 components = 0.262761 Jy
! Clean residual min=-0.006869 max=0.028466 Jy/beam
! Clean residual mean=0.000038 rms=0.001613 Jy/beam
! Combined flux in latest and established models = 0.262761 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.262761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379825Jy  sigma=0.001850
! Fit after  self-cal, rms=0.379599Jy  sigma=0.001849
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0321349 Jy
! Component: 100  -  total flux cleaned = 0.0488493 Jy
! Total flux subtracted in 100 components = 0.0488493 Jy
! Clean residual min=-0.005995 max=0.011889 Jy/beam
! Clean residual mean=0.000021 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 0.31161 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 9 components and 0.31161 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376052Jy  sigma=0.001791
! Fit after  self-cal, rms=0.375860Jy  sigma=0.001790
! Inverting map 
! Added new window around map position (-29.5, -14.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0120999 Jy
! Component: 100  -  total flux cleaned = 0.0196907 Jy
! Total flux subtracted in 100 components = 0.0196907 Jy
! Clean residual min=-0.005537 max=0.006230 Jy/beam
! Clean residual mean=0.000016 rms=0.001229 Jy/beam
! Combined flux in latest and established models = 0.331301 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 13 components and 0.331301 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375265Jy  sigma=0.001781
! Fit after  self-cal, rms=0.375223Jy  sigma=0.001781
! 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.369 mas, bmaj=2.531 mas, bpa=-5.399 degrees
! Estimated noise=227.015 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.0093261 Jy
! Component: 100  -  total flux cleaned = 0.0148138 Jy
! Component: 150  -  total flux cleaned = 0.0185306 Jy
! Component: 200  -  total flux cleaned = 0.021297 Jy
! Total flux subtracted in 200 components = 0.021297 Jy
! Clean residual min=-0.004174 max=0.006483 Jy/beam
! Clean residual mean=0.000143 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 0.352598 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 28 components and 0.352598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374917Jy  sigma=0.001776
! Fit after  self-cal, rms=0.374878Jy  sigma=0.001776
! Inverting map 
! Added new window around map position (-4, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00601339 Jy
! Component: 100  -  total flux cleaned = 0.00944216 Jy
! Component: 150  -  total flux cleaned = 0.0119224 Jy
! Component: 200  -  total flux cleaned = 0.0132731 Jy
! Total flux subtracted in 200 components = 0.0132731 Jy
! Clean residual min=-0.004144 max=0.004002 Jy/beam
! Clean residual mean=0.000091 rms=0.000981 Jy/beam
! Combined flux in latest and established models = 0.365871 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 42 components and 0.365871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374715Jy  sigma=0.001774
! Fit after  self-cal, rms=0.374697Jy  sigma=0.001774
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.02     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.90     KP        1.08     
!   MA        1.00*    MC        1.12     MK        1.03     NL        0.95     
!   NY        1.02     OV        1.02     PT        1.01     SC        1.12     
!   TS        0.99     WF        1.02     WZ        1.01     LA        1.03     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.03     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.02     KP        1.01     
!   MA        1.00*    MC        1.07     MK        1.02     NL        1.00     
!   NY        1.02     OV        1.00     PT        1.00     SC        1.03     
!   TS        1.08     WF        1.03     WZ        0.93     LA        1.03     
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.06     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.96     KP        0.93     
!   MA        0.49     MC        1.11     MK        1.01     NL        0.99     
!   NY        1.01     OV        1.05     PT        1.05     SC        1.00*    
!   TS        1.00*    WF        0.85     WZ        1.02     LA        1.04     
! 
!  A total of 75 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.01     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.96     KP        1.05     
!   MA        0.39     MC        1.16     MK        1.04     NL        1.03     
!   NY        1.05     OV        1.02     PT        1.02     SC        1.13     
!   TS        0.98     WF        0.99     WZ        1.09     LA        1.03     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.02     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.92     KP        1.01     
!   MA        1.49     MC        3.11     MK        0.98     NL        0.98     
!   NY        0.99     OV        0.99     PT        0.99     SC        1.13     
!   TS        1.01     WF        1.00     WZ        0.99     LA        0.96     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.04     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.02     KP        1.01     
!   MA        0.77     MC        1.50     MK        0.99     NL        1.03     
!   NY        1.02     OV        0.99     PT        1.02     SC        1.05     
!   TS        1.13     WF        0.90     WZ        0.93     LA        0.98     
! 
!  A total of 105 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.07     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.01     KP        0.84     
!   MA        1.27     MC        0.95     MK        0.98     NL        1.04     
!   NY        1.05     OV        1.02     PT        1.04     SC        1.00*    
!   TS        1.00*    WF        0.96     WZ        1.02     LA        0.98     
! 
!  A total of 75 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.03     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.08     KK        1.02     KP        1.05     
!   MA        1.07     MC        1.12     MK        0.98     NL        1.04     
!   NY        0.99     OV        1.01     PT        1.04     SC        1.14     
!   TS        1.04     WF        1.02     WZ        1.06     LA        0.98     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.94     KP        0.93     
!   MA        1.34     MC        0.72     MK        0.98     NL        0.96     
!   NY        1.00     OV        1.03     PT        0.42     SC        1.08     
!   TS        1.00     WF        0.97     WZ        0.98     LA        1.01     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.02     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.02     KP        0.98     
!   MA        0.75     MC        1.51     MK        0.99     NL        0.98     
!   NY        1.02     OV        1.03     PT        0.99     SC        1.06     
!   TS        1.15     WF        0.75     WZ        0.97     LA        1.01     
! 
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.01     KP        0.96     
!   MA        0.68     MC        0.74     MK        0.98     NL        1.02     
!   NY        1.19     OV        1.06     PT        1.00     SC        1.00*    
!   TS        1.00*    WF        0.91     WZ        1.04     LA        1.05     
! 
!  A total of 75 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.95     KP        0.99     
!   MA        0.96     MC        0.72     MK        0.97     NL        1.03     
!   NY        1.43     OV        1.04     PT        0.98     SC        1.13     
!   TS        1.05     WF        0.99     WZ        1.11     LA        1.04     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.02     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.95     KP        1.01     
!   MA        1.13     MC        0.79     MK        1.03     NL        0.92     
!   NY        0.97     OV        1.00     PT        1.03     SC        1.09     
!   TS        1.06     WF        0.97     WZ        1.01     LA        0.99     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.02     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.04     KP        0.99     
!   MA        0.73     MC        1.30     MK        1.02     NL        0.99     
!   NY        0.95     OV        1.01     PT        1.03     SC        1.04     
!   TS        1.17     WF        0.66     WZ        0.97     LA        0.99     
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.04     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.02     KP        0.89     
!   MA        1.23     MC        0.86     MK        1.03     NL        1.00     
!   NY        0.99     OV        1.03     PT        1.02     SC        1.00*    
!   TS        1.00*    WF        0.93     WZ        1.02     LA        1.03     
! 
!  A total of 75 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.01     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        0.98     KP        1.02     
!   MA        0.85     MC        0.84     MK        1.01     NL        1.05     
!   NY        1.00     OV        1.00     PT        1.04     SC        1.19     
!   TS        1.03     WF        0.97     WZ        1.09     LA        1.04     
! 
! 
! Fit before self-cal, rms=0.374697Jy  sigma=0.001774
! Fit after  self-cal, rms=0.338947Jy  sigma=0.001699
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.358 mas, bmaj=2.533 mas, bpa=-4.192 degrees
! Estimated noise=227.45 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.00176538 Jy
! Component: 100  -  total flux cleaned = 0.00196832 Jy
! Component: 150  -  total flux cleaned = 0.00207899 Jy
! Component: 200  -  total flux cleaned = 0.0021285 Jy
! Total flux subtracted in 200 components = 0.0021285 Jy
! Clean residual min=-0.002221 max=0.002553 Jy/beam
! Clean residual mean=0.000032 rms=0.000592 Jy/beam
! Combined flux in latest and established models = 0.367999 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 53 components and 0.367999 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338922Jy  sigma=0.001698
! Fit after  self-cal, rms=0.339052Jy  sigma=0.001696
! 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.339052Jy  sigma=0.001696
! Fit after  self-cal, rms=0.340056Jy  sigma=0.001688
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.357 mas, bmaj=2.53 mas, bpa=-2.386 degrees
! Estimated noise=227.696 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000100037 Jy
! Component: 100  -  total flux cleaned = -0.000254579 Jy
! Component: 150  -  total flux cleaned = -0.000385952 Jy
! Component: 200  -  total flux cleaned = -0.000464632 Jy
! Total flux subtracted in 200 components = -0.000464632 Jy
! Clean residual min=-0.001962 max=0.002209 Jy/beam
! Clean residual mean=0.000031 rms=0.000473 Jy/beam
! Combined flux in latest and established models = 0.367535 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 59 components and 0.367535 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340044Jy  sigma=0.001687
! Fit after  self-cal, rms=0.340145Jy  sigma=0.001687
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 (48.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00185686 Jy
! Component: 100  -  total flux cleaned = 0.0021934 Jy
! Component: 150  -  total flux cleaned = 0.00238646 Jy
! Component: 200  -  total flux cleaned = 0.00248576 Jy
! Total flux subtracted in 200 components = 0.00248576 Jy
! Clean residual min=-0.001849 max=0.002045 Jy/beam
! Clean residual mean=0.000018 rms=0.000465 Jy/beam
! Combined flux in latest and established models = 0.370021 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 72 components and 0.370021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340125Jy  sigma=0.001687
! Fit after  self-cal, rms=0.340128Jy  sigma=0.001687
! Inverting map 
! Added new window around map position (-63.5, -44.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00186488 Jy
! Component: 100  -  total flux cleaned = 0.00272188 Jy
! Component: 150  -  total flux cleaned = 0.00295699 Jy
! Component: 200  -  total flux cleaned = 0.00307904 Jy
! Total flux subtracted in 200 components = 0.00307904 Jy
! Clean residual min=-0.001827 max=0.001946 Jy/beam
! Clean residual mean=0.000007 rms=0.000455 Jy/beam
! Combined flux in latest and established models = 0.3731 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 89 components and 0.3731 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340118Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340116Jy  sigma=0.001686
! Inverting map 
! Added new window around map position (39.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00176246 Jy
! Component: 100  -  total flux cleaned = 0.00226724 Jy
! Component: 150  -  total flux cleaned = 0.00252295 Jy
! Component: 200  -  total flux cleaned = 0.00269583 Jy
! Total flux subtracted in 200 components = 0.00269583 Jy
! Clean residual min=-0.001873 max=0.001914 Jy/beam
! Clean residual mean=-0.000003 rms=0.000448 Jy/beam
! Combined flux in latest and established models = 0.375795 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 102 components and 0.375796 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340098Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340095Jy  sigma=0.001686
! Inverting map 
! Added new window around map position (-36.5, 19).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0013991 Jy
! Component: 100  -  total flux cleaned = 0.00171513 Jy
! Component: 150  -  total flux cleaned = 0.00185553 Jy
! Component: 200  -  total flux cleaned = 0.00190835 Jy
! Total flux subtracted in 200 components = 0.00190835 Jy
! Clean residual min=-0.001882 max=0.001691 Jy/beam
! Clean residual mean=-0.000009 rms=0.000443 Jy/beam
! Combined flux in latest and established models = 0.377704 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 115 components and 0.377704 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340081Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340079Jy  sigma=0.001686
! 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.340079Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340638Jy  sigma=0.001686
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.355 mas, bmaj=2.533 mas, bpa=-1.608 degrees
! Estimated noise=227.744 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000280726 Jy
! Component: 100  -  total flux cleaned = -0.000248104 Jy
! Component: 150  -  total flux cleaned = -0.000123232 Jy
! Component: 200  -  total flux cleaned = 5.0774e-05 Jy
! Total flux subtracted in 200 components = 5.0774e-05 Jy
! Clean residual min=-0.001837 max=0.001790 Jy/beam
! Clean residual mean=0.000001 rms=0.000436 Jy/beam
! Combined flux in latest and established models = 0.377755 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 117 components and 0.377755 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340632Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340652Jy  sigma=0.001686
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 = 3.02197e-05 Jy
! Component: 100  -  total flux cleaned = 8.41281e-05 Jy
! Component: 150  -  total flux cleaned = 0.000135111 Jy
! Component: 200  -  total flux cleaned = 0.000159438 Jy
! Total flux subtracted in 200 components = 0.000159438 Jy
! Clean residual min=-0.001833 max=0.001775 Jy/beam
! Clean residual mean=-0.000000 rms=0.000436 Jy/beam
! Combined flux in latest and established models = 0.377914 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 125 components and 0.377914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340649Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340649Jy  sigma=0.001686
! 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.340649Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340633Jy  sigma=0.001686
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.678 mas, bmaj=8.741 mas, bpa=24.92 degrees
! Estimated noise=374.831 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00107473 Jy
! Component: 100  -  total flux cleaned = 0.00156664 Jy
! Component: 150  -  total flux cleaned = 0.00194167 Jy
! Component: 200  -  total flux cleaned = 0.00221524 Jy
! Total flux subtracted in 200 components = 0.00221524 Jy
! Clean residual min=-0.002249 max=0.002404 Jy/beam
! Clean residual mean=-0.000017 rms=0.000671 Jy/beam
! Combined flux in latest and established models = 0.380129 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 139 components and 0.380129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340633Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340638Jy  sigma=0.001686
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.00045539 Jy
! Component: 100  -  total flux cleaned = 0.000545477 Jy
! Component: 150  -  total flux cleaned = 0.000561078 Jy
! Component: 200  -  total flux cleaned = 0.000575999 Jy
! Total flux subtracted in 200 components = 0.000575999 Jy
! Clean residual min=-0.002257 max=0.002357 Jy/beam
! Clean residual mean=-0.000021 rms=0.000668 Jy/beam
! Combined flux in latest and established models = 0.380705 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 149 components and 0.380705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340638Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340639Jy  sigma=0.001686
! 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.354 mas, bmaj=2.534 mas, bpa=-1.341 degrees
! Estimated noise=227.854 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.354 x 2.534 at -1.341 degrees (North through East)
! Clean map  min=-0.0015801  max=0.2738 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
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.977 mas, bmaj=2.045 mas, bpa=9.171 degrees
! Estimated noise=453.211 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.201117 Jy
! Component: 100  -  total flux cleaned = 0.266752 Jy
! Component: 150  -  total flux cleaned = 0.30029 Jy
! Component: 200  -  total flux cleaned = 0.318903 Jy
! Total flux subtracted in 200 components = 0.318903 Jy
! Clean residual min=-0.004327 max=0.009843 Jy/beam
! Clean residual mean=0.000016 rms=0.000889 Jy/beam
! Combined flux in latest and established models = 0.318903 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.318903 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.354 mas, bmaj=2.534 mas, bpa=-1.341 degrees
! Estimated noise=227.854 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.0153377 Jy
! Component: 100  -  total flux cleaned = 0.0245793 Jy
! Component: 150  -  total flux cleaned = 0.0307346 Jy
! Component: 200  -  total flux cleaned = 0.0350305 Jy
! Total flux subtracted in 200 components = 0.0350305 Jy
! Clean residual min=-0.001877 max=0.002478 Jy/beam
! Clean residual mean=0.000100 rms=0.000504 Jy/beam
! Combined flux in latest and established models = 0.353934 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 22 components and 0.353934 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0033409 Jy
! Component: 100  -  total flux cleaned = 0.00617238 Jy
! Component: 150  -  total flux cleaned = 0.00861208 Jy
! Component: 200  -  total flux cleaned = 0.0107354 Jy
! Total flux subtracted in 200 components = 0.0107354 Jy
! Clean residual min=-0.001840 max=0.001903 Jy/beam
! Clean residual mean=0.000055 rms=0.000464 Jy/beam
! Combined flux in latest and established models = 0.364669 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 38 components and 0.364669 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.678 mas, bmaj=8.741 mas, bpa=24.92 degrees
! Estimated noise=374.831 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00381469 Jy
! Component: 100  -  total flux cleaned = 0.00646754 Jy
! Component: 150  -  total flux cleaned = 0.00846891 Jy
! Component: 200  -  total flux cleaned = 0.0100418 Jy
! Total flux subtracted in 200 components = 0.0100418 Jy
! Clean residual min=-0.002341 max=0.002370 Jy/beam
! Clean residual mean=0.000072 rms=0.000695 Jy/beam
! Combined flux in latest and established models = 0.374711 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.00127414 Jy
! Component: 100  -  total flux cleaned = 0.00231167 Jy
! Component: 150  -  total flux cleaned = 0.00315777 Jy
! Component: 200  -  total flux cleaned = 0.00382393 Jy
! Total flux subtracted in 200 components = 0.00382393 Jy
! Clean residual min=-0.002320 max=0.002335 Jy/beam
! Clean residual mean=0.000006 rms=0.000677 Jy/beam
! Combined flux in latest and established models = 0.378535 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 77 components and 0.378535 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.354 mas, bmaj=2.534 mas, bpa=-1.341 degrees
! Estimated noise=227.854 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000587464 Jy
! Component: 100  -  total flux cleaned = -0.000475598 Jy
! Component: 150  -  total flux cleaned = -0.000320647 Jy
! Component: 200  -  total flux cleaned = -0.000174882 Jy
! Total flux subtracted in 200 components = -0.000174882 Jy
! Clean residual min=-0.001819 max=0.001802 Jy/beam
! Clean residual mean=0.000003 rms=0.000441 Jy/beam
! Combined flux in latest and established models = 0.37836 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 93 components and 0.37836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340674Jy  sigma=0.001686
! Fit after  self-cal, rms=0.340669Jy  sigma=0.001686
wmodel J0825+6157_S_2000_05_22_pus_map.mod
! Writing 93 model components to file: J0825+6157_S_2000_05_22_pus_map.mod
wobs J0825+6157_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0825+6157_S_2000_05_22_pus_uvs.fits
wwins J0825+6157_S_2000_05_22_pus_map.win
! wwins: Wrote 7 windows to J0825+6157_S_2000_05_22_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.000264567 Jy
! Component: 100  -  total flux cleaned = 0.000482667 Jy
! Component: 150  -  total flux cleaned = 0.000662243 Jy
! Component: 200  -  total flux cleaned = 0.000749694 Jy
! Component: 250  -  total flux cleaned = 0.000835163 Jy
! Component: 300  -  total flux cleaned = 0.00094552 Jy
! Component: 350  -  total flux cleaned = 0.00102655 Jy
! Component: 400  -  total flux cleaned = 0.00115975 Jy
! Component: 450  -  total flux cleaned = 0.00129107 Jy
! Component: 500  -  total flux cleaned = 0.00142034 Jy
! Component: 550  -  total flux cleaned = 0.00154784 Jy
! Component: 600  -  total flux cleaned = 0.00167386 Jy
! Component: 650  -  total flux cleaned = 0.00177355 Jy
! Component: 700  -  total flux cleaned = 0.00189696 Jy
! Component: 750  -  total flux cleaned = 0.00201925 Jy
! Component: 800  -  total flux cleaned = 0.00214019 Jy
! Component: 850  -  total flux cleaned = 0.00221235 Jy
! Component: 900  -  total flux cleaned = 0.00228404 Jy
! Component: 950  -  total flux cleaned = 0.00237872 Jy
! Component: 1000  -  total flux cleaned = 0.0024023 Jy
! Component: 1050  -  total flux cleaned = 0.00247238 Jy
! Component: 1100  -  total flux cleaned = 0.00256489 Jy
! Component: 1150  -  total flux cleaned = 0.00256479 Jy
! Component: 1200  -  total flux cleaned = 0.00263308 Jy
! Component: 1250  -  total flux cleaned = 0.00258759 Jy
! Component: 1300  -  total flux cleaned = 0.00256511 Jy
! Component: 1350  -  total flux cleaned = 0.00258767 Jy
! Component: 1400  -  total flux cleaned = 0.00258772 Jy
! Component: 1450  -  total flux cleaned = 0.00252117 Jy
! Component: 1500  -  total flux cleaned = 0.00258743 Jy
! Component: 1550  -  total flux cleaned = 0.00249974 Jy
! Component: 1600  -  total flux cleaned = 0.00256518 Jy
! Component: 1650  -  total flux cleaned = 0.00250008 Jy
! Component: 1700  -  total flux cleaned = 0.00250023 Jy
! Component: 1750  -  total flux cleaned = 0.00250023 Jy
! Component: 1800  -  total flux cleaned = 0.0025216 Jy
! Component: 1850  -  total flux cleaned = 0.00250048 Jy
! Component: 1900  -  total flux cleaned = 0.00247936 Jy
! Component: 1950  -  total flux cleaned = 0.00254276 Jy
! Component: 2000  -  total flux cleaned = 0.00252172 Jy
! Total flux subtracted in 2048 components = 0.00256363 Jy
! Clean residual min=-0.001388 max=0.001201 Jy/beam
! Clean residual mean=-0.000008 rms=0.000395 Jy/beam
! Combined flux in latest and established models = 0.380924 Jy
keep
! Adding 164 model components to the UV plane model.
! The established model now contains 257 components and 0.380924 Jy
![Exited script file: muppet]
wmap "J0825+6157_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.354 x 2.534 at -1.341 degrees (North through East)
! Clean map  min=-0.0016194  max=0.27393 Jy/beam
! Writing clean map to FITS file: J0825+6157_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.27393 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000394948 
device "J0825+6157_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0825+6157_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.432536 0.432536 0.865072 1.73014 3.46029 6.92057 13.8411 27.6823 55.3646
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.273 
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.354 x 2.534 at -1.341 degrees (North through East)
! Clean map  min=-0.0016194  max=0.27393 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0825+6157_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0825+6157_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0825+6157_S_2000_05_22_pus_uvs.log closed on Mon Nov 19 18:42:04 2007