! Started logfile: J1323+7942_S_2006_02_14_yyk_uvs.log on Wed Jul  5 12:31:44 2006
obs J1323+7942_S_2006_02_14_yyk_uva.fits
! Reading UV FITS file: J1323+7942_S_2006_02_14_yyk_uva.fits
! AN table 1: 877 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.915343 visibilities/baseline/integration-bin.
! Found source: J1323+7942
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2683 lines of history.
! 
! Reading 144496 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 J1323+7942_S_2006_02_14_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.
uvav time_av, true
! Averaging into 30 second bins.
! 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
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.379361 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.407 mas, bmaj=9.852 mas, bpa=1.924 degrees
! Estimated noise=1.37328 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.5, 0).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.282338 Jy
! Component: 100  -  total flux cleaned = 0.384628 Jy
! Total flux subtracted in 100 components = 0.384628 Jy
! Clean residual min=-0.016662 max=0.048436 Jy/beam
! Clean residual mean=0.000098 rms=0.006892 Jy/beam
! Combined flux in latest and established models = 0.384628 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.384628 Jy
! 
! Correcting IF 1.
!  A total of 1 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 1 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 1 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 1 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.113076Jy  sigma=1.938059
! Fit after  self-cal, rms=0.112466Jy  sigma=1.920956
! Inverting map and beam 
! Estimated beam: bmin=2.407 mas, bmaj=9.852 mas, bpa=1.924 degrees
! Estimated noise=1.37328 mJy/beam.
! Added new window around map position (3, 0).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0572953 Jy
! Component: 100  -  total flux cleaned = 0.0862245 Jy
! Total flux subtracted in 100 components = 0.0862245 Jy
! Clean residual min=-0.010802 max=0.011726 Jy/beam
! Clean residual mean=-0.000002 rms=0.003469 Jy/beam
! Combined flux in latest and established models = 0.470853 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 19 components and 0.470853 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.083228Jy  sigma=1.374140
! Fit after  self-cal, rms=0.082658Jy  sigma=1.363910
! 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.086 mas, bmaj=10.37 mas, bpa=1.816 degrees
! Estimated noise=0.715164 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.016852 Jy
! Component: 100  -  total flux cleaned = 0.0242653 Jy
! Component: 150  -  total flux cleaned = 0.0274897 Jy
! Component: 200  -  total flux cleaned = 0.0288309 Jy
! Total flux subtracted in 200 components = 0.0288309 Jy
! Clean residual min=-0.007027 max=0.007880 Jy/beam
! Clean residual mean=-0.000166 rms=0.001970 Jy/beam
! Combined flux in latest and established models = 0.499684 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 52 components and 0.499684 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.078836Jy  sigma=1.312663
! Fit after  self-cal, rms=0.078606Jy  sigma=1.308576
! 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.086 x 10.37 at 1.816 degrees (North through East)
! Clean map  min=-0.0062773  max=0.32849 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1.01506
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.93     HN        0.99     KP        0.95     
!   LA        1.20     MK        0.92     NL        0.95     OV        0.97     
!   PT        1.04     SC        0.96     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.992012
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00     HN        1.01     KP        0.97     
!   LA        1.16     MK        0.99     NL        0.96     OV        1.00     
!   PT        0.99     SC        0.95     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.975432
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.00     HN        1.03     KP        0.98     
!   LA        0.92     MK        1.09     NL        1.04     OV        1.04     
!   PT        1.06     SC        1.02     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.03267
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     HN        0.95     KP        0.90     
!   LA        0.80     MK        1.10     NL        0.97     OV        0.89     
!   PT        0.95     SC        1.12     
! 
! 
! Fit before self-cal, rms=0.078606Jy  sigma=1.308576
! Fit after  self-cal, rms=0.066344Jy  sigma=1.119062
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.066344Jy  sigma=1.119062
! Fit after  self-cal, rms=0.066361Jy  sigma=1.119229
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.136 mas, bmaj=10.33 mas, bpa=1.585 degrees
! Estimated noise=0.716547 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.00389359 Jy
! Component: 100  -  total flux cleaned = 0.00451113 Jy
! Component: 150  -  total flux cleaned = 0.00464732 Jy
! Component: 200  -  total flux cleaned = 0.00472681 Jy
! Total flux subtracted in 200 components = 0.00472681 Jy
! Clean residual min=-0.003480 max=0.003851 Jy/beam
! Clean residual mean=0.000040 rms=0.000903 Jy/beam
! Combined flux in latest and established models = 0.504411 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 78 components and 0.50441 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066144Jy  sigma=1.115738
! Fit after  self-cal, rms=0.066115Jy  sigma=1.115254
! 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.066115Jy  sigma=1.115254
! Fit after  self-cal, rms=0.061383Jy  sigma=1.034195
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.000526995 Jy
! Component: 100  -  total flux cleaned = 0.000586357 Jy
! Component: 150  -  total flux cleaned = 0.000724471 Jy
! Component: 200  -  total flux cleaned = 0.00064873 Jy
! Total flux subtracted in 200 components = 0.00064873 Jy
! Clean residual min=-0.003158 max=0.003979 Jy/beam
! Clean residual mean=0.000040 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 0.505059 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 84 components and 0.505059 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.061293Jy  sigma=1.032913
! Fit after  self-cal, rms=0.061128Jy  sigma=1.030184
! Inverting map 
! Added new window around map position (13.5, -2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00474568 Jy
! Component: 100  -  total flux cleaned = 0.00745345 Jy
! Component: 150  -  total flux cleaned = 0.00819741 Jy
! Component: 200  -  total flux cleaned = 0.00855506 Jy
! Total flux subtracted in 200 components = 0.00855506 Jy
! Clean residual min=-0.002593 max=0.002635 Jy/beam
! Clean residual mean=0.000013 rms=0.000661 Jy/beam
! Combined flux in latest and established models = 0.513614 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 113 components and 0.513614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.060866Jy  sigma=1.024145
! Fit after  self-cal, rms=0.060843Jy  sigma=1.023758
! 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.136 x 10.33 at 1.585 degrees (North through East)
! Clean map  min=-0.0025182  max=0.33248 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.060843Jy  sigma=1.023758
! Fit after  self-cal, rms=0.057870Jy  sigma=0.970937
! 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.057870Jy  sigma=0.970937
! Fit after  self-cal, rms=0.057868Jy  sigma=0.970902
! Inverting map and beam 
! Estimated beam: bmin=3.136 mas, bmaj=10.31 mas, bpa=1.469 degrees
! Estimated noise=0.71501 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00193598 Jy
! Component: 100  -  total flux cleaned = 0.00258705 Jy
! Component: 150  -  total flux cleaned = 0.00293383 Jy
! Component: 200  -  total flux cleaned = 0.0031869 Jy
! Total flux subtracted in 200 components = 0.0031869 Jy
! Clean residual min=-0.002178 max=0.002499 Jy/beam
! Clean residual mean=0.000017 rms=0.000577 Jy/beam
! Combined flux in latest and established models = 0.516801 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 137 components and 0.516801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.057787Jy  sigma=0.969299
! Fit after  self-cal, rms=0.057783Jy  sigma=0.969190
! Inverting map 
! Added new window around map position (57.5, -10).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00139142 Jy
! Component: 100  -  total flux cleaned = 0.00173072 Jy
! Component: 150  -  total flux cleaned = 0.00204469 Jy
! Component: 200  -  total flux cleaned = 0.00235577 Jy
! Total flux subtracted in 200 components = 0.00235577 Jy
! Clean residual min=-0.002102 max=0.001882 Jy/beam
! Clean residual mean=0.000014 rms=0.000495 Jy/beam
! Combined flux in latest and established models = 0.519157 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 167 components and 0.519157 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.057643Jy  sigma=0.966680
! Fit after  self-cal, rms=0.057640Jy  sigma=0.966558
! 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.057640Jy  sigma=0.966558
! Fit after  self-cal, rms=0.055738Jy  sigma=0.925727
! 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.055738Jy  sigma=0.925727
! Fit after  self-cal, rms=0.055741Jy  sigma=0.925712
! Inverting map and beam 
! Estimated beam: bmin=3.134 mas, bmaj=10.3 mas, bpa=1.45 degrees
! Estimated noise=0.713779 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000917764 Jy
! Component: 100  -  total flux cleaned = 0.00141693 Jy
! Component: 150  -  total flux cleaned = 0.00174402 Jy
! Component: 200  -  total flux cleaned = 0.00194375 Jy
! Total flux subtracted in 200 components = 0.00194375 Jy
! Clean residual min=-0.001834 max=0.001750 Jy/beam
! Clean residual mean=0.000015 rms=0.000449 Jy/beam
! Combined flux in latest and established models = 0.5211 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 186 components and 0.521101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055691Jy  sigma=0.924906
! Fit after  self-cal, rms=0.055690Jy  sigma=0.924860
! 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.454 mas, bmaj=11.59 mas, bpa=2.381 degrees
! Estimated noise=0.912077 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.000206318 Jy
! Component: 100  -  total flux cleaned = 0.000575215 Jy
! Component: 150  -  total flux cleaned = 0.000907304 Jy
! Component: 200  -  total flux cleaned = 0.00102074 Jy
! Total flux subtracted in 200 components = 0.00102074 Jy
! Clean residual min=-0.001627 max=0.001560 Jy/beam
! Clean residual mean=0.000022 rms=0.000448 Jy/beam
! Combined flux in latest and established models = 0.522121 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 205 components and 0.522121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055690Jy  sigma=0.924711
! Fit after  self-cal, rms=0.055685Jy  sigma=0.924579
! 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.435 mas, bmaj=9.83 mas, bpa=1.762 degrees
! Estimated noise=1.3561 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.27824 Jy
! Component: 100  -  total flux cleaned = 0.380435 Jy
! Component: 150  -  total flux cleaned = 0.431892 Jy
! Component: 200  -  total flux cleaned = 0.459842 Jy
! Total flux subtracted in 200 components = 0.459842 Jy
! Clean residual min=-0.006860 max=0.010072 Jy/beam
! Clean residual mean=0.000070 rms=0.002383 Jy/beam
! Combined flux in latest and established models = 0.459842 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 21 model components to the UV plane model.
! The established model now contains 21 components and 0.459842 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.134 mas, bmaj=10.3 mas, bpa=1.45 degrees
! Estimated noise=0.713779 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.0233275 Jy
! Component: 100  -  total flux cleaned = 0.034506 Jy
! Component: 150  -  total flux cleaned = 0.0411126 Jy
! Component: 200  -  total flux cleaned = 0.0454892 Jy
! Total flux subtracted in 200 components = 0.0454892 Jy
! Clean residual min=-0.002781 max=0.003478 Jy/beam
! Clean residual mean=0.000040 rms=0.000856 Jy/beam
! Combined flux in latest and established models = 0.505331 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 81 components and 0.505331 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.454 mas, bmaj=11.59 mas, bpa=2.381 degrees
! Estimated noise=0.912077 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.00564301 Jy
! Component: 100  -  total flux cleaned = 0.00879239 Jy
! Component: 150  -  total flux cleaned = 0.010501 Jy
! Component: 200  -  total flux cleaned = 0.0117059 Jy
! Total flux subtracted in 200 components = 0.0117059 Jy
! Clean residual min=-0.002406 max=0.002059 Jy/beam
! Clean residual mean=0.000034 rms=0.000673 Jy/beam
! Combined flux in latest and established models = 0.517037 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 116 components and 0.517037 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.134 mas, bmaj=10.3 mas, bpa=1.45 degrees
! Estimated noise=0.713779 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00286603 Jy
! Component: 100  -  total flux cleaned = 0.00396194 Jy
! Component: 150  -  total flux cleaned = 0.00419826 Jy
! Component: 200  -  total flux cleaned = 0.00433375 Jy
! Total flux subtracted in 200 components = 0.00433375 Jy
! Clean residual min=-0.001739 max=0.001849 Jy/beam
! Clean residual mean=0.000014 rms=0.000513 Jy/beam
! Combined flux in latest and established models = 0.52137 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 136 components and 0.521371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055837Jy  sigma=0.927082
! Fit after  self-cal, rms=0.055823Jy  sigma=0.926776
wmodel J1323+7942_S_2006_02_14_yyk\_map.mod
! Writing 136 model components to file: J1323+7942_S_2006_02_14_yyk_map.mod
wobs J1323+7942_S_2006_02_14_yyk\_uvs.fits
! Writing UV FITS file: J1323+7942_S_2006_02_14_yyk_uvs.fits
wwins J1323+7942_S_2006_02_14_yyk\_map.win
! wwins: Wrote 4 windows to J1323+7942_S_2006_02_14_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.000240305 Jy
! Component: 100  -  total flux cleaned = 0.000442892 Jy
! Component: 150  -  total flux cleaned = 0.000580585 Jy
! Component: 200  -  total flux cleaned = 0.00063359 Jy
! Component: 250  -  total flux cleaned = 0.000733553 Jy
! Component: 300  -  total flux cleaned = 0.000757201 Jy
! Component: 350  -  total flux cleaned = 0.000804124 Jy
! Component: 400  -  total flux cleaned = 0.000827042 Jy
! Component: 450  -  total flux cleaned = 0.000849143 Jy
! Component: 500  -  total flux cleaned = 0.000806327 Jy
! Component: 550  -  total flux cleaned = 0.000869696 Jy
! Component: 600  -  total flux cleaned = 0.000930774 Jy
! Component: 650  -  total flux cleaned = 0.000991122 Jy
! Component: 700  -  total flux cleaned = 0.00107004 Jy
! Component: 750  -  total flux cleaned = 0.0012045 Jy
! Component: 800  -  total flux cleaned = 0.00124257 Jy
! Component: 850  -  total flux cleaned = 0.00139123 Jy
! Component: 900  -  total flux cleaned = 0.00146431 Jy
! Component: 950  -  total flux cleaned = 0.00158919 Jy
! Component: 1000  -  total flux cleaned = 0.00165933 Jy
! Component: 1050  -  total flux cleaned = 0.00174593 Jy
! Component: 1100  -  total flux cleaned = 0.00183144 Jy
! Component: 1150  -  total flux cleaned = 0.00196545 Jy
! Component: 1200  -  total flux cleaned = 0.00201497 Jy
! Component: 1250  -  total flux cleaned = 0.00207979 Jy
! Component: 1300  -  total flux cleaned = 0.00214381 Jy
! Component: 1350  -  total flux cleaned = 0.00214385 Jy
! Component: 1400  -  total flux cleaned = 0.00223757 Jy
! Component: 1450  -  total flux cleaned = 0.00225317 Jy
! Component: 1500  -  total flux cleaned = 0.00229869 Jy
! Component: 1550  -  total flux cleaned = 0.00237389 Jy
! Component: 1600  -  total flux cleaned = 0.00238865 Jy
! Component: 1650  -  total flux cleaned = 0.00243271 Jy
! Component: 1700  -  total flux cleaned = 0.00249057 Jy
! Component: 1750  -  total flux cleaned = 0.00251904 Jy
! Component: 1800  -  total flux cleaned = 0.00253324 Jy
! Component: 1850  -  total flux cleaned = 0.00256138 Jy
! Component: 1900  -  total flux cleaned = 0.0025753 Jy
! Component: 1950  -  total flux cleaned = 0.00252071 Jy
! Component: 2000  -  total flux cleaned = 0.00257502 Jy
! Total flux subtracted in 2048 components = 0.00250766 Jy
! Clean residual min=-0.000863 max=0.000751 Jy/beam
! Clean residual mean=0.000002 rms=0.000278 Jy/beam
! Combined flux in latest and established models = 0.523878 Jy
keep
! Adding 155 model components to the UV plane model.
! The established model now contains 291 components and 0.523878 Jy
![Exited script file: muppet]
wmap "J1323+7942_S_2006_02_14_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.134 x 10.3 at 1.45 degrees (North through East)
! Clean map  min=-0.0014165  max=0.33215 Jy/beam
! Writing clean map to FITS file: J1323+7942_S_2006_02_14_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.332149 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000278647 
device "J1323+7942_S_2006_02_14_yyk\_map.eps/VPS"
! Attempting to open device: 'J1323+7942_S_2006_02_14_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.251676 0.251676 0.503353 1.00671 2.01341 4.02682 8.05365 16.1073 32.2146 64.4292
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0008 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.332 
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.134 x 10.3 at 1.45 degrees (North through East)
! Clean map  min=-0.0014165  max=0.33215 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1323+7942_S_2006_02_14_yyk\_map.gif/gif"
! Attempting to open device: 'J1323+7942_S_2006_02_14_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1323+7942_S_2006_02_14_yyk_uvs.log closed on Wed Jul  5 12:32:28 2006