! Started logfile: J1153+8058_X_2006_02_16_yyk_uvs.log on Wed Jul  5 12:05:33 2006
obs J1153+8058_X_2006_02_16_yyk_uva.fits
! Reading UV FITS file: J1153+8058_X_2006_02_16_yyk_uva.fits
! AN table 1: 711 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.692921 visibilities/baseline/integration-bin.
! Found source: J1153+8058
! 
! 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 2421 lines of history.
! 
! Reading 88680 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 J1153+8058_X_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.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.30703 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.7497 mas, bmaj=1.388 mas, bpa=62.72 degrees
! Estimated noise=1.43382 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 = 1.03167 Jy
! Component: 100  -  total flux cleaned = 1.19861 Jy
! Total flux subtracted in 100 components = 1.19861 Jy
! Clean residual min=-0.061291 max=0.165500 Jy/beam
! Clean residual mean=0.000283 rms=0.016764 Jy/beam
! Combined flux in latest and established models = 1.19861 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.19861 Jy
! 
! Correcting IF 1.
!  A total of 53 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 53 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 53 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 53 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.456494Jy  sigma=6.725318
! Fit after  self-cal, rms=0.454810Jy  sigma=6.688504
! Inverting map and beam 
! Estimated beam: bmin=0.7502 mas, bmaj=1.387 mas, bpa=62.63 degrees
! Estimated noise=1.43285 mJy/beam.
! Added new window around map position (0.6, -2.8).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.18242 Jy
! Component: 100  -  total flux cleaned = 0.267617 Jy
! Total flux subtracted in 100 components = 0.267617 Jy
! Clean residual min=-0.046636 max=0.092986 Jy/beam
! Clean residual mean=0.000243 rms=0.012319 Jy/beam
! Combined flux in latest and established models = 1.46623 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 25 components and 1.46623 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377369Jy  sigma=5.154901
! Fit after  self-cal, rms=0.370811Jy  sigma=5.051497
! Inverting map 
! Added new window around map position (1.8, -1.2).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0967237 Jy
! Component: 100  -  total flux cleaned = 0.152339 Jy
! Total flux subtracted in 100 components = 0.152339 Jy
! Clean residual min=-0.038463 max=0.078140 Jy/beam
! Clean residual mean=0.000193 rms=0.010099 Jy/beam
! Combined flux in latest and established models = 1.61857 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 43 components and 1.61857 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346262Jy  sigma=4.498198
! Fit after  self-cal, rms=0.342791Jy  sigma=4.442475
! Inverting map 
! Added new window around map position (-1.8, 1.2).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0719233 Jy
! Component: 100  -  total flux cleaned = 0.119341 Jy
! Total flux subtracted in 100 components = 0.119341 Jy
! Clean residual min=-0.033685 max=0.047478 Jy/beam
! Clean residual mean=0.000149 rms=0.008751 Jy/beam
! Combined flux in latest and established models = 1.73791 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 56 components and 1.73791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328303Jy  sigma=4.119002
! Fit after  self-cal, rms=0.328694Jy  sigma=4.112105
! 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=0.9712 mas, bmaj=1.762 mas, bpa=63.87 degrees
! Estimated noise=0.974615 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.0563727 Jy
! Component: 100  -  total flux cleaned = 0.0914548 Jy
! Component: 150  -  total flux cleaned = 0.107702 Jy
! Component: 200  -  total flux cleaned = 0.11943 Jy
! Total flux subtracted in 200 components = 0.11943 Jy
! Clean residual min=-0.036503 max=0.038900 Jy/beam
! Clean residual mean=0.000147 rms=0.008747 Jy/beam
! Combined flux in latest and established models = 1.85734 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 72 components and 1.85734 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320491Jy  sigma=3.943119
! Fit after  self-cal, rms=0.320899Jy  sigma=3.939033
! 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.9712 x 1.762 at 63.87 degrees (North through East)
! Clean map  min=-0.034154  max=1.1741 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.982878
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.98     HN        1.00     KP        0.96     
!   LA        0.98     MK        0.99     NL        1.25     OV        0.96     
!   PT        1.01     SC        1.09     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.999147
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.98     HN        0.99     KP        0.90     
!   LA        0.94     MK        0.96     NL        1.22     OV        0.95     
!   PT        1.04     SC        1.07     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.992496
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.01     HN        0.91     KP        0.83     
!   LA        0.96     MK        1.00     NL        1.22     OV        0.97     
!   PT        1.07     SC        1.04     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.975519
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.05     HN        0.95     KP        0.87     
!   LA        0.95     MK        1.03     NL        1.15     OV        1.01     
!   PT        1.14     SC        1.10     
! 
! 
! Fit before self-cal, rms=0.320899Jy  sigma=3.939033
! Fit after  self-cal, rms=0.287410Jy  sigma=3.324982
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.287410Jy  sigma=3.324982
! Fit after  self-cal, rms=0.287515Jy  sigma=3.324874
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9768 mas, bmaj=1.746 mas, bpa=62.95 degrees
! Estimated noise=0.961834 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.0599774 Jy
! Component: 100  -  total flux cleaned = -0.0786781 Jy
! Component: 150  -  total flux cleaned = -0.0845267 Jy
! Component: 200  -  total flux cleaned = -0.0858441 Jy
! Total flux subtracted in 200 components = -0.0858441 Jy
! Clean residual min=-0.022056 max=0.023931 Jy/beam
! Clean residual mean=-0.000039 rms=0.004408 Jy/beam
! Combined flux in latest and established models = 1.77149 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 89 components and 1.77149 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276905Jy  sigma=3.113904
! Fit after  self-cal, rms=0.276902Jy  sigma=3.110649
! Inverting map 
! Added new window around map position (2, -4.8).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0207194 Jy
! Component: 100  -  total flux cleaned = 0.0231893 Jy
! Component: 150  -  total flux cleaned = 0.0231859 Jy
! Component: 200  -  total flux cleaned = 0.0218878 Jy
! Total flux subtracted in 200 components = 0.0218878 Jy
! Clean residual min=-0.018815 max=0.016787 Jy/beam
! Clean residual mean=0.000005 rms=0.003804 Jy/beam
! Combined flux in latest and established models = 1.79338 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 113 components and 1.79338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274528Jy  sigma=3.057618
! Fit after  self-cal, rms=0.274354Jy  sigma=3.055239
! 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.274354Jy  sigma=3.055239
! Fit after  self-cal, rms=0.140511Jy  sigma=1.711624
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)
! Added new window around map position (-1.4, -1.6).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0219873 Jy
! Component: 100  -  total flux cleaned = 0.0249162 Jy
! Component: 150  -  total flux cleaned = 0.0249024 Jy
! Component: 200  -  total flux cleaned = 0.0253171 Jy
! Total flux subtracted in 200 components = 0.0253171 Jy
! Clean residual min=-0.015269 max=0.013365 Jy/beam
! Clean residual mean=0.000019 rms=0.003113 Jy/beam
! Combined flux in latest and established models = 1.8187 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 138 components and 1.8187 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136913Jy  sigma=1.627902
! Fit after  self-cal, rms=0.117501Jy  sigma=1.483493
! 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.9768 x 1.746 at 62.95 degrees (North through East)
! Clean map  min=-0.014024  max=1.1801 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.117501Jy  sigma=1.483493
! Fit after  self-cal, rms=0.107996Jy  sigma=1.285238
! 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.107996Jy  sigma=1.285238
! Fit after  self-cal, rms=0.104954Jy  sigma=1.265896
! Inverting map and beam 
! Estimated beam: bmin=0.9733 mas, bmaj=1.742 mas, bpa=63.21 degrees
! Estimated noise=0.961678 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.0166684 Jy
! Component: 100  -  total flux cleaned = -0.0203725 Jy
! Component: 150  -  total flux cleaned = -0.0203811 Jy
! Component: 200  -  total flux cleaned = -0.0203842 Jy
! Total flux subtracted in 200 components = -0.0203841 Jy
! Clean residual min=-0.011239 max=0.008187 Jy/beam
! Clean residual mean=0.000016 rms=0.002084 Jy/beam
! Combined flux in latest and established models = 1.79832 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 161 components and 1.79832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.101385Jy  sigma=1.194974
! Fit after  self-cal, rms=0.100685Jy  sigma=1.189417
! 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.100685Jy  sigma=1.189417
! Fit after  self-cal, rms=0.098341Jy  sigma=1.152728
! 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.098341Jy  sigma=1.152728
! Fit after  self-cal, rms=0.098253Jy  sigma=1.151939
! Inverting map and beam 
! Estimated beam: bmin=0.9742 mas, bmaj=1.747 mas, bpa=63.28 degrees
! Estimated noise=0.960063 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.0106158 Jy
! Component: 100  -  total flux cleaned = -0.0112965 Jy
! Component: 150  -  total flux cleaned = -0.0118683 Jy
! Component: 200  -  total flux cleaned = -0.0118695 Jy
! Total flux subtracted in 200 components = -0.0118695 Jy
! Clean residual min=-0.009190 max=0.006445 Jy/beam
! Clean residual mean=0.000004 rms=0.001722 Jy/beam
! Combined flux in latest and established models = 1.78645 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 165 components and 1.78645 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.096258Jy  sigma=1.113087
! Fit after  self-cal, rms=0.096213Jy  sigma=1.111591
! 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.425 mas, bmaj=3.244 mas, bpa=59.98 degrees
! Estimated noise=1.22041 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.000619559 Jy
! Component: 100  -  total flux cleaned = 3.24235e-05 Jy
! Component: 150  -  total flux cleaned = -0.00027615 Jy
! Component: 200  -  total flux cleaned = -0.000130625 Jy
! Total flux subtracted in 200 components = -0.000130625 Jy
! Clean residual min=-0.007254 max=0.006353 Jy/beam
! Clean residual mean=0.000029 rms=0.002067 Jy/beam
! Combined flux in latest and established models = 1.78632 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 187 components and 1.78632 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.096028Jy  sigma=1.105704
! Fit after  self-cal, rms=0.095978Jy  sigma=1.104538
! 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.7503 mas, bmaj=1.386 mas, bpa=62.15 degrees
! Estimated noise=1.41586 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 1.03439 Jy
! Component: 100  -  total flux cleaned = 1.27295 Jy
! Component: 150  -  total flux cleaned = 1.40079 Jy
! Component: 200  -  total flux cleaned = 1.48355 Jy
! Total flux subtracted in 200 components = 1.48355 Jy
! Clean residual min=-0.018719 max=0.034508 Jy/beam
! Clean residual mean=0.000076 rms=0.005449 Jy/beam
! Combined flux in latest and established models = 1.48355 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 32 model components to the UV plane model.
! The established model now contains 32 components and 1.48355 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9742 mas, bmaj=1.747 mas, bpa=63.28 degrees
! Estimated noise=0.960063 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.0984692 Jy
! Component: 100  -  total flux cleaned = 0.15576 Jy
! Component: 150  -  total flux cleaned = 0.195483 Jy
! Component: 200  -  total flux cleaned = 0.224605 Jy
! Total flux subtracted in 200 components = 0.224605 Jy
! Clean residual min=-0.009635 max=0.014178 Jy/beam
! Clean residual mean=-0.000069 rms=0.002898 Jy/beam
! Combined flux in latest and established models = 1.70816 Jy
! Adding 73 model components to the UV plane model.
! The established model now contains 91 components and 1.70816 Jy
! Inverting map 
! Added new window around map position (2, 0.4).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0220667 Jy
! Component: 100  -  total flux cleaned = 0.0386696 Jy
! Component: 150  -  total flux cleaned = 0.0514397 Jy
! Component: 200  -  total flux cleaned = 0.0614281 Jy
! Total flux subtracted in 200 components = 0.0614281 Jy
! Clean residual min=-0.009005 max=0.007446 Jy/beam
! Clean residual mean=-0.000006 rms=0.001859 Jy/beam
! Combined flux in latest and established models = 1.76958 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 130 components and 1.76958 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.425 mas, bmaj=3.244 mas, bpa=59.98 degrees
! Estimated noise=1.22041 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.0121689 Jy
! Component: 100  -  total flux cleaned = 0.016766 Jy
! Component: 150  -  total flux cleaned = 0.0180605 Jy
! Component: 200  -  total flux cleaned = 0.018718 Jy
! Total flux subtracted in 200 components = 0.018718 Jy
! Clean residual min=-0.008390 max=0.007324 Jy/beam
! Clean residual mean=0.000039 rms=0.002181 Jy/beam
! Combined flux in latest and established models = 1.7883 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 166 components and 1.7883 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9742 mas, bmaj=1.747 mas, bpa=63.28 degrees
! Estimated noise=0.960063 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -2.86219e-05 Jy
! Component: 100  -  total flux cleaned = 0.000998627 Jy
! Component: 150  -  total flux cleaned = 0.00136338 Jy
! Component: 200  -  total flux cleaned = 0.00169929 Jy
! Total flux subtracted in 200 components = 0.00169929 Jy
! Clean residual min=-0.007839 max=0.006674 Jy/beam
! Clean residual mean=0.000018 rms=0.001601 Jy/beam
! Combined flux in latest and established models = 1.79 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 191 components and 1.79 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.094944Jy  sigma=1.091346
! Fit after  self-cal, rms=0.094865Jy  sigma=1.088846
wmodel J1153+8058_X_2006_02_16_yyk\_map.mod
! Writing 191 model components to file: J1153+8058_X_2006_02_16_yyk_map.mod
wobs J1153+8058_X_2006_02_16_yyk\_uvs.fits
! Writing UV FITS file: J1153+8058_X_2006_02_16_yyk_uvs.fits
wwins J1153+8058_X_2006_02_16_yyk\_map.win
! wwins: Wrote 7 windows to J1153+8058_X_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.00276597 Jy
! Component: 100  -  total flux cleaned = -0.0040557 Jy
! Component: 150  -  total flux cleaned = -0.00475882 Jy
! Component: 200  -  total flux cleaned = -0.00524166 Jy
! Component: 250  -  total flux cleaned = -0.00570523 Jy
! Component: 300  -  total flux cleaned = -0.00615464 Jy
! Component: 350  -  total flux cleaned = -0.00676466 Jy
! Component: 400  -  total flux cleaned = -0.00735835 Jy
! Component: 450  -  total flux cleaned = -0.00802177 Jy
! Component: 500  -  total flux cleaned = -0.00867066 Jy
! Component: 550  -  total flux cleaned = -0.00906839 Jy
! Component: 600  -  total flux cleaned = -0.00961479 Jy
! Component: 650  -  total flux cleaned = -0.0100731 Jy
! Component: 700  -  total flux cleaned = -0.0103736 Jy
! Component: 750  -  total flux cleaned = -0.0107441 Jy
! Component: 800  -  total flux cleaned = -0.0111781 Jy
! Component: 850  -  total flux cleaned = -0.0114615 Jy
! Component: 900  -  total flux cleaned = -0.0116011 Jy
! Component: 950  -  total flux cleaned = -0.0118074 Jy
! Component: 1000  -  total flux cleaned = -0.0119428 Jy
! Component: 1050  -  total flux cleaned = -0.0121447 Jy
! Component: 1100  -  total flux cleaned = -0.0122112 Jy
! Component: 1150  -  total flux cleaned = -0.0124075 Jy
! Component: 1200  -  total flux cleaned = -0.012664 Jy
! Component: 1250  -  total flux cleaned = -0.0128523 Jy
! Component: 1300  -  total flux cleaned = -0.0127898 Jy
! Component: 1350  -  total flux cleaned = -0.0129748 Jy
! Component: 1400  -  total flux cleaned = -0.012853 Jy
! Component: 1450  -  total flux cleaned = -0.0129143 Jy
! Component: 1500  -  total flux cleaned = -0.0132127 Jy
! Component: 1550  -  total flux cleaned = -0.0133301 Jy
! Component: 1600  -  total flux cleaned = -0.0134465 Jy
! Component: 1650  -  total flux cleaned = -0.0136179 Jy
! Component: 1700  -  total flux cleaned = -0.0135616 Jy
! Component: 1750  -  total flux cleaned = -0.0136742 Jy
! Component: 1800  -  total flux cleaned = -0.0139527 Jy
! Component: 1850  -  total flux cleaned = -0.0140636 Jy
! Component: 1900  -  total flux cleaned = -0.0141181 Jy
! Component: 1950  -  total flux cleaned = -0.0142801 Jy
! Component: 2000  -  total flux cleaned = -0.0144393 Jy
! Total flux subtracted in 2048 components = -0.014492 Jy
! Clean residual min=-0.002974 max=0.002900 Jy/beam
! Clean residual mean=0.000015 rms=0.001017 Jy/beam
! Combined flux in latest and established models = 1.77551 Jy
keep
! Adding 146 model components to the UV plane model.
! The established model now contains 337 components and 1.77551 Jy
![Exited script file: muppet]
wmap "J1153+8058_X_2006_02_16_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9742 x 1.747 at 63.28 degrees (North through East)
! Clean map  min=-0.006525  max=1.188 Jy/beam
! Writing clean map to FITS file: J1153+8058_X_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.188 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00101798 
device "J1153+8058_X_2006_02_16_yyk\_map.eps/VPS"
! Attempting to open device: 'J1153+8058_X_2006_02_16_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.257067 0.257067 0.514134 1.02827 2.05654 4.11307 8.22614 16.4523 32.9046 65.8091
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.003 
print "peak=",int(peak_flux*1000)/1000
! peak= 1.187 
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.9742 x 1.747 at 63.28 degrees (North through East)
! Clean map  min=-0.006525  max=1.188 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1153+8058_X_2006_02_16_yyk\_map.gif/gif"
! Attempting to open device: 'J1153+8058_X_2006_02_16_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1153+8058_X_2006_02_16_yyk_uvs.log closed on Wed Jul  5 12:06:02 2006