! Started logfile: J0349+2104_S_1996_03_13_yyk_uvs.log on Sun Jan  7 16:08:06 2007
obs J0349+2104_S_1996_03_13_yyk_uva.fits
! Reading UV FITS file: J0349+2104_S_1996_03_13_yyk_uva.fits
! AN table 1: 131 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.95369 visibilities/baseline/integration-bin.
! Found source: J0349+2104
! 
! 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 22488 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 J0349+2104_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.429442 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.764 mas, bmaj=6.641 mas, bpa=-11.13 degrees
! Estimated noise=1186.27 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.169707 Jy
! Component: 100  -  total flux cleaned = 0.201916 Jy
! Total flux subtracted in 100 components = 0.201916 Jy
! Clean residual min=-0.019466 max=0.052516 Jy/beam
! Clean residual mean=-0.000011 rms=0.006532 Jy/beam
! Combined flux in latest and established models = 0.201916 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 0.201916 Jy
! 
! Correcting IF 1.
!  A total of 40 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 40 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 40 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 40 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.377054Jy  sigma=0.001905
! Fit after  self-cal, rms=0.375549Jy  sigma=0.001897
! Inverting map and beam 
! Estimated beam: bmin=2.764 mas, bmaj=6.641 mas, bpa=-11.13 degrees
! Estimated noise=1186.5 mJy/beam.
! Added new window around map position (8.5, 25).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0559569 Jy
! Component: 100  -  total flux cleaned = 0.0819408 Jy
! Total flux subtracted in 100 components = 0.0819408 Jy
! Clean residual min=-0.015543 max=0.018536 Jy/beam
! Clean residual mean=-0.000004 rms=0.004656 Jy/beam
! Combined flux in latest and established models = 0.283856 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 48 components and 0.283856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.368146Jy  sigma=0.001848
! Fit after  self-cal, rms=0.366847Jy  sigma=0.001843
! 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=3.493 mas, bmaj=7.994 mas, bpa=-11.57 degrees
! Estimated noise=851.685 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.034734 Jy
! Component: 100  -  total flux cleaned = 0.0537536 Jy
! Component: 150  -  total flux cleaned = 0.0668821 Jy
! Component: 200  -  total flux cleaned = 0.0763244 Jy
! Total flux subtracted in 200 components = 0.0763244 Jy
! Clean residual min=-0.011850 max=0.017047 Jy/beam
! Clean residual mean=0.000040 rms=0.003993 Jy/beam
! Combined flux in latest and established models = 0.360181 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 55 model components to the UV plane model.
! The established model now contains 96 components and 0.360181 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364500Jy  sigma=0.001827
! Fit after  self-cal, rms=0.364105Jy  sigma=0.001825
! 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.493 x 7.994 at -11.57 degrees (North through East)
! Clean map  min=-0.011726  max=0.19852 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.03101
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.06     HN        0.95     KP        0.92     
!   LA        0.85     MK        1.08     NL        1.11     OV        0.89     
!   PT        0.88     SC        0.95     
! 
! 
! Fit before self-cal, rms=0.364105Jy  sigma=0.001825
! Fit after  self-cal, rms=0.363113Jy  sigma=0.001823
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.363113Jy  sigma=0.001823
! Fit after  self-cal, rms=0.363113Jy  sigma=0.001823
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.552 mas, bmaj=8.049 mas, bpa=-11.13 degrees
! Estimated noise=850.483 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.0121615 Jy
! Component: 100  -  total flux cleaned = 0.0163287 Jy
! Component: 150  -  total flux cleaned = 0.0188128 Jy
! Component: 200  -  total flux cleaned = 0.0204074 Jy
! Total flux subtracted in 200 components = 0.0204074 Jy
! Clean residual min=-0.011185 max=0.016097 Jy/beam
! Clean residual mean=0.000011 rms=0.003475 Jy/beam
! Combined flux in latest and established models = 0.380588 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 112 components and 0.380588 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362834Jy  sigma=0.001821
! Fit after  self-cal, rms=0.362737Jy  sigma=0.001821
! 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.362737Jy  sigma=0.001821
! Fit after  self-cal, rms=0.361609Jy  sigma=0.001814
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)
! Added new window around map position (16, 22.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0168661 Jy
! Component: 100  -  total flux cleaned = 0.0220078 Jy
! Component: 150  -  total flux cleaned = 0.0239445 Jy
! Component: 200  -  total flux cleaned = 0.02525 Jy
! Total flux subtracted in 200 components = 0.02525 Jy
! Clean residual min=-0.009555 max=0.010729 Jy/beam
! Clean residual mean=0.000019 rms=0.002872 Jy/beam
! Combined flux in latest and established models = 0.405838 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 39 model components to the UV plane model.
! The established model now contains 149 components and 0.405838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360701Jy  sigma=0.001809
! Fit after  self-cal, rms=0.360547Jy  sigma=0.001807
! 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.552 x 8.049 at -11.13 degrees (North through East)
! Clean map  min=-0.009664  max=0.19931 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.360547Jy  sigma=0.001807
! Fit after  self-cal, rms=0.354299Jy  sigma=0.001806
! 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.354299Jy  sigma=0.001806
! Fit after  self-cal, rms=0.354288Jy  sigma=0.001806
! Inverting map and beam 
! Estimated beam: bmin=3.526 mas, bmaj=8.045 mas, bpa=-10.79 degrees
! Estimated noise=830.402 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00165202 Jy
! Component: 100  -  total flux cleaned = 0.00124288 Jy
! Component: 150  -  total flux cleaned = 0.00124867 Jy
! Component: 200  -  total flux cleaned = 0.00109785 Jy
! Total flux subtracted in 200 components = 0.00109785 Jy
! Clean residual min=-0.008420 max=0.009118 Jy/beam
! Clean residual mean=0.000011 rms=0.002558 Jy/beam
! Combined flux in latest and established models = 0.406936 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 41 model components to the UV plane model.
! The established model now contains 179 components and 0.406936 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354117Jy  sigma=0.001805
! Fit after  self-cal, rms=0.354145Jy  sigma=0.001805
! 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.354145Jy  sigma=0.001805
! Fit after  self-cal, rms=0.352835Jy  sigma=0.001805
! 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.352835Jy  sigma=0.001805
! Fit after  self-cal, rms=0.352804Jy  sigma=0.001805
! Inverting map and beam 
! Estimated beam: bmin=3.515 mas, bmaj=8.016 mas, bpa=-10.59 degrees
! Estimated noise=827.035 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.0011039 Jy
! Component: 100  -  total flux cleaned = -0.00137419 Jy
! Component: 150  -  total flux cleaned = -0.00149569 Jy
! Component: 200  -  total flux cleaned = -0.00172727 Jy
! Total flux subtracted in 200 components = -0.00172727 Jy
! Clean residual min=-0.008164 max=0.008798 Jy/beam
! Clean residual mean=0.000009 rms=0.002504 Jy/beam
! Combined flux in latest and established models = 0.405209 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 186 components and 0.405209 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352707Jy  sigma=0.001804
! Fit after  self-cal, rms=0.352743Jy  sigma=0.001804
! 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.964 mas, bmaj=10.83 mas, bpa=-7.693 degrees
! Estimated noise=1021.18 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.00200849 Jy
! Component: 100  -  total flux cleaned = 0.00212934 Jy
! Component: 150  -  total flux cleaned = 0.00212207 Jy
! Component: 200  -  total flux cleaned = 0.00212188 Jy
! Total flux subtracted in 200 components = 0.00212188 Jy
! Clean residual min=-0.009430 max=0.011082 Jy/beam
! Clean residual mean=0.000050 rms=0.003308 Jy/beam
! Combined flux in latest and established models = 0.407331 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 192 components and 0.407331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352742Jy  sigma=0.001804
! Fit after  self-cal, rms=0.352688Jy  sigma=0.001804
! 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.78 mas, bmaj=6.618 mas, bpa=-10.38 degrees
! Estimated noise=1161.32 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.178825 Jy
! Component: 100  -  total flux cleaned = 0.239939 Jy
! Component: 150  -  total flux cleaned = 0.275149 Jy
! Component: 200  -  total flux cleaned = 0.29973 Jy
! Total flux subtracted in 200 components = 0.29973 Jy
! Clean residual min=-0.011278 max=0.014997 Jy/beam
! Clean residual mean=-0.000015 rms=0.003737 Jy/beam
! Combined flux in latest and established models = 0.29973 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 46 model components to the UV plane model.
! The established model now contains 46 components and 0.29973 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.515 mas, bmaj=8.016 mas, bpa=-10.59 degrees
! Estimated noise=827.035 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.0294147 Jy
! Component: 100  -  total flux cleaned = 0.0487718 Jy
! Component: 150  -  total flux cleaned = 0.0633897 Jy
! Component: 200  -  total flux cleaned = 0.0713749 Jy
! Total flux subtracted in 200 components = 0.0713749 Jy
! Clean residual min=-0.009644 max=0.012231 Jy/beam
! Clean residual mean=0.000032 rms=0.003022 Jy/beam
! Combined flux in latest and established models = 0.371104 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 99 components and 0.371104 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.964 mas, bmaj=10.83 mas, bpa=-7.693 degrees
! Estimated noise=1021.18 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.0151776 Jy
! Component: 100  -  total flux cleaned = 0.0212567 Jy
! Component: 150  -  total flux cleaned = 0.025297 Jy
! Component: 200  -  total flux cleaned = 0.0279725 Jy
! Total flux subtracted in 200 components = 0.0279725 Jy
! Clean residual min=-0.010051 max=0.011249 Jy/beam
! Clean residual mean=0.000064 rms=0.003470 Jy/beam
! Combined flux in latest and established models = 0.399077 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 135 components and 0.399077 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.515 mas, bmaj=8.016 mas, bpa=-10.59 degrees
! Estimated noise=827.035 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000499788 Jy
! Component: 100  -  total flux cleaned = 0.00075832 Jy
! Component: 150  -  total flux cleaned = 0.00186916 Jy
! Component: 200  -  total flux cleaned = 0.00270474 Jy
! Total flux subtracted in 200 components = 0.00270474 Jy
! Clean residual min=-0.008665 max=0.009487 Jy/beam
! Clean residual mean=0.000014 rms=0.002541 Jy/beam
! Combined flux in latest and established models = 0.401782 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 158 components and 0.401782 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352752Jy  sigma=0.001805
! Fit after  self-cal, rms=0.352834Jy  sigma=0.001805
wmodel J0349+2104_S_1996_03_13_yyk\_map.mod
! Writing 158 model components to file: J0349+2104_S_1996_03_13_yyk_map.mod
wobs J0349+2104_S_1996_03_13_yyk\_uvs.fits
! Writing UV FITS file: J0349+2104_S_1996_03_13_yyk_uvs.fits
wwins J0349+2104_S_1996_03_13_yyk\_map.win
! wwins: Wrote 3 windows to J0349+2104_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.00167484 Jy
! Component: 100  -  total flux cleaned = 0.00322262 Jy
! Component: 150  -  total flux cleaned = 0.00495624 Jy
! Component: 200  -  total flux cleaned = 0.0055066 Jy
! Component: 250  -  total flux cleaned = 0.00629255 Jy
! Component: 300  -  total flux cleaned = 0.0065436 Jy
! Component: 350  -  total flux cleaned = 0.00715939 Jy
! Component: 400  -  total flux cleaned = 0.00775785 Jy
! Component: 450  -  total flux cleaned = 0.00857297 Jy
! Component: 500  -  total flux cleaned = 0.00925241 Jy
! Component: 550  -  total flux cleaned = 0.00980796 Jy
! Component: 600  -  total flux cleaned = 0.0102432 Jy
! Component: 650  -  total flux cleaned = 0.0105645 Jy
! Component: 700  -  total flux cleaned = 0.0112973 Jy
! Component: 750  -  total flux cleaned = 0.0116045 Jy
! Component: 800  -  total flux cleaned = 0.0121083 Jy
! Component: 850  -  total flux cleaned = 0.0124062 Jy
! Component: 900  -  total flux cleaned = 0.0129921 Jy
! Component: 950  -  total flux cleaned = 0.0133751 Jy
! Component: 1000  -  total flux cleaned = 0.0134702 Jy
! Component: 1050  -  total flux cleaned = 0.013843 Jy
! Component: 1100  -  total flux cleaned = 0.0138424 Jy
! Component: 1150  -  total flux cleaned = 0.0137524 Jy
! Component: 1200  -  total flux cleaned = 0.0138413 Jy
! Component: 1250  -  total flux cleaned = 0.0134874 Jy
! Component: 1300  -  total flux cleaned = 0.0134871 Jy
! Component: 1350  -  total flux cleaned = 0.0130547 Jy
! Component: 1400  -  total flux cleaned = 0.0127986 Jy
! Component: 1450  -  total flux cleaned = 0.012631 Jy
! Component: 1500  -  total flux cleaned = 0.0124635 Jy
! Component: 1550  -  total flux cleaned = 0.0122983 Jy
! Component: 1600  -  total flux cleaned = 0.0120527 Jy
! Component: 1650  -  total flux cleaned = 0.0118919 Jy
! Component: 1700  -  total flux cleaned = 0.0116534 Jy
! Component: 1750  -  total flux cleaned = 0.011417 Jy
! Component: 1800  -  total flux cleaned = 0.0111058 Jy
! Component: 1850  -  total flux cleaned = 0.0105683 Jy
! Component: 1900  -  total flux cleaned = 0.0104924 Jy
! Component: 1950  -  total flux cleaned = 0.00996396 Jy
! Component: 2000  -  total flux cleaned = 0.0100387 Jy
! Total flux subtracted in 2048 components = 0.00974265 Jy
! Clean residual min=-0.004700 max=0.005048 Jy/beam
! Clean residual mean=-0.000007 rms=0.001586 Jy/beam
! Combined flux in latest and established models = 0.411524 Jy
keep
! Adding 150 model components to the UV plane model.
! The established model now contains 308 components and 0.411524 Jy
![Exited script file: muppet]
wmap "J0349+2104_S_1996_03_13_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.515 x 8.016 at -10.59 degrees (North through East)
! Clean map  min=-0.008447  max=0.19432 Jy/beam
! Writing clean map to FITS file: J0349+2104_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.194317 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00158197 
device "J0349+2104_S_1996_03_13_yyk\_map.eps/VPS"
! Attempting to open device: 'J0349+2104_S_1996_03_13_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -2.44235 2.44235 4.8847 9.76941 19.5388 39.0776 78.1553
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0047 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.194 
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.515 x 8.016 at -10.59 degrees (North through East)
! Clean map  min=-0.008447  max=0.19432 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0349+2104_S_1996_03_13_yyk\_map.gif/gif"
! Attempting to open device: 'J0349+2104_S_1996_03_13_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0349+2104_S_1996_03_13_yyk_uvs.log closed on Sun Jan  7 16:08:15 2007