! Started logfile: J1016+2037_S_1996_03_13_yyk_uvs.log on Sun Jan  7 17:27:27 2007
obs J1016+2037_S_1996_03_13_yyk_uva.fits
! Reading UV FITS file: J1016+2037_S_1996_03_13_yyk_uva.fits
! AN table 1: 104 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.91047 visibilities/baseline/integration-bin.
! Found source: J1016+2037
! 
! 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.22049e+09        4e+06          1        4e+06
!  02        2  2.23236e+09        4e+06          1        4e+06
!  03        3  2.29236e+09        4e+06          1        4e+06
!  04        4  2.32236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 655 lines of history.
! 
! Reading 17044 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 J1016+2037_S_1996_03_13_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.794951 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.851 mas, bmaj=6.796 mas, bpa=-7.337 degrees
! Estimated noise=1450.01 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.573343 Jy
! Component: 100  -  total flux cleaned = 0.691176 Jy
! Total flux subtracted in 100 components = 0.691176 Jy
! Clean residual min=-0.034029 max=0.041845 Jy/beam
! Clean residual mean=-0.000182 rms=0.011283 Jy/beam
! Combined flux in latest and established models = 0.691176 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.691176 Jy
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.423148Jy  sigma=0.002137
! Fit after  self-cal, rms=0.422125Jy  sigma=0.002129
! Inverting map and beam 
! Estimated beam: bmin=2.851 mas, bmaj=6.797 mas, bpa=-7.338 degrees
! Estimated noise=1450.72 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.577 mas, bmaj=7.85 mas, bpa=-8.036 degrees
! Estimated noise=997.964 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.0104178 Jy
! Component: 100  -  total flux cleaned = -0.0112834 Jy
! Component: 150  -  total flux cleaned = -0.011276 Jy
! Component: 200  -  total flux cleaned = -0.0108058 Jy
! Total flux subtracted in 200 components = -0.0108058 Jy
! Clean residual min=-0.040904 max=0.063164 Jy/beam
! Clean residual mean=-0.000268 rms=0.015314 Jy/beam
! Combined flux in latest and established models = 0.680371 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 22 components and 0.680371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418501Jy  sigma=0.002115
! Fit after  self-cal, rms=0.418398Jy  sigma=0.002114
! 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.577 x 7.85 at -8.036 degrees (North through East)
! Clean map  min=-0.040253  max=0.63543 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01677
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.03     HN        0.98     KP        0.83     
!   LA        0.86     MK        0.99     NL        0.86     OV        1.64     
!   PT        0.92     SC        0.78     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.976501
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.08     HN        1.07     KP        0.85     
!   LA        0.95     MK        0.99     NL        0.90     OV        1.60     
!   PT        0.89     SC        0.87     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01162
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.02     HN        0.95     KP        0.87     
!   LA        0.73     MK        0.92     NL        0.90     OV        1.47     
!   PT        1.05     SC        1.01     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.979686
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.03     HN        1.02     KP        0.92     
!   LA        0.83     MK        1.07     NL        1.00     OV        1.43     
!   PT        0.94     SC        0.96     
! 
! 
! Fit before self-cal, rms=0.418398Jy  sigma=0.002114
! Fit after  self-cal, rms=0.426856Jy  sigma=0.001976
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.426856Jy  sigma=0.001976
! Fit after  self-cal, rms=0.426863Jy  sigma=0.001975
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.573 mas, bmaj=7.701 mas, bpa=-7.118 degrees
! Estimated noise=958.522 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.000186523 Jy
! Component: 100  -  total flux cleaned = 0.000182032 Jy
! Component: 150  -  total flux cleaned = 0.000634737 Jy
! Component: 200  -  total flux cleaned = 0.000820795 Jy
! Total flux subtracted in 200 components = 0.000820795 Jy
! Clean residual min=-0.027723 max=0.026130 Jy/beam
! Clean residual mean=-0.000191 rms=0.007527 Jy/beam
! Combined flux in latest and established models = 0.681191 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 36 components and 0.681191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426501Jy  sigma=0.001974
! Fit after  self-cal, rms=0.426455Jy  sigma=0.001973
! 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.426455Jy  sigma=0.001973
! Fit after  self-cal, rms=0.424097Jy  sigma=0.001965
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.00146606 Jy
! Component: 100  -  total flux cleaned = 0.00162919 Jy
! Component: 150  -  total flux cleaned = 0.00202785 Jy
! Component: 200  -  total flux cleaned = 0.00214165 Jy
! Total flux subtracted in 200 components = 0.00214165 Jy
! Clean residual min=-0.027417 max=0.025941 Jy/beam
! Clean residual mean=-0.000183 rms=0.007403 Jy/beam
! Combined flux in latest and established models = 0.683333 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 42 components and 0.683333 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423932Jy  sigma=0.001965
! Fit after  self-cal, rms=0.423335Jy  sigma=0.001963
! 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.573 x 7.701 at -7.118 degrees (North through East)
! Clean map  min=-0.027356  max=0.62387 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.423335Jy  sigma=0.001963
! Fit after  self-cal, rms=2.226216Jy  sigma=0.001740
! 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=2.226216Jy  sigma=0.001740
! Fit after  self-cal, rms=2.226061Jy  sigma=0.001740
! Inverting map and beam 
! Estimated beam: bmin=3.577 mas, bmaj=7.779 mas, bpa=-6.68 degrees
! Estimated noise=929.876 mJy/beam.
! Added new window around map position (5, 4.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0145814 Jy
! Component: 100  -  total flux cleaned = 0.0153835 Jy
! Component: 150  -  total flux cleaned = 0.0161009 Jy
! Component: 200  -  total flux cleaned = 0.0164022 Jy
! Total flux subtracted in 200 components = 0.0164022 Jy
! Clean residual min=-0.006150 max=0.007375 Jy/beam
! Clean residual mean=-0.000009 rms=0.001689 Jy/beam
! Combined flux in latest and established models = 0.699735 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 66 components and 0.699735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.225957Jy  sigma=0.001737
! Fit after  self-cal, rms=2.225929Jy  sigma=0.001737
! Inverting map 
! Added new window around map position (17.5, 14).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00929602 Jy
! Component: 100  -  total flux cleaned = 0.0112523 Jy
! Component: 150  -  total flux cleaned = 0.011892 Jy
! Component: 200  -  total flux cleaned = 0.0120383 Jy
! Total flux subtracted in 200 components = 0.0120383 Jy
! Clean residual min=-0.006156 max=0.005298 Jy/beam
! Clean residual mean=-0.000024 rms=0.001475 Jy/beam
! Combined flux in latest and established models = 0.711773 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 91 components and 0.711773 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.225852Jy  sigma=0.001736
! Fit after  self-cal, rms=2.225798Jy  sigma=0.001736
! 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=2.225798Jy  sigma=0.001736
! Fit after  self-cal, rms=2.437098Jy  sigma=0.001734
! 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=2.437098Jy  sigma=0.001734
! Fit after  self-cal, rms=2.437115Jy  sigma=0.001734
! Inverting map and beam 
! Estimated beam: bmin=3.571 mas, bmaj=7.752 mas, bpa=-6.554 degrees
! Estimated noise=929.808 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0050732 Jy
! Component: 100  -  total flux cleaned = 0.00599497 Jy
! Component: 150  -  total flux cleaned = 0.00621954 Jy
! Component: 200  -  total flux cleaned = 0.00621986 Jy
! Total flux subtracted in 200 components = 0.00621986 Jy
! Clean residual min=-0.005233 max=0.004663 Jy/beam
! Clean residual mean=-0.000021 rms=0.001359 Jy/beam
! Combined flux in latest and established models = 0.717993 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 105 components and 0.717993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.437095Jy  sigma=0.001733
! Fit after  self-cal, rms=2.437095Jy  sigma=0.001733
! 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=7.749 mas, bmaj=10.71 mas, bpa=-8.429 degrees
! Estimated noise=1145.65 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.000277687 Jy
! Component: 100  -  total flux cleaned = 0.000942013 Jy
! Component: 150  -  total flux cleaned = 0.00133989 Jy
! Component: 200  -  total flux cleaned = 0.00139544 Jy
! Total flux subtracted in 200 components = 0.00139544 Jy
! Clean residual min=-0.005242 max=0.005382 Jy/beam
! Clean residual mean=-0.000040 rms=0.001662 Jy/beam
! Combined flux in latest and established models = 0.719389 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 120 components and 0.719389 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.437108Jy  sigma=0.001733
! Fit after  self-cal, rms=2.437104Jy  sigma=0.001733
! 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.827 mas, bmaj=6.76 mas, bpa=-6.776 degrees
! Estimated noise=1352.25 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.534573 Jy
! Component: 100  -  total flux cleaned = 0.645608 Jy
! Component: 150  -  total flux cleaned = 0.685995 Jy
! Component: 200  -  total flux cleaned = 0.693746 Jy
! Total flux subtracted in 200 components = 0.693746 Jy
! Clean residual min=-0.010783 max=0.010188 Jy/beam
! Clean residual mean=0.000018 rms=0.002859 Jy/beam
! Combined flux in latest and established models = 0.693746 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 22 model components to the UV plane model.
! The established model now contains 22 components and 0.693746 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.571 mas, bmaj=7.752 mas, bpa=-6.554 degrees
! Estimated noise=929.808 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.0152992 Jy
! Component: 100  -  total flux cleaned = 0.0194935 Jy
! Component: 150  -  total flux cleaned = 0.0214139 Jy
! Component: 200  -  total flux cleaned = 0.0224247 Jy
! Total flux subtracted in 200 components = 0.0224247 Jy
! Clean residual min=-0.006960 max=0.005698 Jy/beam
! Clean residual mean=-0.000021 rms=0.001693 Jy/beam
! Combined flux in latest and established models = 0.716171 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 55 components and 0.716171 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.749 mas, bmaj=10.71 mas, bpa=-8.429 degrees
! Estimated noise=1145.65 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.00321445 Jy
! Component: 100  -  total flux cleaned = 0.00365243 Jy
! Component: 150  -  total flux cleaned = 0.00416609 Jy
! Component: 200  -  total flux cleaned = 0.00431799 Jy
! Total flux subtracted in 200 components = 0.00431799 Jy
! Clean residual min=-0.005449 max=0.005698 Jy/beam
! Clean residual mean=-0.000045 rms=0.001743 Jy/beam
! Combined flux in latest and established models = 0.720489 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 87 components and 0.720488 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.571 mas, bmaj=7.752 mas, bpa=-6.554 degrees
! Estimated noise=929.808 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00112179 Jy
! Component: 100  -  total flux cleaned = 0.000437751 Jy
! Component: 150  -  total flux cleaned = 4.82692e-05 Jy
! Component: 200  -  total flux cleaned = -0.000453555 Jy
! Total flux subtracted in 200 components = -0.000453555 Jy
! Clean residual min=-0.005841 max=0.005175 Jy/beam
! Clean residual mean=-0.000024 rms=0.001427 Jy/beam
! Combined flux in latest and established models = 0.720035 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 101 components and 0.720035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.437158Jy  sigma=0.001734
! Fit after  self-cal, rms=2.437173Jy  sigma=0.001734
wmodel J1016+2037_S_1996_03_13_yyk\_map.mod
! Writing 101 model components to file: J1016+2037_S_1996_03_13_yyk_map.mod
wobs J1016+2037_S_1996_03_13_yyk\_uvs.fits
! Writing UV FITS file: J1016+2037_S_1996_03_13_yyk_uvs.fits
wwins J1016+2037_S_1996_03_13_yyk\_map.win
! wwins: Wrote 3 windows to J1016+2037_S_1996_03_13_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.000395331 Jy
! Component: 100  -  total flux cleaned = -0.000924405 Jy
! Component: 150  -  total flux cleaned = -0.00176204 Jy
! Component: 200  -  total flux cleaned = -0.00262835 Jy
! Component: 250  -  total flux cleaned = -0.0033771 Jy
! Component: 300  -  total flux cleaned = -0.00394982 Jy
! Component: 350  -  total flux cleaned = -0.00450624 Jy
! Component: 400  -  total flux cleaned = -0.00504746 Jy
! Component: 450  -  total flux cleaned = -0.00537633 Jy
! Component: 500  -  total flux cleaned = -0.0056339 Jy
! Component: 550  -  total flux cleaned = -0.00576113 Jy
! Component: 600  -  total flux cleaned = -0.00613412 Jy
! Component: 650  -  total flux cleaned = -0.00643923 Jy
! Component: 700  -  total flux cleaned = -0.00685702 Jy
! Component: 750  -  total flux cleaned = -0.00714955 Jy
! Component: 800  -  total flux cleaned = -0.0073807 Jy
! Component: 850  -  total flux cleaned = -0.00760835 Jy
! Component: 900  -  total flux cleaned = -0.00788802 Jy
! Component: 950  -  total flux cleaned = -0.00821778 Jy
! Component: 1000  -  total flux cleaned = -0.00843459 Jy
! Component: 1050  -  total flux cleaned = -0.00859469 Jy
! Component: 1100  -  total flux cleaned = -0.00859462 Jy
! Component: 1150  -  total flux cleaned = -0.00869967 Jy
! Component: 1200  -  total flux cleaned = -0.00885419 Jy
! Component: 1250  -  total flux cleaned = -0.00895547 Jy
! Component: 1300  -  total flux cleaned = -0.00910499 Jy
! Component: 1350  -  total flux cleaned = -0.00915427 Jy
! Component: 1400  -  total flux cleaned = -0.00915495 Jy
! Component: 1450  -  total flux cleaned = -0.00920396 Jy
! Component: 1500  -  total flux cleaned = -0.00915697 Jy
! Component: 1550  -  total flux cleaned = -0.00915735 Jy
! Component: 1600  -  total flux cleaned = -0.00911099 Jy
! Component: 1650  -  total flux cleaned = -0.00906515 Jy
! Component: 1700  -  total flux cleaned = -0.00888236 Jy
! Component: 1750  -  total flux cleaned = -0.00883763 Jy
! Component: 1800  -  total flux cleaned = -0.00870351 Jy
! Component: 1850  -  total flux cleaned = -0.00857023 Jy
! Component: 1900  -  total flux cleaned = -0.00848144 Jy
! Component: 1950  -  total flux cleaned = -0.00835054 Jy
! Component: 2000  -  total flux cleaned = -0.00835041 Jy
! Total flux subtracted in 2048 components = -0.00822131 Jy
! Clean residual min=-0.002357 max=0.002459 Jy/beam
! Clean residual mean=-0.000001 rms=0.000894 Jy/beam
! Combined flux in latest and established models = 0.711814 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 242 components and 0.711814 Jy
![Exited script file: muppet]
wmap "J1016+2037_S_1996_03_13_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.571 x 7.752 at -6.554 degrees (North through East)
! Clean map  min=-0.0044227  max=0.62142 Jy/beam
! Writing clean map to FITS file: J1016+2037_S_1996_03_13_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.621422 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000894537 
device "J1016+2037_S_1996_03_13_yyk\_map.eps/VPS"
! Attempting to open device: 'J1016+2037_S_1996_03_13_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.43185 0.43185 0.8637 1.7274 3.4548 6.9096 13.8192 27.6384 55.2768
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.621 
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.571 x 7.752 at -6.554 degrees (North through East)
! Clean map  min=-0.0044227  max=0.62142 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1016+2037_S_1996_03_13_yyk\_map.gif/gif"
! Attempting to open device: 'J1016+2037_S_1996_03_13_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1016+2037_S_1996_03_13_yyk_uvs.log closed on Sun Jan  7 17:27:34 2007