! Started logfile: J1743+1326_X_2004_05_08_yyk_uvs.log on Wed Dec  7 00:40:33 2005
obs J1743+1326_X_2004_05_08_yyk_uve.fits
! Reading UV FITS file: J1743+1326_X_2004_05_08_yyk_uve.fits
! AN table 1: 22 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.942424 visibilities/baseline/integration-bin.
! Found source: J1743+1326
! 
! 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 1434 lines of history.
! 
! Reading 3732 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 J1743+1326_X_2004_05_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.0938234 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 12 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 13 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 22 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.929248Jy  sigma=19.630682
! Fit after  self-cal, rms=0.929154Jy  sigma=19.628545
! 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=0.7609 mas, bmaj=1.711 mas, bpa=2.92 degrees
! Estimated noise=0.866982 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.062222 Jy
! Component: 100  -  total flux cleaned = 0.072417 Jy
! Total flux subtracted in 100 components = 0.072417 Jy
! Clean residual min=-0.003933 max=0.003800 Jy/beam
! Clean residual mean=-0.000002 rms=0.000969 Jy/beam
! Combined flux in latest and established models = 0.072417 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.072417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.059174Jy  sigma=1.035212
! Fit after  self-cal, rms=0.059138Jy  sigma=1.034693
! 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=0.9365 mas, bmaj=2.057 mas, bpa=2.247 degrees
! Estimated noise=0.556395 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.00360921 Jy
! Component: 100  -  total flux cleaned = 0.00414263 Jy
! Component: 150  -  total flux cleaned = 0.00402443 Jy
! Component: 200  -  total flux cleaned = 0.00393013 Jy
! Total flux subtracted in 200 components = 0.00393014 Jy
! Clean residual min=-0.002023 max=0.002576 Jy/beam
! Clean residual mean=0.000002 rms=0.000588 Jy/beam
! Combined flux in latest and established models = 0.0763471 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 11 components and 0.0763471 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.059011Jy  sigma=1.030988
! Fit after  self-cal, rms=0.059004Jy  sigma=1.030865
! 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.00442
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        1.02     HN        1.00     KP        1.00     
!   LA        1.01     MK        0.99     NL        1.03     OV        1.02     
!   PT        1.00     SC        0.99     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.0141
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     HN        0.97     KP        0.91     
!   LA        0.98     MK        0.98     NL        1.07     OV        0.99     
!   PT        0.99     SC        0.96     
! 
! 
! 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: 0.997921
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.01     HN        0.91     KP        0.89     
!   LA        0.99     MK        1.03     NL        0.96     OV        1.01     
!   PT        1.12     SC        1.05     
! 
! 
! Fit before self-cal, rms=0.059004Jy  sigma=1.030865
! Fit after  self-cal, rms=0.058478Jy  sigma=1.026855
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.058478Jy  sigma=1.026855
! Fit after  self-cal, rms=0.058478Jy  sigma=1.026822
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.936 mas, bmaj=2.052 mas, bpa=2.086 degrees
! Estimated noise=0.556711 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.000192702 Jy
! Component: 100  -  total flux cleaned = 0.000294971 Jy
! Component: 150  -  total flux cleaned = 0.000295669 Jy
! Component: 200  -  total flux cleaned = 0.000269201 Jy
! Total flux subtracted in 200 components = 0.000269201 Jy
! Clean residual min=-0.001989 max=0.002359 Jy/beam
! Clean residual mean=0.000004 rms=0.000538 Jy/beam
! Combined flux in latest and established models = 0.0766163 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 17 components and 0.0766163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.058468Jy  sigma=1.026585
! Fit after  self-cal, rms=0.058466Jy  sigma=1.026530
! 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.058466Jy  sigma=1.026530
! Fit after  self-cal, rms=0.055603Jy  sigma=0.980936
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.00140123 Jy
! Component: 100  -  total flux cleaned = 0.00139 Jy
! Component: 150  -  total flux cleaned = 0.00139003 Jy
! Component: 200  -  total flux cleaned = 0.00137718 Jy
! Total flux subtracted in 200 components = 0.00137718 Jy
! Clean residual min=-0.001903 max=0.002189 Jy/beam
! Clean residual mean=0.000004 rms=0.000525 Jy/beam
! Combined flux in latest and established models = 0.0779935 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 20 components and 0.0779935 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055575Jy  sigma=0.980283
! Fit after  self-cal, rms=0.055392Jy  sigma=0.977215
! 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.936 x 2.052 at 2.086 degrees (North through East)
! Clean map  min=-0.0018088  max=0.074737 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.199 mas, bmaj=3.178 mas, bpa=-4.993 degrees
! Estimated noise=0.705123 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.00016067 Jy
! Component: 100  -  total flux cleaned = 0.000134215 Jy
! Component: 150  -  total flux cleaned = 9.17337e-05 Jy
! Component: 200  -  total flux cleaned = 6.21974e-05 Jy
! Total flux subtracted in 200 components = 6.21974e-05 Jy
! Clean residual min=-0.001875 max=0.001991 Jy/beam
! Clean residual mean=0.000009 rms=0.000644 Jy/beam
! Combined flux in latest and established models = 0.0780557 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 27 components and 0.0780557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055394Jy  sigma=0.977242
! Fit after  self-cal, rms=0.055400Jy  sigma=0.976871
! 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=0.7624 mas, bmaj=1.715 mas, bpa=2.68 degrees
! Estimated noise=0.863859 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0635678 Jy
! Component: 100  -  total flux cleaned = 0.07393 Jy
! Component: 150  -  total flux cleaned = 0.0774879 Jy
! Component: 200  -  total flux cleaned = 0.0781052 Jy
! Total flux subtracted in 200 components = 0.0781052 Jy
! Clean residual min=-0.003483 max=0.003130 Jy/beam
! Clean residual mean=0.000001 rms=0.000831 Jy/beam
! Combined flux in latest and established models = 0.0781052 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.0781052 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.936 mas, bmaj=2.052 mas, bpa=2.086 degrees
! Estimated noise=0.556711 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)
! Added new window around map position (-19.2, 6.2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00165492 Jy
! Component: 100  -  total flux cleaned = 0.00189182 Jy
! Component: 150  -  total flux cleaned = 0.00193873 Jy
! Component: 200  -  total flux cleaned = 0.00189875 Jy
! Total flux subtracted in 200 components = 0.00189875 Jy
! Clean residual min=-0.001853 max=0.001860 Jy/beam
! Clean residual mean=0.000004 rms=0.000510 Jy/beam
! Combined flux in latest and established models = 0.080004 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 29 components and 0.080004 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.199 mas, bmaj=3.178 mas, bpa=-4.993 degrees
! Estimated noise=0.705123 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.000169493 Jy
! Component: 100  -  total flux cleaned = 0.000267959 Jy
! Component: 150  -  total flux cleaned = 0.000243819 Jy
! Component: 200  -  total flux cleaned = 0.000222859 Jy
! Total flux subtracted in 200 components = 0.000222859 Jy
! Clean residual min=-0.001966 max=0.001755 Jy/beam
! Clean residual mean=0.000009 rms=0.000619 Jy/beam
! Combined flux in latest and established models = 0.0802268 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 49 components and 0.0802268 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.936 mas, bmaj=2.052 mas, bpa=2.086 degrees
! Estimated noise=0.556711 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000173247 Jy
! Component: 100  -  total flux cleaned = -0.000205195 Jy
! Component: 150  -  total flux cleaned = -0.000292026 Jy
! Component: 200  -  total flux cleaned = -0.000343888 Jy
! Total flux subtracted in 200 components = -0.000343888 Jy
! Clean residual min=-0.001747 max=0.001804 Jy/beam
! Clean residual mean=0.000004 rms=0.000499 Jy/beam
! Combined flux in latest and established models = 0.0798829 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 58 components and 0.0798829 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055315Jy  sigma=0.974617
! Fit after  self-cal, rms=0.055305Jy  sigma=0.974261
wmodel J1743+1326_X_2004_05_08_yyk\_map.mod
! Writing 58 model components to file: J1743+1326_X_2004_05_08_yyk_map.mod
wobs J1743+1326_X_2004_05_08_yyk\_uvs.fits
! Writing UV FITS file: J1743+1326_X_2004_05_08_yyk_uvs.fits
wwins J1743+1326_X_2004_05_08_yyk\_map.win
! wwins: Wrote 2 windows to J1743+1326_X_2004_05_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.000174816 Jy
! Component: 100  -  total flux cleaned = 0.000144666 Jy
! Component: 150  -  total flux cleaned = 2.78472e-05 Jy
! Component: 200  -  total flux cleaned = -0.000169672 Jy
! Component: 250  -  total flux cleaned = -0.000333747 Jy
! Component: 300  -  total flux cleaned = -0.000413761 Jy
! Component: 350  -  total flux cleaned = -0.00046559 Jy
! Component: 400  -  total flux cleaned = -0.000440065 Jy
! Component: 450  -  total flux cleaned = -0.000514541 Jy
! Component: 500  -  total flux cleaned = -0.000538501 Jy
! Component: 550  -  total flux cleaned = -0.000490802 Jy
! Component: 600  -  total flux cleaned = -0.000562064 Jy
! Component: 650  -  total flux cleaned = -0.000631215 Jy
! Component: 700  -  total flux cleaned = -0.00065379 Jy
! Component: 750  -  total flux cleaned = -0.000653655 Jy
! Component: 800  -  total flux cleaned = -0.000719821 Jy
! Component: 850  -  total flux cleaned = -0.000654566 Jy
! Component: 900  -  total flux cleaned = -0.000697101 Jy
! Component: 950  -  total flux cleaned = -0.000675834 Jy
! Component: 1000  -  total flux cleaned = -0.000676025 Jy
! Component: 1050  -  total flux cleaned = -0.000758519 Jy
! Component: 1100  -  total flux cleaned = -0.000718012 Jy
! Component: 1150  -  total flux cleaned = -0.000778125 Jy
! Component: 1200  -  total flux cleaned = -0.00079778 Jy
! Component: 1250  -  total flux cleaned = -0.000836859 Jy
! Component: 1300  -  total flux cleaned = -0.000798296 Jy
! Component: 1350  -  total flux cleaned = -0.000893754 Jy
! Component: 1400  -  total flux cleaned = -0.000818025 Jy
! Component: 1450  -  total flux cleaned = -0.000818025 Jy
! Component: 1500  -  total flux cleaned = -0.000836305 Jy
! Component: 1550  -  total flux cleaned = -0.000891359 Jy
! Component: 1600  -  total flux cleaned = -0.000891467 Jy
! Component: 1650  -  total flux cleaned = -0.000981244 Jy
! Component: 1700  -  total flux cleaned = -0.00099918 Jy
! Component: 1750  -  total flux cleaned = -0.00101681 Jy
! Component: 1800  -  total flux cleaned = -0.0011044 Jy
! Component: 1850  -  total flux cleaned = -0.00110451 Jy
! Component: 1900  -  total flux cleaned = -0.00119021 Jy
! Component: 1950  -  total flux cleaned = -0.00122417 Jy
! Component: 2000  -  total flux cleaned = -0.00120747 Jy
! Total flux subtracted in 2048 components = -0.00130792 Jy
! Clean residual min=-0.000909 max=0.001102 Jy/beam
! Clean residual mean=0.000003 rms=0.000323 Jy/beam
! Combined flux in latest and established models = 0.078575 Jy
keep
! Adding 154 model components to the UV plane model.
! The established model now contains 212 components and 0.078575 Jy
![Exited script file: muppet]
wmap "J1743+1326_X_2004_05_08_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.936 x 2.052 at 2.086 degrees (North through East)
! Clean map  min=-0.0013656  max=0.074027 Jy/beam
! Writing clean map to FITS file: J1743+1326_X_2004_05_08_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0740268 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000322976 
device "J1743+1326_X_2004_05_08_yyk\_map.eps/VPS"
! Attempting to open device: 'J1743+1326_X_2004_05_08_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.30889 1.30889 2.61778 5.23556 10.4711 20.9422 41.8845 83.769
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0009 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.074 
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.936 x 2.052 at 2.086 degrees (North through East)
! Clean map  min=-0.0013656  max=0.074027 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1743+1326_X_2004_05_08_yyk\_map.gif/gif"
! Attempting to open device: 'J1743+1326_X_2004_05_08_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1743+1326_X_2004_05_08_yyk_uvs.log closed on Wed Dec  7 00:40:37 2005