! Started logfile: J1332-1402_X_2005_07_08_yyk_uvs.log on Fri Jan 20 10:30:59 2006
obs J1332-1402_X_2005_07_08_yyk_uve.fits
! Reading UV FITS file: J1332-1402_X_2005_07_08_yyk_uve.fits
! AN table 1: 10 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.9 visibilities/baseline/integration-bin.
! Found source: J1332-1402
! 
! 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 1407 lines of history.
! 
! Reading 1620 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 J1332-1402_X_2005_07_08_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.108922 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.6968 mas, bmaj=1.749 mas, bpa=2.574 degrees
! Estimated noise=1.63132 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.0762022 Jy
! Component: 100  -  total flux cleaned = 0.0913995 Jy
! Total flux subtracted in 100 components = 0.0913995 Jy
! Clean residual min=-0.009191 max=0.011496 Jy/beam
! Clean residual mean=-0.000019 rms=0.002372 Jy/beam
! Combined flux in latest and established models = 0.0913995 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.0913995 Jy
! 
! Correcting IF 1.
!  A total of 19 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 19 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 100 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.062369Jy  sigma=1.157672
! Fit after  self-cal, rms=0.061018Jy  sigma=1.130809
! Inverting map and beam 
! Estimated beam: bmin=0.6968 mas, bmaj=1.749 mas, bpa=2.574 degrees
! Estimated noise=1.63132 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=0.9002 mas, bmaj=2.172 mas, bpa=3.107 degrees
! Estimated noise=1.14029 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.00443622 Jy
! Component: 100  -  total flux cleaned = 0.00419073 Jy
! Component: 150  -  total flux cleaned = 0.00402684 Jy
! Component: 200  -  total flux cleaned = 0.00402314 Jy
! Total flux subtracted in 200 components = 0.00402314 Jy
! Clean residual min=-0.006798 max=0.007067 Jy/beam
! Clean residual mean=-0.000046 rms=0.001806 Jy/beam
! Combined flux in latest and established models = 0.0954227 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 12 components and 0.0954227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.060789Jy  sigma=1.119268
! Fit after  self-cal, rms=0.060778Jy  sigma=1.119100
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9002 x 2.172 at 3.107 degrees (North through East)
! Clean map  min=-0.0063046  max=0.092059 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.03285
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.02     HN        1.00*    KP        0.96     
!   LA        0.89     MK        0.89     NL        0.93     OV        1.01     
!   PT        0.92     SC        1.03     
! 
! 
! 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*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        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*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    
! 
! 
! Fit before self-cal, rms=0.060778Jy  sigma=1.119100
! Fit after  self-cal, rms=0.060573Jy  sigma=1.114307
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.060573Jy  sigma=1.114307
! Fit after  self-cal, rms=0.060579Jy  sigma=1.114288
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8972 mas, bmaj=2.159 mas, bpa=1.546 degrees
! Estimated noise=1.13088 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.000529246 Jy
! Component: 100  -  total flux cleaned = -0.000666424 Jy
! Component: 150  -  total flux cleaned = -0.000799631 Jy
! Component: 200  -  total flux cleaned = -0.000920366 Jy
! Total flux subtracted in 200 components = -0.000920366 Jy
! Clean residual min=-0.006505 max=0.006615 Jy/beam
! Clean residual mean=-0.000037 rms=0.001748 Jy/beam
! Combined flux in latest and established models = 0.0945023 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 19 components and 0.0945023 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.060480Jy  sigma=1.113259
! Fit after  self-cal, rms=0.060475Jy  sigma=1.113169
! 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.060475Jy  sigma=1.113169
! Fit after  self-cal, rms=0.056929Jy  sigma=1.055846
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.00133309 Jy
! Component: 100  -  total flux cleaned = 0.00146515 Jy
! Component: 150  -  total flux cleaned = 0.00149258 Jy
! Component: 200  -  total flux cleaned = 0.0014927 Jy
! Total flux subtracted in 200 components = 0.0014927 Jy
! Clean residual min=-0.006055 max=0.006065 Jy/beam
! Clean residual mean=-0.000032 rms=0.001673 Jy/beam
! Combined flux in latest and established models = 0.095995 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 27 components and 0.095995 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.056930Jy  sigma=1.054996
! Fit after  self-cal, rms=0.056608Jy  sigma=1.050506
! 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: 0.8972 x 2.159 at 1.546 degrees (North through East)
! Clean map  min=-0.0055595  max=0.093094 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.492 mas, bmaj=4.72 mas, bpa=2.125 degrees
! Estimated noise=1.42618 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.000176403 Jy
! Component: 100  -  total flux cleaned = 0.000312705 Jy
! Component: 150  -  total flux cleaned = 0.000386384 Jy
! Component: 200  -  total flux cleaned = 0.000482835 Jy
! Total flux subtracted in 200 components = 0.000482835 Jy
! Clean residual min=-0.007005 max=0.008397 Jy/beam
! Clean residual mean=-0.000056 rms=0.002480 Jy/beam
! Combined flux in latest and established models = 0.0964778 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 32 components and 0.0964778 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.056679Jy  sigma=1.051240
! Fit after  self-cal, rms=0.056634Jy  sigma=1.050555
! 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.6957 mas, bmaj=1.743 mas, bpa=1.963 degrees
! Estimated noise=1.62418 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0790393 Jy
! Component: 100  -  total flux cleaned = 0.0934776 Jy
! Component: 150  -  total flux cleaned = 0.093709 Jy
! Component: 200  -  total flux cleaned = 0.0937188 Jy
! Total flux subtracted in 200 components = 0.0937188 Jy
! Clean residual min=-0.008363 max=0.009043 Jy/beam
! Clean residual mean=-0.000012 rms=0.002040 Jy/beam
! Combined flux in latest and established models = 0.0937188 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 13 model components to the UV plane model.
! The established model now contains 13 components and 0.0937188 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8972 mas, bmaj=2.159 mas, bpa=1.546 degrees
! Estimated noise=1.13088 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.00254244 Jy
! Component: 100  -  total flux cleaned = 0.00254647 Jy
! Component: 150  -  total flux cleaned = 0.00247357 Jy
! Component: 200  -  total flux cleaned = 0.00247744 Jy
! Total flux subtracted in 200 components = 0.00247744 Jy
! Clean residual min=-0.005983 max=0.005942 Jy/beam
! Clean residual mean=-0.000031 rms=0.001661 Jy/beam
! Combined flux in latest and established models = 0.0961963 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 19 components and 0.0961963 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.492 mas, bmaj=4.72 mas, bpa=2.125 degrees
! Estimated noise=1.42618 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 = -3.24547e-05 Jy
! Component: 100  -  total flux cleaned = 6.38106e-05 Jy
! Component: 150  -  total flux cleaned = 0.000182833 Jy
! Component: 200  -  total flux cleaned = 0.000250496 Jy
! Total flux subtracted in 200 components = 0.000250496 Jy
! Clean residual min=-0.006973 max=0.008353 Jy/beam
! Clean residual mean=-0.000056 rms=0.002477 Jy/beam
! Combined flux in latest and established models = 0.0964468 Jy
! Adding 7 model components to the UV plane model.
! The established model now contains 25 components and 0.0964468 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8972 mas, bmaj=2.159 mas, bpa=1.546 degrees
! Estimated noise=1.13088 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000204461 Jy
! Component: 100  -  total flux cleaned = 0.000161958 Jy
! Component: 150  -  total flux cleaned = 0.000110458 Jy
! Component: 200  -  total flux cleaned = 6.88998e-05 Jy
! Total flux subtracted in 200 components = 6.88998e-05 Jy
! Clean residual min=-0.005916 max=0.005969 Jy/beam
! Clean residual mean=-0.000030 rms=0.001656 Jy/beam
! Combined flux in latest and established models = 0.0965157 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 31 components and 0.0965156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.056551Jy  sigma=1.049600
! Fit after  self-cal, rms=0.056548Jy  sigma=1.049521
wmodel J1332-1402_X_2005_07_08_yyk\_map.mod
! Writing 31 model components to file: J1332-1402_X_2005_07_08_yyk_map.mod
wobs J1332-1402_X_2005_07_08_yyk\_uvs.fits
! Writing UV FITS file: J1332-1402_X_2005_07_08_yyk_uvs.fits
wwins J1332-1402_X_2005_07_08_yyk\_map.win
! wwins: Wrote 1 windows to J1332-1402_X_2005_07_08_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.00175741 Jy
! Component: 100  -  total flux cleaned = 0.00258241 Jy
! Component: 150  -  total flux cleaned = 0.0023027 Jy
! Component: 200  -  total flux cleaned = 0.00203393 Jy
! Component: 250  -  total flux cleaned = 0.00186258 Jy
! Component: 300  -  total flux cleaned = 0.00203154 Jy
! Component: 350  -  total flux cleaned = 0.00203344 Jy
! Component: 400  -  total flux cleaned = 0.00211169 Jy
! Component: 450  -  total flux cleaned = 0.00211192 Jy
! Component: 500  -  total flux cleaned = 0.0018244 Jy
! Component: 550  -  total flux cleaned = 0.00175633 Jy
! Component: 600  -  total flux cleaned = 0.00162098 Jy
! Component: 650  -  total flux cleaned = 0.00162167 Jy
! Component: 700  -  total flux cleaned = 0.00155717 Jy
! Component: 750  -  total flux cleaned = 0.00149413 Jy
! Component: 800  -  total flux cleaned = 0.00149388 Jy
! Component: 850  -  total flux cleaned = 0.00143348 Jy
! Component: 900  -  total flux cleaned = 0.0013184 Jy
! Component: 950  -  total flux cleaned = 0.00115044 Jy
! Component: 1000  -  total flux cleaned = 0.00120737 Jy
! Component: 1050  -  total flux cleaned = 0.00137022 Jy
! Component: 1100  -  total flux cleaned = 0.00131879 Jy
! Component: 1150  -  total flux cleaned = 0.00132041 Jy
! Component: 1200  -  total flux cleaned = 0.00132181 Jy
! Component: 1250  -  total flux cleaned = 0.00137075 Jy
! Component: 1300  -  total flux cleaned = 0.00122463 Jy
! Component: 1350  -  total flux cleaned = 0.00127222 Jy
! Component: 1400  -  total flux cleaned = 0.00131864 Jy
! Component: 1450  -  total flux cleaned = 0.00140999 Jy
! Component: 1500  -  total flux cleaned = 0.00145417 Jy
! Component: 1550  -  total flux cleaned = 0.00163209 Jy
! Component: 1600  -  total flux cleaned = 0.00171929 Jy
! Component: 1650  -  total flux cleaned = 0.00193509 Jy
! Component: 1700  -  total flux cleaned = 0.00201991 Jy
! Component: 1750  -  total flux cleaned = 0.00206227 Jy
! Component: 1800  -  total flux cleaned = 0.00218598 Jy
! Component: 1850  -  total flux cleaned = 0.00230784 Jy
! Component: 1900  -  total flux cleaned = 0.00250814 Jy
! Component: 1950  -  total flux cleaned = 0.00274441 Jy
! Component: 2000  -  total flux cleaned = 0.00286003 Jy
! Total flux subtracted in 2048 components = 0.00289832 Jy
! Clean residual min=-0.002138 max=0.002118 Jy/beam
! Clean residual mean=-0.000001 rms=0.000750 Jy/beam
! Combined flux in latest and established models = 0.099414 Jy
keep
! Adding 134 model components to the UV plane model.
! The established model now contains 165 components and 0.099414 Jy
![Exited script file: muppet]
wmap "J1332-1402_X_2005_07_08_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8972 x 2.159 at 1.546 degrees (North through East)
! Clean map  min=-0.0048236  max=0.092349 Jy/beam
! Writing clean map to FITS file: J1332-1402_X_2005_07_08_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0923489 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000728091 
device "J1332-1402_X_2005_07_08_yyk\_map.eps/VPS"
! Attempting to open device: 'J1332-1402_X_2005_07_08_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -2.36524 2.36524 4.73048 9.46096 18.9219 37.8438 75.6877
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
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: 0.8972 x 2.159 at 1.546 degrees (North through East)
! Clean map  min=-0.0048236  max=0.092349 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1332-1402_X_2005_07_08_yyk\_map.gif/gif"
! Attempting to open device: 'J1332-1402_X_2005_07_08_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1332-1402_X_2005_07_08_yyk_uvs.log closed on Fri Jan 20 10:31:03 2006