! Started logfile: J1852+1426_X_2006_12_18_yyk_uvs.log on Wed Apr  9 20:40:17 2008
obs J1852+1426_X_2006_12_18_yyk_uve.fits
! Reading UV FITS file: J1852+1426_X_2006_12_18_yyk_uve.fits
! AN table 1: 18 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.749383 visibilities/baseline/integration-bin.
! Found source: J1852+1426
! 
! 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 2428 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 J1852+1426_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.117494 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.747 mas, bmaj=2.105 mas, bpa=-15.6 degrees
! Estimated noise=1.37728 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.0806757 Jy
! Component: 100  -  total flux cleaned = 0.100803 Jy
! Total flux subtracted in 100 components = 0.100803 Jy
! Clean residual min=-0.006626 max=0.007341 Jy/beam
! Clean residual mean=-0.000004 rms=0.001575 Jy/beam
! Combined flux in latest and established models = 0.100803 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.100803 Jy
! 
! Correcting IF 1.
!  A total of 45 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 79 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.070818Jy  sigma=1.074998
! Fit after  self-cal, rms=0.069092Jy  sigma=1.050328
! Inverting map and beam 
! Estimated beam: bmin=0.747 mas, bmaj=2.105 mas, bpa=-15.6 degrees
! Estimated noise=1.37728 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.8938 mas, bmaj=2.835 mas, bpa=-17.05 degrees
! Estimated noise=0.928622 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.00902073 Jy
! Component: 100  -  total flux cleaned = 0.0109268 Jy
! Component: 150  -  total flux cleaned = 0.0108614 Jy
! Component: 200  -  total flux cleaned = 0.0107596 Jy
! Total flux subtracted in 200 components = 0.0107596 Jy
! Clean residual min=-0.003733 max=0.004409 Jy/beam
! Clean residual mean=0.000012 rms=0.001012 Jy/beam
! Combined flux in latest and established models = 0.111563 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 34 components and 0.111563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068620Jy  sigma=1.031553
! Fit after  self-cal, rms=0.068620Jy  sigma=1.031527
! 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.8938 x 2.835 at -17.05 degrees (North through East)
! Clean map  min=-0.0035658  max=0.09415 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
!  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 2.
!  Amplitude normalization factor in sub-array 1: 1.00351
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00*    HN        1.06     KP        0.90     
!   LA        0.96     MK        0.97     NL        1.01     OV        1.01     
!   PT        1.09     SC        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.0035
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    HN        0.93     KP        0.91     
!   LA        0.96     MK        1.02     NL        0.98     OV        1.03     
!   PT        1.13     SC        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.987871
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        0.96     KP        0.88     
!   LA        1.13     MK        1.01     NL        0.99     OV        1.01     
!   PT        1.13     SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.068620Jy  sigma=1.031527
! Fit after  self-cal, rms=0.068106Jy  sigma=1.022564
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.068106Jy  sigma=1.022564
! Fit after  self-cal, rms=0.068105Jy  sigma=1.022536
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8914 mas, bmaj=2.812 mas, bpa=-17.13 degrees
! Estimated noise=0.92711 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.00165583 Jy
! Component: 100  -  total flux cleaned = 0.00186787 Jy
! Component: 150  -  total flux cleaned = 0.00189942 Jy
! Component: 200  -  total flux cleaned = 0.0019255 Jy
! Total flux subtracted in 200 components = 0.0019255 Jy
! Clean residual min=-0.003740 max=0.003249 Jy/beam
! Clean residual mean=0.000009 rms=0.000904 Jy/beam
! Combined flux in latest and established models = 0.113489 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 39 components and 0.113489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068083Jy  sigma=1.021751
! Fit after  self-cal, rms=0.068076Jy  sigma=1.021731
! 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.068076Jy  sigma=1.021731
! Fit after  self-cal, rms=0.062469Jy  sigma=0.943931
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.00217692 Jy
! Component: 100  -  total flux cleaned = 0.00229076 Jy
! Component: 150  -  total flux cleaned = 0.00238178 Jy
! Component: 200  -  total flux cleaned = 0.00238178 Jy
! Total flux subtracted in 200 components = 0.00238178 Jy
! Clean residual min=-0.003463 max=0.003169 Jy/beam
! Clean residual mean=0.000008 rms=0.000864 Jy/beam
! Combined flux in latest and established models = 0.11587 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 46 components and 0.11587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.062437Jy  sigma=0.942494
! Fit after  self-cal, rms=0.061117Jy  sigma=0.934773
! 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.8914 x 2.812 at -17.13 degrees (North through East)
! Clean map  min=-0.0031617  max=0.096534 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.052 mas, bmaj=3.386 mas, bpa=-15.5 degrees
! Estimated noise=1.16239 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.000394391 Jy
! Component: 100  -  total flux cleaned = 0.000320784 Jy
! Component: 150  -  total flux cleaned = 0.000279268 Jy
! Component: 200  -  total flux cleaned = 0.000242529 Jy
! Total flux subtracted in 200 components = 0.000242529 Jy
! Clean residual min=-0.003814 max=0.003015 Jy/beam
! Clean residual mean=0.000016 rms=0.001076 Jy/beam
! Combined flux in latest and established models = 0.116113 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 56 components and 0.116113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.061120Jy  sigma=0.934787
! Fit after  self-cal, rms=0.060552Jy  sigma=0.932764
! 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.7451 mas, bmaj=2.101 mas, bpa=-15.63 degrees
! Estimated noise=1.37629 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0849477 Jy
! Component: 100  -  total flux cleaned = 0.105715 Jy
! Component: 150  -  total flux cleaned = 0.112749 Jy
! Component: 200  -  total flux cleaned = 0.116053 Jy
! Total flux subtracted in 200 components = 0.116053 Jy
! Clean residual min=-0.004236 max=0.004621 Jy/beam
! Clean residual mean=0.000001 rms=0.001117 Jy/beam
! Combined flux in latest and established models = 0.116052 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 24 model components to the UV plane model.
! The established model now contains 24 components and 0.116052 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8914 mas, bmaj=2.812 mas, bpa=-17.13 degrees
! Estimated noise=0.92711 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.000758372 Jy
! Component: 100  -  total flux cleaned = 0.000467959 Jy
! Component: 150  -  total flux cleaned = 0.000348253 Jy
! Component: 200  -  total flux cleaned = 0.000194526 Jy
! Total flux subtracted in 200 components = 0.000194526 Jy
! Clean residual min=-0.003361 max=0.002900 Jy/beam
! Clean residual mean=0.000007 rms=0.000857 Jy/beam
! Combined flux in latest and established models = 0.116247 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 38 components and 0.116247 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.052 mas, bmaj=3.386 mas, bpa=-15.5 degrees
! Estimated noise=1.16239 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.000434682 Jy
! Component: 100  -  total flux cleaned = 0.000356305 Jy
! Component: 150  -  total flux cleaned = 0.000248965 Jy
! Component: 200  -  total flux cleaned = 0.00015788 Jy
! Total flux subtracted in 200 components = 0.00015788 Jy
! Clean residual min=-0.003768 max=0.003017 Jy/beam
! Clean residual mean=0.000016 rms=0.001074 Jy/beam
! Combined flux in latest and established models = 0.116405 Jy
! Adding 8 model components to the UV plane model.
! The established model now contains 42 components and 0.116405 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8914 mas, bmaj=2.812 mas, bpa=-17.13 degrees
! Estimated noise=0.92711 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000171733 Jy
! Component: 100  -  total flux cleaned = -0.000169203 Jy
! Component: 150  -  total flux cleaned = -0.000167832 Jy
! Component: 200  -  total flux cleaned = -0.000167788 Jy
! Total flux subtracted in 200 components = -0.000167788 Jy
! Clean residual min=-0.003300 max=0.002991 Jy/beam
! Clean residual mean=0.000007 rms=0.000846 Jy/beam
! Combined flux in latest and established models = 0.116237 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 48 components and 0.116237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.060476Jy  sigma=0.932026
! Fit after  self-cal, rms=0.060221Jy  sigma=0.931202
wmodel J1852+1426_X_2006_12_18_yyk\_map.mod
! Writing 48 model components to file: J1852+1426_X_2006_12_18_yyk_map.mod
wobs J1852+1426_X_2006_12_18_yyk\_uvs.fits
! Writing UV FITS file: J1852+1426_X_2006_12_18_yyk_uvs.fits
wwins J1852+1426_X_2006_12_18_yyk\_map.win
! wwins: Wrote 1 windows to J1852+1426_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.000605444 Jy
! Component: 100  -  total flux cleaned = -0.000865154 Jy
! Component: 150  -  total flux cleaned = -0.0014064 Jy
! Component: 200  -  total flux cleaned = -0.0018742 Jy
! Component: 250  -  total flux cleaned = -0.00223199 Jy
! Component: 300  -  total flux cleaned = -0.00261939 Jy
! Component: 350  -  total flux cleaned = -0.00257786 Jy
! Component: 400  -  total flux cleaned = -0.00265858 Jy
! Component: 450  -  total flux cleaned = -0.00257981 Jy
! Component: 500  -  total flux cleaned = -0.00254063 Jy
! Component: 550  -  total flux cleaned = -0.00250357 Jy
! Component: 600  -  total flux cleaned = -0.00246716 Jy
! Component: 650  -  total flux cleaned = -0.00246706 Jy
! Component: 700  -  total flux cleaned = -0.00250142 Jy
! Component: 750  -  total flux cleaned = -0.00243408 Jy
! Component: 800  -  total flux cleaned = -0.00240139 Jy
! Component: 850  -  total flux cleaned = -0.00243461 Jy
! Component: 900  -  total flux cleaned = -0.00246619 Jy
! Component: 950  -  total flux cleaned = -0.00240506 Jy
! Component: 1000  -  total flux cleaned = -0.00246545 Jy
! Component: 1050  -  total flux cleaned = -0.00246515 Jy
! Component: 1100  -  total flux cleaned = -0.00246472 Jy
! Component: 1150  -  total flux cleaned = -0.00246509 Jy
! Component: 1200  -  total flux cleaned = -0.00252142 Jy
! Component: 1250  -  total flux cleaned = -0.00254929 Jy
! Component: 1300  -  total flux cleaned = -0.00257624 Jy
! Component: 1350  -  total flux cleaned = -0.00255012 Jy
! Component: 1400  -  total flux cleaned = -0.00260293 Jy
! Component: 1450  -  total flux cleaned = -0.00260324 Jy
! Component: 1500  -  total flux cleaned = -0.00262874 Jy
! Component: 1550  -  total flux cleaned = -0.00262896 Jy
! Component: 1600  -  total flux cleaned = -0.0026046 Jy
! Component: 1650  -  total flux cleaned = -0.00253246 Jy
! Component: 1700  -  total flux cleaned = -0.00255659 Jy
! Component: 1750  -  total flux cleaned = -0.00258003 Jy
! Component: 1800  -  total flux cleaned = -0.0026032 Jy
! Component: 1850  -  total flux cleaned = -0.00262587 Jy
! Component: 1900  -  total flux cleaned = -0.00262583 Jy
! Component: 1950  -  total flux cleaned = -0.0026257 Jy
! Component: 2000  -  total flux cleaned = -0.00251589 Jy
! Total flux subtracted in 2048 components = -0.0024726 Jy
! Clean residual min=-0.001346 max=0.001186 Jy/beam
! Clean residual mean=0.000005 rms=0.000410 Jy/beam
! Combined flux in latest and established models = 0.113764 Jy
keep
! Adding 129 model components to the UV plane model.
! The established model now contains 177 components and 0.113765 Jy
![Exited script file: muppet]
wmap "J1852+1426_X_2006_12_18_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8914 x 2.812 at -17.13 degrees (North through East)
! Clean map  min=-0.0022048  max=0.096284 Jy/beam
! Writing clean map to FITS file: J1852+1426_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.0962842 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000408937 
device "J1852+1426_X_2006_12_18_yyk\_map.eps/VPS"
! Attempting to open device: 'J1852+1426_X_2006_12_18_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.27415 1.27415 2.54831 5.09662 10.1932 20.3865 40.773 81.5459
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.096 
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.8914 x 2.812 at -17.13 degrees (North through East)
! Clean map  min=-0.0022048  max=0.096284 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1852+1426_X_2006_12_18_yyk\_map.gif/gif"
! Attempting to open device: 'J1852+1426_X_2006_12_18_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1852+1426_X_2006_12_18_yyk_uvs.log closed on Wed Apr  9 20:40:21 2008