! Started logfile: J0518-2455_X_2007_01_11_yyk_uvs.log on Mon Jun 16 19:17:11 2008
obs J0518-2455_X_2007_01_11_yyk_uve.fits
! Reading UV FITS file: J0518-2455_X_2007_01_11_yyk_uve.fits
! AN table 1: 16 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.541667 visibilities/baseline/integration-bin.
! Found source: J0518-2455
! 
! 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 2143 lines of history.
! 
! Reading 1248 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 J0518-2455_X_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.200x0.200 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.107497 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.8601 mas, bmaj=3.529 mas, bpa=-17.77 degrees
! Estimated noise=2.37706 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=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0529529 Jy
! Component: 100  -  total flux cleaned = 0.0660905 Jy
! Total flux subtracted in 100 components = 0.0660905 Jy
! Clean residual min=-0.010372 max=0.010416 Jy/beam
! Clean residual mean=-0.000130 rms=0.004101 Jy/beam
! Combined flux in latest and established models = 0.0660905 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 37 components and 0.0660905 Jy
! 
! Correcting IF 1.
!  A total of 72 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 64 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.086378Jy  sigma=1.410634
! Fit after  self-cal, rms=0.081372Jy  sigma=1.309201
! Inverting map and beam 
! Estimated beam: bmin=0.8601 mas, bmaj=3.529 mas, bpa=-17.77 degrees
! Estimated noise=2.37706 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.199 mas, bmaj=4.071 mas, bpa=-18.23 degrees
! Estimated noise=1.42601 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.028907 Jy
! Component: 100  -  total flux cleaned = 0.0362033 Jy
! Component: 150  -  total flux cleaned = 0.0352938 Jy
! Component: 200  -  total flux cleaned = 0.0332053 Jy
! Total flux subtracted in 200 components = 0.0332053 Jy
! Clean residual min=-0.003838 max=0.003814 Jy/beam
! Clean residual mean=-0.000084 rms=0.001565 Jy/beam
! Combined flux in latest and established models = 0.0992958 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 83 model components to the UV plane model.
! The established model now contains 116 components and 0.0992958 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.074244Jy  sigma=1.127894
! Fit after  self-cal, rms=0.074132Jy  sigma=1.126545
! 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.199 x 4.071 at -18.23 degrees (North through East)
! Clean map  min=-0.0070917  max=0.050801 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.05514
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        0.93     HN        0.96     KP        1.00*    
!   LA        0.99     MK        0.95     OV        0.87     PT        0.94     
!   SC        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.967951
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        0.92     HN        1.00*    KP        1.00*    
!   LA        0.97     MK        1.00*    OV        1.15     PT        1.14     
!   SC        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.01812
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     HN        1.00*    KP        1.00*    
!   LA        0.91     MK        1.00*    OV        0.93     PT        0.99     
!   SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.074132Jy  sigma=1.126545
! Fit after  self-cal, rms=0.073903Jy  sigma=1.118113
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.073903Jy  sigma=1.118113
! Fit after  self-cal, rms=0.073852Jy  sigma=1.118023
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.205 mas, bmaj=4.038 mas, bpa=-18.18 degrees
! Estimated noise=1.40164 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.00177192 Jy
! Component: 100  -  total flux cleaned = -0.00426865 Jy
! Component: 150  -  total flux cleaned = -0.00604704 Jy
! Component: 200  -  total flux cleaned = -0.00651164 Jy
! Total flux subtracted in 200 components = -0.00651164 Jy
! Clean residual min=-0.001844 max=0.001851 Jy/beam
! Clean residual mean=-0.000037 rms=0.000755 Jy/beam
! Combined flux in latest and established models = 0.0927842 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 59 model components to the UV plane model.
! The established model now contains 166 components and 0.0927842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.073319Jy  sigma=1.102196
! Fit after  self-cal, rms=0.073228Jy  sigma=1.101972
! 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.073228Jy  sigma=1.101972
! Fit after  self-cal, rms=0.063262Jy  sigma=0.933959
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)
! Added new window around map position (0, 0).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00856508 Jy
! Component: 100  -  total flux cleaned = 0.00952871 Jy
! Component: 150  -  total flux cleaned = 0.00896371 Jy
! Component: 200  -  total flux cleaned = 0.00857269 Jy
! Total flux subtracted in 200 components = 0.00857269 Jy
! Clean residual min=-0.003221 max=0.003200 Jy/beam
! Clean residual mean=-0.000015 rms=0.000955 Jy/beam
! Combined flux in latest and established models = 0.101357 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 184 components and 0.101357 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.061879Jy  sigma=0.907633
! Fit after  self-cal, rms=0.060167Jy  sigma=0.892464
! 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.205 x 4.038 at -18.18 degrees (North through East)
! Clean map  min=-0.0057003  max=0.05875 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.883 mas, bmaj=7.608 mas, bpa=12.38 degrees
! Estimated noise=1.57517 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 = 2.73931e-05 Jy
! Component: 100  -  total flux cleaned = -0.000401738 Jy
! Component: 150  -  total flux cleaned = -0.000674083 Jy
! Component: 200  -  total flux cleaned = -0.000910406 Jy
! Total flux subtracted in 200 components = -0.000910406 Jy
! Clean residual min=-0.002566 max=0.002601 Jy/beam
! Clean residual mean=-0.000022 rms=0.000859 Jy/beam
! Combined flux in latest and established models = 0.100447 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 199 components and 0.100447 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.060028Jy  sigma=0.890371
! Fit after  self-cal, rms=0.059514Jy  sigma=0.888111
! 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.863 mas, bmaj=3.51 mas, bpa=-17.74 degrees
! Estimated noise=2.34797 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0684322 Jy
! Component: 100  -  total flux cleaned = 0.0947116 Jy
! Component: 150  -  total flux cleaned = 0.110296 Jy
! Component: 200  -  total flux cleaned = 0.117893 Jy
! Total flux subtracted in 200 components = 0.117893 Jy
! Clean residual min=-0.010318 max=0.014297 Jy/beam
! Clean residual mean=-0.000036 rms=0.003424 Jy/beam
! Combined flux in latest and established models = 0.117893 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 36 model components to the UV plane model.
! The established model now contains 36 components and 0.117893 Jy
! Inverting map and beam 
! Estimated beam: bmin=1.205 mas, bmaj=4.038 mas, bpa=-18.18 degrees
! Estimated noise=1.40164 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.00391182 Jy
! Component: 100  -  total flux cleaned = 0.00511376 Jy
! Component: 150  -  total flux cleaned = 0.0056038 Jy
! Component: 200  -  total flux cleaned = 0.00581238 Jy
! Total flux subtracted in 200 components = 0.00581238 Jy
! Clean residual min=-0.009209 max=0.010129 Jy/beam
! Clean residual mean=-0.000001 rms=0.002497 Jy/beam
! Combined flux in latest and established models = 0.123705 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 59 components and 0.123705 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.883 mas, bmaj=7.608 mas, bpa=12.38 degrees
! Estimated noise=1.57517 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.000556022 Jy
! Component: 100  -  total flux cleaned = 0.000369424 Jy
! Component: 150  -  total flux cleaned = 0.000285277 Jy
! Component: 200  -  total flux cleaned = 0.000213533 Jy
! Total flux subtracted in 200 components = 0.000213533 Jy
! Clean residual min=-0.010602 max=0.011392 Jy/beam
! Clean residual mean=0.000011 rms=0.003022 Jy/beam
! Combined flux in latest and established models = 0.123919 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 78 components and 0.123919 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=1.205 mas, bmaj=4.038 mas, bpa=-18.18 degrees
! Estimated noise=1.40164 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000502337 Jy
! Component: 100  -  total flux cleaned = -0.000497197 Jy
! Component: 150  -  total flux cleaned = -0.000501264 Jy
! Component: 200  -  total flux cleaned = -0.000503713 Jy
! Total flux subtracted in 200 components = -0.000503713 Jy
! Clean residual min=-0.008876 max=0.009770 Jy/beam
! Clean residual mean=0.000006 rms=0.002433 Jy/beam
! Combined flux in latest and established models = 0.123415 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 98 components and 0.123415 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.061597Jy  sigma=0.946712
! Fit after  self-cal, rms=0.059274Jy  sigma=0.899220
wmodel J0518-2455_X_2007_01_11_yyk\_map.mod
! Writing 98 model components to file: J0518-2455_X_2007_01_11_yyk_map.mod
wobs J0518-2455_X_2007_01_11_yyk\_uvs.fits
! Writing UV FITS file: J0518-2455_X_2007_01_11_yyk_uvs.fits
wwins J0518-2455_X_2007_01_11_yyk\_map.win
! wwins: Wrote 1 windows to J0518-2455_X_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.00198509 Jy
! Component: 100  -  total flux cleaned = -0.00278904 Jy
! Component: 150  -  total flux cleaned = -0.00364101 Jy
! Component: 200  -  total flux cleaned = -0.00448108 Jy
! Component: 250  -  total flux cleaned = -0.00554205 Jy
! Component: 300  -  total flux cleaned = -0.00628017 Jy
! Component: 350  -  total flux cleaned = -0.00693119 Jy
! Component: 400  -  total flux cleaned = -0.00750185 Jy
! Component: 450  -  total flux cleaned = -0.00799944 Jy
! Component: 500  -  total flux cleaned = -0.0084288 Jy
! Component: 550  -  total flux cleaned = -0.00871359 Jy
! Component: 600  -  total flux cleaned = -0.00883095 Jy
! Component: 650  -  total flux cleaned = -0.00898222 Jy
! Component: 700  -  total flux cleaned = -0.00931092 Jy
! Component: 750  -  total flux cleaned = -0.00955789 Jy
! Component: 800  -  total flux cleaned = -0.00972952 Jy
! Component: 850  -  total flux cleaned = -0.00989519 Jy
! Component: 900  -  total flux cleaned = -0.00979932 Jy
! Component: 950  -  total flux cleaned = -0.00995716 Jy
! Component: 1000  -  total flux cleaned = -0.00992584 Jy
! Component: 1050  -  total flux cleaned = -0.00989491 Jy
! Component: 1100  -  total flux cleaned = -0.00983582 Jy
! Component: 1150  -  total flux cleaned = -0.00972001 Jy
! Component: 1200  -  total flux cleaned = -0.00954945 Jy
! Component: 1250  -  total flux cleaned = -0.00946593 Jy
! Component: 1300  -  total flux cleaned = -0.00941082 Jy
! Component: 1350  -  total flux cleaned = -0.00924923 Jy
! Component: 1400  -  total flux cleaned = -0.00924931 Jy
! Component: 1450  -  total flux cleaned = -0.00909288 Jy
! Component: 1500  -  total flux cleaned = -0.00904169 Jy
! Component: 1550  -  total flux cleaned = -0.00896604 Jy
! Component: 1600  -  total flux cleaned = -0.00886634 Jy
! Component: 1650  -  total flux cleaned = -0.00879295 Jy
! Component: 1700  -  total flux cleaned = -0.00867209 Jy
! Component: 1750  -  total flux cleaned = -0.00862445 Jy
! Component: 1800  -  total flux cleaned = -0.00860109 Jy
! Component: 1850  -  total flux cleaned = -0.00850896 Jy
! Component: 1900  -  total flux cleaned = -0.00837286 Jy
! Component: 1950  -  total flux cleaned = -0.00835093 Jy
! Component: 2000  -  total flux cleaned = -0.00832865 Jy
! Total flux subtracted in 2048 components = -0.00828499 Jy
! Clean residual min=-0.001216 max=0.001196 Jy/beam
! Clean residual mean=-0.000012 rms=0.000420 Jy/beam
! Combined flux in latest and established models = 0.11513 Jy
keep
! Adding 115 model components to the UV plane model.
! The established model now contains 213 components and 0.11513 Jy
![Exited script file: muppet]
wmap "J0518-2455_X_2007_01_11_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.205 x 4.038 at -18.18 degrees (North through East)
! Clean map  min=-0.005263  max=0.074752 Jy/beam
! Writing clean map to FITS file: J0518-2455_X_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.0747523 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000402331 
device "J0518-2455_X_2007_01_11_yyk\_map.eps/VPS"
! Attempting to open device: 'J0518-2455_X_2007_01_11_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.61466 1.61466 3.22931 6.45862 12.9172 25.8345 51.669
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.074 
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.205 x 4.038 at -18.18 degrees (North through East)
! Clean map  min=-0.005263  max=0.074752 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0518-2455_X_2007_01_11_yyk\_map.gif/gif"
! Attempting to open device: 'J0518-2455_X_2007_01_11_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0518-2455_X_2007_01_11_yyk_uvs.log closed on Mon Jun 16 19:17:16 2008