! Started logfile: J0943+2028_S_2006_12_18_yyk_uvs.log on Wed Apr  9 20:23:13 2008
obs J0943+2028_S_2006_12_18_yyk_uve.fits
! Reading UV FITS file: J0943+2028_S_2006_12_18_yyk_uve.fits
! AN table 1: 17 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.712418 visibilities/baseline/integration-bin.
! Found source: J0943+2028
! 
! 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 2469 lines of history.
! 
! Reading 2180 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 J0943+2028_S_2006_12_18_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.100523 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=2.772 mas, bmaj=6.922 mas, bpa=1.434 degrees
! Estimated noise=1.44977 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.0647722 Jy
! Component: 100  -  total flux cleaned = 0.0808599 Jy
! Total flux subtracted in 100 components = 0.0808599 Jy
! Clean residual min=-0.006871 max=0.007606 Jy/beam
! Clean residual mean=0.000003 rms=0.001842 Jy/beam
! Combined flux in latest and established models = 0.0808599 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.0808599 Jy
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 170 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 37 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.068003Jy  sigma=1.038218
! Fit after  self-cal, rms=0.066957Jy  sigma=1.021517
! Inverting map and beam 
! Estimated beam: bmin=2.772 mas, bmaj=6.922 mas, bpa=1.434 degrees
! Estimated noise=1.44977 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=3.602 mas, bmaj=8.344 mas, bpa=-0.6887 degrees
! Estimated noise=0.941137 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.00811904 Jy
! Component: 100  -  total flux cleaned = 0.00911714 Jy
! Component: 150  -  total flux cleaned = 0.00903919 Jy
! Component: 200  -  total flux cleaned = 0.00909881 Jy
! Total flux subtracted in 200 components = 0.00909881 Jy
! Clean residual min=-0.004848 max=0.003675 Jy/beam
! Clean residual mean=0.000025 rms=0.001086 Jy/beam
! Combined flux in latest and established models = 0.0899587 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 32 components and 0.0899587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066582Jy  sigma=1.004488
! Fit after  self-cal, rms=0.066446Jy  sigma=1.003635
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.602 x 8.344 at -0.6887 degrees (North through East)
! Clean map  min=-0.0046202  max=0.076923 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.00672
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00*    HN        0.95     KP        0.99     
!   LA        1.05     MK        1.01     NL        0.97     OV        1.07     
!   PT        0.98     SC        0.97     
! 
! 
! Correcting IF 2.
!  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*    
! 
! 
! 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.066446Jy  sigma=1.003635
! Fit after  self-cal, rms=0.066182Jy  sigma=1.002347
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.066182Jy  sigma=1.002347
! Fit after  self-cal, rms=0.066144Jy  sigma=1.001965
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.59 mas, bmaj=8.247 mas, bpa=-0.4688 degrees
! Estimated noise=0.941167 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.00104199 Jy
! Component: 100  -  total flux cleaned = 0.00118206 Jy
! Component: 150  -  total flux cleaned = 0.00117939 Jy
! Component: 200  -  total flux cleaned = 0.00117941 Jy
! Total flux subtracted in 200 components = 0.00117941 Jy
! Clean residual min=-0.004902 max=0.003514 Jy/beam
! Clean residual mean=0.000026 rms=0.001061 Jy/beam
! Combined flux in latest and established models = 0.0911381 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 37 components and 0.0911381 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066059Jy  sigma=1.000871
! Fit after  self-cal, rms=0.065999Jy  sigma=1.000409
! 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.065999Jy  sigma=1.000409
! Fit after  self-cal, rms=0.060126Jy  sigma=0.933349
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.00137576 Jy
! Component: 100  -  total flux cleaned = 0.00114956 Jy
! Component: 150  -  total flux cleaned = 0.000970294 Jy
! Component: 200  -  total flux cleaned = 0.000894723 Jy
! Total flux subtracted in 200 components = 0.000894723 Jy
! Clean residual min=-0.004822 max=0.003345 Jy/beam
! Clean residual mean=0.000031 rms=0.001027 Jy/beam
! Combined flux in latest and established models = 0.0920329 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 46 components and 0.0920328 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.060114Jy  sigma=0.931045
! Fit after  self-cal, rms=0.059419Jy  sigma=0.926002
! 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: 3.59 x 8.247 at -0.4688 degrees (North through East)
! Clean map  min=-0.0047583  max=0.079262 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=7.302 mas, bmaj=11.28 mas, bpa=-6.866 degrees
! Estimated noise=1.14695 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.00101584 Jy
! Component: 100  -  total flux cleaned = 0.00109888 Jy
! Component: 150  -  total flux cleaned = 0.00119245 Jy
! Component: 200  -  total flux cleaned = 0.00127648 Jy
! Total flux subtracted in 200 components = 0.00127648 Jy
! Clean residual min=-0.004509 max=0.004359 Jy/beam
! Clean residual mean=0.000053 rms=0.001405 Jy/beam
! Combined flux in latest and established models = 0.0933093 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 53 components and 0.0933093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.059427Jy  sigma=0.926034
! Fit after  self-cal, rms=0.059338Jy  sigma=0.925349
! 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=2.773 mas, bmaj=6.89 mas, bpa=1.532 degrees
! Estimated noise=1.44421 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0691553 Jy
! Component: 100  -  total flux cleaned = 0.084045 Jy
! Component: 150  -  total flux cleaned = 0.088719 Jy
! Component: 200  -  total flux cleaned = 0.0901944 Jy
! Total flux subtracted in 200 components = 0.0901944 Jy
! Clean residual min=-0.005398 max=0.005280 Jy/beam
! Clean residual mean=0.000014 rms=0.001335 Jy/beam
! Combined flux in latest and established models = 0.0901943 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 28 model components to the UV plane model.
! The established model now contains 28 components and 0.0901943 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.59 mas, bmaj=8.247 mas, bpa=-0.4688 degrees
! Estimated noise=0.941167 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.00158965 Jy
! Component: 100  -  total flux cleaned = 0.0017743 Jy
! Component: 150  -  total flux cleaned = 0.00182296 Jy
! Component: 200  -  total flux cleaned = 0.00182219 Jy
! Total flux subtracted in 200 components = 0.00182219 Jy
! Clean residual min=-0.004878 max=0.003442 Jy/beam
! Clean residual mean=0.000031 rms=0.001035 Jy/beam
! Combined flux in latest and established models = 0.0920165 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 39 components and 0.0920165 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=7.302 mas, bmaj=11.28 mas, bpa=-6.866 degrees
! Estimated noise=1.14695 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.000952809 Jy
! Component: 100  -  total flux cleaned = 0.0010376 Jy
! Component: 150  -  total flux cleaned = 0.00115219 Jy
! Component: 200  -  total flux cleaned = 0.00123642 Jy
! Total flux subtracted in 200 components = 0.00123642 Jy
! Clean residual min=-0.004526 max=0.004412 Jy/beam
! Clean residual mean=0.000054 rms=0.001406 Jy/beam
! Combined flux in latest and established models = 0.093253 Jy
! Adding 11 model components to the UV plane model.
! The established model now contains 47 components and 0.0932529 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.59 mas, bmaj=8.247 mas, bpa=-0.4688 degrees
! Estimated noise=0.941167 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000593758 Jy
! Component: 100  -  total flux cleaned = -0.000715596 Jy
! Component: 150  -  total flux cleaned = -0.000776721 Jy
! Component: 200  -  total flux cleaned = -0.000829144 Jy
! Total flux subtracted in 200 components = -0.000829144 Jy
! Clean residual min=-0.004857 max=0.003405 Jy/beam
! Clean residual mean=0.000031 rms=0.001020 Jy/beam
! Combined flux in latest and established models = 0.0924238 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 53 components and 0.0924238 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.059364Jy  sigma=0.924797
! Fit after  self-cal, rms=0.059327Jy  sigma=0.924626
wmodel J0943+2028_S_2006_12_18_yyk\_map.mod
! Writing 53 model components to file: J0943+2028_S_2006_12_18_yyk_map.mod
wobs J0943+2028_S_2006_12_18_yyk\_uvs.fits
! Writing UV FITS file: J0943+2028_S_2006_12_18_yyk_uvs.fits
wwins J0943+2028_S_2006_12_18_yyk\_map.win
! wwins: Wrote 1 windows to J0943+2028_S_2006_12_18_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.00148234 Jy
! Component: 100  -  total flux cleaned = -0.000656205 Jy
! Component: 150  -  total flux cleaned = -6.08665e-07 Jy
! Component: 200  -  total flux cleaned = 0.000407167 Jy
! Component: 250  -  total flux cleaned = 0.000553354 Jy
! Component: 300  -  total flux cleaned = 0.000326622 Jy
! Component: 350  -  total flux cleaned = 0.000237113 Jy
! Component: 400  -  total flux cleaned = 0.000111597 Jy
! Component: 450  -  total flux cleaned = 0.000153411 Jy
! Component: 500  -  total flux cleaned = 0.000309388 Jy
! Component: 550  -  total flux cleaned = 0.000461502 Jy
! Component: 600  -  total flux cleaned = 0.000536416 Jy
! Component: 650  -  total flux cleaned = 0.000573378 Jy
! Component: 700  -  total flux cleaned = 0.000608805 Jy
! Component: 750  -  total flux cleaned = 0.000609378 Jy
! Component: 800  -  total flux cleaned = 0.000677758 Jy
! Component: 850  -  total flux cleaned = 0.000678392 Jy
! Component: 900  -  total flux cleaned = 0.000711033 Jy
! Component: 950  -  total flux cleaned = 0.000554492 Jy
! Component: 1000  -  total flux cleaned = 0.000492971 Jy
! Component: 1050  -  total flux cleaned = 0.000402363 Jy
! Component: 1100  -  total flux cleaned = 0.000283297 Jy
! Component: 1150  -  total flux cleaned = 0.000166337 Jy
! Component: 1200  -  total flux cleaned = 8.06372e-05 Jy
! Component: 1250  -  total flux cleaned = -6.01807e-05 Jy
! Component: 1300  -  total flux cleaned = -0.000115984 Jy
! Component: 1350  -  total flux cleaned = -0.000170443 Jy
! Component: 1400  -  total flux cleaned = -0.000170544 Jy
! Component: 1450  -  total flux cleaned = -0.000197006 Jy
! Component: 1500  -  total flux cleaned = -0.000170451 Jy
! Component: 1550  -  total flux cleaned = -0.000118419 Jy
! Component: 1600  -  total flux cleaned = -0.000143906 Jy
! Component: 1650  -  total flux cleaned = -6.85165e-05 Jy
! Component: 1700  -  total flux cleaned = -1.89998e-05 Jy
! Component: 1750  -  total flux cleaned = 5.54655e-05 Jy
! Component: 1800  -  total flux cleaned = 0.000128832 Jy
! Component: 1850  -  total flux cleaned = 0.000201089 Jy
! Component: 1900  -  total flux cleaned = 0.000344274 Jy
! Component: 1950  -  total flux cleaned = 0.000485349 Jy
! Component: 2000  -  total flux cleaned = 0.000531806 Jy
! Total flux subtracted in 2048 components = 0.000623865 Jy
! Clean residual min=-0.001297 max=0.001564 Jy/beam
! Clean residual mean=0.000010 rms=0.000479 Jy/beam
! Combined flux in latest and established models = 0.0930477 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 194 components and 0.0930477 Jy
![Exited script file: muppet]
wmap "J0943+2028_S_2006_12_18_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.59 x 8.247 at -0.4688 degrees (North through East)
! Clean map  min=-0.0042817  max=0.079272 Jy/beam
! Writing clean map to FITS file: J0943+2028_S_2006_12_18_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0792721 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000472537 
device "J0943+2028_S_2006_12_18_yyk\_map.eps/VPS"
! Attempting to open device: 'J0943+2028_S_2006_12_18_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.78829 1.78829 3.57657 7.15314 14.3063 28.6126 57.2252
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.079 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.59 x 8.247 at -0.4688 degrees (North through East)
! Clean map  min=-0.0042817  max=0.079272 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0943+2028_S_2006_12_18_yyk\_map.gif/gif"
! Attempting to open device: 'J0943+2028_S_2006_12_18_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0943+2028_S_2006_12_18_yyk_uvs.log closed on Wed Apr  9 20:23:17 2008