! Started logfile: J0513-2016_X_2006_12_18_yyk_uvs.log on Mon Jun 16 19:16:59 2008
obs J0513-2016_X_2006_12_18_yyk_uve.fits
! Reading UV FITS file: J0513-2016_X_2006_12_18_yyk_uve.fits
! AN table 1: 16 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.840278 visibilities/baseline/integration-bin.
! Found source: J0513-2016
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2161 lines of history.
! 
! Reading 2420 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 J0513-2016_X_2006_12_18_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.200x0.200 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.130399 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=0.6867 mas, bmaj=1.881 mas, bpa=1.709 degrees
! Estimated noise=1.30597 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.0752109 Jy
! Component: 100  -  total flux cleaned = 0.0993289 Jy
! Total flux subtracted in 100 components = 0.0993289 Jy
! Clean residual min=-0.011375 max=0.016866 Jy/beam
! Clean residual mean=-0.000051 rms=0.003249 Jy/beam
! Combined flux in latest and established models = 0.0993289 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.0993289 Jy
! 
! Correcting IF 1.
!  A total of 14 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 14 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 32 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.090721Jy  sigma=1.479991
! Fit after  self-cal, rms=0.088225Jy  sigma=1.435555
! Inverting map and beam 
! Estimated beam: bmin=0.6867 mas, bmaj=1.881 mas, bpa=1.709 degrees
! Estimated noise=1.30597 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=0.8677 mas, bmaj=2.247 mas, bpa=0.2419 degrees
! Estimated noise=0.8428 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.0187996 Jy
! Component: 100  -  total flux cleaned = 0.0254222 Jy
! Component: 150  -  total flux cleaned = 0.0266707 Jy
! Component: 200  -  total flux cleaned = 0.0275068 Jy
! Total flux subtracted in 200 components = 0.0275068 Jy
! Clean residual min=-0.006963 max=0.009284 Jy/beam
! Clean residual mean=-0.000027 rms=0.002106 Jy/beam
! Combined flux in latest and established models = 0.126836 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 30 components and 0.126836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.086220Jy  sigma=1.380782
! Fit after  self-cal, rms=0.077389Jy  sigma=1.200315
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8677 x 2.247 at 0.2419 degrees (North through East)
! Clean map  min=-0.0049923  max=0.097279 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
! Selfcal amplitude corrections will be limited to 0.833333 -> 1.2.
! Selfcal phase corrections will not be limited.
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1.06197
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.96     HN        1.06     KP        0.91     
!   LA        0.93     MK        0.84     NL        1.02     OV        0.90     
!   PT        0.91     SC        0.93     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.03979
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.05     HN        0.84     KP        0.86     
!   LA        0.91     MK        1.00*    NL        0.95     OV        0.97     
!   PT        1.10     SC        1.02     
! 
! 
! Fit before self-cal, rms=0.077389Jy  sigma=1.200315
! Fit after  self-cal, rms=0.076235Jy  sigma=1.192156
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.076235Jy  sigma=1.192156
! Fit after  self-cal, rms=0.076070Jy  sigma=1.189603
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8586 mas, bmaj=2.234 mas, bpa=-0.5356 degrees
! Estimated noise=0.836805 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 (-1.2, -1).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113136 Jy
! Component: 100  -  total flux cleaned = 0.0166976 Jy
! Component: 150  -  total flux cleaned = 0.0175712 Jy
! Component: 200  -  total flux cleaned = 0.017806 Jy
! Total flux subtracted in 200 components = 0.017806 Jy
! Clean residual min=-0.004427 max=0.005081 Jy/beam
! Clean residual mean=-0.000019 rms=0.001205 Jy/beam
! Combined flux in latest and established models = 0.144642 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 52 components and 0.144642 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.074854Jy  sigma=1.163798
! Fit after  self-cal, rms=0.074645Jy  sigma=1.160063
! 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.074645Jy  sigma=1.160063
! Fit after  self-cal, rms=0.065669Jy  sigma=1.016663
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.00399975 Jy
! Component: 100  -  total flux cleaned = 0.00498768 Jy
! Component: 150  -  total flux cleaned = 0.00524323 Jy
! Component: 200  -  total flux cleaned = 0.00545469 Jy
! Total flux subtracted in 200 components = 0.00545469 Jy
! Clean residual min=-0.003382 max=0.004079 Jy/beam
! Clean residual mean=-0.000011 rms=0.000994 Jy/beam
! Combined flux in latest and established models = 0.150096 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 65 components and 0.150096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.064999Jy  sigma=1.003502
! Fit after  self-cal, rms=0.064428Jy  sigma=0.996445
! 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: 0.8586 x 2.234 at -0.5356 degrees (North through East)
! Clean map  min=-0.0031384  max=0.099601 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
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.168 mas, bmaj=5.228 mas, bpa=3.949 degrees
! Estimated noise=1.07168 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.000856627 Jy
! Component: 100  -  total flux cleaned = 0.000949734 Jy
! Component: 150  -  total flux cleaned = 0.000949879 Jy
! Component: 200  -  total flux cleaned = 0.000905246 Jy
! Total flux subtracted in 200 components = 0.000905246 Jy
! Clean residual min=-0.003243 max=0.004234 Jy/beam
! Clean residual mean=-0.000018 rms=0.001075 Jy/beam
! Combined flux in latest and established models = 0.151002 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 78 components and 0.151002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.064357Jy  sigma=0.995449
! Fit after  self-cal, rms=0.064250Jy  sigma=0.994367
! 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=0.6831 mas, bmaj=1.879 mas, bpa=1.349 degrees
! Estimated noise=1.29483 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.089943 Jy
! Component: 100  -  total flux cleaned = 0.114482 Jy
! Component: 150  -  total flux cleaned = 0.127007 Jy
! Component: 200  -  total flux cleaned = 0.135326 Jy
! Total flux subtracted in 200 components = 0.135326 Jy
! Clean residual min=-0.005179 max=0.007188 Jy/beam
! Clean residual mean=-0.000027 rms=0.001546 Jy/beam
! Combined flux in latest and established models = 0.135326 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 19 model components to the UV plane model.
! The established model now contains 19 components and 0.135326 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8586 mas, bmaj=2.234 mas, bpa=-0.5356 degrees
! Estimated noise=0.836805 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.00816065 Jy
! Component: 100  -  total flux cleaned = 0.0114358 Jy
! Component: 150  -  total flux cleaned = 0.0125454 Jy
! Component: 200  -  total flux cleaned = 0.0128514 Jy
! Total flux subtracted in 200 components = 0.0128514 Jy
! Clean residual min=-0.003158 max=0.004062 Jy/beam
! Clean residual mean=-0.000017 rms=0.001003 Jy/beam
! Combined flux in latest and established models = 0.148177 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 42 components and 0.148177 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.168 mas, bmaj=5.228 mas, bpa=3.949 degrees
! Estimated noise=1.07168 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.00166271 Jy
! Component: 100  -  total flux cleaned = 0.00211643 Jy
! Component: 150  -  total flux cleaned = 0.00217723 Jy
! Component: 200  -  total flux cleaned = 0.00217835 Jy
! Total flux subtracted in 200 components = 0.00217835 Jy
! Clean residual min=-0.003271 max=0.004399 Jy/beam
! Clean residual mean=-0.000021 rms=0.001076 Jy/beam
! Combined flux in latest and established models = 0.150356 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 60 components and 0.150356 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8586 mas, bmaj=2.234 mas, bpa=-0.5356 degrees
! Estimated noise=0.836805 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000979207 Jy
! Component: 100  -  total flux cleaned = -0.000991086 Jy
! Component: 150  -  total flux cleaned = -0.00110744 Jy
! Component: 200  -  total flux cleaned = -0.0010523 Jy
! Total flux subtracted in 200 components = -0.0010523 Jy
! Clean residual min=-0.003040 max=0.003820 Jy/beam
! Clean residual mean=-0.000014 rms=0.000953 Jy/beam
! Combined flux in latest and established models = 0.149303 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 74 components and 0.149303 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.064113Jy  sigma=0.992322
! Fit after  self-cal, rms=0.064064Jy  sigma=0.991826
wmodel J0513-2016_X_2006_12_18_yyk\_map.mod
! Writing 74 model components to file: J0513-2016_X_2006_12_18_yyk_map.mod
wobs J0513-2016_X_2006_12_18_yyk\_uvs.fits
! Writing UV FITS file: J0513-2016_X_2006_12_18_yyk_uvs.fits
wwins J0513-2016_X_2006_12_18_yyk\_map.win
! wwins: Wrote 2 windows to J0513-2016_X_2006_12_18_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.00167042 Jy
! Component: 100  -  total flux cleaned = 0.00318244 Jy
! Component: 150  -  total flux cleaned = 0.00397607 Jy
! Component: 200  -  total flux cleaned = 0.00461673 Jy
! Component: 250  -  total flux cleaned = 0.0051283 Jy
! Component: 300  -  total flux cleaned = 0.00527615 Jy
! Component: 350  -  total flux cleaned = 0.0054191 Jy
! Component: 400  -  total flux cleaned = 0.00555796 Jy
! Component: 450  -  total flux cleaned = 0.00560229 Jy
! Component: 500  -  total flux cleaned = 0.00551579 Jy
! Component: 550  -  total flux cleaned = 0.00564481 Jy
! Component: 600  -  total flux cleaned = 0.00589281 Jy
! Component: 650  -  total flux cleaned = 0.00576942 Jy
! Component: 700  -  total flux cleaned = 0.00556956 Jy
! Component: 750  -  total flux cleaned = 0.00553134 Jy
! Component: 800  -  total flux cleaned = 0.00549377 Jy
! Component: 850  -  total flux cleaned = 0.00553096 Jy
! Component: 900  -  total flux cleaned = 0.00556862 Jy
! Component: 950  -  total flux cleaned = 0.00564179 Jy
! Component: 1000  -  total flux cleaned = 0.00567828 Jy
! Component: 1050  -  total flux cleaned = 0.00574993 Jy
! Component: 1100  -  total flux cleaned = 0.005715 Jy
! Component: 1150  -  total flux cleaned = 0.00581962 Jy
! Component: 1200  -  total flux cleaned = 0.00581953 Jy
! Component: 1250  -  total flux cleaned = 0.00592026 Jy
! Component: 1300  -  total flux cleaned = 0.00588664 Jy
! Component: 1350  -  total flux cleaned = 0.00591906 Jy
! Component: 1400  -  total flux cleaned = 0.00598367 Jy
! Component: 1450  -  total flux cleaned = 0.00604764 Jy
! Component: 1500  -  total flux cleaned = 0.00617567 Jy
! Component: 1550  -  total flux cleaned = 0.00623874 Jy
! Component: 1600  -  total flux cleaned = 0.0063316 Jy
! Component: 1650  -  total flux cleaned = 0.00645417 Jy
! Component: 1700  -  total flux cleaned = 0.00657573 Jy
! Component: 1750  -  total flux cleaned = 0.0066358 Jy
! Component: 1800  -  total flux cleaned = 0.00669563 Jy
! Component: 1850  -  total flux cleaned = 0.00684256 Jy
! Component: 1900  -  total flux cleaned = 0.00698796 Jy
! Component: 1950  -  total flux cleaned = 0.00710327 Jy
! Component: 2000  -  total flux cleaned = 0.00727467 Jy
! Total flux subtracted in 2048 components = 0.00750122 Jy
! Clean residual min=-0.001639 max=0.001411 Jy/beam
! Clean residual mean=-0.000003 rms=0.000555 Jy/beam
! Combined flux in latest and established models = 0.156805 Jy
keep
! Adding 158 model components to the UV plane model.
! The established model now contains 232 components and 0.156805 Jy
![Exited script file: muppet]
wmap "J0513-2016_X_2006_12_18_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8586 x 2.234 at -0.5356 degrees (North through East)
! Clean map  min=-0.0031648  max=0.10325 Jy/beam
! Writing clean map to FITS file: J0513-2016_X_2006_12_18_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.10325 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000554533 
device "J0513-2016_X_2006_12_18_yyk\_map.eps/VPS"
! Attempting to open device: 'J0513-2016_X_2006_12_18_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.61124 1.61124 3.22247 6.44494 12.8899 25.7798 51.5595
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.103 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8586 x 2.234 at -0.5356 degrees (North through East)
! Clean map  min=-0.0031648  max=0.10325 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0513-2016_X_2006_12_18_yyk\_map.gif/gif"
! Attempting to open device: 'J0513-2016_X_2006_12_18_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0513-2016_X_2006_12_18_yyk_uvs.log closed on Mon Jun 16 19:17:04 2008