! Started logfile: J2202+4216_X_2006_02_14_yyk_uvs.log on Wed Jul  5 14:00:42 2006
obs J2202+4216_X_2006_02_14_yyk_uva.fits
! Reading UV FITS file: J2202+4216_X_2006_02_14_yyk_uva.fits
! AN table 1: 230 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.705507 visibilities/baseline/integration-bin.
! Found source: J2202+4216
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2301 lines of history.
! 
! Reading 29208 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 J2202+4216_X_2006_02_14_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.200x0.200 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)= 2.49002 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=0.7006 mas, bmaj=2.076 mas, bpa=22.8 degrees
! Estimated noise=2.25242 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 = 2.01676 Jy
! Component: 100  -  total flux cleaned = 2.53257 Jy
! Total flux subtracted in 100 components = 2.53257 Jy
! Clean residual min=-0.195065 max=0.244099 Jy/beam
! Clean residual mean=0.000196 rms=0.053004 Jy/beam
! Combined flux in latest and established models = 2.53257 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 2.53257 Jy
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.549038Jy  sigma=9.198711
! Fit after  self-cal, rms=0.515390Jy  sigma=8.733589
! Inverting map and beam 
! Estimated beam: bmin=0.7006 mas, bmaj=2.076 mas, bpa=22.8 degrees
! Estimated noise=2.25242 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=0.8372 mas, bmaj=2.277 mas, bpa=23.03 degrees
! Estimated noise=1.5896 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.321808 Jy
! Component: 100  -  total flux cleaned = 0.473396 Jy
! Component: 150  -  total flux cleaned = 0.564467 Jy
! Component: 200  -  total flux cleaned = 0.622016 Jy
! Total flux subtracted in 200 components = 0.622016 Jy
! Clean residual min=-0.101035 max=0.209033 Jy/beam
! Clean residual mean=-0.000224 rms=0.033966 Jy/beam
! Combined flux in latest and established models = 3.15459 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 26 components and 3.15459 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356766Jy  sigma=5.881622
! Fit after  self-cal, rms=0.348165Jy  sigma=5.782926
! Inverting map 
! Added new window around map position (-0.8, -3.2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.222324 Jy
! Component: 100  -  total flux cleaned = 0.311125 Jy
! Component: 150  -  total flux cleaned = 0.362832 Jy
! Component: 200  -  total flux cleaned = 0.402751 Jy
! Total flux subtracted in 200 components = 0.402751 Jy
! Clean residual min=-0.077132 max=0.069894 Jy/beam
! Clean residual mean=-0.000205 rms=0.017189 Jy/beam
! Combined flux in latest and established models = 3.55734 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 64 components and 3.55734 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237361Jy  sigma=3.744796
! Fit after  self-cal, rms=0.224914Jy  sigma=3.539546
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8372 x 2.277 at 23.03 degrees (North through East)
! Clean map  min=-0.05761  max=2.3934 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: 0.989466
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.02     HN        1.06     KP        0.99     
!   LA        1.02     MK        1.01     NL        1.03     OV        1.00     
!   PT        1.00*    SC        1.00     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.01103
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     HN        1.04     KP        0.92     
!   LA        0.97     MK        0.97     NL        1.00     OV        0.99     
!   PT        1.00*    SC        0.99     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.01042
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.05     HN        0.94     KP        0.85     
!   LA        0.99     MK        1.03     NL        0.99     OV        1.01     
!   PT        1.00*    SC        0.96     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.998156
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.08     HN        0.97     KP        0.89     
!   LA        0.97     MK        1.04     NL        1.00     OV        1.05     
!   PT        1.00*    SC        0.99     
! 
! 
! Fit before self-cal, rms=0.224914Jy  sigma=3.539546
! Fit after  self-cal, rms=0.151680Jy  sigma=2.440775
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.151680Jy  sigma=2.440775
! Fit after  self-cal, rms=0.151862Jy  sigma=2.440531
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8379 mas, bmaj=2.29 mas, bpa=23.12 degrees
! Estimated noise=1.58564 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.0457236 Jy
! Component: 100  -  total flux cleaned = 0.0639892 Jy
! Component: 150  -  total flux cleaned = 0.0783007 Jy
! Component: 200  -  total flux cleaned = 0.0897314 Jy
! Total flux subtracted in 200 components = 0.0897314 Jy
! Clean residual min=-0.028285 max=0.022690 Jy/beam
! Clean residual mean=-0.000056 rms=0.006219 Jy/beam
! Combined flux in latest and established models = 3.64707 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 90 components and 3.64707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139471Jy  sigma=2.171112
! Fit after  self-cal, rms=0.136360Jy  sigma=2.147860
! 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.136360Jy  sigma=2.147860
! Fit after  self-cal, rms=0.105163Jy  sigma=1.649783
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.00898764 Jy
! Component: 100  -  total flux cleaned = 0.0180196 Jy
! Component: 150  -  total flux cleaned = 0.0249272 Jy
! Component: 200  -  total flux cleaned = 0.0280546 Jy
! Total flux subtracted in 200 components = 0.0280546 Jy
! Clean residual min=-0.023361 max=0.021490 Jy/beam
! Clean residual mean=-0.000031 rms=0.005145 Jy/beam
! Combined flux in latest and established models = 3.67513 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 101 components and 3.67513 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.100502Jy  sigma=1.556823
! Fit after  self-cal, rms=0.096996Jy  sigma=1.509873
! 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: 0.8379 x 2.29 at 23.12 degrees (North through East)
! Clean map  min=-0.021867  max=2.39 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.096996Jy  sigma=1.509873
! Fit after  self-cal, rms=0.084676Jy  sigma=1.260885
! 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.084676Jy  sigma=1.260885
! Fit after  self-cal, rms=0.084498Jy  sigma=1.258450
! Inverting map and beam 
! Estimated beam: bmin=0.8394 mas, bmaj=2.294 mas, bpa=23.18 degrees
! Estimated noise=1.58249 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.0150405 Jy
! Component: 100  -  total flux cleaned = -0.014154 Jy
! Component: 150  -  total flux cleaned = -0.012593 Jy
! Component: 200  -  total flux cleaned = -0.0106491 Jy
! Total flux subtracted in 200 components = -0.0106491 Jy
! Clean residual min=-0.017473 max=0.017593 Jy/beam
! Clean residual mean=-0.000035 rms=0.004023 Jy/beam
! Combined flux in latest and established models = 3.66448 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 111 components and 3.66448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.080483Jy  sigma=1.179411
! Fit after  self-cal, rms=0.079563Jy  sigma=1.167109
! 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.079563Jy  sigma=1.167109
! Fit after  self-cal, rms=0.077927Jy  sigma=1.137540
! 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.077927Jy  sigma=1.137540
! Fit after  self-cal, rms=0.077925Jy  sigma=1.137515
! Inverting map and beam 
! Estimated beam: bmin=0.8406 mas, bmaj=2.298 mas, bpa=23.22 degrees
! Estimated noise=1.58046 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.0123063 Jy
! Component: 100  -  total flux cleaned = -0.0120178 Jy
! Component: 150  -  total flux cleaned = -0.0111355 Jy
! Component: 200  -  total flux cleaned = -0.0109093 Jy
! Total flux subtracted in 200 components = -0.0109093 Jy
! Clean residual min=-0.014316 max=0.015655 Jy/beam
! Clean residual mean=-0.000035 rms=0.003382 Jy/beam
! Combined flux in latest and established models = 3.65357 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 120 components and 3.65357 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.075523Jy  sigma=1.087802
! Fit after  self-cal, rms=0.074867Jy  sigma=1.079144
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.877 mas, bmaj=2.635 mas, bpa=18.02 degrees
! Estimated noise=2.0908 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.00111083 Jy
! Component: 100  -  total flux cleaned = 0.0018758 Jy
! Component: 150  -  total flux cleaned = 0.00394876 Jy
! Component: 200  -  total flux cleaned = 0.00543192 Jy
! Total flux subtracted in 200 components = 0.00543192 Jy
! Clean residual min=-0.011034 max=0.014231 Jy/beam
! Clean residual mean=-0.000058 rms=0.003858 Jy/beam
! Combined flux in latest and established models = 3.659 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 140 components and 3.659 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.074403Jy  sigma=1.065129
! Fit after  self-cal, rms=0.073921Jy  sigma=1.058496
! 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=0.7018 mas, bmaj=2.084 mas, bpa=22.83 degrees
! Estimated noise=2.24784 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 2.04382 Jy
! Component: 100  -  total flux cleaned = 2.563 Jy
! Component: 150  -  total flux cleaned = 2.81643 Jy
! Component: 200  -  total flux cleaned = 2.98231 Jy
! Total flux subtracted in 200 components = 2.98231 Jy
! Clean residual min=-0.052634 max=0.077356 Jy/beam
! Clean residual mean=0.000036 rms=0.018285 Jy/beam
! Combined flux in latest and established models = 2.98231 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 27 model components to the UV plane model.
! The established model now contains 27 components and 2.98231 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8406 mas, bmaj=2.298 mas, bpa=23.22 degrees
! Estimated noise=1.58046 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.159714 Jy
! Component: 100  -  total flux cleaned = 0.260586 Jy
! Component: 150  -  total flux cleaned = 0.332708 Jy
! Component: 200  -  total flux cleaned = 0.387635 Jy
! Total flux subtracted in 200 components = 0.387635 Jy
! Clean residual min=-0.026437 max=0.032150 Jy/beam
! Clean residual mean=0.000004 rms=0.010256 Jy/beam
! Combined flux in latest and established models = 3.36994 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 72 components and 3.36994 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.877 mas, bmaj=2.635 mas, bpa=18.02 degrees
! Estimated noise=2.0908 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.0837941 Jy
! Component: 100  -  total flux cleaned = 0.135825 Jy
! Component: 150  -  total flux cleaned = 0.172676 Jy
! Component: 200  -  total flux cleaned = 0.200147 Jy
! Total flux subtracted in 200 components = 0.200147 Jy
! Clean residual min=-0.021591 max=0.023004 Jy/beam
! Clean residual mean=-0.000035 rms=0.007457 Jy/beam
! Combined flux in latest and established models = 3.57009 Jy
! Adding 79 model components to the UV plane model.
! The established model now contains 130 components and 3.57009 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8406 mas, bmaj=2.298 mas, bpa=23.22 degrees
! Estimated noise=1.58046 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00590766 Jy
! Component: 100  -  total flux cleaned = 0.0176849 Jy
! Component: 150  -  total flux cleaned = 0.0275182 Jy
! Component: 200  -  total flux cleaned = 0.0342945 Jy
! Total flux subtracted in 200 components = 0.0342945 Jy
! Clean residual min=-0.013924 max=0.013898 Jy/beam
! Clean residual mean=-0.000008 rms=0.003503 Jy/beam
! Combined flux in latest and established models = 3.60438 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 155 components and 3.60438 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.076144Jy  sigma=1.101096
! Fit after  self-cal, rms=0.073732Jy  sigma=1.062314
wmodel J2202+4216_X_2006_02_14_yyk\_map.mod
! Writing 155 model components to file: J2202+4216_X_2006_02_14_yyk_map.mod
wobs J2202+4216_X_2006_02_14_yyk\_uvs.fits
! Writing UV FITS file: J2202+4216_X_2006_02_14_yyk_uvs.fits
wwins J2202+4216_X_2006_02_14_yyk\_map.win
! wwins: Wrote 2 windows to J2202+4216_X_2006_02_14_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.000689434 Jy
! Component: 100  -  total flux cleaned = -0.000654556 Jy
! Component: 150  -  total flux cleaned = -0.00206725 Jy
! Component: 200  -  total flux cleaned = -0.0030632 Jy
! Component: 250  -  total flux cleaned = -0.00369061 Jy
! Component: 300  -  total flux cleaned = -0.00457891 Jy
! Component: 350  -  total flux cleaned = -0.00457885 Jy
! Component: 400  -  total flux cleaned = -0.00524864 Jy
! Component: 450  -  total flux cleaned = -0.00589011 Jy
! Component: 500  -  total flux cleaned = -0.00613673 Jy
! Component: 550  -  total flux cleaned = -0.00661456 Jy
! Component: 600  -  total flux cleaned = -0.00696176 Jy
! Component: 650  -  total flux cleaned = -0.00751429 Jy
! Component: 700  -  total flux cleaned = -0.00772482 Jy
! Component: 750  -  total flux cleaned = -0.00772483 Jy
! Component: 800  -  total flux cleaned = -0.00792332 Jy
! Component: 850  -  total flux cleaned = -0.00792506 Jy
! Component: 900  -  total flux cleaned = -0.008015 Jy
! Component: 950  -  total flux cleaned = -0.00801625 Jy
! Component: 1000  -  total flux cleaned = -0.00836019 Jy
! Component: 1050  -  total flux cleaned = -0.00852616 Jy
! Component: 1100  -  total flux cleaned = -0.00892668 Jy
! Component: 1150  -  total flux cleaned = -0.00900633 Jy
! Component: 1200  -  total flux cleaned = -0.00930966 Jy
! Component: 1250  -  total flux cleaned = -0.00953155 Jy
! Component: 1300  -  total flux cleaned = -0.00945701 Jy
! Component: 1350  -  total flux cleaned = -0.00938593 Jy
! Component: 1400  -  total flux cleaned = -0.00931824 Jy
! Component: 1450  -  total flux cleaned = -0.00931749 Jy
! Component: 1500  -  total flux cleaned = -0.00912175 Jy
! Component: 1550  -  total flux cleaned = -0.00880814 Jy
! Component: 1600  -  total flux cleaned = -0.00905405 Jy
! Component: 1650  -  total flux cleaned = -0.00905362 Jy
! Component: 1700  -  total flux cleaned = -0.0090548 Jy
! Component: 1750  -  total flux cleaned = -0.00928371 Jy
! Component: 1800  -  total flux cleaned = -0.00899981 Jy
! Component: 1850  -  total flux cleaned = -0.00888886 Jy
! Component: 1900  -  total flux cleaned = -0.00867253 Jy
! Component: 1950  -  total flux cleaned = -0.00856602 Jy
! Component: 2000  -  total flux cleaned = -0.00846148 Jy
! Total flux subtracted in 2048 components = -0.00825626 Jy
! Clean residual min=-0.003078 max=0.002740 Jy/beam
! Clean residual mean=-0.000001 rms=0.001004 Jy/beam
! Combined flux in latest and established models = 3.59613 Jy
keep
! Adding 133 model components to the UV plane model.
! The established model now contains 288 components and 3.59613 Jy
![Exited script file: muppet]
wmap "J2202+4216_X_2006_02_14_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8406 x 2.298 at 23.22 degrees (North through East)
! Clean map  min=-0.011407  max=2.3885 Jy/beam
! Writing clean map to FITS file: J2202+4216_X_2006_02_14_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.38847 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000991642 
device "J2202+4216_X_2006_02_14_yyk\_map.eps/VPS"
! Attempting to open device: 'J2202+4216_X_2006_02_14_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.124554 0.124554 0.249107 0.498215 0.99643 1.99286 3.98572 7.97144 15.9429 31.8858 63.7715
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(peak_flux*1000)/1000
! peak= 2.388 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8406 x 2.298 at 23.22 degrees (North through East)
! Clean map  min=-0.011407  max=2.3885 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2202+4216_X_2006_02_14_yyk\_map.gif/gif"
! Attempting to open device: 'J2202+4216_X_2006_02_14_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2202+4216_X_2006_02_14_yyk_uvs.log closed on Wed Jul  5 14:01:12 2006