! Started logfile: J1247-2348_S_1997_08_27_yyk_uvs.log on Sun Jan  7 18:08:50 2007
obs J1247-2348_S_1997_08_27_yyk_uva.fits
! Reading UV FITS file: J1247-2348_S_1997_08_27_yyk_uva.fits
! AN table 1: 146 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.992237 visibilities/baseline/integration-bin.
! Found source: J1247-2348
! 
! 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.22447e+09        8e+06          1        8e+06
!  02        2  2.23447e+09        8e+06          1        8e+06
!  03        3  2.29447e+09        8e+06          1        8e+06
!  04        4  2.32447e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 702 lines of history.
! 
! Reading 26076 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 J1247-2348_S_1997_08_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.415642 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.576 mas, bmaj=6.837 mas, bpa=-2.633 degrees
! Estimated noise=2274.51 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.152071 Jy
! Component: 100  -  total flux cleaned = 0.192223 Jy
! Total flux subtracted in 100 components = 0.192223 Jy
! Clean residual min=-0.013797 max=0.021644 Jy/beam
! Clean residual mean=0.000032 rms=0.004740 Jy/beam
! Combined flux in latest and established models = 0.192223 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.192223 Jy
! 
! Correcting IF 1.
!  A total of 213 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 11 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 67 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.366376Jy  sigma=0.001213
! Fit after  self-cal, rms=0.365746Jy  sigma=0.001212
! Inverting map and beam 
! Estimated beam: bmin=2.576 mas, bmaj=6.837 mas, bpa=-2.633 degrees
! Estimated noise=2274.51 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.343 mas, bmaj=8.572 mas, bpa=-5.032 degrees
! Estimated noise=1270.92 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 (-7, -2.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0408978 Jy
! Component: 100  -  total flux cleaned = 0.0618056 Jy
! Component: 150  -  total flux cleaned = 0.0741425 Jy
! Component: 200  -  total flux cleaned = 0.0809144 Jy
! Total flux subtracted in 200 components = 0.0809144 Jy
! Clean residual min=-0.007500 max=0.009386 Jy/beam
! Clean residual mean=0.000037 rms=0.002327 Jy/beam
! Combined flux in latest and established models = 0.273137 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 48 model components to the UV plane model.
! The established model now contains 57 components and 0.273137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362538Jy  sigma=0.001199
! Fit after  self-cal, rms=0.362329Jy  sigma=0.001198
! 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.343 x 8.572 at -5.032 degrees (North through East)
! Clean map  min=-0.0067043  max=0.18435 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.362329Jy  sigma=0.001198
! Fit after  self-cal, rms=0.362329Jy  sigma=0.001198
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.362329Jy  sigma=0.001198
! Fit after  self-cal, rms=0.362329Jy  sigma=0.001198
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.343 mas, bmaj=8.572 mas, bpa=-5.032 degrees
! Estimated noise=1270.92 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.00929637 Jy
! Component: 100  -  total flux cleaned = 0.0103101 Jy
! Component: 150  -  total flux cleaned = 0.0109812 Jy
! Component: 200  -  total flux cleaned = 0.0114225 Jy
! Total flux subtracted in 200 components = 0.0114225 Jy
! Clean residual min=-0.006140 max=0.007996 Jy/beam
! Clean residual mean=0.000028 rms=0.001907 Jy/beam
! Combined flux in latest and established models = 0.28456 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 85 components and 0.28456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362047Jy  sigma=0.001197
! Fit after  self-cal, rms=0.362015Jy  sigma=0.001197
! 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.362015Jy  sigma=0.001197
! Fit after  self-cal, rms=0.360349Jy  sigma=0.001192
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.00409737 Jy
! Component: 100  -  total flux cleaned = 0.00498699 Jy
! Component: 150  -  total flux cleaned = 0.00529535 Jy
! Component: 200  -  total flux cleaned = 0.00557577 Jy
! Total flux subtracted in 200 components = 0.00557577 Jy
! Clean residual min=-0.005910 max=0.007364 Jy/beam
! Clean residual mean=0.000025 rms=0.001807 Jy/beam
! Combined flux in latest and established models = 0.290136 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 107 components and 0.290136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360237Jy  sigma=0.001192
! Fit after  self-cal, rms=0.360033Jy  sigma=0.001191
! 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.343 x 8.572 at -5.032 degrees (North through East)
! Clean map  min=-0.0057387  max=0.1841 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
! Performing amp+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.360033Jy  sigma=0.001191
! Fit after  self-cal, rms=0.358686Jy  sigma=0.001191
! 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.358686Jy  sigma=0.001191
! Fit after  self-cal, rms=0.358650Jy  sigma=0.001191
! Inverting map and beam 
! Estimated beam: bmin=3.342 mas, bmaj=8.55 mas, bpa=-5.253 degrees
! Estimated noise=1267.27 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00191026 Jy
! Component: 100  -  total flux cleaned = 0.00206607 Jy
! Component: 150  -  total flux cleaned = 0.00227063 Jy
! Component: 200  -  total flux cleaned = 0.0023309 Jy
! Total flux subtracted in 200 components = 0.0023309 Jy
! Clean residual min=-0.005662 max=0.006095 Jy/beam
! Clean residual mean=0.000011 rms=0.001677 Jy/beam
! Combined flux in latest and established models = 0.292467 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 122 components and 0.292467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358596Jy  sigma=0.001191
! Fit after  self-cal, rms=0.358591Jy  sigma=0.001191
! Inverting map 
! Performing amp+phase self-cal over 1 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358591Jy  sigma=0.001191
! Fit after  self-cal, rms=0.357962Jy  sigma=0.001190
! 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.357962Jy  sigma=0.001190
! Fit after  self-cal, rms=0.357964Jy  sigma=0.001190
! Inverting map and beam 
! Estimated beam: bmin=3.338 mas, bmaj=8.552 mas, bpa=-4.78 degrees
! Estimated noise=1269.31 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00186927 Jy
! Component: 100  -  total flux cleaned = 0.00216442 Jy
! Component: 150  -  total flux cleaned = 0.00226252 Jy
! Component: 200  -  total flux cleaned = 0.0023088 Jy
! Total flux subtracted in 200 components = 0.0023088 Jy
! Clean residual min=-0.006019 max=0.005875 Jy/beam
! Clean residual mean=-0.000022 rms=0.001652 Jy/beam
! Combined flux in latest and established models = 0.294775 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 138 components and 0.294775 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357924Jy  sigma=0.001190
! Fit after  self-cal, rms=0.357932Jy  sigma=0.001190
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
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=8.186 mas, bmaj=18.67 mas, bpa=3.41 degrees
! Estimated noise=1590.87 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.000778001 Jy
! Component: 100  -  total flux cleaned = 0.000895373 Jy
! Component: 150  -  total flux cleaned = 0.000850154 Jy
! Component: 200  -  total flux cleaned = 0.000807315 Jy
! Total flux subtracted in 200 components = 0.000807315 Jy
! Clean residual min=-0.006426 max=0.006131 Jy/beam
! Clean residual mean=-0.000016 rms=0.002116 Jy/beam
! Combined flux in latest and established models = 0.295583 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 151 components and 0.295583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357932Jy  sigma=0.001190
! Fit after  self-cal, rms=0.357938Jy  sigma=0.001190
! 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.577 mas, bmaj=6.838 mas, bpa=-2.699 degrees
! Estimated noise=2266.56 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.157665 Jy
! Component: 100  -  total flux cleaned = 0.202584 Jy
! Component: 150  -  total flux cleaned = 0.228535 Jy
! Component: 200  -  total flux cleaned = 0.245911 Jy
! Total flux subtracted in 200 components = 0.245911 Jy
! Clean residual min=-0.009738 max=0.010944 Jy/beam
! Clean residual mean=0.000002 rms=0.002974 Jy/beam
! Combined flux in latest and established models = 0.245911 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 35 model components to the UV plane model.
! The established model now contains 35 components and 0.245911 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.338 mas, bmaj=8.552 mas, bpa=-4.78 degrees
! Estimated noise=1269.31 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.0214388 Jy
! Component: 100  -  total flux cleaned = 0.0331208 Jy
! Component: 150  -  total flux cleaned = 0.0404912 Jy
! Component: 200  -  total flux cleaned = 0.0447815 Jy
! Total flux subtracted in 200 components = 0.0447815 Jy
! Clean residual min=-0.006155 max=0.005839 Jy/beam
! Clean residual mean=-0.000022 rms=0.001705 Jy/beam
! Combined flux in latest and established models = 0.290693 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 80 components and 0.290693 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=8.186 mas, bmaj=18.67 mas, bpa=3.41 degrees
! Estimated noise=1590.87 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.00469787 Jy
! Component: 100  -  total flux cleaned = 0.00550115 Jy
! Component: 150  -  total flux cleaned = 0.00550059 Jy
! Component: 200  -  total flux cleaned = 0.00549729 Jy
! Total flux subtracted in 200 components = 0.00549729 Jy
! Clean residual min=-0.006335 max=0.006318 Jy/beam
! Clean residual mean=-0.000029 rms=0.002118 Jy/beam
! Combined flux in latest and established models = 0.29619 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 98 components and 0.29619 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.338 mas, bmaj=8.552 mas, bpa=-4.78 degrees
! Estimated noise=1269.31 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00166342 Jy
! Component: 100  -  total flux cleaned = -0.0015566 Jy
! Component: 150  -  total flux cleaned = -0.00146064 Jy
! Component: 200  -  total flux cleaned = -0.00129332 Jy
! Total flux subtracted in 200 components = -0.00129332 Jy
! Clean residual min=-0.005963 max=0.005917 Jy/beam
! Clean residual mean=-0.000026 rms=0.001667 Jy/beam
! Combined flux in latest and established models = 0.294897 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 116 components and 0.294897 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357982Jy  sigma=0.001190
! Fit after  self-cal, rms=0.357983Jy  sigma=0.001190
wmodel J1247-2348_S_1997_08_27_yyk\_map.mod
! Writing 116 model components to file: J1247-2348_S_1997_08_27_yyk_map.mod
wobs J1247-2348_S_1997_08_27_yyk\_uvs.fits
! Writing UV FITS file: J1247-2348_S_1997_08_27_yyk_uvs.fits
wwins J1247-2348_S_1997_08_27_yyk\_map.win
! wwins: Wrote 2 windows to J1247-2348_S_1997_08_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.00151961 Jy
! Component: 100  -  total flux cleaned = 0.0031122 Jy
! Component: 150  -  total flux cleaned = 0.00357836 Jy
! Component: 200  -  total flux cleaned = 0.0040224 Jy
! Component: 250  -  total flux cleaned = 0.00419334 Jy
! Component: 300  -  total flux cleaned = 0.00435625 Jy
! Component: 350  -  total flux cleaned = 0.0044314 Jy
! Component: 400  -  total flux cleaned = 0.00442868 Jy
! Component: 450  -  total flux cleaned = 0.00465028 Jy
! Component: 500  -  total flux cleaned = 0.00458069 Jy
! Component: 550  -  total flux cleaned = 0.00436997 Jy
! Component: 600  -  total flux cleaned = 0.00423169 Jy
! Component: 650  -  total flux cleaned = 0.00389269 Jy
! Component: 700  -  total flux cleaned = 0.00349406 Jy
! Component: 750  -  total flux cleaned = 0.0032339 Jy
! Component: 800  -  total flux cleaned = 0.00285128 Jy
! Component: 850  -  total flux cleaned = 0.00260075 Jy
! Component: 900  -  total flux cleaned = 0.00235324 Jy
! Component: 950  -  total flux cleaned = 0.00186924 Jy
! Component: 1000  -  total flux cleaned = 0.00169106 Jy
! Component: 1050  -  total flux cleaned = 0.00151523 Jy
! Component: 1100  -  total flux cleaned = 0.00140005 Jy
! Component: 1150  -  total flux cleaned = 0.00123012 Jy
! Component: 1200  -  total flux cleaned = 0.00100567 Jy
! Component: 1250  -  total flux cleaned = 0.000673342 Jy
! Component: 1300  -  total flux cleaned = 0.000510195 Jy
! Component: 1350  -  total flux cleaned = 0.000401961 Jy
! Component: 1400  -  total flux cleaned = 0.00024109 Jy
! Component: 1450  -  total flux cleaned = -0.000127975 Jy
! Component: 1500  -  total flux cleaned = -2.37202e-05 Jy
! Component: 1550  -  total flux cleaned = -0.000230365 Jy
! Component: 1600  -  total flux cleaned = -0.000484563 Jy
! Component: 1650  -  total flux cleaned = -0.000585433 Jy
! Component: 1700  -  total flux cleaned = -0.00073529 Jy
! Component: 1750  -  total flux cleaned = -0.00107921 Jy
! Component: 1800  -  total flux cleaned = -0.00107974 Jy
! Component: 1850  -  total flux cleaned = -0.00136836 Jy
! Component: 1900  -  total flux cleaned = -0.00155801 Jy
! Component: 1950  -  total flux cleaned = -0.00165197 Jy
! Component: 2000  -  total flux cleaned = -0.00188397 Jy
! Total flux subtracted in 2048 components = -0.00197625 Jy
! Clean residual min=-0.003135 max=0.002416 Jy/beam
! Clean residual mean=-0.000057 rms=0.000988 Jy/beam
! Combined flux in latest and established models = 0.292921 Jy
keep
! Adding 139 model components to the UV plane model.
! The established model now contains 255 components and 0.292921 Jy
![Exited script file: muppet]
wmap "J1247-2348_S_1997_08_27_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.338 x 8.552 at -4.78 degrees (North through East)
! Clean map  min=-0.0045425  max=0.18215 Jy/beam
! Writing clean map to FITS file: J1247-2348_S_1997_08_27_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.182153 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000977063 
device "J1247-2348_S_1997_08_27_yyk\_map.eps/VPS"
! Attempting to open device: 'J1247-2348_S_1997_08_27_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.60919 1.60919 3.21838 6.43676 12.8735 25.747 51.4941
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.182 
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.338 x 8.552 at -4.78 degrees (North through East)
! Clean map  min=-0.0045425  max=0.18215 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1247-2348_S_1997_08_27_yyk\_map.gif/gif"
! Attempting to open device: 'J1247-2348_S_1997_08_27_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1247-2348_S_1997_08_27_yyk_uvs.log closed on Sun Jan  7 18:08:58 2007