! Started logfile: J1428+2103_S_2007_01_11_yyk_uvs.log on Wed Apr  9 20:31:58 2008
obs J1428+2103_S_2007_01_11_yyk_uve.fits
! Reading UV FITS file: J1428+2103_S_2007_01_11_yyk_uve.fits
! AN table 1: 16 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.588542 visibilities/baseline/integration-bin.
! Found source: J1428+2103
! 
! 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 1356 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 J1428+2103_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.0946533 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=3.785 mas, bmaj=8.211 mas, bpa=13.35 degrees
! Estimated noise=1.69024 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.061548 Jy
! Component: 100  -  total flux cleaned = 0.0764097 Jy
! Total flux subtracted in 100 components = 0.0764097 Jy
! Clean residual min=-0.006841 max=0.008287 Jy/beam
! Clean residual mean=-0.000030 rms=0.002051 Jy/beam
! Combined flux in latest and established models = 0.0764097 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 23 components and 0.0764097 Jy
! 
! Correcting IF 1.
!  A total of 40 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 55 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 79 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 86 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.055203Jy  sigma=1.131075
! Fit after  self-cal, rms=0.052457Jy  sigma=1.058752
! Inverting map and beam 
! Estimated beam: bmin=3.786 mas, bmaj=8.212 mas, bpa=13.36 degrees
! Estimated noise=1.69023 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=5.583 mas, bmaj=10.22 mas, bpa=17.77 degrees
! Estimated noise=1.14986 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.00934984 Jy
! Component: 100  -  total flux cleaned = 0.0104647 Jy
! Component: 150  -  total flux cleaned = 0.0105448 Jy
! Component: 200  -  total flux cleaned = 0.0104458 Jy
! Total flux subtracted in 200 components = 0.0104458 Jy
! Clean residual min=-0.004254 max=0.005157 Jy/beam
! Clean residual mean=0.000015 rms=0.001399 Jy/beam
! Combined flux in latest and established models = 0.0868555 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 48 components and 0.0868555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.051395Jy  sigma=1.031809
! Fit after  self-cal, rms=0.051412Jy  sigma=1.031700
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 5.583 x 10.22 at 17.77 degrees (North through East)
! Clean map  min=-0.0041653  max=0.0788 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.02362
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        0.89     HN        1.00     KP        0.91     
!   LA        1.01     MK        1.00*    OV        1.09     PT        0.95     
!   SC        1.06     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.987196
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.03     HN        1.04     KP        0.96     
!   LA        0.93     MK        1.00*    OV        1.11     PT        1.04     
!   SC        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.974003
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.10     HN        1.00*    KP        1.01     
!   LA        1.04     MK        1.00*    OV        1.11     PT        1.00     
!   SC        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.00462
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.92     HN        1.00*    KP        1.03     
!   LA        1.14     MK        1.00*    OV        1.04     PT        0.84     
!   SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.051412Jy  sigma=1.031700
! Fit after  self-cal, rms=0.051722Jy  sigma=1.014281
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.051722Jy  sigma=1.014281
! Fit after  self-cal, rms=0.051724Jy  sigma=1.014211
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=5.783 mas, bmaj=10.21 mas, bpa=19.59 degrees
! Estimated noise=1.14553 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.000197131 Jy
! Component: 100  -  total flux cleaned = 0.000242815 Jy
! Component: 150  -  total flux cleaned = 0.000206622 Jy
! Component: 200  -  total flux cleaned = 0.000176259 Jy
! Total flux subtracted in 200 components = 0.000176259 Jy
! Clean residual min=-0.003436 max=0.004479 Jy/beam
! Clean residual mean=-0.000001 rms=0.001241 Jy/beam
! Combined flux in latest and established models = 0.0870317 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 60 components and 0.0870318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.051647Jy  sigma=1.013061
! Fit after  self-cal, rms=0.051661Jy  sigma=1.013028
! 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.051661Jy  sigma=1.013028
! Fit after  self-cal, rms=0.044916Jy  sigma=0.907882
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.00124126 Jy
! Component: 100  -  total flux cleaned = 0.00106469 Jy
! Component: 150  -  total flux cleaned = 0.000990326 Jy
! Component: 200  -  total flux cleaned = 0.000984299 Jy
! Total flux subtracted in 200 components = 0.000984299 Jy
! Clean residual min=-0.003668 max=0.003797 Jy/beam
! Clean residual mean=0.000003 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 0.0880161 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 68 components and 0.088016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.044521Jy  sigma=0.902116
! Fit after  self-cal, rms=0.044107Jy  sigma=0.897486
! 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: 5.783 x 10.21 at 19.59 degrees (North through East)
! Clean map  min=-0.003763  max=0.082924 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.214 mas, bmaj=14.4 mas, bpa=42.03 degrees
! Estimated noise=1.24591 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.000110211 Jy
! Component: 100  -  total flux cleaned = 0.000151275 Jy
! Component: 150  -  total flux cleaned = 0.000189256 Jy
! Component: 200  -  total flux cleaned = 0.000206991 Jy
! Total flux subtracted in 200 components = 0.000206991 Jy
! Clean residual min=-0.003267 max=0.003709 Jy/beam
! Clean residual mean=0.000003 rms=0.001245 Jy/beam
! Combined flux in latest and established models = 0.088223 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 80 components and 0.088223 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.044082Jy  sigma=0.897148
! Fit after  self-cal, rms=0.044013Jy  sigma=0.896619
! 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=3.865 mas, bmaj=8.16 mas, bpa=13.47 degrees
! Estimated noise=1.72059 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.069026 Jy
! Component: 100  -  total flux cleaned = 0.0818563 Jy
! Component: 150  -  total flux cleaned = 0.0864954 Jy
! Component: 200  -  total flux cleaned = 0.0877193 Jy
! Total flux subtracted in 200 components = 0.0877193 Jy
! Clean residual min=-0.005528 max=0.005264 Jy/beam
! Clean residual mean=0.000004 rms=0.001489 Jy/beam
! Combined flux in latest and established models = 0.0877193 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 26 model components to the UV plane model.
! The established model now contains 26 components and 0.0877193 Jy
! Inverting map and beam 
! Estimated beam: bmin=5.783 mas, bmaj=10.21 mas, bpa=19.59 degrees
! Estimated noise=1.14553 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.00102188 Jy
! Component: 100  -  total flux cleaned = 0.000900984 Jy
! Component: 150  -  total flux cleaned = 0.000837528 Jy
! Component: 200  -  total flux cleaned = 0.000781759 Jy
! Total flux subtracted in 200 components = 0.000781759 Jy
! Clean residual min=-0.003563 max=0.003617 Jy/beam
! Clean residual mean=0.000001 rms=0.001162 Jy/beam
! Combined flux in latest and established models = 0.088501 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 41 components and 0.088501 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.214 mas, bmaj=14.4 mas, bpa=42.03 degrees
! Estimated noise=1.24591 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.000115706 Jy
! Component: 100  -  total flux cleaned = 1.11248e-05 Jy
! Component: 150  -  total flux cleaned = -3.47361e-05 Jy
! Component: 200  -  total flux cleaned = -1.51883e-05 Jy
! Total flux subtracted in 200 components = -1.51883e-05 Jy
! Clean residual min=-0.003237 max=0.003692 Jy/beam
! Clean residual mean=0.000002 rms=0.001255 Jy/beam
! Combined flux in latest and established models = 0.0884858 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 46 components and 0.0884858 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=5.783 mas, bmaj=10.21 mas, bpa=19.59 degrees
! Estimated noise=1.14553 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000146719 Jy
! Component: 100  -  total flux cleaned = -0.000118692 Jy
! Component: 150  -  total flux cleaned = -0.000117945 Jy
! Component: 200  -  total flux cleaned = -0.000137946 Jy
! Total flux subtracted in 200 components = -0.000137946 Jy
! Clean residual min=-0.003544 max=0.003610 Jy/beam
! Clean residual mean=0.000002 rms=0.001152 Jy/beam
! Combined flux in latest and established models = 0.0883479 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 56 components and 0.0883479 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.043755Jy  sigma=0.893757
! Fit after  self-cal, rms=0.043727Jy  sigma=0.893459
wmodel J1428+2103_S_2007_01_11_yyk\_map.mod
! Writing 56 model components to file: J1428+2103_S_2007_01_11_yyk_map.mod
wobs J1428+2103_S_2007_01_11_yyk\_uvs.fits
! Writing UV FITS file: J1428+2103_S_2007_01_11_yyk_uvs.fits
wwins J1428+2103_S_2007_01_11_yyk\_map.win
! wwins: Wrote 1 windows to J1428+2103_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.000238927 Jy
! Component: 100  -  total flux cleaned = -0.000119338 Jy
! Component: 150  -  total flux cleaned = 0.000100929 Jy
! Component: 200  -  total flux cleaned = 0.00015439 Jy
! Component: 250  -  total flux cleaned = 0.000202816 Jy
! Component: 300  -  total flux cleaned = -2.75484e-05 Jy
! Component: 350  -  total flux cleaned = -0.000247303 Jy
! Component: 400  -  total flux cleaned = -0.000500581 Jy
! Component: 450  -  total flux cleaned = -0.000662211 Jy
! Component: 500  -  total flux cleaned = -0.000778376 Jy
! Component: 550  -  total flux cleaned = -0.000928535 Jy
! Component: 600  -  total flux cleaned = -0.00107224 Jy
! Component: 650  -  total flux cleaned = -0.00117754 Jy
! Component: 700  -  total flux cleaned = -0.0013835 Jy
! Component: 750  -  total flux cleaned = -0.00151681 Jy
! Component: 800  -  total flux cleaned = -0.00167865 Jy
! Component: 850  -  total flux cleaned = -0.00186715 Jy
! Component: 900  -  total flux cleaned = -0.00186747 Jy
! Component: 950  -  total flux cleaned = -0.00204727 Jy
! Component: 1000  -  total flux cleaned = -0.00224998 Jy
! Component: 1050  -  total flux cleaned = -0.00227801 Jy
! Component: 1100  -  total flux cleaned = -0.00238747 Jy
! Component: 1150  -  total flux cleaned = -0.0024677 Jy
! Component: 1200  -  total flux cleaned = -0.00254634 Jy
! Component: 1250  -  total flux cleaned = -0.00262344 Jy
! Component: 1300  -  total flux cleaned = -0.00274954 Jy
! Component: 1350  -  total flux cleaned = -0.0028972 Jy
! Component: 1400  -  total flux cleaned = -0.00296959 Jy
! Component: 1450  -  total flux cleaned = -0.00304059 Jy
! Component: 1500  -  total flux cleaned = -0.00306399 Jy
! Component: 1550  -  total flux cleaned = -0.00320104 Jy
! Component: 1600  -  total flux cleaned = -0.00320067 Jy
! Component: 1650  -  total flux cleaned = -0.00322256 Jy
! Component: 1700  -  total flux cleaned = -0.00324373 Jy
! Component: 1750  -  total flux cleaned = -0.00322257 Jy
! Component: 1800  -  total flux cleaned = -0.00320165 Jy
! Component: 1850  -  total flux cleaned = -0.00322233 Jy
! Component: 1900  -  total flux cleaned = -0.00320199 Jy
! Component: 1950  -  total flux cleaned = -0.00322194 Jy
! Component: 2000  -  total flux cleaned = -0.00316324 Jy
! Total flux subtracted in 2048 components = -0.00316369 Jy
! Clean residual min=-0.001134 max=0.001270 Jy/beam
! Clean residual mean=0.000002 rms=0.000399 Jy/beam
! Combined flux in latest and established models = 0.0851842 Jy
keep
! Adding 118 model components to the UV plane model.
! The established model now contains 174 components and 0.0851842 Jy
![Exited script file: muppet]
wmap "J1428+2103_S_2007_01_11_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 5.783 x 10.21 at 19.59 degrees (North through East)
! Clean map  min=-0.0031643  max=0.08308 Jy/beam
! Writing clean map to FITS file: J1428+2103_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.0830804 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000393162 
device "J1428+2103_S_2007_01_11_yyk\_map.eps/VPS"
! Attempting to open device: 'J1428+2103_S_2007_01_11_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.41969 1.41969 2.83938 5.67877 11.3575 22.7151 45.4301 90.8603
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.083 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 5.783 x 10.21 at 19.59 degrees (North through East)
! Clean map  min=-0.0031643  max=0.08308 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1428+2103_S_2007_01_11_yyk\_map.gif/gif"
! Attempting to open device: 'J1428+2103_S_2007_01_11_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1428+2103_S_2007_01_11_yyk_uvs.log closed on Wed Apr  9 20:32:01 2008