! Started logfile: J0017+8135_X_2006_02_23_yyk_uvs.log on Wed Jul  5 10:59:24 2006
obs J0017+8135_X_2006_02_23_yyk_uva.fits
! Reading UV FITS file: J0017+8135_X_2006_02_23_yyk_uva.fits
! AN table 1: 820 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.811328 visibilities/baseline/integration-bin.
! Found source: J0017+8135
! 
! 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 2397 lines of history.
! 
! Reading 119752 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 J0017+8135_X_2006_02_23_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)= 1.0244 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.811 mas, bmaj=1.139 mas, bpa=10.24 degrees
! Estimated noise=1.31413 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.817448 Jy
! Component: 100  -  total flux cleaned = 0.999627 Jy
! Total flux subtracted in 100 components = 0.999627 Jy
! Clean residual min=-0.027728 max=0.054328 Jy/beam
! Clean residual mean=0.000127 rms=0.007066 Jy/beam
! Combined flux in latest and established models = 0.999627 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.999627 Jy
! 
! Correcting IF 1.
!  A total of 24 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 24 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.282080Jy  sigma=3.441513
! Fit after  self-cal, rms=0.281524Jy  sigma=3.427994
! Inverting map and beam 
! Estimated beam: bmin=0.811 mas, bmaj=1.139 mas, bpa=10.24 degrees
! Estimated noise=1.31413 mJy/beam.
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0755529 Jy
! Component: 100  -  total flux cleaned = 0.113752 Jy
! Total flux subtracted in 100 components = 0.113752 Jy
! Clean residual min=-0.022117 max=0.021683 Jy/beam
! Clean residual mean=0.000107 rms=0.005305 Jy/beam
! Combined flux in latest and established models = 1.11338 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 27 components and 1.11338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264773Jy  sigma=2.945994
! Fit after  self-cal, rms=0.265027Jy  sigma=2.944026
! 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=1.075 mas, bmaj=1.502 mas, bpa=4.446 degrees
! Estimated noise=0.823855 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.0255859 Jy
! Component: 100  -  total flux cleaned = 0.0341855 Jy
! Component: 150  -  total flux cleaned = 0.0355491 Jy
! Component: 200  -  total flux cleaned = 0.036225 Jy
! Total flux subtracted in 200 components = 0.036225 Jy
! Clean residual min=-0.017092 max=0.016445 Jy/beam
! Clean residual mean=0.000244 rms=0.003976 Jy/beam
! Combined flux in latest and established models = 1.1496 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 33 components and 1.1496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263960Jy  sigma=2.904815
! Fit after  self-cal, rms=0.264036Jy  sigma=2.904363
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.075 x 1.502 at 4.446 degrees (North through East)
! Clean map  min=-0.016255  max=0.98976 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.987606
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.03     HN        1.02     KP        0.98     
!   LA        0.99     MK        0.97     NL        1.00     OV        0.98     
!   PT        1.01     SC        1.20     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.0091
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.03     HN        1.00     KP        0.91     
!   LA        0.95     MK        0.94     NL        0.98     OV        0.97     
!   PT        1.04     SC        1.12     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.997425
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.06     HN        0.92     KP        0.84     
!   LA        0.98     MK        0.99     NL        0.97     OV        1.00     
!   PT        1.07     SC        1.11     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.973296
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.10     HN        0.96     KP        0.88     
!   LA        0.97     MK        1.01     NL        0.97     OV        1.04     
!   PT        1.14     SC        1.18     
! 
! 
! Fit before self-cal, rms=0.264036Jy  sigma=2.904363
! Fit after  self-cal, rms=0.265709Jy  sigma=2.553223
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.265709Jy  sigma=2.553223
! Fit after  self-cal, rms=0.265699Jy  sigma=2.553141
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.091 mas, bmaj=1.526 mas, bpa=6.479 degrees
! Estimated noise=0.811996 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.0161951 Jy
! Component: 100  -  total flux cleaned = -0.0206662 Jy
! Component: 150  -  total flux cleaned = -0.0209399 Jy
! Component: 200  -  total flux cleaned = -0.0212636 Jy
! Total flux subtracted in 200 components = -0.0212636 Jy
! Clean residual min=-0.006406 max=0.006526 Jy/beam
! Clean residual mean=-0.000027 rms=0.001544 Jy/beam
! Combined flux in latest and established models = 1.12834 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 41 components and 1.12834 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264550Jy  sigma=2.534394
! Fit after  self-cal, rms=0.264666Jy  sigma=2.534195
! 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.264666Jy  sigma=2.534195
! Fit after  self-cal, rms=0.152156Jy  sigma=1.464768
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.00266263 Jy
! Component: 100  -  total flux cleaned = 0.00173153 Jy
! Component: 150  -  total flux cleaned = 0.000960873 Jy
! Component: 200  -  total flux cleaned = 0.000337512 Jy
! Total flux subtracted in 200 components = 0.000337512 Jy
! Clean residual min=-0.006193 max=0.007131 Jy/beam
! Clean residual mean=-0.000029 rms=0.001566 Jy/beam
! Combined flux in latest and established models = 1.12868 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 43 components and 1.12868 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151582Jy  sigma=1.450386
! Fit after  self-cal, rms=0.135096Jy  sigma=1.336046
! Inverting map 
! Added new window around map position (-1, -6.2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00719738 Jy
! Component: 100  -  total flux cleaned = 0.00897294 Jy
! Component: 150  -  total flux cleaned = 0.0102692 Jy
! Component: 200  -  total flux cleaned = 0.0110881 Jy
! Total flux subtracted in 200 components = 0.0110881 Jy
! Clean residual min=-0.005836 max=0.005433 Jy/beam
! Clean residual mean=-0.000003 rms=0.001429 Jy/beam
! Combined flux in latest and established models = 1.13977 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 59 components and 1.13977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.134384Jy  sigma=1.319937
! Fit after  self-cal, rms=0.131957Jy  sigma=1.304082
! 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: 1.091 x 1.526 at 6.479 degrees (North through East)
! Clean map  min=-0.0055211  max=0.99101 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.131957Jy  sigma=1.304082
! Fit after  self-cal, rms=0.124705Jy  sigma=1.150485
! 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.124705Jy  sigma=1.150485
! Fit after  self-cal, rms=0.124323Jy  sigma=1.147315
! Inverting map and beam 
! Estimated beam: bmin=1.088 mas, bmaj=1.519 mas, bpa=5.206 degrees
! Estimated noise=0.809891 mJy/beam.
! Added new window around map position (-1, -10.2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00338892 Jy
! Component: 100  -  total flux cleaned = 0.00519931 Jy
! Component: 150  -  total flux cleaned = 0.00595539 Jy
! Component: 200  -  total flux cleaned = 0.00614192 Jy
! Total flux subtracted in 200 components = 0.00614192 Jy
! Clean residual min=-0.003876 max=0.003460 Jy/beam
! Clean residual mean=0.000016 rms=0.000864 Jy/beam
! Combined flux in latest and established models = 1.14591 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 80 components and 1.14591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124037Jy  sigma=1.140058
! Fit after  self-cal, rms=0.124003Jy  sigma=1.138925
! 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.124003Jy  sigma=1.138925
! Fit after  self-cal, rms=0.121940Jy  sigma=1.095301
! 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.121940Jy  sigma=1.095301
! Fit after  self-cal, rms=0.121941Jy  sigma=1.095152
! Inverting map and beam 
! Estimated beam: bmin=1.09 mas, bmaj=1.52 mas, bpa=4.968 degrees
! Estimated noise=0.809893 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 8.14878e-05 Jy
! Component: 100  -  total flux cleaned = 0.00046217 Jy
! Component: 150  -  total flux cleaned = 0.000719083 Jy
! Component: 200  -  total flux cleaned = 0.000796405 Jy
! Total flux subtracted in 200 components = 0.000796405 Jy
! Clean residual min=-0.003286 max=0.003068 Jy/beam
! Clean residual mean=0.000017 rms=0.000814 Jy/beam
! Combined flux in latest and established models = 1.1467 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 90 components and 1.1467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121878Jy  sigma=1.092093
! Fit after  self-cal, rms=0.121894Jy  sigma=1.091857
! 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=2.387 mas, bmaj=3.229 mas, bpa=-5.888 degrees
! Estimated noise=1.0041 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.000454755 Jy
! Component: 100  -  total flux cleaned = 0.00028077 Jy
! Component: 150  -  total flux cleaned = 0.000326161 Jy
! Component: 200  -  total flux cleaned = 0.000324846 Jy
! Total flux subtracted in 200 components = 0.000324846 Jy
! Clean residual min=-0.003083 max=0.003073 Jy/beam
! Clean residual mean=0.000035 rms=0.000880 Jy/beam
! Combined flux in latest and established models = 1.14703 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 110 components and 1.14703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121944Jy  sigma=1.091514
! Fit after  self-cal, rms=0.121934Jy  sigma=1.091390
! 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.8188 mas, bmaj=1.141 mas, bpa=10.45 degrees
! Estimated noise=1.30568 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.82309 Jy
! Component: 100  -  total flux cleaned = 0.996957 Jy
! Component: 150  -  total flux cleaned = 1.06366 Jy
! Component: 200  -  total flux cleaned = 1.09619 Jy
! Total flux subtracted in 200 components = 1.09619 Jy
! Clean residual min=-0.008054 max=0.013221 Jy/beam
! Clean residual mean=-0.000001 rms=0.002092 Jy/beam
! Combined flux in latest and established models = 1.09619 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 23 model components to the UV plane model.
! The established model now contains 23 components and 1.09619 Jy
! Inverting map and beam 
! Estimated beam: bmin=1.09 mas, bmaj=1.52 mas, bpa=4.968 degrees
! Estimated noise=0.809893 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.0202812 Jy
! Component: 100  -  total flux cleaned = 0.0304962 Jy
! Component: 150  -  total flux cleaned = 0.0375023 Jy
! Component: 200  -  total flux cleaned = 0.0426412 Jy
! Total flux subtracted in 200 components = 0.0426412 Jy
! Clean residual min=-0.003415 max=0.003997 Jy/beam
! Clean residual mean=0.000003 rms=0.000896 Jy/beam
! Combined flux in latest and established models = 1.13883 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 47 components and 1.13883 Jy
! Inverting map 
! Added new window around map position (2, -3.2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00474481 Jy
! Component: 100  -  total flux cleaned = 0.0064848 Jy
! Component: 150  -  total flux cleaned = 0.0074134 Jy
! Component: 200  -  total flux cleaned = 0.00815626 Jy
! Total flux subtracted in 200 components = 0.00815626 Jy
! Clean residual min=-0.003390 max=0.002925 Jy/beam
! Clean residual mean=0.000019 rms=0.000823 Jy/beam
! Combined flux in latest and established models = 1.14698 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 57 components and 1.14698 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=2.387 mas, bmaj=3.229 mas, bpa=-5.888 degrees
! Estimated noise=1.0041 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.0016684 Jy
! Component: 100  -  total flux cleaned = 0.00171285 Jy
! Component: 150  -  total flux cleaned = 0.00182908 Jy
! Component: 200  -  total flux cleaned = 0.00186348 Jy
! Total flux subtracted in 200 components = 0.00186348 Jy
! Clean residual min=-0.002853 max=0.002798 Jy/beam
! Clean residual mean=0.000043 rms=0.000842 Jy/beam
! Combined flux in latest and established models = 1.14885 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 76 components and 1.14885 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=1.09 mas, bmaj=1.52 mas, bpa=4.968 degrees
! Estimated noise=0.809893 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000136521 Jy
! Component: 100  -  total flux cleaned = 5.28231e-05 Jy
! Component: 150  -  total flux cleaned = 0.000139818 Jy
! Component: 200  -  total flux cleaned = 0.000308416 Jy
! Total flux subtracted in 200 components = 0.000308416 Jy
! Clean residual min=-0.003314 max=0.002913 Jy/beam
! Clean residual mean=0.000023 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 1.14916 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 86 components and 1.14916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.122330Jy  sigma=1.100084
! Fit after  self-cal, rms=0.122405Jy  sigma=1.099305
wmodel J0017+8135_X_2006_02_23_yyk\_map.mod
! Writing 86 model components to file: J0017+8135_X_2006_02_23_yyk_map.mod
wobs J0017+8135_X_2006_02_23_yyk\_uvs.fits
! Writing UV FITS file: J0017+8135_X_2006_02_23_yyk_uvs.fits
wwins J0017+8135_X_2006_02_23_yyk\_map.win
! wwins: Wrote 4 windows to J0017+8135_X_2006_02_23_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.00124967 Jy
! Component: 100  -  total flux cleaned = -0.0016888 Jy
! Component: 150  -  total flux cleaned = -0.00200082 Jy
! Component: 200  -  total flux cleaned = -0.00230187 Jy
! Component: 250  -  total flux cleaned = -0.00259144 Jy
! Component: 300  -  total flux cleaned = -0.00282659 Jy
! Component: 350  -  total flux cleaned = -0.00305575 Jy
! Component: 400  -  total flux cleaned = -0.00309957 Jy
! Component: 450  -  total flux cleaned = -0.00309941 Jy
! Component: 500  -  total flux cleaned = -0.00318448 Jy
! Component: 550  -  total flux cleaned = -0.00326792 Jy
! Component: 600  -  total flux cleaned = -0.00322509 Jy
! Component: 650  -  total flux cleaned = -0.00322465 Jy
! Component: 700  -  total flux cleaned = -0.00342679 Jy
! Component: 750  -  total flux cleaned = -0.00338611 Jy
! Component: 800  -  total flux cleaned = -0.00346531 Jy
! Component: 850  -  total flux cleaned = -0.00350549 Jy
! Component: 900  -  total flux cleaned = -0.00354492 Jy
! Component: 950  -  total flux cleaned = -0.00365977 Jy
! Component: 1000  -  total flux cleaned = -0.00362249 Jy
! Component: 1050  -  total flux cleaned = -0.00354772 Jy
! Component: 1100  -  total flux cleaned = -0.0032177 Jy
! Component: 1150  -  total flux cleaned = -0.00318178 Jy
! Component: 1200  -  total flux cleaned = -0.0030023 Jy
! Component: 1250  -  total flux cleaned = -0.00275306 Jy
! Component: 1300  -  total flux cleaned = -0.00257635 Jy
! Component: 1350  -  total flux cleaned = -0.00233204 Jy
! Component: 1400  -  total flux cleaned = -0.0020898 Jy
! Component: 1450  -  total flux cleaned = -0.00188407 Jy
! Component: 1500  -  total flux cleaned = -0.00164631 Jy
! Component: 1550  -  total flux cleaned = -0.00147771 Jy
! Component: 1600  -  total flux cleaned = -0.00137686 Jy
! Component: 1650  -  total flux cleaned = -0.00111185 Jy
! Component: 1700  -  total flux cleaned = -0.00104534 Jy
! Component: 1750  -  total flux cleaned = -0.000718478 Jy
! Component: 1800  -  total flux cleaned = -0.000556372 Jy
! Component: 1850  -  total flux cleaned = -0.000492024 Jy
! Component: 1900  -  total flux cleaned = -0.000172772 Jy
! Component: 1950  -  total flux cleaned = -4.60004e-05 Jy
! Component: 2000  -  total flux cleaned = 8.01871e-05 Jy
! Total flux subtracted in 2048 components = 0.000268073 Jy
! Clean residual min=-0.001996 max=0.001810 Jy/beam
! Clean residual mean=0.000008 rms=0.000556 Jy/beam
! Combined flux in latest and established models = 1.14942 Jy
keep
! Adding 144 model components to the UV plane model.
! The established model now contains 230 components and 1.14942 Jy
![Exited script file: muppet]
wmap "J0017+8135_X_2006_02_23_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.09 x 1.52 at 4.968 degrees (North through East)
! Clean map  min=-0.0024241  max=0.99053 Jy/beam
! Writing clean map to FITS file: J0017+8135_X_2006_02_23_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.990525 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000555082 
device "J0017+8135_X_2006_02_23_yyk\_map.eps/VPS"
! Attempting to open device: 'J0017+8135_X_2006_02_23_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.168118 0.168118 0.336235 0.67247 1.34494 2.68988 5.37976 10.7595 21.5191 43.0381 86.0762
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.99 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.09 x 1.52 at 4.968 degrees (North through East)
! Clean map  min=-0.0024241  max=0.99053 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0017+8135_X_2006_02_23_yyk\_map.gif/gif"
! Attempting to open device: 'J0017+8135_X_2006_02_23_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0017+8135_X_2006_02_23_yyk_uvs.log closed on Wed Jul  5 11:00:00 2006