! Started logfile: J0710-3850_X_2002_05_14_yyk_uvs.log on Tue Jun 26 22:25:18 2007
obs J0710-3850_X_2002_05_14_yyk_uva.fits
! Reading UV FITS file: J0710-3850_X_2002_05_14_yyk_uva.fits
! AN table 1: 38 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.594737 visibilities/baseline/integration-bin.
! Found source: J0710-3850
! 
! 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.40947e+09        8e+06          1        8e+06
!  02        2  8.47947e+09        8e+06          1        8e+06
!  03        3  8.79447e+09        8e+06          1        8e+06
!  04        4  8.89947e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1076 lines of history.
! 
! Reading 4068 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 J0710-3850_X_2002_05_14_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.268597 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.8172 mas, bmaj=7.345 mas, bpa=21.66 degrees
! Estimated noise=2081.36 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.127802 Jy
! Component: 100  -  total flux cleaned = 0.168283 Jy
! Total flux subtracted in 100 components = 0.168283 Jy
! Clean residual min=-0.024645 max=0.036485 Jy/beam
! Clean residual mean=0.000285 rms=0.007838 Jy/beam
! Combined flux in latest and established models = 0.168283 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 0.168283 Jy
! 
! Correcting IF 1.
!  A total of 87 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 124 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 87 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 87 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.220735Jy  sigma=0.001355
! Fit after  self-cal, rms=0.220160Jy  sigma=0.001352
! Inverting map and beam 
! Estimated beam: bmin=0.8172 mas, bmaj=7.345 mas, bpa=21.66 degrees
! Estimated noise=2081.66 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=1.05 mas, bmaj=7.613 mas, bpa=20.91 degrees
! Estimated noise=1726.82 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.0377832 Jy
! Component: 100  -  total flux cleaned = 0.0558592 Jy
! Component: 150  -  total flux cleaned = 0.0664627 Jy
! Component: 200  -  total flux cleaned = 0.0732713 Jy
! Total flux subtracted in 200 components = 0.0732713 Jy
! Clean residual min=-0.022060 max=0.020449 Jy/beam
! Clean residual mean=0.000648 rms=0.006427 Jy/beam
! Combined flux in latest and established models = 0.241554 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 55 components and 0.241554 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217293Jy  sigma=0.001319
! Fit after  self-cal, rms=0.217277Jy  sigma=0.001319
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.05 x 7.613 at 20.91 degrees (North through East)
! Clean map  min=-0.021517  max=0.075855 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*    NL        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    MK        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*    NL        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    MK        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*    NL        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    MK        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*    NL        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    MK        1.00*    
! 
! 
! Fit before self-cal, rms=0.217277Jy  sigma=0.001319
! Fit after  self-cal, rms=0.217277Jy  sigma=0.001319
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.217277Jy  sigma=0.001319
! Fit after  self-cal, rms=0.217276Jy  sigma=0.001319
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.05 mas, bmaj=7.613 mas, bpa=20.91 degrees
! Estimated noise=1726.82 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.00477213 Jy
! Component: 100  -  total flux cleaned = 0.0061428 Jy
! Component: 150  -  total flux cleaned = 0.00664236 Jy
! Component: 200  -  total flux cleaned = 0.00712286 Jy
! Total flux subtracted in 200 components = 0.00712286 Jy
! Clean residual min=-0.021832 max=0.019062 Jy/beam
! Clean residual mean=0.000693 rms=0.006380 Jy/beam
! Combined flux in latest and established models = 0.248677 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 68 components and 0.248677 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217129Jy  sigma=0.001318
! Fit after  self-cal, rms=0.217131Jy  sigma=0.001318
! 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.217131Jy  sigma=0.001318
! Fit after  self-cal, rms=0.213303Jy  sigma=0.001291
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.00602879 Jy
! Component: 100  -  total flux cleaned = 0.00699346 Jy
! Component: 150  -  total flux cleaned = 0.00732646 Jy
! Component: 200  -  total flux cleaned = 0.00752933 Jy
! Total flux subtracted in 200 components = 0.00752933 Jy
! Clean residual min=-0.021428 max=0.018318 Jy/beam
! Clean residual mean=0.000699 rms=0.006296 Jy/beam
! Combined flux in latest and established models = 0.256206 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 88 components and 0.256206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213216Jy  sigma=0.001290
! Fit after  self-cal, rms=0.212706Jy  sigma=0.001286
! 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: 1.05 x 7.613 at 20.91 degrees (North through East)
! Clean map  min=-0.021098  max=0.073256 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.758 mas, bmaj=13.13 mas, bpa=6.189 degrees
! Estimated noise=1995.65 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.00123583 Jy
! Component: 100  -  total flux cleaned = 0.00147803 Jy
! Component: 150  -  total flux cleaned = 0.00171262 Jy
! Component: 200  -  total flux cleaned = 0.00182761 Jy
! Total flux subtracted in 200 components = 0.00182761 Jy
! Clean residual min=-0.027487 max=0.023607 Jy/beam
! Clean residual mean=0.001071 rms=0.008534 Jy/beam
! Combined flux in latest and established models = 0.258034 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 99 components and 0.258034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212633Jy  sigma=0.001286
! Fit after  self-cal, rms=0.212502Jy  sigma=0.001285
! 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.8172 mas, bmaj=7.345 mas, bpa=21.66 degrees
! Estimated noise=2081.66 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.133876 Jy
! Component: 100  -  total flux cleaned = 0.175191 Jy
! Component: 150  -  total flux cleaned = 0.199189 Jy
! Component: 200  -  total flux cleaned = 0.215025 Jy
! Total flux subtracted in 200 components = 0.215025 Jy
! Clean residual min=-0.021155 max=0.026765 Jy/beam
! Clean residual mean=0.000408 rms=0.006605 Jy/beam
! Combined flux in latest and established models = 0.215025 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 33 model components to the UV plane model.
! The established model now contains 33 components and 0.215025 Jy
! Inverting map and beam 
! Estimated beam: bmin=1.05 mas, bmaj=7.613 mas, bpa=20.91 degrees
! Estimated noise=1726.82 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.0209024 Jy
! Component: 100  -  total flux cleaned = 0.0302381 Jy
! Component: 150  -  total flux cleaned = 0.0356802 Jy
! Component: 200  -  total flux cleaned = 0.0379116 Jy
! Total flux subtracted in 200 components = 0.0379116 Jy
! Clean residual min=-0.021572 max=0.019208 Jy/beam
! Clean residual mean=0.000675 rms=0.006320 Jy/beam
! Combined flux in latest and established models = 0.252937 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 52 components and 0.252937 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.758 mas, bmaj=13.13 mas, bpa=6.189 degrees
! Estimated noise=1995.65 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.00112268 Jy
! Component: 100  -  total flux cleaned = 0.00171521 Jy
! Component: 150  -  total flux cleaned = 0.00213892 Jy
! Component: 200  -  total flux cleaned = 0.00254617 Jy
! Total flux subtracted in 200 components = 0.00254617 Jy
! Clean residual min=-0.027103 max=0.024944 Jy/beam
! Clean residual mean=0.001051 rms=0.008585 Jy/beam
! Combined flux in latest and established models = 0.255483 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 63 components and 0.255483 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=1.05 mas, bmaj=7.613 mas, bpa=20.91 degrees
! Estimated noise=1726.82 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000284104 Jy
! Component: 100  -  total flux cleaned = 0.00051045 Jy
! Component: 150  -  total flux cleaned = 0.000822643 Jy
! Component: 200  -  total flux cleaned = 0.00101994 Jy
! Total flux subtracted in 200 components = 0.00101994 Jy
! Clean residual min=-0.021718 max=0.018411 Jy/beam
! Clean residual mean=0.000689 rms=0.006275 Jy/beam
! Combined flux in latest and established models = 0.256503 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 79 components and 0.256503 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212548Jy  sigma=0.001285
! Fit after  self-cal, rms=0.212476Jy  sigma=0.001285
wmodel J0710-3850_X_2002_05_14_yyk\_map.mod
! Writing 79 model components to file: J0710-3850_X_2002_05_14_yyk_map.mod
wobs J0710-3850_X_2002_05_14_yyk\_uvs.fits
! Writing UV FITS file: J0710-3850_X_2002_05_14_yyk_uvs.fits
wwins J0710-3850_X_2002_05_14_yyk\_map.win
! wwins: Wrote 1 windows to J0710-3850_X_2002_05_14_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.00732524 Jy
! Component: 100  -  total flux cleaned = -0.00831114 Jy
! Component: 150  -  total flux cleaned = -0.00745628 Jy
! Component: 200  -  total flux cleaned = -0.00536836 Jy
! Component: 250  -  total flux cleaned = -0.00342938 Jy
! Component: 300  -  total flux cleaned = -0.0013926 Jy
! Component: 350  -  total flux cleaned = 0.000287725 Jy
! Component: 400  -  total flux cleaned = 0.00206585 Jy
! Component: 450  -  total flux cleaned = 0.00373702 Jy
! Component: 500  -  total flux cleaned = 0.00496378 Jy
! Component: 550  -  total flux cleaned = 0.00629172 Jy
! Component: 600  -  total flux cleaned = 0.00770135 Jy
! Component: 650  -  total flux cleaned = 0.00888448 Jy
! Component: 700  -  total flux cleaned = 0.00986424 Jy
! Component: 750  -  total flux cleaned = 0.0109399 Jy
! Component: 800  -  total flux cleaned = 0.0118379 Jy
! Component: 850  -  total flux cleaned = 0.0125777 Jy
! Component: 900  -  total flux cleaned = 0.01353 Jy
! Component: 950  -  total flux cleaned = 0.0141033 Jy
! Component: 1000  -  total flux cleaned = 0.01499 Jy
! Component: 1050  -  total flux cleaned = 0.0155261 Jy
! Component: 1100  -  total flux cleaned = 0.0164606 Jy
! Component: 1150  -  total flux cleaned = 0.0172675 Jy
! Component: 1200  -  total flux cleaned = 0.0184424 Jy
! Component: 1250  -  total flux cleaned = 0.0193 Jy
! Component: 1300  -  total flux cleaned = 0.0202297 Jy
! Component: 1350  -  total flux cleaned = 0.0211351 Jy
! Component: 1400  -  total flux cleaned = 0.0223685 Jy
! Component: 1450  -  total flux cleaned = 0.0233135 Jy
! Component: 1500  -  total flux cleaned = 0.0243198 Jy
! Component: 1550  -  total flux cleaned = 0.0253019 Jy
! Component: 1600  -  total flux cleaned = 0.0262592 Jy
! Component: 1650  -  total flux cleaned = 0.0271934 Jy
! Component: 1700  -  total flux cleaned = 0.0278025 Jy
! Component: 1750  -  total flux cleaned = 0.0286207 Jy
! Component: 1800  -  total flux cleaned = 0.0293475 Jy
! Component: 1850  -  total flux cleaned = 0.030199 Jy
! Component: 1900  -  total flux cleaned = 0.0308221 Jy
! Component: 1950  -  total flux cleaned = 0.0314333 Jy
! Component: 2000  -  total flux cleaned = 0.0322299 Jy
! Total flux subtracted in 2048 components = 0.0328157 Jy
! Clean residual min=-0.003211 max=0.003217 Jy/beam
! Clean residual mean=0.000245 rms=0.001601 Jy/beam
! Combined flux in latest and established models = 0.289319 Jy
keep
! Adding 211 model components to the UV plane model.
! The established model now contains 290 components and 0.289319 Jy
![Exited script file: muppet]
wmap "J0710-3850_X_2002_05_14_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.05 x 7.613 at 20.91 degrees (North through East)
! Clean map  min=-0.015211  max=0.077553 Jy/beam
! Writing clean map to FITS file: J0710-3850_X_2002_05_14_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0775534 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00153214 
device "J0710-3850_X_2002_05_14_yyk\_map.eps/VPS"
! Attempting to open device: 'J0710-3850_X_2002_05_14_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -5.92679 5.92679 11.8536 23.7072 47.4143 94.8287
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0045 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.077 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.05 x 7.613 at 20.91 degrees (North through East)
! Clean map  min=-0.015211  max=0.077553 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0710-3850_X_2002_05_14_yyk\_map.gif/gif"
! Attempting to open device: 'J0710-3850_X_2002_05_14_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0710-3850_X_2002_05_14_yyk_uvs.log closed on Tue Jun 26 22:25:24 2007