! Started logfile: J1857+1624_S_2007_01_11_yyk_uvs.log on Wed Apr  9 20:40:21 2008
obs J1857+1624_S_2007_01_11_yyk_uve.fits
! Reading UV FITS file: J1857+1624_S_2007_01_11_yyk_uve.fits
! AN table 1: 14 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.984127 visibilities/baseline/integration-bin.
! Found source: J1857+1624
! 
! 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 1984 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 J1857+1624_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.117518 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.844 mas, bmaj=6.46 mas, bpa=-5.208 degrees
! Estimated noise=1.27323 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.0814106 Jy
! Component: 100  -  total flux cleaned = 0.104331 Jy
! Total flux subtracted in 100 components = 0.104331 Jy
! Clean residual min=-0.005608 max=0.008429 Jy/beam
! Clean residual mean=0.000064 rms=0.001947 Jy/beam
! Combined flux in latest and established models = 0.104331 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 0.104331 Jy
! 
! Correcting IF 1.
!  A total of 10 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 23 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 10 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.064759Jy  sigma=1.124272
! Fit after  self-cal, rms=0.058631Jy  sigma=1.042537
! Inverting map and beam 
! Estimated beam: bmin=2.844 mas, bmaj=6.46 mas, bpa=-5.208 degrees
! Estimated noise=1.27323 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.508 mas, bmaj=7.58 mas, bpa=-2.179 degrees
! Estimated noise=0.918825 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.0149266 Jy
! Component: 100  -  total flux cleaned = 0.0200028 Jy
! Component: 150  -  total flux cleaned = 0.0222425 Jy
! Component: 200  -  total flux cleaned = 0.0234088 Jy
! Total flux subtracted in 200 components = 0.0234088 Jy
! Clean residual min=-0.003672 max=0.003730 Jy/beam
! Clean residual mean=-0.000008 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 0.12774 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 52 components and 0.12774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.056579Jy  sigma=0.991591
! Fit after  self-cal, rms=0.056548Jy  sigma=0.991256
! 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.508 x 7.58 at -2.179 degrees (North through East)
! Clean map  min=-0.0035556  max=0.097165 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.03922
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.91     HN        0.93     KP        0.91     
!   LA        1.04     MK        0.99     OV        1.00     PT        0.98     
!   SC        0.95     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.965892
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.07     HN        1.07     KP        1.01     
!   LA        1.01     MK        1.00*    OV        1.07     PT        0.97     
!   SC        1.07     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.995834
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.00     HN        0.91     KP        0.96     
!   LA        1.00     MK        1.06     OV        1.01     PT        1.00     
!   SC        1.03     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.976994
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.02     HN        0.94     KP        0.95     
!   LA        1.00     MK        1.17     OV        0.97     PT        1.03     
!   SC        1.12     
! 
! 
! Fit before self-cal, rms=0.056548Jy  sigma=0.991256
! Fit after  self-cal, rms=0.056488Jy  sigma=0.985449
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.056488Jy  sigma=0.985449
! Fit after  self-cal, rms=0.056474Jy  sigma=0.985233
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.61 mas, bmaj=7.721 mas, bpa=-2.346 degrees
! Estimated noise=0.91668 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.00144236 Jy
! Component: 100  -  total flux cleaned = -0.00160278 Jy
! Component: 150  -  total flux cleaned = -0.00170837 Jy
! Component: 200  -  total flux cleaned = -0.00173432 Jy
! Total flux subtracted in 200 components = -0.00173432 Jy
! Clean residual min=-0.003112 max=0.003530 Jy/beam
! Clean residual mean=0.000006 rms=0.000832 Jy/beam
! Combined flux in latest and established models = 0.126005 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 60 components and 0.126005 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.056458Jy  sigma=0.984615
! Fit after  self-cal, rms=0.056427Jy  sigma=0.984380
! 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.056427Jy  sigma=0.984380
! Fit after  self-cal, rms=0.052434Jy  sigma=0.918622
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.00128445 Jy
! Component: 100  -  total flux cleaned = 0.00125781 Jy
! Component: 150  -  total flux cleaned = 0.0012584 Jy
! Component: 200  -  total flux cleaned = 0.00123862 Jy
! Total flux subtracted in 200 components = 0.00123862 Jy
! Clean residual min=-0.002703 max=0.003334 Jy/beam
! Clean residual mean=0.000003 rms=0.000812 Jy/beam
! Combined flux in latest and established models = 0.127244 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 66 components and 0.127244 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.052393Jy  sigma=0.917616
! Fit after  self-cal, rms=0.052206Jy  sigma=0.914529
! 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.61 x 7.721 at -2.346 degrees (North through East)
! Clean map  min=-0.0025807  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 = 20 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=8.566 mas, bmaj=11.53 mas, bpa=13.03 degrees
! Estimated noise=1.13686 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 = -3.16528e-05 Jy
! Component: 100  -  total flux cleaned = -6.04494e-05 Jy
! Component: 150  -  total flux cleaned = -7.28447e-05 Jy
! Component: 200  -  total flux cleaned = -8.57435e-05 Jy
! Total flux subtracted in 200 components = -8.57435e-05 Jy
! Clean residual min=-0.002401 max=0.003026 Jy/beam
! Clean residual mean=0.000003 rms=0.000930 Jy/beam
! Combined flux in latest and established models = 0.127158 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 72 components and 0.127158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.052206Jy  sigma=0.914536
! Fit after  self-cal, rms=0.052190Jy  sigma=0.914256
! 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.874 mas, bmaj=6.507 mas, bpa=-5.321 degrees
! Estimated noise=1.28272 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0868726 Jy
! Component: 100  -  total flux cleaned = 0.110638 Jy
! Component: 150  -  total flux cleaned = 0.119153 Jy
! Component: 200  -  total flux cleaned = 0.123489 Jy
! Total flux subtracted in 200 components = 0.123489 Jy
! Clean residual min=-0.004582 max=0.004329 Jy/beam
! Clean residual mean=0.000021 rms=0.001189 Jy/beam
! Combined flux in latest and established models = 0.123489 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 32 model components to the UV plane model.
! The established model now contains 32 components and 0.123489 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.61 mas, bmaj=7.721 mas, bpa=-2.346 degrees
! Estimated noise=0.91668 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.00240157 Jy
! Component: 100  -  total flux cleaned = 0.00317254 Jy
! Component: 150  -  total flux cleaned = 0.00330646 Jy
! Component: 200  -  total flux cleaned = 0.00334962 Jy
! Total flux subtracted in 200 components = 0.00334962 Jy
! Clean residual min=-0.002719 max=0.003174 Jy/beam
! Clean residual mean=0.000004 rms=0.000809 Jy/beam
! Combined flux in latest and established models = 0.126839 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 49 components and 0.126839 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=8.566 mas, bmaj=11.53 mas, bpa=13.03 degrees
! Estimated noise=1.13686 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.000313951 Jy
! Component: 100  -  total flux cleaned = 0.000301163 Jy
! Component: 150  -  total flux cleaned = 0.000289297 Jy
! Component: 200  -  total flux cleaned = 0.000278129 Jy
! Total flux subtracted in 200 components = 0.000278129 Jy
! Clean residual min=-0.002387 max=0.002983 Jy/beam
! Clean residual mean=0.000003 rms=0.000930 Jy/beam
! Combined flux in latest and established models = 0.127117 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 55 components and 0.127117 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.61 mas, bmaj=7.721 mas, bpa=-2.346 degrees
! Estimated noise=0.91668 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000167643 Jy
! Component: 100  -  total flux cleaned = -0.000150617 Jy
! Component: 150  -  total flux cleaned = -0.000151201 Jy
! Component: 200  -  total flux cleaned = -0.000165178 Jy
! Total flux subtracted in 200 components = -0.000165178 Jy
! Clean residual min=-0.002672 max=0.003204 Jy/beam
! Clean residual mean=0.000004 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.126952 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 60 components and 0.126952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.052194Jy  sigma=0.914233
! Fit after  self-cal, rms=0.052184Jy  sigma=0.914157
wmodel J1857+1624_S_2007_01_11_yyk\_map.mod
! Writing 60 model components to file: J1857+1624_S_2007_01_11_yyk_map.mod
wobs J1857+1624_S_2007_01_11_yyk\_uvs.fits
! Writing UV FITS file: J1857+1624_S_2007_01_11_yyk_uvs.fits
wwins J1857+1624_S_2007_01_11_yyk\_map.win
! wwins: Wrote 1 windows to J1857+1624_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.00132534 Jy
! Component: 100  -  total flux cleaned = 0.00191341 Jy
! Component: 150  -  total flux cleaned = 0.00256661 Jy
! Component: 200  -  total flux cleaned = 0.00332727 Jy
! Component: 250  -  total flux cleaned = 0.00388757 Jy
! Component: 300  -  total flux cleaned = 0.00430381 Jy
! Component: 350  -  total flux cleaned = 0.00470482 Jy
! Component: 400  -  total flux cleaned = 0.00505312 Jy
! Component: 450  -  total flux cleaned = 0.00550417 Jy
! Component: 500  -  total flux cleaned = 0.00590616 Jy
! Component: 550  -  total flux cleaned = 0.00629759 Jy
! Component: 600  -  total flux cleaned = 0.0067133 Jy
! Component: 650  -  total flux cleaned = 0.0069836 Jy
! Component: 700  -  total flux cleaned = 0.00737857 Jy
! Component: 750  -  total flux cleaned = 0.00760281 Jy
! Component: 800  -  total flux cleaned = 0.00782243 Jy
! Component: 850  -  total flux cleaned = 0.0079448 Jy
! Component: 900  -  total flux cleaned = 0.008095 Jy
! Component: 950  -  total flux cleaned = 0.00821245 Jy
! Component: 1000  -  total flux cleaned = 0.00827076 Jy
! Component: 1050  -  total flux cleaned = 0.00838391 Jy
! Component: 1100  -  total flux cleaned = 0.0085223 Jy
! Component: 1150  -  total flux cleaned = 0.00863091 Jy
! Component: 1200  -  total flux cleaned = 0.00873764 Jy
! Component: 1250  -  total flux cleaned = 0.00879005 Jy
! Component: 1300  -  total flux cleaned = 0.00884195 Jy
! Component: 1350  -  total flux cleaned = 0.00889291 Jy
! Component: 1400  -  total flux cleaned = 0.0089184 Jy
! Component: 1450  -  total flux cleaned = 0.00896819 Jy
! Component: 1500  -  total flux cleaned = 0.00906544 Jy
! Component: 1550  -  total flux cleaned = 0.00908909 Jy
! Component: 1600  -  total flux cleaned = 0.00911267 Jy
! Component: 1650  -  total flux cleaned = 0.00906528 Jy
! Component: 1700  -  total flux cleaned = 0.00904236 Jy
! Component: 1750  -  total flux cleaned = 0.00913369 Jy
! Component: 1800  -  total flux cleaned = 0.00917856 Jy
! Component: 1850  -  total flux cleaned = 0.00913386 Jy
! Component: 1900  -  total flux cleaned = 0.00919968 Jy
! Component: 1950  -  total flux cleaned = 0.00922121 Jy
! Component: 2000  -  total flux cleaned = 0.00919997 Jy
! Total flux subtracted in 2048 components = 0.00928487 Jy
! Clean residual min=-0.001141 max=0.001419 Jy/beam
! Clean residual mean=0.000004 rms=0.000433 Jy/beam
! Combined flux in latest and established models = 0.136237 Jy
keep
! Adding 127 model components to the UV plane model.
! The established model now contains 187 components and 0.136237 Jy
![Exited script file: muppet]
wmap "J1857+1624_S_2007_01_11_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.61 x 7.721 at -2.346 degrees (North through East)
! Clean map  min=-0.0020164  max=0.099876 Jy/beam
! Writing clean map to FITS file: J1857+1624_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.0998757 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000429229 
device "J1857+1624_S_2007_01_11_yyk\_map.eps/VPS"
! Attempting to open device: 'J1857+1624_S_2007_01_11_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.28929 1.28929 2.57858 5.15716 10.3143 20.6286 41.2573 82.5145
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.099 
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.61 x 7.721 at -2.346 degrees (North through East)
! Clean map  min=-0.0020164  max=0.099876 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1857+1624_S_2007_01_11_yyk\_map.gif/gif"
! Attempting to open device: 'J1857+1624_S_2007_01_11_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1857+1624_S_2007_01_11_yyk_uvs.log closed on Wed Apr  9 20:40:24 2008