! Started logfile: J1540-2055_S_2004_05_27_yyk_uvs.log on Wed Dec  7 00:34:35 2005
obs J1540-2055_S_2004_05_27_yyk_uve.fits
! Reading UV FITS file: J1540-2055_S_2004_05_27_yyk_uve.fits
! AN table 1: 16 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.575 visibilities/baseline/integration-bin.
! Found source: J1540-2055
! 
! 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 1384 lines of history.
! 
! Reading 1656 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 J1540-2055_S_2004_05_27_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.126946 Jy 
startmod ,phase_soltime
! Applying default point source starting model.
! Performing phase self-cal over 10 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 52 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 56 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 71 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 71 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.909689Jy  sigma=15.594784
! Fit after  self-cal, rms=0.906947Jy  sigma=15.570685
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
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.721 mas, bmaj=14.38 mas, bpa=-21.07 degrees
! Estimated noise=2.3097 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.0802062 Jy
! Component: 100  -  total flux cleaned = 0.104338 Jy
! Total flux subtracted in 100 components = 0.104338 Jy
! Clean residual min=-0.008526 max=0.008614 Jy/beam
! Clean residual mean=0.000150 rms=0.002710 Jy/beam
! Combined flux in latest and established models = 0.104338 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 21 components and 0.104338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.078594Jy  sigma=1.074286
! Fit after  self-cal, rms=0.078473Jy  sigma=1.071927
! Inverting map 
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=6.725 mas, bmaj=17.9 mas, bpa=-11.3 degrees
! Estimated noise=1.21894 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.0127784 Jy
! Component: 100  -  total flux cleaned = 0.0178987 Jy
! Component: 150  -  total flux cleaned = 0.0200615 Jy
! Component: 200  -  total flux cleaned = 0.0201969 Jy
! Total flux subtracted in 200 components = 0.0201969 Jy
! Clean residual min=-0.004565 max=0.003247 Jy/beam
! Clean residual mean=0.000037 rms=0.001349 Jy/beam
! Combined flux in latest and established models = 0.124534 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 51 components and 0.124534 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.077251Jy  sigma=1.040807
! Fit after  self-cal, rms=0.077241Jy  sigma=1.040503
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
selflims ampcor_selflim
! 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.00374
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.11     HN        1.00*    KP        0.88     
!   LA        1.05     MK        0.94     NL        1.00     OV        1.02     
!   PT        1.01     SC        1.00*    
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.01656
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.97     HN        1.00*    KP        0.93     
!   LA        1.03     MK        0.86     NL        1.00     OV        1.06     
!   PT        0.92     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        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*    
! 
! 
! Fit before self-cal, rms=0.077241Jy  sigma=1.040503
! Fit after  self-cal, rms=0.076606Jy  sigma=1.032399
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.076606Jy  sigma=1.032399
! Fit after  self-cal, rms=0.076600Jy  sigma=1.032350
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=6.449 mas, bmaj=17.92 mas, bpa=-12.61 degrees
! Estimated noise=1.22461 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.00119176 Jy
! Component: 100  -  total flux cleaned = 0.00119487 Jy
! Component: 150  -  total flux cleaned = 0.00114537 Jy
! Component: 200  -  total flux cleaned = 0.00109976 Jy
! Total flux subtracted in 200 components = 0.00109976 Jy
! Clean residual min=-0.003504 max=0.003475 Jy/beam
! Clean residual mean=0.000108 rms=0.001102 Jy/beam
! Combined flux in latest and established models = 0.125634 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 63 components and 0.125634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.076480Jy  sigma=1.030931
! Fit after  self-cal, rms=0.076467Jy  sigma=1.030872
! 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.076467Jy  sigma=1.030872
! Fit after  self-cal, rms=0.071305Jy  sigma=0.951008
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.00191028 Jy
! Component: 100  -  total flux cleaned = 0.00184026 Jy
! Component: 150  -  total flux cleaned = 0.00172742 Jy
! Component: 200  -  total flux cleaned = 0.00161998 Jy
! Total flux subtracted in 200 components = 0.00161998 Jy
! Clean residual min=-0.003234 max=0.003106 Jy/beam
! Clean residual mean=0.000100 rms=0.001040 Jy/beam
! Combined flux in latest and established models = 0.127254 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 70 components and 0.127254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.071154Jy  sigma=0.948157
! Fit after  self-cal, rms=0.070635Jy  sigma=0.943806
! 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: 6.449 x 17.92 at -12.61 degrees (North through East)
! Clean map  min=-0.0032581  max=0.096399 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=10.8 mas, bmaj=23.96 mas, bpa=5.496 degrees
! Estimated noise=1.28223 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.000494957 Jy
! Component: 100  -  total flux cleaned = 0.000647042 Jy
! Component: 150  -  total flux cleaned = 0.000647774 Jy
! Component: 200  -  total flux cleaned = 0.000622527 Jy
! Total flux subtracted in 200 components = 0.000622527 Jy
! Clean residual min=-0.003132 max=0.002807 Jy/beam
! Clean residual mean=0.000112 rms=0.001000 Jy/beam
! Combined flux in latest and established models = 0.127877 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 80 components and 0.127877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.070635Jy  sigma=0.943505
! Fit after  self-cal, rms=0.070529Jy  sigma=0.942839
! Inverting map 
uvtaper 0,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.639 mas, bmaj=14.42 mas, bpa=-21.27 degrees
! Estimated noise=2.2962 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.084094 Jy
! Component: 100  -  total flux cleaned = 0.108881 Jy
! Component: 150  -  total flux cleaned = 0.120486 Jy
! Component: 200  -  total flux cleaned = 0.125613 Jy
! Total flux subtracted in 200 components = 0.125613 Jy
! Clean residual min=-0.008800 max=0.008489 Jy/beam
! Clean residual mean=0.000122 rms=0.002259 Jy/beam
! Combined flux in latest and established models = 0.125613 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 44 model components to the UV plane model.
! The established model now contains 44 components and 0.125613 Jy
! Inverting map and beam 
! Estimated beam: bmin=6.449 mas, bmaj=17.92 mas, bpa=-12.61 degrees
! Estimated noise=1.22461 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.00131023 Jy
! Component: 100  -  total flux cleaned = 0.00140373 Jy
! Component: 150  -  total flux cleaned = 0.00148089 Jy
! Component: 200  -  total flux cleaned = 0.0014081 Jy
! Total flux subtracted in 200 components = 0.0014081 Jy
! Clean residual min=-0.003311 max=0.003216 Jy/beam
! Clean residual mean=0.000100 rms=0.001102 Jy/beam
! Combined flux in latest and established models = 0.127021 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 69 components and 0.127021 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=10.8 mas, bmaj=23.96 mas, bpa=5.496 degrees
! Estimated noise=1.28223 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.000827193 Jy
! Component: 100  -  total flux cleaned = 0.000826983 Jy
! Component: 150  -  total flux cleaned = 0.000827425 Jy
! Component: 200  -  total flux cleaned = 0.000786388 Jy
! Total flux subtracted in 200 components = 0.000786388 Jy
! Clean residual min=-0.003146 max=0.002860 Jy/beam
! Clean residual mean=0.000113 rms=0.001032 Jy/beam
! Combined flux in latest and established models = 0.127807 Jy
! Adding 11 model components to the UV plane model.
! The established model now contains 74 components and 0.127807 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=6.449 mas, bmaj=17.92 mas, bpa=-12.61 degrees
! Estimated noise=1.22461 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000309777 Jy
! Component: 100  -  total flux cleaned = -0.000405895 Jy
! Component: 150  -  total flux cleaned = -0.000449637 Jy
! Component: 200  -  total flux cleaned = -0.000536403 Jy
! Total flux subtracted in 200 components = -0.000536403 Jy
! Clean residual min=-0.003379 max=0.003077 Jy/beam
! Clean residual mean=0.000097 rms=0.001025 Jy/beam
! Combined flux in latest and established models = 0.127271 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 79 components and 0.127271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.070467Jy  sigma=0.942330
! Fit after  self-cal, rms=0.070384Jy  sigma=0.942068
wmodel J1540-2055_S_2004_05_27_yyk\_map.mod
! Writing 79 model components to file: J1540-2055_S_2004_05_27_yyk_map.mod
wobs J1540-2055_S_2004_05_27_yyk\_uvs.fits
! Writing UV FITS file: J1540-2055_S_2004_05_27_yyk_uvs.fits
wwins J1540-2055_S_2004_05_27_yyk\_map.win
! wwins: Wrote 1 windows to J1540-2055_S_2004_05_27_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.000204335 Jy
! Component: 100  -  total flux cleaned = 0.000106477 Jy
! Component: 150  -  total flux cleaned = 0.000644961 Jy
! Component: 200  -  total flux cleaned = 0.00106299 Jy
! Component: 250  -  total flux cleaned = 0.00137084 Jy
! Component: 300  -  total flux cleaned = 0.00174959 Jy
! Component: 350  -  total flux cleaned = 0.00219561 Jy
! Component: 400  -  total flux cleaned = 0.00243021 Jy
! Component: 450  -  total flux cleaned = 0.00265898 Jy
! Component: 500  -  total flux cleaned = 0.00288145 Jy
! Component: 550  -  total flux cleaned = 0.00306134 Jy
! Component: 600  -  total flux cleaned = 0.00323598 Jy
! Component: 650  -  total flux cleaned = 0.00323628 Jy
! Component: 700  -  total flux cleaned = 0.00333578 Jy
! Component: 750  -  total flux cleaned = 0.00343234 Jy
! Component: 800  -  total flux cleaned = 0.00355919 Jy
! Component: 850  -  total flux cleaned = 0.00371533 Jy
! Component: 900  -  total flux cleaned = 0.00389915 Jy
! Component: 950  -  total flux cleaned = 0.00401974 Jy
! Component: 1000  -  total flux cleaned = 0.00419663 Jy
! Component: 1050  -  total flux cleaned = 0.00428302 Jy
! Component: 1100  -  total flux cleaned = 0.00436788 Jy
! Component: 1150  -  total flux cleaned = 0.00447953 Jy
! Component: 1200  -  total flux cleaned = 0.00456156 Jy
! Component: 1250  -  total flux cleaned = 0.00464228 Jy
! Component: 1300  -  total flux cleaned = 0.00474837 Jy
! Component: 1350  -  total flux cleaned = 0.00480084 Jy
! Component: 1400  -  total flux cleaned = 0.00495487 Jy
! Component: 1450  -  total flux cleaned = 0.00495498 Jy
! Component: 1500  -  total flux cleaned = 0.00507959 Jy
! Component: 1550  -  total flux cleaned = 0.00515333 Jy
! Component: 1600  -  total flux cleaned = 0.00529866 Jy
! Component: 1650  -  total flux cleaned = 0.00537003 Jy
! Component: 1700  -  total flux cleaned = 0.00546466 Jy
! Component: 1750  -  total flux cleaned = 0.00558164 Jy
! Component: 1800  -  total flux cleaned = 0.00565108 Jy
! Component: 1850  -  total flux cleaned = 0.00574234 Jy
! Component: 1900  -  total flux cleaned = 0.00587753 Jy
! Component: 1950  -  total flux cleaned = 0.0058775 Jy
! Component: 2000  -  total flux cleaned = 0.00596586 Jy
! Total flux subtracted in 2048 components = 0.00600965 Jy
! Clean residual min=-0.001646 max=0.001238 Jy/beam
! Clean residual mean=0.000058 rms=0.000481 Jy/beam
! Combined flux in latest and established models = 0.133281 Jy
keep
! Adding 117 model components to the UV plane model.
! The established model now contains 196 components and 0.133281 Jy
![Exited script file: muppet]
wmap "J1540-2055_S_2004_05_27_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 6.449 x 17.92 at -12.61 degrees (North through East)
! Clean map  min=-0.0030587  max=0.096548 Jy/beam
! Writing clean map to FITS file: J1540-2055_S_2004_05_27_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.096548 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00048896 
device "J1540-2055_S_2004_05_27_yyk\_map.eps/VPS"
! Attempting to open device: 'J1540-2055_S_2004_05_27_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.51933 1.51933 3.03866 6.07731 12.1546 24.3092 48.6185 97.237
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.096 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 6.449 x 17.92 at -12.61 degrees (North through East)
! Clean map  min=-0.0030587  max=0.096548 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1540-2055_S_2004_05_27_yyk\_map.gif/gif"
! Attempting to open device: 'J1540-2055_S_2004_05_27_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1540-2055_S_2004_05_27_yyk_uvs.log closed on Wed Dec  7 00:34:39 2005