! Started logfile: J1640+1220_S_1995_07_15_yyk_uvs.log on Sun Jan  7 19:03:35 2007
obs J1640+1220_S_1995_07_15_yyk_uva.fits
! Reading UV FITS file: J1640+1220_S_1995_07_15_yyk_uva.fits
! AN table 1: 115 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.884831 visibilities/baseline/integration-bin.
! Found source: J1640+1220
! 
! 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 793 lines of history.
! 
! Reading 18316 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 J1640+1220_S_1995_07_15_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)= 0.902966 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.765 mas, bmaj=6.945 mas, bpa=-6.815 degrees
! Estimated noise=1660.26 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.610132 Jy
! Component: 100  -  total flux cleaned = 0.795561 Jy
! Total flux subtracted in 100 components = 0.795561 Jy
! Clean residual min=-0.038661 max=0.087343 Jy/beam
! Clean residual mean=0.000571 rms=0.012566 Jy/beam
! Combined flux in latest and established models = 0.795561 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 18 components and 0.795561 Jy
! 
! Correcting IF 1.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.462208Jy  sigma=0.002182
! Fit after  self-cal, rms=0.457468Jy  sigma=0.002155
! Inverting map and beam 
! Estimated beam: bmin=2.765 mas, bmaj=6.945 mas, bpa=-6.815 degrees
! Estimated noise=1660.26 mJy/beam.
! Added new window around map position (-5, 0).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.113706 Jy
! Component: 100  -  total flux cleaned = 0.173531 Jy
! Total flux subtracted in 100 components = 0.173531 Jy
! Clean residual min=-0.034846 max=0.048481 Jy/beam
! Clean residual mean=0.000236 rms=0.009223 Jy/beam
! Combined flux in latest and established models = 0.969093 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 36 components and 0.969093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.428070Jy  sigma=0.001983
! Fit after  self-cal, rms=0.425991Jy  sigma=0.001971
! Inverting map 
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.441 mas, bmaj=8.107 mas, bpa=-8.198 degrees
! Estimated noise=1013.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)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0658554 Jy
! Component: 100  -  total flux cleaned = 0.0973871 Jy
! Component: 150  -  total flux cleaned = 0.115868 Jy
! Component: 200  -  total flux cleaned = 0.121567 Jy
! Total flux subtracted in 200 components = 0.121567 Jy
! Clean residual min=-0.031999 max=0.028574 Jy/beam
! Clean residual mean=0.000119 rms=0.009278 Jy/beam
! Combined flux in latest and established models = 1.09066 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 47 model components to the UV plane model.
! The established model now contains 73 components and 1.09066 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418187Jy  sigma=0.001929
! Fit after  self-cal, rms=0.417746Jy  sigma=0.001927
! 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.441 x 8.107 at -8.198 degrees (North through East)
! Clean map  min=-0.030676  max=0.70924 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01843
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.05     HN        1.02     KP        0.92     
!   LA        0.96     MK        0.99     NL        0.92     OV        1.12     
!   PT        0.98     SC        0.88     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.996117
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.13     HN        1.09     KP        0.89     
!   LA        1.03     MK        1.02     NL        0.94     OV        1.02     
!   PT        0.99     SC        0.93     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.0282
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.07     HN        0.95     KP        0.95     
!   LA        0.87     MK        0.89     NL        1.03     OV        0.94     
!   PT        1.04     SC        1.04     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00616
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.13     HN        1.05     KP        0.96     
!   LA        0.93     MK        0.99     NL        1.06     OV        0.98     
!   PT        0.91     SC        0.94     
! 
! 
! Fit before self-cal, rms=0.417746Jy  sigma=0.001927
! Fit after  self-cal, rms=0.402933Jy  sigma=0.001892
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.402933Jy  sigma=0.001892
! Fit after  self-cal, rms=0.402896Jy  sigma=0.001891
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.397 mas, bmaj=7.973 mas, bpa=-7.611 degrees
! Estimated noise=1022.65 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.0221461 Jy
! Component: 100  -  total flux cleaned = 0.0275718 Jy
! Component: 150  -  total flux cleaned = 0.0278941 Jy
! Component: 200  -  total flux cleaned = 0.0286348 Jy
! Total flux subtracted in 200 components = 0.0286348 Jy
! Clean residual min=-0.025318 max=0.031658 Jy/beam
! Clean residual mean=0.000039 rms=0.008201 Jy/beam
! Combined flux in latest and established models = 1.11929 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 90 components and 1.11929 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.402059Jy  sigma=0.001886
! Fit after  self-cal, rms=0.402016Jy  sigma=0.001886
! 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.402016Jy  sigma=0.001886
! Fit after  self-cal, rms=0.400943Jy  sigma=0.001881
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.000748387 Jy
! Component: 100  -  total flux cleaned = 0.000974264 Jy
! Component: 150  -  total flux cleaned = 0.00136323 Jy
! Component: 200  -  total flux cleaned = 0.0015248 Jy
! Total flux subtracted in 200 components = 0.0015248 Jy
! Clean residual min=-0.025456 max=0.031073 Jy/beam
! Clean residual mean=0.000035 rms=0.008126 Jy/beam
! Combined flux in latest and established models = 1.12082 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 100 components and 1.12082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.400675Jy  sigma=0.001880
! Fit after  self-cal, rms=0.400347Jy  sigma=0.001878
! 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.397 x 7.973 at -7.611 degrees (North through East)
! Clean map  min=-0.025044  max=0.7132 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.400347Jy  sigma=0.001878
! Fit after  self-cal, rms=0.464098Jy  sigma=0.001827
! 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.464098Jy  sigma=0.001827
! Fit after  self-cal, rms=0.464063Jy  sigma=0.001826
! Inverting map and beam 
! Estimated beam: bmin=3.376 mas, bmaj=7.903 mas, bpa=-7.491 degrees
! Estimated noise=1013.18 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00266842 Jy
! Component: 100  -  total flux cleaned = 0.00341455 Jy
! Component: 150  -  total flux cleaned = 0.00396472 Jy
! Component: 200  -  total flux cleaned = 0.00441631 Jy
! Total flux subtracted in 200 components = 0.00441631 Jy
! Clean residual min=-0.022967 max=0.028786 Jy/beam
! Clean residual mean=0.000072 rms=0.007150 Jy/beam
! Combined flux in latest and established models = 1.12524 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 108 components and 1.12524 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.463905Jy  sigma=0.001826
! Fit after  self-cal, rms=0.463842Jy  sigma=0.001825
! 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=0.463842Jy  sigma=0.001825
! Fit after  self-cal, rms=0.463409Jy  sigma=0.001824
! 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.463409Jy  sigma=0.001824
! Fit after  self-cal, rms=0.463366Jy  sigma=0.001823
! Inverting map and beam 
! Estimated beam: bmin=3.37 mas, bmaj=7.879 mas, bpa=-7.425 degrees
! Estimated noise=1013.47 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00228464 Jy
! Component: 100  -  total flux cleaned = 0.00353029 Jy
! Component: 150  -  total flux cleaned = 0.00407871 Jy
! Component: 200  -  total flux cleaned = 0.00436103 Jy
! Total flux subtracted in 200 components = 0.00436103 Jy
! Clean residual min=-0.022738 max=0.028539 Jy/beam
! Clean residual mean=0.000071 rms=0.007102 Jy/beam
! Combined flux in latest and established models = 1.1296 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 110 components and 1.1296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.463267Jy  sigma=0.001823
! Fit after  self-cal, rms=0.463230Jy  sigma=0.001823
! 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.864 mas, bmaj=11.26 mas, bpa=-1.971 degrees
! Estimated noise=1276.98 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.005429 Jy
! Component: 100  -  total flux cleaned = 0.00588233 Jy
! Component: 150  -  total flux cleaned = 0.00604953 Jy
! Component: 200  -  total flux cleaned = 0.00604831 Jy
! Total flux subtracted in 200 components = 0.00604831 Jy
! Clean residual min=-0.038527 max=0.048903 Jy/beam
! Clean residual mean=0.000111 rms=0.013278 Jy/beam
! Combined flux in latest and established models = 1.13565 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 115 components and 1.13565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.463242Jy  sigma=0.001823
! Fit after  self-cal, rms=0.463201Jy  sigma=0.001822
! 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.733 mas, bmaj=6.814 mas, bpa=-6.235 degrees
! Estimated noise=1664.78 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.617769 Jy
! Component: 100  -  total flux cleaned = 0.828667 Jy
! Component: 150  -  total flux cleaned = 0.939329 Jy
! Component: 200  -  total flux cleaned = 1.00406 Jy
! Total flux subtracted in 200 components = 1.00406 Jy
! Clean residual min=-0.021144 max=0.025373 Jy/beam
! Clean residual mean=0.000271 rms=0.006161 Jy/beam
! Combined flux in latest and established models = 1.00406 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 38 model components to the UV plane model.
! The established model now contains 38 components and 1.00406 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.37 mas, bmaj=7.879 mas, bpa=-7.425 degrees
! Estimated noise=1013.47 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.0578198 Jy
! Component: 100  -  total flux cleaned = 0.0876528 Jy
! Component: 150  -  total flux cleaned = 0.104713 Jy
! Component: 200  -  total flux cleaned = 0.111595 Jy
! Total flux subtracted in 200 components = 0.111595 Jy
! Clean residual min=-0.022784 max=0.028660 Jy/beam
! Clean residual mean=0.000119 rms=0.007199 Jy/beam
! Combined flux in latest and established models = 1.11565 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 92 components and 1.11565 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.864 mas, bmaj=11.26 mas, bpa=-1.971 degrees
! Estimated noise=1276.98 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.0127932 Jy
! Component: 100  -  total flux cleaned = 0.0166692 Jy
! Component: 150  -  total flux cleaned = 0.0175334 Jy
! Component: 200  -  total flux cleaned = 0.0181225 Jy
! Total flux subtracted in 200 components = 0.0181225 Jy
! Clean residual min=-0.038404 max=0.048844 Jy/beam
! Clean residual mean=0.000126 rms=0.013298 Jy/beam
! Combined flux in latest and established models = 1.13378 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 104 components and 1.13378 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.37 mas, bmaj=7.879 mas, bpa=-7.425 degrees
! Estimated noise=1013.47 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.0035655 Jy
! Component: 100  -  total flux cleaned = -0.00383543 Jy
! Component: 150  -  total flux cleaned = -0.00403937 Jy
! Component: 200  -  total flux cleaned = -0.00435549 Jy
! Total flux subtracted in 200 components = -0.00435549 Jy
! Clean residual min=-0.022594 max=0.028545 Jy/beam
! Clean residual mean=0.000072 rms=0.007107 Jy/beam
! Combined flux in latest and established models = 1.12942 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 114 components and 1.12942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.463166Jy  sigma=0.001823
! Fit after  self-cal, rms=0.463111Jy  sigma=0.001822
wmodel J1640+1220_S_1995_07_15_yyk\_map.mod
! Writing 114 model components to file: J1640+1220_S_1995_07_15_yyk_map.mod
wobs J1640+1220_S_1995_07_15_yyk\_uvs.fits
! Writing UV FITS file: J1640+1220_S_1995_07_15_yyk_uvs.fits
wwins J1640+1220_S_1995_07_15_yyk\_map.win
! wwins: Wrote 2 windows to J1640+1220_S_1995_07_15_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.0104246 Jy
! Component: 100  -  total flux cleaned = 0.0158236 Jy
! Component: 150  -  total flux cleaned = 0.0222693 Jy
! Component: 200  -  total flux cleaned = 0.0263466 Jy
! Component: 250  -  total flux cleaned = 0.0295787 Jy
! Component: 300  -  total flux cleaned = 0.032078 Jy
! Component: 350  -  total flux cleaned = 0.0348007 Jy
! Component: 400  -  total flux cleaned = 0.0371477 Jy
! Component: 450  -  total flux cleaned = 0.0391494 Jy
! Component: 500  -  total flux cleaned = 0.0416606 Jy
! Component: 550  -  total flux cleaned = 0.0443746 Jy
! Component: 600  -  total flux cleaned = 0.0467591 Jy
! Component: 650  -  total flux cleaned = 0.0490875 Jy
! Component: 700  -  total flux cleaned = 0.0506053 Jy
! Component: 750  -  total flux cleaned = 0.0523405 Jy
! Component: 800  -  total flux cleaned = 0.0542866 Jy
! Component: 850  -  total flux cleaned = 0.0564259 Jy
! Component: 900  -  total flux cleaned = 0.0578295 Jy
! Component: 950  -  total flux cleaned = 0.0598983 Jy
! Component: 1000  -  total flux cleaned = 0.0610297 Jy
! Component: 1050  -  total flux cleaned = 0.0625841 Jy
! Component: 1100  -  total flux cleaned = 0.0638922 Jy
! Component: 1150  -  total flux cleaned = 0.0651789 Jy
! Component: 1200  -  total flux cleaned = 0.0662354 Jy
! Component: 1250  -  total flux cleaned = 0.0674862 Jy
! Component: 1300  -  total flux cleaned = 0.068304 Jy
! Component: 1350  -  total flux cleaned = 0.0691113 Jy
! Component: 1400  -  total flux cleaned = 0.0699089 Jy
! Component: 1450  -  total flux cleaned = 0.070695 Jy
! Component: 1500  -  total flux cleaned = 0.0710827 Jy
! Component: 1550  -  total flux cleaned = 0.0718499 Jy
! Component: 1600  -  total flux cleaned = 0.0718505 Jy
! Component: 1650  -  total flux cleaned = 0.0724141 Jy
! Component: 1700  -  total flux cleaned = 0.0731554 Jy
! Component: 1750  -  total flux cleaned = 0.0737061 Jy
! Component: 1800  -  total flux cleaned = 0.07425 Jy
! Component: 1850  -  total flux cleaned = 0.0751451 Jy
! Component: 1900  -  total flux cleaned = 0.0754978 Jy
! Component: 1950  -  total flux cleaned = 0.076372 Jy
! Component: 2000  -  total flux cleaned = 0.0760246 Jy
! Total flux subtracted in 2048 components = 0.0765404 Jy
! Clean residual min=-0.009829 max=0.010486 Jy/beam
! Clean residual mean=-0.000100 rms=0.004532 Jy/beam
! Combined flux in latest and established models = 1.20596 Jy
keep
! Adding 274 model components to the UV plane model.
! The established model now contains 388 components and 1.20596 Jy
![Exited script file: muppet]
wmap "J1640+1220_S_1995_07_15_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.37 x 7.879 at -7.425 degrees (North through East)
! Clean map  min=-0.016505  max=0.70966 Jy/beam
! Writing clean map to FITS file: J1640+1220_S_1995_07_15_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.709664 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00454124 
device "J1640+1220_S_1995_07_15_yyk\_map.eps/VPS"
! Attempting to open device: 'J1640+1220_S_1995_07_15_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.91974 1.91974 3.83948 7.67897 15.3579 30.7159 61.4317
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0136 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.709 
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.37 x 7.879 at -7.425 degrees (North through East)
! Clean map  min=-0.016505  max=0.70966 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1640+1220_S_1995_07_15_yyk\_map.gif/gif"
! Attempting to open device: 'J1640+1220_S_1995_07_15_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1640+1220_S_1995_07_15_yyk_uvs.log closed on Sun Jan  7 19:03:43 2007