! Started logfile: J1745+1814_S_1996_01_02_yyk_uvs.log on Sun Jan  7 19:19:27 2007
obs J1745+1814_S_1996_01_02_yyk_uva.fits
! Reading UV FITS file: J1745+1814_S_1996_01_02_yyk_uva.fits
! AN table 1: 124 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.89552 visibilities/baseline/integration-bin.
! Found source: J1745+1814
! 
! 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 624 lines of history.
! 
! Reading 19988 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 J1745+1814_S_1996_01_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.500x0.500 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.959604 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.748 mas, bmaj=6.707 mas, bpa=-8.513 degrees
! Estimated noise=1849.35 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.13689 Jy
! Component: 100  -  total flux cleaned = 0.163807 Jy
! Total flux subtracted in 100 components = 0.163807 Jy
! Clean residual min=-0.023455 max=0.031663 Jy/beam
! Clean residual mean=0.000060 rms=0.006967 Jy/beam
! Combined flux in latest and established models = 0.163807 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.163807 Jy
! 
! Correcting IF 1.
!  A total of 149 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 79 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 237 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 237 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.943619Jy  sigma=0.004844
! Fit after  self-cal, rms=0.942398Jy  sigma=0.004839
! Inverting map and beam 
! Estimated beam: bmin=2.748 mas, bmaj=6.707 mas, bpa=-8.514 degrees
! Estimated noise=1849.55 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.354 mas, bmaj=8.21 mas, bpa=-7.4 degrees
! Estimated noise=1072.84 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.0418592 Jy
! Component: 100  -  total flux cleaned = 0.0550702 Jy
! Component: 150  -  total flux cleaned = 0.0582794 Jy
! Component: 200  -  total flux cleaned = 0.0592917 Jy
! Total flux subtracted in 200 components = 0.0592917 Jy
! Clean residual min=-0.023846 max=0.031133 Jy/beam
! Clean residual mean=0.000590 rms=0.008927 Jy/beam
! Combined flux in latest and established models = 0.223098 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 24 components and 0.223098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.941539Jy  sigma=0.004833
! Fit after  self-cal, rms=0.941546Jy  sigma=0.004833
! 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.354 x 8.21 at -7.4 degrees (North through East)
! Clean map  min=-0.023591  max=0.18415 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.
!  A total of 3 telescope corrections were flagged in sub-array 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.941546Jy  sigma=0.004833
! Fit after  self-cal, rms=0.941609Jy  sigma=0.004833
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.941609Jy  sigma=0.004833
! Fit after  self-cal, rms=0.941611Jy  sigma=0.004833
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.354 mas, bmaj=8.21 mas, bpa=-7.4 degrees
! Estimated noise=1072.94 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.00222662 Jy
! Component: 100  -  total flux cleaned = 0.00304284 Jy
! Component: 150  -  total flux cleaned = 0.00379207 Jy
! Component: 200  -  total flux cleaned = 0.00446818 Jy
! Total flux subtracted in 200 components = 0.00446818 Jy
! Clean residual min=-0.023779 max=0.030928 Jy/beam
! Clean residual mean=0.000585 rms=0.008880 Jy/beam
! Combined flux in latest and established models = 0.227567 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 28 components and 0.227567 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.941510Jy  sigma=0.004833
! Fit after  self-cal, rms=0.941501Jy  sigma=0.004833
! 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.941501Jy  sigma=0.004833
! Fit after  self-cal, rms=0.940175Jy  sigma=0.004827
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.00777846 Jy
! Component: 100  -  total flux cleaned = 0.00833558 Jy
! Component: 150  -  total flux cleaned = 0.00881349 Jy
! Component: 200  -  total flux cleaned = 0.00903427 Jy
! Total flux subtracted in 200 components = 0.00903427 Jy
! Clean residual min=-0.025461 max=0.033072 Jy/beam
! Clean residual mean=0.000652 rms=0.009497 Jy/beam
! Combined flux in latest and established models = 0.236601 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 39 components and 0.236601 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.940084Jy  sigma=0.004827
! Fit after  self-cal, rms=0.939436Jy  sigma=0.004824
! 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.354 x 8.21 at -7.4 degrees (North through East)
! Clean map  min=-0.023725  max=0.19034 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.939436Jy  sigma=0.004824
! Fit after  self-cal, rms=0.939436Jy  sigma=0.004824
! 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.939436Jy  sigma=0.004824
! Fit after  self-cal, rms=0.939216Jy  sigma=0.004824
! Inverting map and beam 
! Estimated beam: bmin=3.354 mas, bmaj=8.21 mas, bpa=-7.4 degrees
! Estimated noise=1072.94 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00382436 Jy
! Component: 100  -  total flux cleaned = 0.00426708 Jy
! Component: 150  -  total flux cleaned = 0.00446748 Jy
! Component: 200  -  total flux cleaned = 0.00464392 Jy
! Total flux subtracted in 200 components = 0.00464392 Jy
! Clean residual min=-0.025430 max=0.034577 Jy/beam
! Clean residual mean=0.000702 rms=0.009751 Jy/beam
! Combined flux in latest and established models = 0.241245 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 42 components and 0.241245 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.939149Jy  sigma=0.004823
! Fit after  self-cal, rms=0.938988Jy  sigma=0.004823
! 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.938988Jy  sigma=0.004823
! Fit after  self-cal, rms=0.938988Jy  sigma=0.004823
! 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.938988Jy  sigma=0.004823
! Fit after  self-cal, rms=0.938914Jy  sigma=0.004822
! Inverting map and beam 
! Estimated beam: bmin=3.354 mas, bmaj=8.21 mas, bpa=-7.4 degrees
! Estimated noise=1072.94 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00142256 Jy
! Component: 100  -  total flux cleaned = 0.00156717 Jy
! Component: 150  -  total flux cleaned = 0.0016979 Jy
! Component: 200  -  total flux cleaned = 0.00180868 Jy
! Total flux subtracted in 200 components = 0.00180868 Jy
! Clean residual min=-0.025744 max=0.034640 Jy/beam
! Clean residual mean=0.000715 rms=0.009826 Jy/beam
! Combined flux in latest and established models = 0.243054 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 44 components and 0.243054 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.938884Jy  sigma=0.004822
! Fit after  self-cal, rms=0.938842Jy  sigma=0.004822
! 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.676 mas, bmaj=11.17 mas, bpa=-7.774 degrees
! Estimated noise=1341.81 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.00651397 Jy
! Component: 100  -  total flux cleaned = 0.00721949 Jy
! Component: 150  -  total flux cleaned = 0.00750563 Jy
! Component: 200  -  total flux cleaned = 0.00785324 Jy
! Total flux subtracted in 200 components = 0.00785324 Jy
! Clean residual min=-0.041941 max=0.049679 Jy/beam
! Clean residual mean=0.001414 rms=0.018134 Jy/beam
! Combined flux in latest and established models = 0.250907 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 56 components and 0.250907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.938933Jy  sigma=0.004822
! Fit after  self-cal, rms=0.938911Jy  sigma=0.004822
! 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.748 mas, bmaj=6.707 mas, bpa=-8.514 degrees
! Estimated noise=1849.57 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.159074 Jy
! Component: 100  -  total flux cleaned = 0.184526 Jy
! Component: 150  -  total flux cleaned = 0.188173 Jy
! Component: 200  -  total flux cleaned = 0.192105 Jy
! Total flux subtracted in 200 components = 0.192105 Jy
! Clean residual min=-0.026067 max=0.035716 Jy/beam
! Clean residual mean=0.000126 rms=0.007786 Jy/beam
! Combined flux in latest and established models = 0.192105 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.192105 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.354 mas, bmaj=8.21 mas, bpa=-7.4 degrees
! Estimated noise=1072.94 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.0303663 Jy
! Component: 100  -  total flux cleaned = 0.0426178 Jy
! Component: 150  -  total flux cleaned = 0.0456374 Jy
! Component: 200  -  total flux cleaned = 0.0468683 Jy
! Total flux subtracted in 200 components = 0.0468683 Jy
! Clean residual min=-0.025671 max=0.034889 Jy/beam
! Clean residual mean=0.000727 rms=0.009862 Jy/beam
! Combined flux in latest and established models = 0.238974 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 34 components and 0.238974 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.676 mas, bmaj=11.17 mas, bpa=-7.774 degrees
! Estimated noise=1341.81 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.00893755 Jy
! Component: 100  -  total flux cleaned = 0.00991109 Jy
! Component: 150  -  total flux cleaned = 0.0106932 Jy
! Component: 200  -  total flux cleaned = 0.0113232 Jy
! Total flux subtracted in 200 components = 0.0113232 Jy
! Clean residual min=-0.041619 max=0.049941 Jy/beam
! Clean residual mean=0.001421 rms=0.018163 Jy/beam
! Combined flux in latest and established models = 0.250297 Jy
! Adding 8 model components to the UV plane model.
! The established model now contains 40 components and 0.250297 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.354 mas, bmaj=8.21 mas, bpa=-7.4 degrees
! Estimated noise=1072.94 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00519195 Jy
! Component: 100  -  total flux cleaned = -0.00544219 Jy
! Component: 150  -  total flux cleaned = -0.00563554 Jy
! Component: 200  -  total flux cleaned = -0.00578589 Jy
! Total flux subtracted in 200 components = -0.00578589 Jy
! Clean residual min=-0.025918 max=0.034545 Jy/beam
! Clean residual mean=0.000720 rms=0.009846 Jy/beam
! Combined flux in latest and established models = 0.244511 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 46 components and 0.244511 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.938800Jy  sigma=0.004822
! Fit after  self-cal, rms=0.938751Jy  sigma=0.004822
wmodel J1745+1814_S_1996_01_02_yyk\_map.mod
! Writing 46 model components to file: J1745+1814_S_1996_01_02_yyk_map.mod
wobs J1745+1814_S_1996_01_02_yyk\_uvs.fits
! Writing UV FITS file: J1745+1814_S_1996_01_02_yyk_uvs.fits
wwins J1745+1814_S_1996_01_02_yyk\_map.win
! wwins: Wrote 1 windows to J1745+1814_S_1996_01_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.0151297 Jy
! Component: 100  -  total flux cleaned = 0.0181715 Jy
! Component: 150  -  total flux cleaned = 0.0190745 Jy
! Component: 200  -  total flux cleaned = 0.020346 Jy
! Component: 250  -  total flux cleaned = 0.0211641 Jy
! Component: 300  -  total flux cleaned = 0.0231367 Jy
! Component: 350  -  total flux cleaned = 0.0254205 Jy
! Component: 400  -  total flux cleaned = 0.0283867 Jy
! Component: 450  -  total flux cleaned = 0.030552 Jy
! Component: 500  -  total flux cleaned = 0.0330225 Jy
! Component: 550  -  total flux cleaned = 0.0347543 Jy
! Component: 600  -  total flux cleaned = 0.0378149 Jy
! Component: 650  -  total flux cleaned = 0.0401454 Jy
! Component: 700  -  total flux cleaned = 0.0414567 Jy
! Component: 750  -  total flux cleaned = 0.0440267 Jy
! Component: 800  -  total flux cleaned = 0.0455983 Jy
! Component: 850  -  total flux cleaned = 0.0465313 Jy
! Component: 900  -  total flux cleaned = 0.0486789 Jy
! Component: 950  -  total flux cleaned = 0.0507902 Jy
! Component: 1000  -  total flux cleaned = 0.0534584 Jy
! Component: 1050  -  total flux cleaned = 0.0549184 Jy
! Component: 1100  -  total flux cleaned = 0.0569335 Jy
! Component: 1150  -  total flux cleaned = 0.0580718 Jy
! Component: 1200  -  total flux cleaned = 0.0600303 Jy
! Component: 1250  -  total flux cleaned = 0.0611348 Jy
! Component: 1300  -  total flux cleaned = 0.0624987 Jy
! Component: 1350  -  total flux cleaned = 0.0638449 Jy
! Component: 1400  -  total flux cleaned = 0.0662334 Jy
! Component: 1450  -  total flux cleaned = 0.0659734 Jy
! Component: 1500  -  total flux cleaned = 0.067789 Jy
! Component: 1550  -  total flux cleaned = 0.0693279 Jy
! Component: 1600  -  total flux cleaned = 0.0703387 Jy
! Component: 1650  -  total flux cleaned = 0.0715901 Jy
! Component: 1700  -  total flux cleaned = 0.0733243 Jy
! Component: 1750  -  total flux cleaned = 0.0750375 Jy
! Component: 1800  -  total flux cleaned = 0.0767297 Jy
! Component: 1850  -  total flux cleaned = 0.0786488 Jy
! Component: 1900  -  total flux cleaned = 0.0805439 Jy
! Component: 1950  -  total flux cleaned = 0.0819524 Jy
! Component: 2000  -  total flux cleaned = 0.0840432 Jy
! Total flux subtracted in 2048 components = 0.0858821 Jy
! Clean residual min=-0.013540 max=0.011456 Jy/beam
! Clean residual mean=0.000576 rms=0.006298 Jy/beam
! Combined flux in latest and established models = 0.330393 Jy
keep
! Adding 235 model components to the UV plane model.
! The established model now contains 281 components and 0.330393 Jy
![Exited script file: muppet]
wmap "J1745+1814_S_1996_01_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.354 x 8.21 at -7.4 degrees (North through East)
! Clean map  min=-0.022785  max=0.1909 Jy/beam
! Writing clean map to FITS file: J1745+1814_S_1996_01_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.1909 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00630035 
device "J1745+1814_S_1996_01_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J1745+1814_S_1996_01_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -9.901 9.901 19.802 39.604 79.208
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0189 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.19 
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.354 x 8.21 at -7.4 degrees (North through East)
! Clean map  min=-0.022785  max=0.1909 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1745+1814_S_1996_01_02_yyk\_map.gif/gif"
! Attempting to open device: 'J1745+1814_S_1996_01_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1745+1814_S_1996_01_02_yyk_uvs.log closed on Sun Jan  7 19:19:34 2007