! Started logfile: J2317-1756_S_2007_01_11_yyk_uvs.log on Wed Apr  9 20:47:31 2008
obs J2317-1756_S_2007_01_11_yyk_uve.fits
! Reading UV FITS file: J2317-1756_S_2007_01_11_yyk_uve.fits
! AN table 1: 14 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.972222 visibilities/baseline/integration-bin.
! Found source: J2317-1756
! 
! 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 2249 lines of history.
! 
! Reading 1960 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 J2317-1756_S_2007_01_11_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.134488 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.848 mas, bmaj=7.523 mas, bpa=-9.337 degrees
! Estimated noise=1.96215 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.0713152 Jy
! Component: 100  -  total flux cleaned = 0.0982955 Jy
! Total flux subtracted in 100 components = 0.0982955 Jy
! Clean residual min=-0.010219 max=0.015670 Jy/beam
! Clean residual mean=0.000217 rms=0.003166 Jy/beam
! Combined flux in latest and established models = 0.0982954 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.0982954 Jy
! 
! Correcting IF 1.
!  A total of 4 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 29 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 30 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.093268Jy  sigma=1.218135
! Fit after  self-cal, rms=0.087635Jy  sigma=1.161547
! Inverting map and beam 
! Estimated beam: bmin=2.848 mas, bmaj=7.523 mas, bpa=-9.336 degrees
! Estimated noise=1.96186 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=4.301 mas, bmaj=11.13 mas, bpa=-8.378 degrees
! Estimated noise=1.19504 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.0265071 Jy
! Component: 100  -  total flux cleaned = 0.035746 Jy
! Component: 150  -  total flux cleaned = 0.0393791 Jy
! Component: 200  -  total flux cleaned = 0.0397749 Jy
! Total flux subtracted in 200 components = 0.0397749 Jy
! Clean residual min=-0.006327 max=0.008074 Jy/beam
! Clean residual mean=0.000200 rms=0.002303 Jy/beam
! Combined flux in latest and established models = 0.13807 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 29 components and 0.13807 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.082767Jy  sigma=1.058066
! Fit after  self-cal, rms=0.082771Jy  sigma=1.057119
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.301 x 11.13 at -8.378 degrees (North through East)
! Clean map  min=-0.0061646  max=0.090905 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*    OV        1.00*    PT        1.00*    
!   SC        1.00*    
! 
! 
! 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*    OV        1.00*    PT        1.00*    
!   SC        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.979306
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.19     FD        1.08     HN        0.91     KP        1.04     
!   LA        0.91     MK        1.00     OV        1.12     PT        0.95     
!   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*    OV        1.00*    PT        1.00*    
!   SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.082771Jy  sigma=1.057119
! Fit after  self-cal, rms=0.082443Jy  sigma=1.051690
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.082443Jy  sigma=1.051690
! Fit after  self-cal, rms=0.082443Jy  sigma=1.051580
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.211 mas, bmaj=11.31 mas, bpa=-8.768 degrees
! Estimated noise=1.20081 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.000557131 Jy
! Component: 100  -  total flux cleaned = 0.000820031 Jy
! Component: 150  -  total flux cleaned = 0.000982888 Jy
! Component: 200  -  total flux cleaned = 0.00120293 Jy
! Total flux subtracted in 200 components = 0.00120293 Jy
! Clean residual min=-0.006007 max=0.007797 Jy/beam
! Clean residual mean=0.000129 rms=0.002079 Jy/beam
! Combined flux in latest and established models = 0.139273 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 36 components and 0.139273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.082321Jy  sigma=1.049350
! Fit after  self-cal, rms=0.082314Jy  sigma=1.048995
! 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.082314Jy  sigma=1.048995
! Fit after  self-cal, rms=0.076379Jy  sigma=0.982750
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.00259896 Jy
! Component: 100  -  total flux cleaned = 0.00268831 Jy
! Component: 150  -  total flux cleaned = 0.00278555 Jy
! Component: 200  -  total flux cleaned = 0.00286373 Jy
! Total flux subtracted in 200 components = 0.00286373 Jy
! Clean residual min=-0.005523 max=0.007645 Jy/beam
! Clean residual mean=0.000141 rms=0.001980 Jy/beam
! Combined flux in latest and established models = 0.142137 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 38 components and 0.142137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.076094Jy  sigma=0.979406
! Fit after  self-cal, rms=0.075653Jy  sigma=0.975864
! 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: 4.211 x 11.31 at -8.768 degrees (North through East)
! Clean map  min=-0.0054531  max=0.093154 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=9.599 mas, bmaj=20.41 mas, bpa=9.166 degrees
! Estimated noise=1.38336 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.00118097 Jy
! Component: 100  -  total flux cleaned = 0.00118958 Jy
! Component: 150  -  total flux cleaned = 0.00134855 Jy
! Component: 200  -  total flux cleaned = 0.00145544 Jy
! Total flux subtracted in 200 components = 0.00145544 Jy
! Clean residual min=-0.005469 max=0.007456 Jy/beam
! Clean residual mean=0.000216 rms=0.002410 Jy/beam
! Combined flux in latest and established models = 0.143592 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 42 components and 0.143592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.075633Jy  sigma=0.976174
! Fit after  self-cal, rms=0.075550Jy  sigma=0.975520
! 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.825 mas, bmaj=7.566 mas, bpa=-9.332 degrees
! Estimated noise=1.96758 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0811868 Jy
! Component: 100  -  total flux cleaned = 0.109765 Jy
! Component: 150  -  total flux cleaned = 0.123607 Jy
! Component: 200  -  total flux cleaned = 0.131036 Jy
! Total flux subtracted in 200 components = 0.131036 Jy
! Clean residual min=-0.008269 max=0.009848 Jy/beam
! Clean residual mean=0.000113 rms=0.002251 Jy/beam
! Combined flux in latest and established models = 0.131036 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 28 model components to the UV plane model.
! The established model now contains 28 components and 0.131036 Jy
! Inverting map and beam 
! Estimated beam: bmin=4.211 mas, bmaj=11.31 mas, bpa=-8.768 degrees
! Estimated noise=1.20081 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.00691234 Jy
! Component: 100  -  total flux cleaned = 0.00858459 Jy
! Component: 150  -  total flux cleaned = 0.00884965 Jy
! Component: 200  -  total flux cleaned = 0.00907644 Jy
! Total flux subtracted in 200 components = 0.00907644 Jy
! Clean residual min=-0.005410 max=0.007192 Jy/beam
! Clean residual mean=0.000161 rms=0.002021 Jy/beam
! Combined flux in latest and established models = 0.140112 Jy
! Adding 11 model components to the UV plane model.
! The established model now contains 37 components and 0.140112 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=9.599 mas, bmaj=20.41 mas, bpa=9.166 degrees
! Estimated noise=1.38336 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.00177938 Jy
! Component: 100  -  total flux cleaned = 0.00214318 Jy
! Component: 150  -  total flux cleaned = 0.00245801 Jy
! Component: 200  -  total flux cleaned = 0.0027287 Jy
! Total flux subtracted in 200 components = 0.0027287 Jy
! Clean residual min=-0.005465 max=0.007523 Jy/beam
! Clean residual mean=0.000227 rms=0.002435 Jy/beam
! Combined flux in latest and established models = 0.142841 Jy
! Adding 6 model components to the UV plane model.
! The established model now contains 41 components and 0.142841 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=4.211 mas, bmaj=11.31 mas, bpa=-8.768 degrees
! Estimated noise=1.20081 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000645768 Jy
! Component: 100  -  total flux cleaned = -0.000646369 Jy
! Component: 150  -  total flux cleaned = -0.000647985 Jy
! Component: 200  -  total flux cleaned = -0.00065285 Jy
! Total flux subtracted in 200 components = -0.00065285 Jy
! Clean residual min=-0.005240 max=0.007065 Jy/beam
! Clean residual mean=0.000147 rms=0.001936 Jy/beam
! Combined flux in latest and established models = 0.142188 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 47 components and 0.142188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.075426Jy  sigma=0.973851
! Fit after  self-cal, rms=0.075210Jy  sigma=0.971593
wmodel J2317-1756_S_2007_01_11_yyk\_map.mod
! Writing 47 model components to file: J2317-1756_S_2007_01_11_yyk_map.mod
wobs J2317-1756_S_2007_01_11_yyk\_uvs.fits
! Writing UV FITS file: J2317-1756_S_2007_01_11_yyk_uvs.fits
wwins J2317-1756_S_2007_01_11_yyk\_map.win
! wwins: Wrote 1 windows to J2317-1756_S_2007_01_11_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.0029801 Jy
! Component: 100  -  total flux cleaned = 0.00417944 Jy
! Component: 150  -  total flux cleaned = 0.005261 Jy
! Component: 200  -  total flux cleaned = 0.00559781 Jy
! Component: 250  -  total flux cleaned = 0.00582961 Jy
! Component: 300  -  total flux cleaned = 0.00619888 Jy
! Component: 350  -  total flux cleaned = 0.00669339 Jy
! Component: 400  -  total flux cleaned = 0.00716778 Jy
! Component: 450  -  total flux cleaned = 0.00756087 Jy
! Component: 500  -  total flux cleaned = 0.00768842 Jy
! Component: 550  -  total flux cleaned = 0.00774968 Jy
! Component: 600  -  total flux cleaned = 0.00792745 Jy
! Component: 650  -  total flux cleaned = 0.00798241 Jy
! Component: 700  -  total flux cleaned = 0.00803643 Jy
! Component: 750  -  total flux cleaned = 0.00809043 Jy
! Component: 800  -  total flux cleaned = 0.00824894 Jy
! Component: 850  -  total flux cleaned = 0.00845584 Jy
! Component: 900  -  total flux cleaned = 0.00850682 Jy
! Component: 950  -  total flux cleaned = 0.00850749 Jy
! Component: 1000  -  total flux cleaned = 0.00870042 Jy
! Component: 1050  -  total flux cleaned = 0.00879378 Jy
! Component: 1100  -  total flux cleaned = 0.00893075 Jy
! Component: 1150  -  total flux cleaned = 0.0087943 Jy
! Component: 1200  -  total flux cleaned = 0.00879416 Jy
! Component: 1250  -  total flux cleaned = 0.00874998 Jy
! Component: 1300  -  total flux cleaned = 0.00862265 Jy
! Component: 1350  -  total flux cleaned = 0.00858049 Jy
! Component: 1400  -  total flux cleaned = 0.00845727 Jy
! Component: 1450  -  total flux cleaned = 0.00825734 Jy
! Component: 1500  -  total flux cleaned = 0.00813936 Jy
! Component: 1550  -  total flux cleaned = 0.00798397 Jy
! Component: 1600  -  total flux cleaned = 0.00779336 Jy
! Component: 1650  -  total flux cleaned = 0.00753152 Jy
! Component: 1700  -  total flux cleaned = 0.00734706 Jy
! Component: 1750  -  total flux cleaned = 0.00713021 Jy
! Component: 1800  -  total flux cleaned = 0.00695185 Jy
! Component: 1850  -  total flux cleaned = 0.00691645 Jy
! Component: 1900  -  total flux cleaned = 0.00677816 Jy
! Component: 1950  -  total flux cleaned = 0.00677815 Jy
! Component: 2000  -  total flux cleaned = 0.00677785 Jy
! Total flux subtracted in 2048 components = 0.00667826 Jy
! Clean residual min=-0.002095 max=0.001944 Jy/beam
! Clean residual mean=0.000026 rms=0.000697 Jy/beam
! Combined flux in latest and established models = 0.148867 Jy
keep
! Adding 130 model components to the UV plane model.
! The established model now contains 177 components and 0.148867 Jy
![Exited script file: muppet]
wmap "J2317-1756_S_2007_01_11_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.211 x 11.31 at -8.768 degrees (North through East)
! Clean map  min=-0.0038641  max=0.092664 Jy/beam
! Writing clean map to FITS file: J2317-1756_S_2007_01_11_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0926642 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000692336 
device "J2317-1756_S_2007_01_11_yyk\_map.eps/VPS"
! Attempting to open device: 'J2317-1756_S_2007_01_11_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -2.24144 2.24144 4.48287 8.96574 17.9315 35.863 71.7259
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.092 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.211 x 11.31 at -8.768 degrees (North through East)
! Clean map  min=-0.0038641  max=0.092664 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2317-1756_S_2007_01_11_yyk\_map.gif/gif"
! Attempting to open device: 'J2317-1756_S_2007_01_11_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2317-1756_S_2007_01_11_yyk_uvs.log closed on Wed Apr  9 20:47:34 2008