! Started logfile: J2236+2828_S_1996_01_02_yyk_uvs.log on Sun Jan  7 20:13:06 2007
obs J2236+2828_S_1996_01_02_yyk_uva.fits
! Reading UV FITS file: J2236+2828_S_1996_01_02_yyk_uva.fits
! AN table 1: 188 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.784752 visibilities/baseline/integration-bin.
! Found source: J2236+2828
! 
! 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.22049e+09        4e+06          1        4e+06
!  02        2  2.23236e+09        4e+06          1        4e+06
!  03        3  2.29236e+09        4e+06          1        4e+06
!  04        4  2.32236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 623 lines of history.
! 
! Reading 26556 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
![@muppet J2236+2828_S_1996_01_02_yyk]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.04
float dynam
dynam = 6.0
float amp_soltime1
amp_soltime1 = 10
float amp_soltime2
amp_soltime2 = 1
float phase_soltime1
phase_soltime1=10
float phase_soltime2
phase_soltime2=0.5
float phase_soltime
phase_soltime=phase_soltime1
float ampcor_selflim
ampcor_selflim=1.20
float thresh
thresh = 0.10
float win_mult
win_mult = 1.8
float time_av
time_av = 30
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.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 1.31232 Jy 
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.488 mas, bmaj=6.744 mas, bpa=-11.02 degrees
! Estimated noise=2124.89 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.895971 Jy
! Component: 100  -  total flux cleaned = 1.07246 Jy
! Total flux subtracted in 100 components = 1.07246 Jy
! Clean residual min=-0.107475 max=0.112203 Jy/beam
! Clean residual mean=0.000395 rms=0.027062 Jy/beam
! Combined flux in latest and established models = 1.07246 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.07246 Jy
! 
! Correcting IF 1.
!  A total of 261 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 261 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 261 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 261 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.737611Jy  sigma=0.003638
! Fit after  self-cal, rms=0.779472Jy  sigma=0.003841
! Inverting map and beam 
! Estimated beam: bmin=2.488 mas, bmaj=6.744 mas, bpa=-11.02 degrees
! Estimated noise=2126.86 mJy/beam.
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.222 mas, bmaj=8.007 mas, bpa=-9.877 degrees
! Estimated noise=850.486 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0387453 Jy
! Component: 100  -  total flux cleaned = 0.0423788 Jy
! Component: 150  -  total flux cleaned = 0.0466756 Jy
! Component: 200  -  total flux cleaned = 0.0503018 Jy
! Total flux subtracted in 200 components = 0.0503018 Jy
! Clean residual min=-0.107486 max=0.105011 Jy/beam
! Clean residual mean=0.000406 rms=0.026303 Jy/beam
! Combined flux in latest and established models = 1.12277 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 24 components and 1.12277 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.772399Jy  sigma=0.003802
! Fit after  self-cal, rms=0.778991Jy  sigma=0.003837
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.222 x 8.007 at -9.877 degrees (North through East)
! Clean map  min=-0.10473  max=0.99291 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01039
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.26     FD        1.12     HN        1.15     KP        0.84     
!   LA        1.00     MK        0.87     NL        0.77     OV        1.12     
!   PT        0.96     SC        0.81     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.958046
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.40     FD        1.19     HN        1.26     KP        0.86     
!   LA        1.11     MK        0.93     NL        0.79     OV        1.11     
!   PT        0.92     SC        0.87     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.921654
!  Telescope amplitude corrections in sub-array 1:
!   BR        2.07     FD        1.15     HN        1.10     KP        0.83     
!   LA        0.86     MK        0.82     NL        0.85     OV        1.01     
!   PT        1.12     SC        1.04     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.944243
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.42     FD        1.23     HN        1.22     KP        0.91     
!   LA        0.93     MK        1.06     NL        0.92     OV        0.99     
!   PT        1.01     SC        0.91     
! 
! 
! Fit before self-cal, rms=0.778991Jy  sigma=0.003837
! Fit after  self-cal, rms=0.747692Jy  sigma=0.003731
selfcal false, false, phase_soltime
! Performing phase self-cal over 10 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.747692Jy  sigma=0.003731
! Fit after  self-cal, rms=0.751811Jy  sigma=0.003735
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.083 mas, bmaj=8.134 mas, bpa=-9.429 degrees
! Estimated noise=759.473 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.0924091 Jy
! Component: 100  -  total flux cleaned = -0.0969639 Jy
! Component: 150  -  total flux cleaned = -0.0983328 Jy
! Component: 200  -  total flux cleaned = -0.0983471 Jy
! Total flux subtracted in 200 components = -0.0983471 Jy
! Clean residual min=-0.091590 max=0.083715 Jy/beam
! Clean residual mean=0.000174 rms=0.022140 Jy/beam
! Combined flux in latest and established models = 1.02442 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 37 components and 1.02442 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.746037Jy  sigma=0.003674
! Fit after  self-cal, rms=0.745560Jy  sigma=0.003677
! Inverting map 
print "************** FINISHED AMPLITUDE GSCALE SELF-CAL **************"
! ************** FINISHED AMPLITUDE GSCALE SELF-CAL ************** 
! 
phase_soltime=phase_soltime2
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.745560Jy  sigma=0.003677
! Fit after  self-cal, rms=0.683587Jy  sigma=0.003422
dynam = dynam - 0.5
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 false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0219814 Jy
! Component: 100  -  total flux cleaned = 0.0213633 Jy
! Component: 150  -  total flux cleaned = 0.0221936 Jy
! Component: 200  -  total flux cleaned = 0.0221846 Jy
! Total flux subtracted in 200 components = 0.0221846 Jy
! Clean residual min=-0.076577 max=0.071825 Jy/beam
! Clean residual mean=0.000175 rms=0.019822 Jy/beam
! Combined flux in latest and established models = 1.0466 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 48 components and 1.0466 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.680796Jy  sigma=0.003416
! Fit after  self-cal, rms=0.679571Jy  sigma=0.003404
! Inverting map 
print "*** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime ***"
! *** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime *** 
! 
dynam = dynam - 0.25
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.083 x 8.134 at -9.429 degrees (North through East)
! Clean map  min=-0.073518  max=0.93507 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true, amp_soltime1
  selfcal false, false, phase_soltime
  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 false,false,phase_soltime
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true, amp_soltime2
  selfcal false, false, phase_soltime
  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 false,false,phase_soltime
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  print "************** FINISHED AMPLITUDE SELF-CAL **************"
  end if
