! Started logfile: J1159-2228_X_1997_07_02_yyk_uvs.log on Mon Jan  8 05:31:00 2007
obs J1159-2228_X_1997_07_02_yyk_uva.fits
! Reading UV FITS file: J1159-2228_X_1997_07_02_yyk_uva.fits
! AN table 1: 150 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.626815 visibilities/baseline/integration-bin.
! Found source: J1159-2228
! 
! 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.15447e+09        8e+06          1        8e+06
!  02        2  8.23447e+09        8e+06          1        8e+06
!  03        3  8.41447e+09        8e+06          1        8e+06
!  04        4  8.55447e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 753 lines of history.
! 
! Reading 16924 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 J1159-2228_X_1997_07_02_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.307866 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.6997 mas, bmaj=2.023 mas, bpa=-10.56 degrees
! Estimated noise=1897.58 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.2).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.16765 Jy
! Component: 100  -  total flux cleaned = 0.226139 Jy
! Total flux subtracted in 100 components = 0.226139 Jy
! Clean residual min=-0.015226 max=0.020226 Jy/beam
! Clean residual mean=0.000122 rms=0.004863 Jy/beam
! Combined flux in latest and established models = 0.226139 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.226139 Jy
! 
! Correcting IF 1.
!  A total of 307 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 307 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 307 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 307 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.232456Jy  sigma=0.001303
! Fit after  self-cal, rms=0.231684Jy  sigma=0.001299
! Inverting map and beam 
! Estimated beam: bmin=0.6997 mas, bmaj=2.023 mas, bpa=-10.56 degrees
! Estimated noise=1897.58 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=0.8825 mas, bmaj=2.34 mas, bpa=-10.54 degrees
! Estimated noise=928.827 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.0339747 Jy
! Component: 100  -  total flux cleaned = 0.0480941 Jy
! Component: 150  -  total flux cleaned = 0.0534309 Jy
! Component: 200  -  total flux cleaned = 0.054386 Jy
! Total flux subtracted in 200 components = 0.054386 Jy
! Clean residual min=-0.012754 max=0.011507 Jy/beam
! Clean residual mean=0.000092 rms=0.003065 Jy/beam
! Combined flux in latest and established models = 0.280525 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 21 components and 0.280525 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229565Jy  sigma=0.001279
! Fit after  self-cal, rms=0.229512Jy  sigma=0.001279
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8825 x 2.34 at -10.54 degrees (North through East)
! Clean map  min=-0.012235  max=0.16929 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: 0.986361
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.13     HN        0.93     KP        0.98     
!   LA        1.00     MK        1.02     NL        0.96     OV        0.87     
!   PT        1.11     SC        1.08     
! 
! 
! Fit before self-cal, rms=0.229512Jy  sigma=0.001279
! Fit after  self-cal, rms=0.229658Jy  sigma=0.001277
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.229658Jy  sigma=0.001277
! Fit after  self-cal, rms=0.229658Jy  sigma=0.001277
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8831 mas, bmaj=2.355 mas, bpa=-10.87 degrees
! Estimated noise=923.932 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.000426706 Jy
! Component: 100  -  total flux cleaned = 0.000579726 Jy
! Component: 150  -  total flux cleaned = 0.000843229 Jy
! Component: 200  -  total flux cleaned = 0.000837037 Jy
! Total flux subtracted in 200 components = 0.000837037 Jy
! Clean residual min=-0.011199 max=0.010722 Jy/beam
! Clean residual mean=0.000088 rms=0.002741 Jy/beam
! Combined flux in latest and established models = 0.281362 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 27 components and 0.281362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229551Jy  sigma=0.001277
! Fit after  self-cal, rms=0.229546Jy  sigma=0.001277
! 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.229546Jy  sigma=0.001277
! Fit after  self-cal, rms=0.221782Jy  sigma=0.001235
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.00821795 Jy
! Component: 100  -  total flux cleaned = 0.00948256 Jy
! Component: 150  -  total flux cleaned = 0.00948 Jy
! Component: 200  -  total flux cleaned = 0.00947908 Jy
! Total flux subtracted in 200 components = 0.00947908 Jy
! Clean residual min=-0.009063 max=0.009484 Jy/beam
! Clean residual mean=0.000086 rms=0.002507 Jy/beam
! Combined flux in latest and established models = 0.290841 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 27 components and 0.290841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221679Jy  sigma=0.001233
! Fit after  self-cal, rms=0.220710Jy  sigma=0.001228
! 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.8831 x 2.355 at -10.87 degrees (North through East)
! Clean map  min=-0.0084427  max=0.17569 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.220710Jy  sigma=0.001228
! Fit after  self-cal, rms=0.219165Jy  sigma=0.001227
! 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.219165Jy  sigma=0.001227
! Fit after  self-cal, rms=0.218926Jy  sigma=0.001225
! Inverting map and beam 
! Estimated beam: bmin=0.8757 mas, bmaj=2.368 mas, bpa=-11.71 degrees
! Estimated noise=908.864 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00169321 Jy
! Component: 100  -  total flux cleaned = -0.00206248 Jy
! Component: 150  -  total flux cleaned = -0.00214071 Jy
! Component: 200  -  total flux cleaned = -0.00222379 Jy
! Total flux subtracted in 200 components = -0.00222379 Jy
! Clean residual min=-0.008064 max=0.008139 Jy/beam
! Clean residual mean=0.000076 rms=0.002237 Jy/beam
! Combined flux in latest and established models = 0.288618 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 27 components and 0.288618 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218854Jy  sigma=0.001225
! Fit after  self-cal, rms=0.218760Jy  sigma=0.001225
! 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.218760Jy  sigma=0.001225
! Fit after  self-cal, rms=0.216378Jy  sigma=0.001221
! 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.216378Jy  sigma=0.001221
! Fit after  self-cal, rms=0.216334Jy  sigma=0.001221
! Inverting map and beam 
! Estimated beam: bmin=0.8667 mas, bmaj=2.383 mas, bpa=-12.43 degrees
! Estimated noise=884.736 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00450475 Jy
! Component: 100  -  total flux cleaned = -0.00522553 Jy
! Component: 150  -  total flux cleaned = -0.00559016 Jy
! Component: 200  -  total flux cleaned = -0.00584193 Jy
! Total flux subtracted in 200 components = -0.00584193 Jy
! Clean residual min=-0.007110 max=0.007050 Jy/beam
! Clean residual mean=0.000066 rms=0.001902 Jy/beam
! Combined flux in latest and established models = 0.282776 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 32 components and 0.282776 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216223Jy  sigma=0.001221
! Fit after  self-cal, rms=0.216197Jy  sigma=0.001221
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
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.002 mas, bmaj=4.385 mas, bpa=-10.46 degrees
! Estimated noise=1156.36 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.00166564 Jy
! Component: 100  -  total flux cleaned = -0.00185836 Jy
! Component: 150  -  total flux cleaned = -0.00197317 Jy
! Component: 200  -  total flux cleaned = -0.00208389 Jy
! Total flux subtracted in 200 components = -0.00208389 Jy
! Clean residual min=-0.009568 max=0.009770 Jy/beam
! Clean residual mean=0.000153 rms=0.002961 Jy/beam
! Combined flux in latest and established models = 0.280692 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 36 components and 0.280692 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216164Jy  sigma=0.001221
! Fit after  self-cal, rms=0.216146Jy  sigma=0.001221
! 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.6952 mas, bmaj=2.05 mas, bpa=-11.32 degrees
! Estimated noise=1827.35 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.170408 Jy
! Component: 100  -  total flux cleaned = 0.231428 Jy
! Component: 150  -  total flux cleaned = 0.260148 Jy
! Component: 200  -  total flux cleaned = 0.274854 Jy
! Total flux subtracted in 200 components = 0.274854 Jy
! Clean residual min=-0.011054 max=0.011949 Jy/beam
! Clean residual mean=0.000040 rms=0.002943 Jy/beam
! Combined flux in latest and established models = 0.274854 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.274854 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8667 mas, bmaj=2.383 mas, bpa=-12.43 degrees
! Estimated noise=884.736 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.00500131 Jy
! Component: 100  -  total flux cleaned = 0.00610521 Jy
! Component: 150  -  total flux cleaned = 0.0064628 Jy
! Component: 200  -  total flux cleaned = 0.00674742 Jy
! Total flux subtracted in 200 components = 0.00674742 Jy
! Clean residual min=-0.007485 max=0.007590 Jy/beam
! Clean residual mean=0.000068 rms=0.001977 Jy/beam
! Combined flux in latest and established models = 0.281602 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 25 components and 0.281602 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.002 mas, bmaj=4.385 mas, bpa=-10.46 degrees
! Estimated noise=1156.36 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.00108369 Jy
! Component: 100  -  total flux cleaned = -0.00116039 Jy
! Component: 150  -  total flux cleaned = -0.00128855 Jy
! Component: 200  -  total flux cleaned = -0.0013499 Jy
! Total flux subtracted in 200 components = -0.0013499 Jy
! Clean residual min=-0.009588 max=0.009724 Jy/beam
! Clean residual mean=0.000154 rms=0.002977 Jy/beam
! Combined flux in latest and established models = 0.280252 Jy
! Adding 10 model components to the UV plane model.
! The established model now contains 31 components and 0.280252 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8667 mas, bmaj=2.383 mas, bpa=-12.43 degrees
! Estimated noise=884.736 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000168228 Jy
! Component: 100  -  total flux cleaned = 0.000537441 Jy
! Component: 150  -  total flux cleaned = 0.000852164 Jy
! Component: 200  -  total flux cleaned = 0.00104302 Jy
! Total flux subtracted in 200 components = 0.00104302 Jy
! Clean residual min=-0.007188 max=0.007121 Jy/beam
! Clean residual mean=0.000069 rms=0.001923 Jy/beam
! Combined flux in latest and established models = 0.281295 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 35 components and 0.281295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216191Jy  sigma=0.001221
! Fit after  self-cal, rms=0.216167Jy  sigma=0.001221
wmodel J1159-2228_X_1997_07_02_yyk\_map.mod
! Writing 35 model components to file: J1159-2228_X_1997_07_02_yyk_map.mod
wobs J1159-2228_X_1997_07_02_yyk\_uvs.fits
! Writing UV FITS file: J1159-2228_X_1997_07_02_yyk_uvs.fits
wwins J1159-2228_X_1997_07_02_yyk\_map.win
! wwins: Wrote 1 windows to J1159-2228_X_1997_07_02_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.00118116 Jy
! Component: 100  -  total flux cleaned = 0.00177411 Jy
! Component: 150  -  total flux cleaned = 0.00177388 Jy
! Component: 200  -  total flux cleaned = 0.00156283 Jy
! Component: 250  -  total flux cleaned = 0.0012586 Jy
! Component: 300  -  total flux cleaned = 0.000967486 Jy
! Component: 350  -  total flux cleaned = 0.00068787 Jy
! Component: 400  -  total flux cleaned = 0.000688865 Jy
! Component: 450  -  total flux cleaned = 0.00068935 Jy
! Component: 500  -  total flux cleaned = 0.000856848 Jy
! Component: 550  -  total flux cleaned = 0.00109744 Jy
! Component: 600  -  total flux cleaned = 0.00117738 Jy
! Component: 650  -  total flux cleaned = 0.00133017 Jy
! Component: 700  -  total flux cleaned = 0.00147764 Jy
! Component: 750  -  total flux cleaned = 0.00162077 Jy
! Component: 800  -  total flux cleaned = 0.00175894 Jy
! Component: 850  -  total flux cleaned = 0.00169089 Jy
! Component: 900  -  total flux cleaned = 0.00175761 Jy
! Component: 950  -  total flux cleaned = 0.0016952 Jy
! Component: 1000  -  total flux cleaned = 0.00188606 Jy
! Component: 1050  -  total flux cleaned = 0.00188564 Jy
! Component: 1100  -  total flux cleaned = 0.00188594 Jy
! Component: 1150  -  total flux cleaned = 0.00188559 Jy
! Component: 1200  -  total flux cleaned = 0.00188466 Jy
! Component: 1250  -  total flux cleaned = 0.00165489 Jy
! Component: 1300  -  total flux cleaned = 0.00159854 Jy
! Component: 1350  -  total flux cleaned = 0.00159999 Jy
! Component: 1400  -  total flux cleaned = 0.00160069 Jy
! Component: 1450  -  total flux cleaned = 0.00149528 Jy
! Component: 1500  -  total flux cleaned = 0.0017047 Jy
! Component: 1550  -  total flux cleaned = 0.00175641 Jy
! Component: 1600  -  total flux cleaned = 0.00175718 Jy
! Component: 1650  -  total flux cleaned = 0.00180744 Jy
! Component: 1700  -  total flux cleaned = 0.001808 Jy
! Component: 1750  -  total flux cleaned = 0.00180852 Jy
! Component: 1800  -  total flux cleaned = 0.00180931 Jy
! Component: 1850  -  total flux cleaned = 0.00180983 Jy
! Component: 1900  -  total flux cleaned = 0.00180881 Jy
! Component: 1950  -  total flux cleaned = 0.00171799 Jy
! Component: 2000  -  total flux cleaned = 0.00167329 Jy
! Total flux subtracted in 2048 components = 0.00167282 Jy
! Clean residual min=-0.002901 max=0.002776 Jy/beam
! Clean residual mean=0.000015 rms=0.000886 Jy/beam
! Combined flux in latest and established models = 0.282968 Jy
keep
! Adding 151 model components to the UV plane model.
! The established model now contains 186 components and 0.282968 Jy
![Exited script file: muppet]
wmap "J1159-2228_X_1997_07_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8667 x 2.383 at -12.43 degrees (North through East)
! Clean map  min=-0.0055656  max=0.16918 Jy/beam
! Writing clean map to FITS file: J1159-2228_X_1997_07_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.169176 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000912306 
device "J1159-2228_X_1997_07_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J1159-2228_X_1997_07_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.61779 1.61779 3.23559 6.47118 12.9424 25.8847 51.7694
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0027 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.169 
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.8667 x 2.383 at -12.43 degrees (North through East)
! Clean map  min=-0.0055656  max=0.16918 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1159-2228_X_1997_07_02_yyk\_map.gif/gif"
! Attempting to open device: 'J1159-2228_X_1997_07_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1159-2228_X_1997_07_02_yyk_uvs.log closed on Mon Jan  8 05:31:09 2007