! Started logfile: J0501-1355_S_2005_06_30_yyk_uvs.log on Sat Oct  8 16:57:33 2005
obs J0501-1355_S_2005_06_30_yyk_uve.fits
! Reading UV FITS file: J0501-1355_S_2005_06_30_yyk_uve.fits
! AN table 1: 20 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.943333 visibilities/baseline/integration-bin.
! Found source: J0501-1355
! 
! 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 1469 lines of history.
! 
! Reading 3396 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 J0501-1355_S_2005_06_30_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.118732 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.617 mas, bmaj=6.725 mas, bpa=-1.206 degrees
! Estimated noise=1.17057 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.0765116 Jy
! Component: 100  -  total flux cleaned = 0.0983053 Jy
! Total flux subtracted in 100 components = 0.0983053 Jy
! Clean residual min=-0.005019 max=0.006998 Jy/beam
! Clean residual mean=0.000016 rms=0.001620 Jy/beam
! Combined flux in latest and established models = 0.0983053 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.0983053 Jy
! 
! Correcting IF 1.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 38 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 23 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.069082Jy  sigma=1.083203
! Fit after  self-cal, rms=0.068963Jy  sigma=1.079099
! Inverting map and beam 
! Estimated beam: bmin=2.617 mas, bmaj=6.725 mas, bpa=-1.206 degrees
! Estimated noise=1.17057 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.485 mas, bmaj=8.414 mas, bpa=3.338 degrees
! Estimated noise=0.710515 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.0101155 Jy
! Component: 100  -  total flux cleaned = 0.0140469 Jy
! Component: 150  -  total flux cleaned = 0.0156842 Jy
! Component: 200  -  total flux cleaned = 0.0158142 Jy
! Total flux subtracted in 200 components = 0.0158142 Jy
! Clean residual min=-0.003809 max=0.003979 Jy/beam
! Clean residual mean=-0.000035 rms=0.001019 Jy/beam
! Combined flux in latest and established models = 0.114119 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 24 components and 0.114119 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.067506Jy  sigma=1.058973
! Fit after  self-cal, rms=0.067494Jy  sigma=1.058795
! 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.485 x 8.414 at 3.338 degrees (North through East)
! Clean map  min=-0.0035965  max=0.084198 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.02713
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     HN        0.99     KP        0.97     
!   LA        1.06     MK        0.92     NL        0.89     OV        1.00     
!   PT        1.08     SC        0.85     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.9969
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.03     HN        0.96     KP        0.99     
!   LA        1.03     MK        1.00*    NL        0.96     OV        1.04     
!   PT        1.03     SC        0.98     
! 
! 
! 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
!  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*    
! 
! 
! Fit before self-cal, rms=0.067494Jy  sigma=1.058795
! Fit after  self-cal, rms=0.066678Jy  sigma=1.055873
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.066678Jy  sigma=1.055873
! Fit after  self-cal, rms=0.066667Jy  sigma=1.055691
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.397 mas, bmaj=8.223 mas, bpa=3.56 degrees
! Estimated noise=0.713896 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.00250596 Jy
! Component: 100  -  total flux cleaned = 0.00277275 Jy
! Component: 150  -  total flux cleaned = 0.00295705 Jy
! Component: 200  -  total flux cleaned = 0.00312732 Jy
! Total flux subtracted in 200 components = 0.00312732 Jy
! Clean residual min=-0.003838 max=0.003916 Jy/beam
! Clean residual mean=0.000004 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 0.117247 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 30 components and 0.117247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066496Jy  sigma=1.054011
! Fit after  self-cal, rms=0.066486Jy  sigma=1.053821
! 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.066486Jy  sigma=1.053821
! Fit after  self-cal, rms=0.064022Jy  sigma=1.004200
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.00123756 Jy
! Component: 100  -  total flux cleaned = 0.00124322 Jy
! Component: 150  -  total flux cleaned = 0.00138187 Jy
! Component: 200  -  total flux cleaned = 0.00149799 Jy
! Total flux subtracted in 200 components = 0.00149799 Jy
! Clean residual min=-0.003508 max=0.003885 Jy/beam
! Clean residual mean=0.000002 rms=0.000996 Jy/beam
! Combined flux in latest and established models = 0.118745 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 38 components and 0.118745 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.063761Jy  sigma=1.001225
! Fit after  self-cal, rms=0.063650Jy  sigma=0.998660
! Inverting map 
print "*** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime ***"
! *** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime *** 
! 
dynam = dynam - 0.25
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.397 x 8.223 at 3.56 degrees (North through East)
! Clean map  min=-0.0033516  max=0.086156 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 = 20 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.801 mas, bmaj=15.38 mas, bpa=6.657 degrees
! Estimated noise=0.887201 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.00156963 Jy
! Component: 100  -  total flux cleaned = 0.00173312 Jy
! Component: 150  -  total flux cleaned = 0.00187514 Jy
! Component: 200  -  total flux cleaned = 0.00196991 Jy
! Total flux subtracted in 200 components = 0.00196991 Jy
! Clean residual min=-0.003020 max=0.003934 Jy/beam
! Clean residual mean=-0.000012 rms=0.001195 Jy/beam
! Combined flux in latest and established models = 0.120715 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 46 components and 0.120715 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.063664Jy  sigma=0.998525
! Fit after  self-cal, rms=0.063664Jy  sigma=0.998256
! Inverting map 
uvtaper 0,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.591 mas, bmaj=6.672 mas, bpa=-1.114 degrees
! Estimated noise=1.15643 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0778713 Jy
! Component: 100  -  total flux cleaned = 0.0995684 Jy
! Component: 150  -  total flux cleaned = 0.109252 Jy
! Component: 200  -  total flux cleaned = 0.11445 Jy
! Total flux subtracted in 200 components = 0.11445 Jy
! Clean residual min=-0.004117 max=0.004808 Jy/beam
! Clean residual mean=0.000019 rms=0.001256 Jy/beam
! Combined flux in latest and established models = 0.11445 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 25 model components to the UV plane model.
! The established model now contains 25 components and 0.11445 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.397 mas, bmaj=8.223 mas, bpa=3.56 degrees
! Estimated noise=0.713896 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.00323319 Jy
! Component: 100  -  total flux cleaned = 0.00358673 Jy
! Component: 150  -  total flux cleaned = 0.00384494 Jy
! Component: 200  -  total flux cleaned = 0.00404297 Jy
! Total flux subtracted in 200 components = 0.00404297 Jy
! Clean residual min=-0.003467 max=0.003792 Jy/beam
! Clean residual mean=0.000002 rms=0.000997 Jy/beam
! Combined flux in latest and established models = 0.118493 Jy
! Adding 8 model components to the UV plane model.
! The established model now contains 30 components and 0.118493 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.801 mas, bmaj=15.38 mas, bpa=6.657 degrees
! Estimated noise=0.887201 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.00165277 Jy
! Component: 100  -  total flux cleaned = 0.0017923 Jy
! Component: 150  -  total flux cleaned = 0.00195265 Jy
! Component: 200  -  total flux cleaned = 0.00209498 Jy
! Total flux subtracted in 200 components = 0.00209498 Jy
! Clean residual min=-0.003026 max=0.004054 Jy/beam
! Clean residual mean=-0.000011 rms=0.001201 Jy/beam
! Combined flux in latest and established models = 0.120588 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 32 components and 0.120588 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.397 mas, bmaj=8.223 mas, bpa=3.56 degrees
! Estimated noise=0.713896 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00116019 Jy
! Component: 100  -  total flux cleaned = -0.00123861 Jy
! Component: 150  -  total flux cleaned = -0.00124043 Jy
! Component: 200  -  total flux cleaned = -0.00124262 Jy
! Total flux subtracted in 200 components = -0.00124262 Jy
! Clean residual min=-0.003451 max=0.003739 Jy/beam
! Clean residual mean=-0.000000 rms=0.000968 Jy/beam
! Combined flux in latest and established models = 0.119345 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 37 components and 0.119345 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.063512Jy  sigma=0.995861
! Fit after  self-cal, rms=0.063483Jy  sigma=0.995581
wmodel J0501-1355_S_2005_06_30_yyk\_map.mod
! Writing 37 model components to file: J0501-1355_S_2005_06_30_yyk_map.mod
wobs J0501-1355_S_2005_06_30_yyk\_uvs.fits
! Writing UV FITS file: J0501-1355_S_2005_06_30_yyk_uvs.fits
wwins J0501-1355_S_2005_06_30_yyk\_map.win
! wwins: Wrote 1 windows to J0501-1355_S_2005_06_30_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.00130602 Jy
! Component: 100  -  total flux cleaned = 0.00235571 Jy
! Component: 150  -  total flux cleaned = 0.00310557 Jy
! Component: 200  -  total flux cleaned = 0.00386803 Jy
! Component: 250  -  total flux cleaned = 0.00454025 Jy
! Component: 300  -  total flux cleaned = 0.00518285 Jy
! Component: 350  -  total flux cleaned = 0.00584467 Jy
! Component: 400  -  total flux cleaned = 0.00629855 Jy
! Component: 450  -  total flux cleaned = 0.00673711 Jy
! Component: 500  -  total flux cleaned = 0.0069495 Jy
! Component: 550  -  total flux cleaned = 0.00719717 Jy
! Component: 600  -  total flux cleaned = 0.00731782 Jy
! Component: 650  -  total flux cleaned = 0.00755299 Jy
! Component: 700  -  total flux cleaned = 0.00770719 Jy
! Component: 750  -  total flux cleaned = 0.00804489 Jy
! Component: 800  -  total flux cleaned = 0.00826464 Jy
! Component: 850  -  total flux cleaned = 0.00844386 Jy
! Component: 900  -  total flux cleaned = 0.00861853 Jy
! Component: 950  -  total flux cleaned = 0.00875654 Jy
! Component: 1000  -  total flux cleaned = 0.00889216 Jy
! Component: 1050  -  total flux cleaned = 0.0090249 Jy
! Component: 1100  -  total flux cleaned = 0.00912265 Jy
! Component: 1150  -  total flux cleaned = 0.00921856 Jy
! Component: 1200  -  total flux cleaned = 0.00934392 Jy
! Component: 1250  -  total flux cleaned = 0.0094054 Jy
! Component: 1300  -  total flux cleaned = 0.00952617 Jy
! Component: 1350  -  total flux cleaned = 0.009733 Jy
! Component: 1400  -  total flux cleaned = 0.00970365 Jy
! Component: 1450  -  total flux cleaned = 0.00981756 Jy
! Component: 1500  -  total flux cleaned = 0.00981704 Jy
! Component: 1550  -  total flux cleaned = 0.00987268 Jy
! Component: 1600  -  total flux cleaned = 0.00992707 Jy
! Component: 1650  -  total flux cleaned = 0.00992713 Jy
! Component: 1700  -  total flux cleaned = 0.0100065 Jy
! Component: 1750  -  total flux cleaned = 0.0100067 Jy
! Component: 1800  -  total flux cleaned = 0.0100579 Jy
! Component: 1850  -  total flux cleaned = 0.0101591 Jy
! Component: 1900  -  total flux cleaned = 0.0102088 Jy
! Component: 1950  -  total flux cleaned = 0.0102818 Jy
! Component: 2000  -  total flux cleaned = 0.0103058 Jy
! Total flux subtracted in 2048 components = 0.0104006 Jy
! Clean residual min=-0.001571 max=0.001331 Jy/beam
! Clean residual mean=0.000007 rms=0.000481 Jy/beam
! Combined flux in latest and established models = 0.129746 Jy
keep
! Adding 132 model components to the UV plane model.
! The established model now contains 169 components and 0.129746 Jy
![Exited script file: muppet]
wmap "J0501-1355_S_2005_06_30_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.397 x 8.223 at 3.56 degrees (North through East)
! Clean map  min=-0.0022879  max=0.085709 Jy/beam
! Writing clean map to FITS file: J0501-1355_S_2005_06_30_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0857086 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000476617 
device "J0501-1355_S_2005_06_30_yyk\_map.eps/VPS"
! Attempting to open device: 'J0501-1355_S_2005_06_30_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.66827 1.66827 3.33654 6.67308 13.3462 26.6923 53.3847
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.085 
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.397 x 8.223 at 3.56 degrees (North through East)
! Clean map  min=-0.0022879  max=0.085709 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0501-1355_S_2005_06_30_yyk\_map.gif/gif"
! Attempting to open device: 'J0501-1355_S_2005_06_30_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0501-1355_S_2005_06_30_yyk_uvs.log closed on Sat Oct  8 16:57:37 2005