! Performing amp+phase self-cal over 10 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.679571Jy  sigma=0.003404
! Fit after  self-cal, rms=4.974696Jy  sigma=0.003308
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=4.974696Jy  sigma=0.003308
! Fit after  self-cal, rms=4.972239Jy  sigma=0.003307
! Inverting map and beam 
! Estimated beam: bmin=3.201 mas, bmaj=7.718 mas, bpa=-9.361 degrees
! Estimated noise=772.977 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00519634 Jy
! Component: 100  -  total flux cleaned = 0.00229184 Jy
! Component: 150  -  total flux cleaned = 0.00088144 Jy
! Component: 200  -  total flux cleaned = -0.000127759 Jy
! Total flux subtracted in 200 components = -0.000127759 Jy
! Clean residual min=-0.012388 max=0.014396 Jy/beam
! Clean residual mean=-0.000022 rms=0.003909 Jy/beam
! Combined flux in latest and established models = 1.04648 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 56 components and 1.04648 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=4.964173Jy  sigma=0.003295
! Fit after  self-cal, rms=4.963708Jy  sigma=0.003295
! Inverting map 
! Performing amp+phase self-cal over 1 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=4.963708Jy  sigma=0.003295
! Fit after  self-cal, rms=3.808193Jy  sigma=0.002482
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.808193Jy  sigma=0.002482
! Fit after  self-cal, rms=3.809262Jy  sigma=0.002482
! Inverting map and beam 
! Estimated beam: bmin=3.184 mas, bmaj=7.806 mas, bpa=-8.949 degrees
! Estimated noise=754.294 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0485493 Jy
! Component: 100  -  total flux cleaned = 0.0472455 Jy
! Component: 150  -  total flux cleaned = 0.0458272 Jy
! Component: 200  -  total flux cleaned = 0.0446859 Jy
! Total flux subtracted in 200 components = 0.0446859 Jy
! Clean residual min=-0.021223 max=0.022631 Jy/beam
! Clean residual mean=-0.000064 rms=0.006003 Jy/beam
! Combined flux in latest and established models = 1.09116 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 60 components and 1.09116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.806423Jy  sigma=0.002459
! Fit after  self-cal, rms=3.806274Jy  sigma=0.002459
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.505 mas, bmaj=12.08 mas, bpa=-14.08 degrees
! Estimated noise=970.61 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00106575 Jy
! Component: 100  -  total flux cleaned = 0.000949113 Jy
! Component: 150  -  total flux cleaned = 0.000850111 Jy
! Component: 200  -  total flux cleaned = 0.000848142 Jy
! Total flux subtracted in 200 components = 0.000848142 Jy
! Clean residual min=-0.021074 max=0.025712 Jy/beam
! Clean residual mean=-0.000083 rms=0.008189 Jy/beam
! Combined flux in latest and established models = 1.09201 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 64 components and 1.09201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.806234Jy  sigma=0.002459
! Fit after  self-cal, rms=3.806306Jy  sigma=0.002459
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
win_mult = win_mult / 1.4
print "************** FINISHED TAPERING SELF-CAL CLEAN **************"
! ************** FINISHED TAPERING SELF-CAL CLEAN ************** 
! 
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true,true,true
! clrmod: Cleared the established, tentative and continuum 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.49 mas, bmaj=6.457 mas, bpa=-11 degrees
! Estimated noise=2169.27 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.92235 Jy
! Component: 100  -  total flux cleaned = 1.09966 Jy
! Component: 150  -  total flux cleaned = 1.13886 Jy
! Component: 200  -  total flux cleaned = 1.14671 Jy
! Total flux subtracted in 200 components = 1.14671 Jy
! Clean residual min=-0.042066 max=0.054833 Jy/beam
! Clean residual mean=-0.000296 rms=0.012947 Jy/beam
! Combined flux in latest and established models = 1.14671 Jy
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 17 model components to the UV plane model.
! The established model now contains 17 components and 1.14671 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.184 mas, bmaj=7.806 mas, bpa=-8.949 degrees
! Estimated noise=754.294 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.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.0524144 Jy
! Component: 100  -  total flux cleaned = -0.062443 Jy
! Component: 150  -  total flux cleaned = -0.0628775 Jy
! Component: 200  -  total flux cleaned = -0.0631966 Jy
! Total flux subtracted in 200 components = -0.0631966 Jy
! Clean residual min=-0.022314 max=0.023617 Jy/beam
! Clean residual mean=-0.000058 rms=0.006243 Jy/beam
! Combined flux in latest and established models = 1.08351 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 33 components and 1.08351 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.505 mas, bmaj=12.08 mas, bpa=-14.08 degrees
! Estimated noise=970.61 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.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00375911 Jy
! Component: 100  -  total flux cleaned = 0.00415626 Jy
! Component: 150  -  total flux cleaned = 0.00428047 Jy
! Component: 200  -  total flux cleaned = 0.00440175 Jy
! Total flux subtracted in 200 components = 0.00440175 Jy
! Clean residual min=-0.021406 max=0.025266 Jy/beam
! Clean residual mean=-0.000077 rms=0.008253 Jy/beam
! Combined flux in latest and established models = 1.08791 Jy
! Adding 7 model components to the UV plane model.
! The established model now contains 39 components and 1.08791 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.184 mas, bmaj=7.806 mas, bpa=-8.949 degrees
! Estimated noise=754.294 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00202327 Jy
! Component: 100  -  total flux cleaned = -0.0024902 Jy
! Component: 150  -  total flux cleaned = -0.00270127 Jy
! Component: 200  -  total flux cleaned = -0.00324229 Jy
! Total flux subtracted in 200 components = -0.00324229 Jy
! Clean residual min=-0.021079 max=0.023530 Jy/beam
! Clean residual mean=-0.000059 rms=0.006112 Jy/beam
! Combined flux in latest and established models = 1.08467 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 47 components and 1.08467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.805941Jy  sigma=0.002455
! Fit after  self-cal, rms=3.805330Jy  sigma=0.002455
wmodel J2236+2828_S_1996_01_02_yyk\_map.mod
! Writing 47 model components to file: J2236+2828_S_1996_01_02_yyk_map.mod
wobs J2236+2828_S_1996_01_02_yyk\_uvs.fits
! Writing UV FITS file: J2236+2828_S_1996_01_02_yyk_uvs.fits
wwins J2236+2828_S_1996_01_02_yyk\_map.win
! wwins: Wrote 1 windows to J2236+2828_S_1996_01_02_yyk_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.0059656 Jy
! Component: 100  -  total flux cleaned = 0.00864474 Jy
! Component: 150  -  total flux cleaned = 0.0118834 Jy
! Component: 200  -  total flux cleaned = 0.0146291 Jy
! Component: 250  -  total flux cleaned = 0.017603 Jy
! Component: 300  -  total flux cleaned = 0.0211036 Jy
! Component: 350  -  total flux cleaned = 0.0248093 Jy
! Component: 400  -  total flux cleaned = 0.0284209 Jy
! Component: 450  -  total flux cleaned = 0.0322541 Jy
! Component: 500  -  total flux cleaned = 0.0357331 Jy
! Component: 550  -  total flux cleaned = 0.0391564 Jy
! Component: 600  -  total flux cleaned = 0.0433691 Jy
! Component: 650  -  total flux cleaned = 0.0478006 Jy
! Component: 700  -  total flux cleaned = 0.0521745 Jy
! Component: 750  -  total flux cleaned = 0.0559561 Jy
! Component: 800  -  total flux cleaned = 0.0599603 Jy
! Component: 850  -  total flux cleaned = 0.0636575 Jy
! Component: 900  -  total flux cleaned = 0.0680953 Jy
! Component: 950  -  total flux cleaned = 0.0719667 Jy
! Component: 1000  -  total flux cleaned = 0.0757973 Jy
! Component: 1050  -  total flux cleaned = 0.0798422 Jy
! Component: 1100  -  total flux cleaned = 0.0843441 Jy
! Component: 1150  -  total flux cleaned = 0.0880596 Jy
! Component: 1200  -  total flux cleaned = 0.0919834 Jy
! Component: 1250  -  total flux cleaned = 0.0956268 Jy
! Component: 1300  -  total flux cleaned = 0.0994747 Jy
! Component: 1350  -  total flux cleaned = 0.103048 Jy
! Component: 1400  -  total flux cleaned = 0.106117 Jy
! Component: 1450  -  total flux cleaned = 0.109863 Jy
! Component: 1500  -  total flux cleaned = 0.113343 Jy
! Component: 1550  -  total flux cleaned = 0.116794 Jy
! Component: 1600  -  total flux cleaned = 0.120445 Jy
! Component: 1650  -  total flux cleaned = 0.124068 Jy
! Component: 1700  -  total flux cleaned = 0.127436 Jy
! Component: 1750  -  total flux cleaned = 0.131002 Jy
! Component: 1800  -  total flux cleaned = 0.134319 Jy
! Component: 1850  -  total flux cleaned = 0.136953 Jy
! Component: 1900  -  total flux cleaned = 0.14131 Jy
! Component: 1950  -  total flux cleaned = 0.143905 Jy
! Component: 2000  -  total flux cleaned = 0.147769 Jy
! Total flux subtracted in 2048 components = 0.15075 Jy
! Clean residual min=-0.010835 max=0.011375 Jy/beam
! Clean residual mean=-0.000042 rms=0.004439 Jy/beam
! Combined flux in latest and established models = 1.23542 Jy
keep
! Adding 125 model components to the UV plane model.
! The established model now contains 172 components and 1.23542 Jy
![Exited script file: muppet]
wmap "J2236+2828_S_1996_01_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.184 x 7.806 at -8.949 degrees (North through East)
! Clean map  min=-0.018787  max=1.0411 Jy/beam
! Writing clean map to FITS file: J2236+2828_S_1996_01_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.04109 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00441692 
device "J2236+2828_S_1996_01_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J2236+2828_S_1996_01_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.27277 1.27277 2.54555 5.09109 10.1822 20.3644 40.7288 81.4575
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0132 
print "peak=",int(peak_flux*1000)/1000
! peak= 1.041 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.184 x 7.806 at -8.949 degrees (North through East)
! Clean map  min=-0.018787  max=1.0411 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2236+2828_S_1996_01_02_yyk\_map.gif/gif"
! Attempting to open device: 'J2236+2828_S_1996_01_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2236+2828_S_1996_01_02_yyk_uvs.log closed on Sun Jan  7 20:13:14 2007