! Started logfile: J1936+2246_X_2002_01_31_yyk_uvs.log on Wed Jun 27 11:02:34 2007
obs J1936+2246_X_2002_01_31_yyk_uva.fits
! Reading UV FITS file: J1936+2246_X_2002_01_31_yyk_uva.fits
! AN table 1: 81 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.655693 visibilities/baseline/integration-bin.
! Found source: J1936+2246
! 
! 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.40947e+09        8e+06          1        8e+06
!  02        2  8.47947e+09        8e+06          1        8e+06
!  03        3  8.79447e+09        8e+06          1        8e+06
!  04        4  8.89947e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1544 lines of history.
! 
! Reading 9560 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
flag NL
! Flagging baselines of antenna 1:NL in the currently selected channels.
![@muppet J1936+2246_X_2002_01_31_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.226834 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.7541 mas, bmaj=1.624 mas, bpa=9.392 degrees
! Estimated noise=1653.08 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.0348989 Jy
! Component: 100  -  total flux cleaned = 0.0388019 Jy
! Total flux subtracted in 100 components = 0.0388019 Jy
! Clean residual min=-0.012472 max=0.012448 Jy/beam
! Clean residual mean=0.000028 rms=0.003260 Jy/beam
! Combined flux in latest and established models = 0.0388019 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.0388019 Jy
! 
! Correcting IF 1.
!  A total of 192 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 192 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 214 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 192 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.223275Jy  sigma=0.001554
! Fit after  self-cal, rms=0.222615Jy  sigma=0.001548
! Inverting map and beam 
! Estimated beam: bmin=0.7541 mas, bmaj=1.624 mas, bpa=9.392 degrees
! Estimated noise=1653.08 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.047 mas, bmaj=2.167 mas, bpa=14.31 degrees
! Estimated noise=875.416 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.0102297 Jy
! Component: 100  -  total flux cleaned = 0.0128917 Jy
! Component: 150  -  total flux cleaned = 0.0136478 Jy
! Component: 200  -  total flux cleaned = 0.0137053 Jy
! Total flux subtracted in 200 components = 0.0137053 Jy
! Clean residual min=-0.006239 max=0.007833 Jy/beam
! Clean residual mean=0.000057 rms=0.001697 Jy/beam
! Combined flux in latest and established models = 0.0525071 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 23 components and 0.0525071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222469Jy  sigma=0.001545
! Fit after  self-cal, rms=0.222466Jy  sigma=0.001545
! 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.047 x 2.167 at 14.31 degrees (North through East)
! Clean map  min=-0.005858  max=0.046384 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*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! 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        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.222466Jy  sigma=0.001545
! Fit after  self-cal, rms=0.222466Jy  sigma=0.001545
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.222466Jy  sigma=0.001545
! Fit after  self-cal, rms=0.222462Jy  sigma=0.001545
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.047 mas, bmaj=2.167 mas, bpa=14.31 degrees
! Estimated noise=875.416 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.000137024 Jy
! Component: 100  -  total flux cleaned = 0.000137802 Jy
! Component: 150  -  total flux cleaned = 0.000139103 Jy
! Component: 200  -  total flux cleaned = 0.000141496 Jy
! Total flux subtracted in 200 components = 0.000141496 Jy
! Clean residual min=-0.006241 max=0.007753 Jy/beam
! Clean residual mean=0.000058 rms=0.001692 Jy/beam
! Combined flux in latest and established models = 0.0526486 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 25 components and 0.0526486 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222458Jy  sigma=0.001544
! Fit after  self-cal, rms=0.222451Jy  sigma=0.001544
! 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.222451Jy  sigma=0.001544
! Fit after  self-cal, rms=0.221145Jy  sigma=0.001533
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.00432769 Jy
! Component: 100  -  total flux cleaned = 0.00448748 Jy
! Component: 150  -  total flux cleaned = 0.00455481 Jy
! Component: 200  -  total flux cleaned = 0.00450146 Jy
! Total flux subtracted in 200 components = 0.00450146 Jy
! Clean residual min=-0.005971 max=0.006046 Jy/beam
! Clean residual mean=0.000035 rms=0.001639 Jy/beam
! Combined flux in latest and established models = 0.0571501 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 32 components and 0.0571501 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221061Jy  sigma=0.001532
! Fit after  self-cal, rms=0.220703Jy  sigma=0.001528
! 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.047 x 2.167 at 14.31 degrees (North through East)
! Clean map  min=-0.0049819  max=0.052889 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.546 mas, bmaj=3.638 mas, bpa=28.35 degrees
! Estimated noise=1061.97 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.0012659 Jy
! Component: 100  -  total flux cleaned = 0.00138611 Jy
! Component: 150  -  total flux cleaned = 0.00146359 Jy
! Component: 200  -  total flux cleaned = 0.00153075 Jy
! Total flux subtracted in 200 components = 0.00153075 Jy
! Clean residual min=-0.005798 max=0.006927 Jy/beam
! Clean residual mean=0.000021 rms=0.001878 Jy/beam
! Combined flux in latest and established models = 0.0586808 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 41 components and 0.0586808 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220691Jy  sigma=0.001528
! Fit after  self-cal, rms=0.220567Jy  sigma=0.001527
! 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.7541 mas, bmaj=1.624 mas, bpa=9.392 degrees
! Estimated noise=1653.08 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0470976 Jy
! Component: 100  -  total flux cleaned = 0.0506183 Jy
! Component: 150  -  total flux cleaned = 0.0505881 Jy
! Component: 200  -  total flux cleaned = 0.0505881 Jy
! Total flux subtracted in 200 components = 0.0505881 Jy
! Clean residual min=-0.011594 max=0.011792 Jy/beam
! Clean residual mean=0.000008 rms=0.002988 Jy/beam
! Combined flux in latest and established models = 0.0505881 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 14 model components to the UV plane model.
! The established model now contains 14 components and 0.0505881 Jy
! Inverting map and beam 
! Estimated beam: bmin=1.047 mas, bmaj=2.167 mas, bpa=14.31 degrees
! Estimated noise=875.416 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.00510799 Jy
! Component: 100  -  total flux cleaned = 0.00683365 Jy
! Component: 150  -  total flux cleaned = 0.00698217 Jy
! Component: 200  -  total flux cleaned = 0.00711396 Jy
! Total flux subtracted in 200 components = 0.00711396 Jy
! Clean residual min=-0.005706 max=0.005953 Jy/beam
! Clean residual mean=0.000018 rms=0.001548 Jy/beam
! Combined flux in latest and established models = 0.0577021 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 24 components and 0.0577021 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.546 mas, bmaj=3.638 mas, bpa=28.35 degrees
! Estimated noise=1061.97 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.000654351 Jy
! Component: 100  -  total flux cleaned = 0.000783572 Jy
! Component: 150  -  total flux cleaned = 0.000865682 Jy
! Component: 200  -  total flux cleaned = 0.000957685 Jy
! Total flux subtracted in 200 components = 0.000957685 Jy
! Clean residual min=-0.005663 max=0.007030 Jy/beam
! Clean residual mean=0.000028 rms=0.001835 Jy/beam
! Combined flux in latest and established models = 0.0586598 Jy
! Adding 7 model components to the UV plane model.
! The established model now contains 28 components and 0.0586598 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=1.047 mas, bmaj=2.167 mas, bpa=14.31 degrees
! Estimated noise=875.416 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000171613 Jy
! Component: 100  -  total flux cleaned = -0.000348597 Jy
! Component: 150  -  total flux cleaned = -0.000273785 Jy
! Component: 200  -  total flux cleaned = -0.000239277 Jy
! Total flux subtracted in 200 components = -0.000239277 Jy
! Clean residual min=-0.005610 max=0.005978 Jy/beam
! Clean residual mean=0.000019 rms=0.001542 Jy/beam
! Combined flux in latest and established models = 0.0584205 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 33 components and 0.0584205 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.220436Jy  sigma=0.001527
! Fit after  self-cal, rms=0.220276Jy  sigma=0.001526
wmodel J1936+2246_X_2002_01_31_yyk\_map.mod
! Writing 33 model components to file: J1936+2246_X_2002_01_31_yyk_map.mod
wobs J1936+2246_X_2002_01_31_yyk\_uvs.fits
! Applying 81 buffered edits.
! Writing UV FITS file: J1936+2246_X_2002_01_31_yyk_uvs.fits
wwins J1936+2246_X_2002_01_31_yyk\_map.win
! wwins: Wrote 1 windows to J1936+2246_X_2002_01_31_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.00211082 Jy
! Component: 100  -  total flux cleaned = 0.00323736 Jy
! Component: 150  -  total flux cleaned = 0.00393578 Jy
! Component: 200  -  total flux cleaned = 0.00426847 Jy
! Component: 250  -  total flux cleaned = 0.00466761 Jy
! Component: 300  -  total flux cleaned = 0.0048226 Jy
! Component: 350  -  total flux cleaned = 0.00489582 Jy
! Component: 400  -  total flux cleaned = 0.00482597 Jy
! Component: 450  -  total flux cleaned = 0.00475777 Jy
! Component: 500  -  total flux cleaned = 0.00489127 Jy
! Component: 550  -  total flux cleaned = 0.00515116 Jy
! Component: 600  -  total flux cleaned = 0.00534314 Jy
! Component: 650  -  total flux cleaned = 0.00540551 Jy
! Component: 700  -  total flux cleaned = 0.00552637 Jy
! Component: 750  -  total flux cleaned = 0.00546569 Jy
! Component: 800  -  total flux cleaned = 0.00529069 Jy
! Component: 850  -  total flux cleaned = 0.00540293 Jy
! Component: 900  -  total flux cleaned = 0.00545694 Jy
! Component: 950  -  total flux cleaned = 0.0055121 Jy
! Component: 1000  -  total flux cleaned = 0.00562017 Jy
! Component: 1050  -  total flux cleaned = 0.00572718 Jy
! Component: 1100  -  total flux cleaned = 0.00588395 Jy
! Component: 1150  -  total flux cleaned = 0.00613907 Jy
! Component: 1200  -  total flux cleaned = 0.00628868 Jy
! Component: 1250  -  total flux cleaned = 0.00653505 Jy
! Component: 1300  -  total flux cleaned = 0.00668044 Jy
! Component: 1350  -  total flux cleaned = 0.00682351 Jy
! Component: 1400  -  total flux cleaned = 0.00705867 Jy
! Component: 1450  -  total flux cleaned = 0.00705734 Jy
! Component: 1500  -  total flux cleaned = 0.00724029 Jy
! Component: 1550  -  total flux cleaned = 0.00737502 Jy
! Component: 1600  -  total flux cleaned = 0.0075083 Jy
! Component: 1650  -  total flux cleaned = 0.00763968 Jy
! Component: 1700  -  total flux cleaned = 0.00772572 Jy
! Component: 1750  -  total flux cleaned = 0.00785389 Jy
! Component: 1800  -  total flux cleaned = 0.00793863 Jy
! Component: 1850  -  total flux cleaned = 0.00822814 Jy
! Component: 1900  -  total flux cleaned = 0.00834947 Jy
! Component: 1950  -  total flux cleaned = 0.00858951 Jy
! Component: 2000  -  total flux cleaned = 0.00866947 Jy
! Total flux subtracted in 2048 components = 0.00886463 Jy
! Clean residual min=-0.001937 max=0.002218 Jy/beam
! Clean residual mean=0.000012 rms=0.000734 Jy/beam
! Combined flux in latest and established models = 0.0672851 Jy
keep
! Adding 128 model components to the UV plane model.
! The established model now contains 161 components and 0.0672852 Jy
![Exited script file: muppet]
wmap "J1936+2246_X_2002_01_31_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.047 x 2.167 at 14.31 degrees (North through East)
! Clean map  min=-0.0034498  max=0.053155 Jy/beam
! Writing clean map to FITS file: J1936+2246_X_2002_01_31_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0531545 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000732173 
device "J1936+2246_X_2002_01_31_yyk\_map.eps/VPS"
! Attempting to open device: 'J1936+2246_X_2002_01_31_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -4.13233 4.13233 8.26465 16.5293 33.0586 66.1172
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.053 
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.047 x 2.167 at 14.31 degrees (North through East)
! Clean map  min=-0.0034498  max=0.053155 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1936+2246_X_2002_01_31_yyk\_map.gif/gif"
! Attempting to open device: 'J1936+2246_X_2002_01_31_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1936+2246_X_2002_01_31_yyk_uvs.log closed on Wed Jun 27 11:02:40 2007