! Started logfile: J1604+1926_S_2005_07_09_yyk_uvs.log on Fri Jan 20 10:41:37 2006
obs J1604+1926_S_2005_07_09_yyk_uve.fits
! Reading UV FITS file: J1604+1926_S_2005_07_09_yyk_uve.fits
! AN table 1: 10 integrations on 45 of 45 possible baselines.
! Apparent sampling: 1 visibilities/baseline/integration-bin.
! Found source: J1604+1926
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1602 lines of history.
! 
! Reading 1800 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 J1604+1926_S_2005_07_09_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.25095 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.527 mas, bmaj=6.81 mas, bpa=-5.161 degrees
! Estimated noise=1.05806 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.193925 Jy
! Component: 100  -  total flux cleaned = 0.240743 Jy
! Total flux subtracted in 100 components = 0.240743 Jy
! Clean residual min=-0.007161 max=0.016108 Jy/beam
! Clean residual mean=-0.000021 rms=0.002267 Jy/beam
! Combined flux in latest and established models = 0.240743 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.240743 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.071322Jy  sigma=1.286379
! Fit after  self-cal, rms=0.071173Jy  sigma=1.281882
! Inverting map 
! Added new window around map position (-3, -2).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.022442 Jy
! Component: 100  -  total flux cleaned = 0.033813 Jy
! Total flux subtracted in 100 components = 0.033813 Jy
! Clean residual min=-0.005364 max=0.006375 Jy/beam
! Clean residual mean=-0.000019 rms=0.001449 Jy/beam
! Combined flux in latest and established models = 0.274556 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 26 components and 0.274556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.064094Jy  sigma=1.133668
! Fit after  self-cal, rms=0.063943Jy  sigma=1.130048
! 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.174 mas, bmaj=7.799 mas, bpa=-6.084 degrees
! Estimated noise=0.808754 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.00637789 Jy
! Component: 100  -  total flux cleaned = 0.00809397 Jy
! Component: 150  -  total flux cleaned = 0.00837024 Jy
! Component: 200  -  total flux cleaned = 0.0085336 Jy
! Total flux subtracted in 200 components = 0.0085336 Jy
! Clean residual min=-0.004269 max=0.003832 Jy/beam
! Clean residual mean=-0.000039 rms=0.001042 Jy/beam
! Combined flux in latest and established models = 0.28309 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 48 components and 0.28309 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.063155Jy  sigma=1.119250
! Fit after  self-cal, rms=0.063128Jy  sigma=1.118643
! 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.174 x 7.799 at -6.084 degrees (North through East)
! Clean map  min=-0.0042371  max=0.23112 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1.01266
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.90     FD        1.04     HN        1.00     KP        0.97     
!   LA        1.09     MK        0.91     NL        0.95     OV        1.00     
!   PT        1.06     SC        0.96     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.980268
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.02     HN        1.07     KP        1.01     
!   LA        1.05     MK        0.96     NL        0.95     OV        1.04     
!   PT        1.03     SC        1.00     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.983883
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.95     HN        1.02     KP        0.98     
!   LA        0.93     MK        1.06     NL        1.04     OV        1.04     
!   PT        1.10     SC        1.02     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.0458
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     HN        0.93     KP        0.90     
!   LA        0.78     MK        1.08     NL        0.96     OV        0.85     
!   PT        1.01     SC        1.11     
! 
! 
! Fit before self-cal, rms=0.063128Jy  sigma=1.118643
! Fit after  self-cal, rms=0.056517Jy  sigma=1.021474
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.056517Jy  sigma=1.021474
! Fit after  self-cal, rms=0.056517Jy  sigma=1.021435
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.211 mas, bmaj=7.834 mas, bpa=-6.271 degrees
! Estimated noise=0.810711 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.00223944 Jy
! Component: 100  -  total flux cleaned = 0.00258203 Jy
! Component: 150  -  total flux cleaned = 0.00267983 Jy
! Component: 200  -  total flux cleaned = 0.002765 Jy
! Total flux subtracted in 200 components = 0.002765 Jy
! Clean residual min=-0.003321 max=0.002773 Jy/beam
! Clean residual mean=0.000019 rms=0.000770 Jy/beam
! Combined flux in latest and established models = 0.285855 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 63 components and 0.285855 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.056417Jy  sigma=1.019848
! Fit after  self-cal, rms=0.056416Jy  sigma=1.019736
! 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.056416Jy  sigma=1.019736
! Fit after  self-cal, rms=0.054503Jy  sigma=0.983077
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.000385512 Jy
! Component: 100  -  total flux cleaned = 0.000357849 Jy
! Component: 150  -  total flux cleaned = 0.000358264 Jy
! Component: 200  -  total flux cleaned = 0.000379252 Jy
! Total flux subtracted in 200 components = 0.000379252 Jy
! Clean residual min=-0.003173 max=0.002769 Jy/beam
! Clean residual mean=0.000018 rms=0.000762 Jy/beam
! Combined flux in latest and established models = 0.286234 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 67 components and 0.286234 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.054471Jy  sigma=0.982602
! Fit after  self-cal, rms=0.054383Jy  sigma=0.980194
! 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.211 x 7.834 at -6.271 degrees (North through East)
! Clean map  min=-0.0030185  max=0.23307 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.054383Jy  sigma=0.980194
! Fit after  self-cal, rms=0.052320Jy  sigma=0.936208
! 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.052320Jy  sigma=0.936208
! Fit after  self-cal, rms=0.052327Jy  sigma=0.935994
! Inverting map and beam 
! Estimated beam: bmin=3.215 mas, bmaj=7.816 mas, bpa=-6.157 degrees
! Estimated noise=0.808897 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000145809 Jy
! Component: 100  -  total flux cleaned = -8.17218e-05 Jy
! Component: 150  -  total flux cleaned = -8.28511e-06 Jy
! Component: 200  -  total flux cleaned = 2.34941e-05 Jy
! Total flux subtracted in 200 components = 2.34941e-05 Jy
! Clean residual min=-0.003351 max=0.002645 Jy/beam
! Clean residual mean=0.000022 rms=0.000706 Jy/beam
! Combined flux in latest and established models = 0.286258 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 74 components and 0.286258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.052308Jy  sigma=0.935712
! Fit after  self-cal, rms=0.052313Jy  sigma=0.935657
! 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.052313Jy  sigma=0.935657
! Fit after  self-cal, rms=0.051197Jy  sigma=0.911984
! 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.051197Jy  sigma=0.911984
! Fit after  self-cal, rms=0.051197Jy  sigma=0.911968
! Inverting map and beam 
! Estimated beam: bmin=3.218 mas, bmaj=7.813 mas, bpa=-6.089 degrees
! Estimated noise=0.809909 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000522099 Jy
! Component: 100  -  total flux cleaned = 0.000601791 Jy
! Component: 150  -  total flux cleaned = 0.000646976 Jy
! Component: 200  -  total flux cleaned = 0.000660826 Jy
! Total flux subtracted in 200 components = 0.000660826 Jy
! Clean residual min=-0.003256 max=0.002563 Jy/beam
! Clean residual mean=0.000022 rms=0.000699 Jy/beam
! Combined flux in latest and established models = 0.286918 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 77 components and 0.286918 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.051185Jy  sigma=0.911706
! Fit after  self-cal, rms=0.051186Jy  sigma=0.911681
! 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.711 mas, bmaj=10.7 mas, bpa=-0.74 degrees
! Estimated noise=1.03095 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 = -6.66579e-05 Jy
! Component: 100  -  total flux cleaned = -0.000121064 Jy
! Component: 150  -  total flux cleaned = -0.000142051 Jy
! Component: 200  -  total flux cleaned = -0.000151521 Jy
! Total flux subtracted in 200 components = -0.000151521 Jy
! Clean residual min=-0.003082 max=0.002855 Jy/beam
! Clean residual mean=0.000048 rms=0.000866 Jy/beam
! Combined flux in latest and established models = 0.286767 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 88 components and 0.286767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.051185Jy  sigma=0.911744
! Fit after  self-cal, rms=0.051181Jy  sigma=0.911726
! 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.552 mas, bmaj=6.818 mas, bpa=-5.162 degrees
! Estimated noise=1.06078 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.194204 Jy
! Component: 100  -  total flux cleaned = 0.240903 Jy
! Component: 150  -  total flux cleaned = 0.263353 Jy
! Component: 200  -  total flux cleaned = 0.274563 Jy
! Total flux subtracted in 200 components = 0.274563 Jy
! Clean residual min=-0.004122 max=0.004798 Jy/beam
! Clean residual mean=0.000005 rms=0.001095 Jy/beam
! Combined flux in latest and established models = 0.274563 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.274563 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.218 mas, bmaj=7.813 mas, bpa=-6.089 degrees
! Estimated noise=0.809909 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.00738796 Jy
! Component: 100  -  total flux cleaned = 0.0104476 Jy
! Component: 150  -  total flux cleaned = 0.0117268 Jy
! Component: 200  -  total flux cleaned = 0.012096 Jy
! Total flux subtracted in 200 components = 0.012096 Jy
! Clean residual min=-0.003312 max=0.002562 Jy/beam
! Clean residual mean=0.000022 rms=0.000707 Jy/beam
! Combined flux in latest and established models = 0.286659 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 46 components and 0.286659 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.711 mas, bmaj=10.7 mas, bpa=-0.74 degrees
! Estimated noise=1.03095 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.000200692 Jy
! Component: 100  -  total flux cleaned = 0.000273835 Jy
! Component: 150  -  total flux cleaned = 0.000310588 Jy
! Component: 200  -  total flux cleaned = 0.00029749 Jy
! Total flux subtracted in 200 components = 0.00029749 Jy
! Clean residual min=-0.003108 max=0.002845 Jy/beam
! Clean residual mean=0.000047 rms=0.000863 Jy/beam
! Combined flux in latest and established models = 0.286956 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 61 components and 0.286956 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.218 mas, bmaj=7.813 mas, bpa=-6.089 degrees
! Estimated noise=0.809909 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000184544 Jy
! Component: 100  -  total flux cleaned = 0.000183807 Jy
! Component: 150  -  total flux cleaned = 0.000166029 Jy
! Component: 200  -  total flux cleaned = 0.00016455 Jy
! Total flux subtracted in 200 components = 0.00016455 Jy
! Clean residual min=-0.003279 max=0.002570 Jy/beam
! Clean residual mean=0.000022 rms=0.000700 Jy/beam
! Combined flux in latest and established models = 0.287121 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 68 components and 0.287121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.051195Jy  sigma=0.911843
! Fit after  self-cal, rms=0.051190Jy  sigma=0.911810
wmodel J1604+1926_S_2005_07_09_yyk\_map.mod
! Writing 68 model components to file: J1604+1926_S_2005_07_09_yyk_map.mod
wobs J1604+1926_S_2005_07_09_yyk\_uvs.fits
! Writing UV FITS file: J1604+1926_S_2005_07_09_yyk_uvs.fits
wwins J1604+1926_S_2005_07_09_yyk\_map.win
! wwins: Wrote 2 windows to J1604+1926_S_2005_07_09_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.000706941 Jy
! Component: 100  -  total flux cleaned = -0.000915036 Jy
! Component: 150  -  total flux cleaned = -0.00127455 Jy
! Component: 200  -  total flux cleaned = -0.00123817 Jy
! Component: 250  -  total flux cleaned = -0.0011659 Jy
! Component: 300  -  total flux cleaned = -0.00130532 Jy
! Component: 350  -  total flux cleaned = -0.00140674 Jy
! Component: 400  -  total flux cleaned = -0.00144 Jy
! Component: 450  -  total flux cleaned = -0.0015046 Jy
! Component: 500  -  total flux cleaned = -0.00147294 Jy
! Component: 550  -  total flux cleaned = -0.0015668 Jy
! Component: 600  -  total flux cleaned = -0.00156704 Jy
! Component: 650  -  total flux cleaned = -0.00153807 Jy
! Component: 700  -  total flux cleaned = -0.00168628 Jy
! Component: 750  -  total flux cleaned = -0.00174366 Jy
! Component: 800  -  total flux cleaned = -0.00168581 Jy
! Component: 850  -  total flux cleaned = -0.00165819 Jy
! Component: 900  -  total flux cleaned = -0.00171361 Jy
! Component: 950  -  total flux cleaned = -0.00171328 Jy
! Component: 1000  -  total flux cleaned = -0.00165923 Jy
! Component: 1050  -  total flux cleaned = -0.00160611 Jy
! Component: 1100  -  total flux cleaned = -0.00155399 Jy
! Component: 1150  -  total flux cleaned = -0.00157974 Jy
! Component: 1200  -  total flux cleaned = -0.00152882 Jy
! Component: 1250  -  total flux cleaned = -0.00152924 Jy
! Component: 1300  -  total flux cleaned = -0.00155397 Jy
! Component: 1350  -  total flux cleaned = -0.00148007 Jy
! Component: 1400  -  total flux cleaned = -0.00150381 Jy
! Component: 1450  -  total flux cleaned = -0.00147995 Jy
! Component: 1500  -  total flux cleaned = -0.00150398 Jy
! Component: 1550  -  total flux cleaned = -0.00155046 Jy
! Component: 1600  -  total flux cleaned = -0.00157346 Jy
! Component: 1650  -  total flux cleaned = -0.00159619 Jy
! Component: 1700  -  total flux cleaned = -0.00164126 Jy
! Component: 1750  -  total flux cleaned = -0.00166358 Jy
! Component: 1800  -  total flux cleaned = -0.00166372 Jy
! Component: 1850  -  total flux cleaned = -0.00175065 Jy
! Component: 1900  -  total flux cleaned = -0.00170741 Jy
! Component: 1950  -  total flux cleaned = -0.0017289 Jy
! Component: 2000  -  total flux cleaned = -0.00177104 Jy
! Total flux subtracted in 2048 components = -0.00175034 Jy
! Clean residual min=-0.001217 max=0.001187 Jy/beam
! Clean residual mean=0.000017 rms=0.000436 Jy/beam
! Combined flux in latest and established models = 0.285371 Jy
keep
! Adding 132 model components to the UV plane model.
! The established model now contains 200 components and 0.28537 Jy
![Exited script file: muppet]
wmap "J1604+1926_S_2005_07_09_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.218 x 7.813 at -6.089 degrees (North through East)
! Clean map  min=-0.0025085  max=0.23364 Jy/beam
! Writing clean map to FITS file: J1604+1926_S_2005_07_09_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.233636 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000436272 
device "J1604+1926_S_2005_07_09_yyk\_map.eps/VPS"
! Attempting to open device: 'J1604+1926_S_2005_07_09_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.560195 0.560195 1.12039 2.24078 4.48156 8.96313 17.9263 35.8525 71.705
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.233 
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.218 x 7.813 at -6.089 degrees (North through East)
! Clean map  min=-0.0025085  max=0.23364 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1604+1926_S_2005_07_09_yyk\_map.gif/gif"
! Attempting to open device: 'J1604+1926_S_2005_07_09_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1604+1926_S_2005_07_09_yyk_uvs.log closed on Fri Jan 20 10:41:41 2006