! Started logfile: J1658+4737_S_2006_02_16_yyk_uvs.log on Wed Jul  5 13:01:47 2006
obs J1658+4737_S_2006_02_16_yyk_uva.fits
! Reading UV FITS file: J1658+4737_S_2006_02_16_yyk_uva.fits
! AN table 1: 230 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.75256 visibilities/baseline/integration-bin.
! Found source: J1658+4737
! 
! 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 2421 lines of history.
! 
! Reading 31156 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 J1658+4737_S_2006_02_16_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.
uvav time_av, true
! Averaging into 30 second bins.
! 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
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 1.05392 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.668 mas, bmaj=8.988 mas, bpa=-37.89 degrees
! Estimated noise=2.03488 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.880551 Jy
! Component: 100  -  total flux cleaned = 1.04665 Jy
! Total flux subtracted in 100 components = 1.04665 Jy
! Clean residual min=-0.043715 max=0.053702 Jy/beam
! Clean residual mean=-0.000084 rms=0.013883 Jy/beam
! Combined flux in latest and established models = 1.04665 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 1.04665 Jy
! 
! Correcting IF 1.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.219096Jy  sigma=3.658549
! Fit after  self-cal, rms=0.217522Jy  sigma=3.635474
! Inverting map and beam 
! Estimated beam: bmin=2.668 mas, bmaj=8.988 mas, bpa=-37.89 degrees
! Estimated noise=2.03488 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.18 mas, bmaj=10.04 mas, bpa=-38.3 degrees
! Estimated noise=1.53225 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.0940197 Jy
! Component: 100  -  total flux cleaned = 0.142951 Jy
! Component: 150  -  total flux cleaned = 0.161081 Jy
! Component: 200  -  total flux cleaned = 0.165361 Jy
! Total flux subtracted in 200 components = 0.165361 Jy
! Clean residual min=-0.033812 max=0.043421 Jy/beam
! Clean residual mean=0.000204 rms=0.009882 Jy/beam
! Combined flux in latest and established models = 1.21201 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 34 components and 1.21201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179640Jy  sigma=2.991179
! Fit after  self-cal, rms=0.179184Jy  sigma=2.983361
! 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.18 x 10.04 at -38.3 degrees (North through East)
! Clean map  min=-0.033189  max=0.98165 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: 0.994167
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.92     HN        0.99     KP        0.96     
!   LA        1.28     MK        0.91     NL        1.09     OV        0.95     
!   PT        1.05     SC        0.95     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.967664
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        0.98     HN        1.03     KP        0.98     
!   LA        1.15     MK        1.00     NL        1.14     OV        0.97     
!   PT        1.01     SC        0.97     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.976581
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.84     FD        0.97     HN        1.06     KP        0.98     
!   LA        0.92     MK        1.10     NL        1.24     OV        1.00     
!   PT        1.07     SC        1.05     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.02529
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        0.97     HN        1.01     KP        0.90     
!   LA        0.77     MK        1.11     NL        1.19     OV        0.86     
!   PT        0.94     SC        1.14     
! 
! 
! Fit before self-cal, rms=0.179184Jy  sigma=2.983361
! Fit after  self-cal, rms=0.102713Jy  sigma=1.729765
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.102713Jy  sigma=1.729765
! Fit after  self-cal, rms=0.102714Jy  sigma=1.729623
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.293 mas, bmaj=9.865 mas, bpa=-37.91 degrees
! Estimated noise=1.50527 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.0312802 Jy
! Component: 100  -  total flux cleaned = -0.0364284 Jy
! Component: 150  -  total flux cleaned = -0.0389317 Jy
! Component: 200  -  total flux cleaned = -0.0395155 Jy
! Total flux subtracted in 200 components = -0.0395155 Jy
! Clean residual min=-0.014853 max=0.011476 Jy/beam
! Clean residual mean=0.000051 rms=0.003683 Jy/beam
! Combined flux in latest and established models = 1.17249 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 54 components and 1.17249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.094876Jy  sigma=1.561851
! Fit after  self-cal, rms=0.094725Jy  sigma=1.558722
! 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.094725Jy  sigma=1.558722
! Fit after  self-cal, rms=0.089155Jy  sigma=1.459206
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.000623325 Jy
! Component: 100  -  total flux cleaned = 0.000182608 Jy
! Component: 150  -  total flux cleaned = 0.000180231 Jy
! Component: 200  -  total flux cleaned = 6.05063e-06 Jy
! Total flux subtracted in 200 components = 6.05063e-06 Jy
! Clean residual min=-0.014183 max=0.011953 Jy/beam
! Clean residual mean=0.000050 rms=0.003555 Jy/beam
! Combined flux in latest and established models = 1.1725 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 62 components and 1.1725 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088171Jy  sigma=1.443986
! Fit after  self-cal, rms=0.087798Jy  sigma=1.437498
! 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.293 x 9.865 at -37.91 degrees (North through East)
! Clean map  min=-0.014091  max=0.98536 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.087798Jy  sigma=1.437498
! Fit after  self-cal, rms=0.071601Jy  sigma=1.123811
! 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.071601Jy  sigma=1.123811
! Fit after  self-cal, rms=0.071580Jy  sigma=1.123414
! Inverting map and beam 
! Estimated beam: bmin=3.306 mas, bmaj=9.768 mas, bpa=-37.94 degrees
! Estimated noise=1.50523 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00595201 Jy
! Component: 100  -  total flux cleaned = -0.00630015 Jy
! Component: 150  -  total flux cleaned = -0.00607806 Jy
! Component: 200  -  total flux cleaned = -0.00590221 Jy
! Total flux subtracted in 200 components = -0.00590221 Jy
! Clean residual min=-0.010531 max=0.009237 Jy/beam
! Clean residual mean=0.000004 rms=0.002795 Jy/beam
! Combined flux in latest and established models = 1.1666 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 71 components and 1.1666 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068978Jy  sigma=1.078075
! Fit after  self-cal, rms=0.068955Jy  sigma=1.077476
! 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.068955Jy  sigma=1.077476
! Fit after  self-cal, rms=0.067363Jy  sigma=1.049974
! 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.067363Jy  sigma=1.049974
! Fit after  self-cal, rms=0.067366Jy  sigma=1.049971
! Inverting map and beam 
! Estimated beam: bmin=3.312 mas, bmaj=9.723 mas, bpa=-37.95 degrees
! Estimated noise=1.50338 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00482662 Jy
! Component: 100  -  total flux cleaned = -0.00508289 Jy
! Component: 150  -  total flux cleaned = -0.00508137 Jy
! Component: 200  -  total flux cleaned = -0.00492142 Jy
! Total flux subtracted in 200 components = -0.00492142 Jy
! Clean residual min=-0.008794 max=0.008699 Jy/beam
! Clean residual mean=-0.000002 rms=0.002469 Jy/beam
! Combined flux in latest and established models = 1.16168 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 76 components and 1.16168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.065794Jy  sigma=1.023105
! Fit after  self-cal, rms=0.065789Jy  sigma=1.022878
! 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=8.528 mas, bmaj=10.69 mas, bpa=-31.85 degrees
! Estimated noise=1.87921 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.000366349 Jy
! Component: 100  -  total flux cleaned = 0.000266589 Jy
! Component: 150  -  total flux cleaned = 2.05826e-05 Jy
! Component: 200  -  total flux cleaned = -5.01166e-05 Jy
! Total flux subtracted in 200 components = -5.01166e-05 Jy
! Clean residual min=-0.011302 max=0.012144 Jy/beam
! Clean residual mean=-0.000006 rms=0.003609 Jy/beam
! Combined flux in latest and established models = 1.16163 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 82 components and 1.16163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.065614Jy  sigma=1.019375
! Fit after  self-cal, rms=0.065592Jy  sigma=1.019022
! 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.743 mas, bmaj=8.805 mas, bpa=-37.72 degrees
! Estimated noise=1.92153 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.861293 Jy
! Component: 100  -  total flux cleaned = 1.00967 Jy
! Component: 150  -  total flux cleaned = 1.07077 Jy
! Component: 200  -  total flux cleaned = 1.10367 Jy
! Total flux subtracted in 200 components = 1.10367 Jy
! Clean residual min=-0.013322 max=0.017546 Jy/beam
! Clean residual mean=-0.000044 rms=0.003702 Jy/beam
! Combined flux in latest and established models = 1.10367 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 20 model components to the UV plane model.
! The established model now contains 20 components and 1.10367 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.312 mas, bmaj=9.723 mas, bpa=-37.95 degrees
! Estimated noise=1.50338 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)
! Added new window around map position (-6, 9).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0286875 Jy
! Component: 100  -  total flux cleaned = 0.0433365 Jy
! Component: 150  -  total flux cleaned = 0.0489557 Jy
! Component: 200  -  total flux cleaned = 0.0523426 Jy
! Total flux subtracted in 200 components = 0.0523426 Jy
! Clean residual min=-0.007849 max=0.008088 Jy/beam
! Clean residual mean=0.000007 rms=0.002391 Jy/beam
! Combined flux in latest and established models = 1.15601 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 47 components and 1.15601 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=8.528 mas, bmaj=10.69 mas, bpa=-31.85 degrees
! Estimated noise=1.87921 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.00479548 Jy
! Component: 100  -  total flux cleaned = 0.00686254 Jy
! Component: 150  -  total flux cleaned = 0.00735142 Jy
! Component: 200  -  total flux cleaned = 0.00777004 Jy
! Total flux subtracted in 200 components = 0.00777004 Jy
! Clean residual min=-0.009200 max=0.009526 Jy/beam
! Clean residual mean=0.000030 rms=0.003151 Jy/beam
! Combined flux in latest and established models = 1.16378 Jy
! Adding 21 model components to the UV plane model.
! The established model now contains 66 components and 1.16378 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.312 mas, bmaj=9.723 mas, bpa=-37.95 degrees
! Estimated noise=1.50338 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00227555 Jy
! Component: 100  -  total flux cleaned = -0.00267426 Jy
! Component: 150  -  total flux cleaned = -0.00285045 Jy
! Component: 200  -  total flux cleaned = -0.00285412 Jy
! Total flux subtracted in 200 components = -0.00285412 Jy
! Clean residual min=-0.007658 max=0.008123 Jy/beam
! Clean residual mean=0.000016 rms=0.002166 Jy/beam
! Combined flux in latest and established models = 1.16093 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 95 components and 1.16093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.064654Jy  sigma=1.001972
! Fit after  self-cal, rms=0.064637Jy  sigma=1.001222
wmodel J1658+4737_S_2006_02_16_yyk\_map.mod
! Writing 95 model components to file: J1658+4737_S_2006_02_16_yyk_map.mod
wobs J1658+4737_S_2006_02_16_yyk\_uvs.fits
! Writing UV FITS file: J1658+4737_S_2006_02_16_yyk_uvs.fits
wwins J1658+4737_S_2006_02_16_yyk\_map.win
! wwins: Wrote 2 windows to J1658+4737_S_2006_02_16_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.000236044 Jy
! Component: 100  -  total flux cleaned = -0.000944965 Jy
! Component: 150  -  total flux cleaned = -0.00216369 Jy
! Component: 200  -  total flux cleaned = -0.00319933 Jy
! Component: 250  -  total flux cleaned = -0.00427234 Jy
! Component: 300  -  total flux cleaned = -0.0052866 Jy
! Component: 350  -  total flux cleaned = -0.00642901 Jy
! Component: 400  -  total flux cleaned = -0.00752287 Jy
! Component: 450  -  total flux cleaned = -0.00864847 Jy
! Component: 500  -  total flux cleaned = -0.00903685 Jy
! Component: 550  -  total flux cleaned = -0.00970704 Jy
! Component: 600  -  total flux cleaned = -0.00985066 Jy
! Component: 650  -  total flux cleaned = -0.0102724 Jy
! Component: 700  -  total flux cleaned = -0.0106137 Jy
! Component: 750  -  total flux cleaned = -0.0110103 Jy
! Component: 800  -  total flux cleaned = -0.0110745 Jy
! Component: 850  -  total flux cleaned = -0.0111368 Jy
! Component: 900  -  total flux cleaned = -0.0108927 Jy
! Component: 950  -  total flux cleaned = -0.0107745 Jy
! Component: 1000  -  total flux cleaned = -0.0108912 Jy
! Component: 1050  -  total flux cleaned = -0.0109471 Jy
! Component: 1100  -  total flux cleaned = -0.0107774 Jy
! Component: 1150  -  total flux cleaned = -0.0107229 Jy
! Component: 1200  -  total flux cleaned = -0.0107762 Jy
! Component: 1250  -  total flux cleaned = -0.0106712 Jy
! Component: 1300  -  total flux cleaned = -0.0106713 Jy
! Component: 1350  -  total flux cleaned = -0.0106714 Jy
! Component: 1400  -  total flux cleaned = -0.01072 Jy
! Component: 1450  -  total flux cleaned = -0.0105744 Jy
! Component: 1500  -  total flux cleaned = -0.0104322 Jy
! Component: 1550  -  total flux cleaned = -0.0103385 Jy
! Component: 1600  -  total flux cleaned = -0.010155 Jy
! Component: 1650  -  total flux cleaned = -0.0101556 Jy
! Component: 1700  -  total flux cleaned = -0.00997952 Jy
! Component: 1750  -  total flux cleaned = -0.0100678 Jy
! Component: 1800  -  total flux cleaned = -0.0100256 Jy
! Component: 1850  -  total flux cleaned = -0.0100681 Jy
! Component: 1900  -  total flux cleaned = -0.0101086 Jy
! Component: 1950  -  total flux cleaned = -0.010149 Jy
! Component: 2000  -  total flux cleaned = -0.0101084 Jy
! Total flux subtracted in 2048 components = -0.010148 Jy
! Clean residual min=-0.002453 max=0.002424 Jy/beam
! Clean residual mean=0.000007 rms=0.000788 Jy/beam
! Combined flux in latest and established models = 1.15078 Jy
keep
! Adding 133 model components to the UV plane model.
! The established model now contains 228 components and 1.15078 Jy
![Exited script file: muppet]
wmap "J1658+4737_S_2006_02_16_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.312 x 9.723 at -37.95 degrees (North through East)
! Clean map  min=-0.0051095  max=1.0003 Jy/beam
! Writing clean map to FITS file: J1658+4737_S_2006_02_16_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.00028 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000777975 
device "J1658+4737_S_2006_02_16_yyk\_map.eps/VPS"
! Attempting to open device: 'J1658+4737_S_2006_02_16_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.233327 0.233327 0.466654 0.933309 1.86662 3.73323 7.46647 14.9329 29.8659 59.7318
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(peak_flux*1000)/1000
! peak= 1 
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.312 x 9.723 at -37.95 degrees (North through East)
! Clean map  min=-0.0051095  max=1.0003 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1658+4737_S_2006_02_16_yyk\_map.gif/gif"
! Attempting to open device: 'J1658+4737_S_2006_02_16_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1658+4737_S_2006_02_16_yyk_uvs.log closed on Wed Jul  5 13:02:29 2006