! Started logfile: J0349-2102_S_1997_08_27_yyk_uvs.log on Sun Jan  7 16:07:50 2007
obs J0349-2102_S_1997_08_27_yyk_uva.fits
! Reading UV FITS file: J0349-2102_S_1997_08_27_yyk_uva.fits
! AN table 1: 139 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.927738 visibilities/baseline/integration-bin.
! Found source: J0349-2102
! 
! 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.22447e+09        8e+06          1        8e+06
!  02        2  2.23447e+09        8e+06          1        8e+06
!  03        3  2.29447e+09        8e+06          1        8e+06
!  04        4  2.32447e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 703 lines of history.
! 
! Reading 23212 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 J0349-2102_S_1997_08_27_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.618673 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.859 mas, bmaj=6.67 mas, bpa=-9.057 degrees
! Estimated noise=1962.86 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.413131 Jy
! Component: 100  -  total flux cleaned = 0.508825 Jy
! Total flux subtracted in 100 components = 0.508825 Jy
! Clean residual min=-0.034528 max=0.044285 Jy/beam
! Clean residual mean=0.000141 rms=0.009239 Jy/beam
! Combined flux in latest and established models = 0.508825 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 0.508825 Jy
! 
! Correcting IF 1.
!  A total of 194 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 56 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 56 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 56 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.352600Jy  sigma=0.001283
! Fit after  self-cal, rms=0.352184Jy  sigma=0.001281
! Inverting map and beam 
! Estimated beam: bmin=2.859 mas, bmaj=6.67 mas, bpa=-9.057 degrees
! Estimated noise=1962.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.481 mas, bmaj=8.697 mas, bpa=-7.693 degrees
! Estimated noise=1223.99 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.00397495 Jy
! Component: 100  -  total flux cleaned = 0.00290652 Jy
! Component: 150  -  total flux cleaned = 0.00294687 Jy
! Component: 200  -  total flux cleaned = 0.00288421 Jy
! Total flux subtracted in 200 components = 0.00288421 Jy
! Clean residual min=-0.016984 max=0.021555 Jy/beam
! Clean residual mean=0.000213 rms=0.004989 Jy/beam
! Combined flux in latest and established models = 0.511709 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 23 components and 0.511709 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346786Jy  sigma=0.001262
! Fit after  self-cal, rms=0.346757Jy  sigma=0.001262
! 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.481 x 8.697 at -7.693 degrees (North through East)
! Clean map  min=-0.014363  max=0.47187 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.03293
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.09     HN        0.89     KP        0.93     
!   LA        0.99     MK        0.91     NL        1.00*    OV        1.09     
!   PT        1.00     SC        0.84     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.995144
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.16     HN        0.97     KP        0.96     
!   LA        1.10     MK        0.96     NL        0.94     OV        1.06     
!   PT        0.97     SC        0.89     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.06062
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.05     HN        0.91     KP        0.91     
!   LA        0.82     MK        0.81     NL        0.94     OV        0.95     
!   PT        1.12     SC        0.99     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.0131
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.14     HN        1.11     KP        0.96     
!   LA        0.87     MK        0.92     NL        1.03     OV        0.96     
!   PT        0.95     SC        0.98     
! 
! 
! Fit before self-cal, rms=0.346757Jy  sigma=0.001262
! Fit after  self-cal, rms=0.334245Jy  sigma=0.001247
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.334245Jy  sigma=0.001247
! Fit after  self-cal, rms=0.334226Jy  sigma=0.001247
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.294 mas, bmaj=8.269 mas, bpa=-8.18 degrees
! Estimated noise=1237.07 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 (4.5, -9.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0247316 Jy
! Component: 100  -  total flux cleaned = 0.0287899 Jy
! Component: 150  -  total flux cleaned = 0.0294208 Jy
! Component: 200  -  total flux cleaned = 0.0299787 Jy
! Total flux subtracted in 200 components = 0.0299787 Jy
! Clean residual min=-0.013153 max=0.015843 Jy/beam
! Clean residual mean=0.000087 rms=0.003447 Jy/beam
! Combined flux in latest and established models = 0.541687 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 44 components and 0.541687 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331570Jy  sigma=0.001236
! Fit after  self-cal, rms=0.331512Jy  sigma=0.001236
! 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.331512Jy  sigma=0.001236
! Fit after  self-cal, rms=0.330004Jy  sigma=0.001230
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.00279741 Jy
! Component: 100  -  total flux cleaned = 0.00281156 Jy
! Component: 150  -  total flux cleaned = 0.00322477 Jy
! Component: 200  -  total flux cleaned = 0.00321889 Jy
! Total flux subtracted in 200 components = 0.00321889 Jy
! Clean residual min=-0.013115 max=0.013550 Jy/beam
! Clean residual mean=0.000071 rms=0.003115 Jy/beam
! Combined flux in latest and established models = 0.544906 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 53 components and 0.544906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329284Jy  sigma=0.001227
! Fit after  self-cal, rms=0.329114Jy  sigma=0.001227
! 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.294 x 8.269 at -8.18 degrees (North through East)
! Clean map  min=-0.014261  max=0.47333 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.329114Jy  sigma=0.001227
! Fit after  self-cal, rms=0.751851Jy  sigma=0.001214
! 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.751851Jy  sigma=0.001214
! Fit after  self-cal, rms=0.751809Jy  sigma=0.001214
! Inverting map and beam 
! Estimated beam: bmin=3.259 mas, bmaj=9.256 mas, bpa=-4.236 degrees
! Estimated noise=1248.91 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000494786 Jy
! Component: 100  -  total flux cleaned = 0.00121848 Jy
! Component: 150  -  total flux cleaned = 0.00153076 Jy
! Component: 200  -  total flux cleaned = 0.0018155 Jy
! Total flux subtracted in 200 components = 0.0018155 Jy
! Clean residual min=-0.008012 max=0.009313 Jy/beam
! Clean residual mean=0.000069 rms=0.002157 Jy/beam
! Combined flux in latest and established models = 0.546722 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 72 components and 0.546722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.751607Jy  sigma=0.001212
! Fit after  self-cal, rms=0.751525Jy  sigma=0.001212
! 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.751525Jy  sigma=0.001212
! Fit after  self-cal, rms=0.858057Jy  sigma=0.001210
! 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.858057Jy  sigma=0.001210
! Fit after  self-cal, rms=0.858128Jy  sigma=0.001210
! Inverting map and beam 
! Estimated beam: bmin=3.244 mas, bmaj=9.256 mas, bpa=-4.35 degrees
! Estimated noise=1245.37 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00043244 Jy
! Component: 100  -  total flux cleaned = 0.000926462 Jy
! Component: 150  -  total flux cleaned = 0.00115168 Jy
! Component: 200  -  total flux cleaned = 0.00157095 Jy
! Total flux subtracted in 200 components = 0.00157095 Jy
! Clean residual min=-0.006822 max=0.008442 Jy/beam
! Clean residual mean=0.000065 rms=0.001914 Jy/beam
! Combined flux in latest and established models = 0.548293 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 82 components and 0.548293 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.858020Jy  sigma=0.001209
! Fit after  self-cal, rms=0.858073Jy  sigma=0.001209
! Inverting map 
! Added new window around map position (34, -15.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0041274 Jy
! Component: 100  -  total flux cleaned = 0.0043832 Jy
! Component: 150  -  total flux cleaned = 0.00417765 Jy
! Component: 200  -  total flux cleaned = 0.00435392 Jy
! Total flux subtracted in 200 components = 0.00435392 Jy
! Clean residual min=-0.005511 max=0.006173 Jy/beam
! Clean residual mean=0.000074 rms=0.001610 Jy/beam
! Combined flux in latest and established models = 0.552646 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 106 components and 0.552647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.858006Jy  sigma=0.001208
! Fit after  self-cal, rms=0.858043Jy  sigma=0.001208
! 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.78 mas, bmaj=16.85 mas, bpa=-1.151 degrees
! Estimated noise=1585.47 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.0027896 Jy
! Component: 100  -  total flux cleaned = 0.00269 Jy
! Component: 150  -  total flux cleaned = 0.00242195 Jy
! Component: 200  -  total flux cleaned = 0.00217991 Jy
! Total flux subtracted in 200 components = 0.00217991 Jy
! Clean residual min=-0.004929 max=0.005703 Jy/beam
! Clean residual mean=0.000133 rms=0.001804 Jy/beam
! Combined flux in latest and established models = 0.554826 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 118 components and 0.554826 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.857999Jy  sigma=0.001208
! Fit after  self-cal, rms=0.858023Jy  sigma=0.001208
! 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.857 mas, bmaj=7.666 mas, bpa=-2.233 degrees
! Estimated noise=2153.71 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.429926 Jy
! Component: 100  -  total flux cleaned = 0.508105 Jy
! Component: 150  -  total flux cleaned = 0.535549 Jy
! Component: 200  -  total flux cleaned = 0.542358 Jy
! Total flux subtracted in 200 components = 0.542358 Jy
! Clean residual min=-0.013314 max=0.011338 Jy/beam
! Clean residual mean=0.000076 rms=0.003226 Jy/beam
! Combined flux in latest and established models = 0.542358 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 26 model components to the UV plane model.
! The established model now contains 26 components and 0.542358 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.244 mas, bmaj=9.256 mas, bpa=-4.35 degrees
! Estimated noise=1245.37 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.0119207 Jy
! Component: 100  -  total flux cleaned = 0.0136241 Jy
! Component: 150  -  total flux cleaned = 0.013168 Jy
! Component: 200  -  total flux cleaned = 0.0131826 Jy
! Total flux subtracted in 200 components = 0.0131826 Jy
! Clean residual min=-0.005048 max=0.005309 Jy/beam
! Clean residual mean=0.000080 rms=0.001519 Jy/beam
! Combined flux in latest and established models = 0.55554 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 47 components and 0.55554 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.78 mas, bmaj=16.85 mas, bpa=-1.151 degrees
! Estimated noise=1585.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.000603958 Jy
! Component: 100  -  total flux cleaned = -7.26122e-05 Jy
! Component: 150  -  total flux cleaned = 0.000152621 Jy
! Component: 200  -  total flux cleaned = 0.000257062 Jy
! Total flux subtracted in 200 components = 0.000257062 Jy
! Clean residual min=-0.005125 max=0.005719 Jy/beam
! Clean residual mean=0.000144 rms=0.001834 Jy/beam
! Combined flux in latest and established models = 0.555797 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 71 components and 0.555797 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.244 mas, bmaj=9.256 mas, bpa=-4.35 degrees
! Estimated noise=1245.37 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00229303 Jy
! Component: 100  -  total flux cleaned = -0.00244713 Jy
! Component: 150  -  total flux cleaned = -0.00244813 Jy
! Component: 200  -  total flux cleaned = -0.00245007 Jy
! Total flux subtracted in 200 components = -0.00245007 Jy
! Clean residual min=-0.004835 max=0.005090 Jy/beam
! Clean residual mean=0.000076 rms=0.001354 Jy/beam
! Combined flux in latest and established models = 0.553347 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 84 components and 0.553347 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.859967Jy  sigma=0.001208
! Fit after  self-cal, rms=0.858913Jy  sigma=0.001208
wmodel J0349-2102_S_1997_08_27_yyk\_map.mod
! Writing 84 model components to file: J0349-2102_S_1997_08_27_yyk_map.mod
wobs J0349-2102_S_1997_08_27_yyk\_uvs.fits
! Writing UV FITS file: J0349-2102_S_1997_08_27_yyk_uvs.fits
wwins J0349-2102_S_1997_08_27_yyk\_map.win
! wwins: Wrote 3 windows to J0349-2102_S_1997_08_27_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.00095365 Jy
! Component: 100  -  total flux cleaned = 0.00111664 Jy
! Component: 150  -  total flux cleaned = 0.00142186 Jy
! Component: 200  -  total flux cleaned = 0.0016411 Jy
! Component: 250  -  total flux cleaned = 0.00191779 Jy
! Component: 300  -  total flux cleaned = 0.00198257 Jy
! Component: 350  -  total flux cleaned = 0.00223971 Jy
! Component: 400  -  total flux cleaned = 0.00248932 Jy
! Component: 450  -  total flux cleaned = 0.00260981 Jy
! Component: 500  -  total flux cleaned = 0.00272581 Jy
! Component: 550  -  total flux cleaned = 0.00283802 Jy
! Component: 600  -  total flux cleaned = 0.00294719 Jy
! Component: 650  -  total flux cleaned = 0.00305341 Jy
! Component: 700  -  total flux cleaned = 0.00310584 Jy
! Component: 750  -  total flux cleaned = 0.00346143 Jy
! Component: 800  -  total flux cleaned = 0.00366003 Jy
! Component: 850  -  total flux cleaned = 0.00390358 Jy
! Component: 900  -  total flux cleaned = 0.00409443 Jy
! Component: 950  -  total flux cleaned = 0.0044221 Jy
! Component: 1000  -  total flux cleaned = 0.00469744 Jy
! Component: 1050  -  total flux cleaned = 0.00487824 Jy
! Component: 1100  -  total flux cleaned = 0.00518783 Jy
! Component: 1150  -  total flux cleaned = 0.00523023 Jy
! Component: 1200  -  total flux cleaned = 0.0053155 Jy
! Component: 1250  -  total flux cleaned = 0.00539981 Jy
! Component: 1300  -  total flux cleaned = 0.0054411 Jy
! Component: 1350  -  total flux cleaned = 0.0056048 Jy
! Component: 1400  -  total flux cleaned = 0.00580626 Jy
! Component: 1450  -  total flux cleaned = 0.00600345 Jy
! Component: 1500  -  total flux cleaned = 0.00608095 Jy
! Component: 1550  -  total flux cleaned = 0.00631148 Jy
! Component: 1600  -  total flux cleaned = 0.00638707 Jy
! Component: 1650  -  total flux cleaned = 0.00661108 Jy
! Component: 1700  -  total flux cleaned = 0.0066484 Jy
! Component: 1750  -  total flux cleaned = 0.006831 Jy
! Component: 1800  -  total flux cleaned = 0.00683107 Jy
! Component: 1850  -  total flux cleaned = 0.00697413 Jy
! Component: 1900  -  total flux cleaned = 0.00700882 Jy
! Component: 1950  -  total flux cleaned = 0.00700867 Jy
! Component: 2000  -  total flux cleaned = 0.00697403 Jy
! Total flux subtracted in 2048 components = 0.00697409 Jy
! Clean residual min=-0.001709 max=0.001785 Jy/beam
! Clean residual mean=0.000067 rms=0.000690 Jy/beam
! Combined flux in latest and established models = 0.560321 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 219 components and 0.560321 Jy
![Exited script file: muppet]
wmap "J0349-2102_S_1997_08_27_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.244 x 9.256 at -4.35 degrees (North through East)
! Clean map  min=-0.0035444  max=0.49733 Jy/beam
! Writing clean map to FITS file: J0349-2102_S_1997_08_27_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.49733 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000689742 
device "J0349-2102_S_1997_08_27_yyk\_map.eps/VPS"
! Attempting to open device: 'J0349-2102_S_1997_08_27_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.416067 0.416067 0.832134 1.66427 3.32854 6.65707 13.3141 26.6283 53.2566
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.497 
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.244 x 9.256 at -4.35 degrees (North through East)
! Clean map  min=-0.0035444  max=0.49733 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0349-2102_S_1997_08_27_yyk\_map.gif/gif"
! Attempting to open device: 'J0349-2102_S_1997_08_27_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0349-2102_S_1997_08_27_yyk_uvs.log closed on Sun Jan  7 16:07:58 2007