! Started logfile: J0240-2309_X_1997_07_02_yyk_uvs.log on Mon Jan  8 02:30:48 2007
obs J0240-2309_X_1997_07_02_yyk_uva.fits
! Reading UV FITS file: J0240-2309_X_1997_07_02_yyk_uva.fits
! AN table 1: 140 integrations on 45 of 45 possible baselines.
! Apparent sampling: 1.73079 visibilities/baseline/integration-bin.
! Found source: J0240-2309
! 
! 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.15447e+09        8e+06          1        8e+06
!  02        2  8.23447e+09        8e+06          1        8e+06
!  03        3  8.41447e+09        8e+06          1        8e+06
!  04        4  8.55447e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 753 lines of history.
! 
! Reading 43616 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 J0240-2309_X_1997_07_02_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.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.763672 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.762 mas, bmaj=2.179 mas, bpa=4.42 degrees
! Estimated noise=977.746 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.451248 Jy
! Component: 100  -  total flux cleaned = 0.648865 Jy
! Total flux subtracted in 100 components = 0.648865 Jy
! Clean residual min=-0.060106 max=0.129677 Jy/beam
! Clean residual mean=0.000291 rms=0.023096 Jy/beam
! Combined flux in latest and established models = 0.648865 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 34 components and 0.648865 Jy
! 
! Correcting IF 1.
!  A total of 107 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 107 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 107 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 107 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.463878Jy  sigma=0.004242
! Fit after  self-cal, rms=0.463131Jy  sigma=0.004229
! Inverting map and beam 
! Estimated beam: bmin=0.762 mas, bmaj=2.179 mas, bpa=4.42 degrees
! Estimated noise=978.115 mJy/beam.
! Added new window around map position (-7.8, -6).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.160712 Jy
! Component: 100  -  total flux cleaned = 0.254911 Jy
! Total flux subtracted in 100 components = 0.254911 Jy
! Clean residual min=-0.044926 max=0.094217 Jy/beam
! Clean residual mean=0.000161 rms=0.018177 Jy/beam
! Combined flux in latest and established models = 0.903776 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 46 components and 0.903776 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.407870Jy  sigma=0.003626
! Fit after  self-cal, rms=0.402557Jy  sigma=0.003556
! 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.9603 mas, bmaj=2.702 mas, bpa=0.8083 degrees
! Estimated noise=534.367 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.151165 Jy
! Component: 100  -  total flux cleaned = 0.237486 Jy
! Component: 150  -  total flux cleaned = 0.291223 Jy
! Component: 200  -  total flux cleaned = 0.323241 Jy
! Total flux subtracted in 200 components = 0.323241 Jy
! Clean residual min=-0.052268 max=0.122465 Jy/beam
! Clean residual mean=0.000158 rms=0.022069 Jy/beam
! Combined flux in latest and established models = 1.22702 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 73 components and 1.22702 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373586Jy  sigma=0.003137
! Fit after  self-cal, rms=0.369933Jy  sigma=0.003087
! 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.9603 x 2.702 at 0.8083 degrees (North through East)
! Clean map  min=-0.051629  max=0.4102 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.825337
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.87     HN        2.19     KP        1.02     
!   LA        0.89     MK        1.71     NL        1.45     OV        1.01     
!   PT        0.87     SC        1.17     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.830341
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.86     HN        2.14     KP        1.02     
!   LA        0.87     MK        1.65     NL        1.44     OV        1.08     
!   PT        0.83     SC        1.22     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.863208
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.90     HN        2.08     KP        1.03     
!   LA        0.90     MK        1.10     NL        1.46     OV        1.02     
!   PT        0.90     SC        1.24     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.839235
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.88     HN        2.28     KP        1.03     
!   LA        0.91     MK        1.06     NL        1.53     OV        1.06     
!   PT        0.93     SC        1.25     
! 
! 
! Fit before self-cal, rms=0.369933Jy  sigma=0.003087
! Fit after  self-cal, rms=0.457272Jy  sigma=0.003914
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.457272Jy  sigma=0.003914
! Fit after  self-cal, rms=0.458228Jy  sigma=0.003911
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.18 mas, bmaj=3.164 mas, bpa=4.079 degrees
! Estimated noise=406.77 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.217503 Jy
! Component: 100  -  total flux cleaned = -0.281039 Jy
! Component: 150  -  total flux cleaned = -0.309573 Jy
! Component: 200  -  total flux cleaned = -0.3223 Jy
! Total flux subtracted in 200 components = -0.3223 Jy
! Clean residual min=-0.026375 max=0.049245 Jy/beam
! Clean residual mean=0.000085 rms=0.010356 Jy/beam
! Combined flux in latest and established models = 0.904717 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 47 model components to the UV plane model.
! The established model now contains 104 components and 0.904717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412722Jy  sigma=0.002611
! Fit after  self-cal, rms=0.412681Jy  sigma=0.002586
! 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.412681Jy  sigma=0.002586
! Fit after  self-cal, rms=0.364232Jy  sigma=0.002351
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 (-3, -0.4).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0560842 Jy
! Component: 100  -  total flux cleaned = 0.0637745 Jy
! Component: 150  -  total flux cleaned = 0.0675914 Jy
! Component: 200  -  total flux cleaned = 0.0705863 Jy
! Total flux subtracted in 200 components = 0.0705863 Jy
! Clean residual min=-0.024005 max=0.023970 Jy/beam
! Clean residual mean=0.000053 rms=0.006689 Jy/beam
! Combined flux in latest and established models = 0.975303 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 122 components and 0.975303 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353522Jy  sigma=0.002193
! Fit after  self-cal, rms=0.348251Jy  sigma=0.002151
! 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.18 x 3.164 at 4.079 degrees (North through East)
! Clean map  min=-0.018221  max=0.32652 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.348251Jy  sigma=0.002151
! Fit after  self-cal, rms=0.234260Jy  sigma=0.002056
! 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.234260Jy  sigma=0.002056
! Fit after  self-cal, rms=0.233410Jy  sigma=0.002050
! Inverting map and beam 
! Estimated beam: bmin=1.177 mas, bmaj=3.284 mas, bpa=6.91 degrees
! Estimated noise=389.938 mJy/beam.
! Added new window around map position (5.4, 3.8).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0273221 Jy
! Component: 100  -  total flux cleaned = 0.0350464 Jy
! Component: 150  -  total flux cleaned = 0.0405219 Jy
! Component: 200  -  total flux cleaned = 0.0444958 Jy
! Total flux subtracted in 200 components = 0.0444958 Jy
! Clean residual min=-0.015134 max=0.016087 Jy/beam
! Clean residual mean=0.000003 rms=0.004337 Jy/beam
! Combined flux in latest and established models = 1.0198 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 143 components and 1.0198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225295Jy  sigma=0.001955
! Fit after  self-cal, rms=0.224975Jy  sigma=0.001947
! 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.224975Jy  sigma=0.001947
! Fit after  self-cal, rms=0.211277Jy  sigma=0.001936
! 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.211277Jy  sigma=0.001936
! Fit after  self-cal, rms=0.211198Jy  sigma=0.001935
! Inverting map and beam 
! Estimated beam: bmin=1.178 mas, bmaj=3.294 mas, bpa=6.653 degrees
! Estimated noise=386.162 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0108582 Jy
! Component: 100  -  total flux cleaned = 0.0154273 Jy
! Component: 150  -  total flux cleaned = 0.0197637 Jy
! Component: 200  -  total flux cleaned = 0.0216433 Jy
! Total flux subtracted in 200 components = 0.0216433 Jy
! Clean residual min=-0.013410 max=0.013142 Jy/beam
! Clean residual mean=-0.000001 rms=0.003617 Jy/beam
! Combined flux in latest and established models = 1.04144 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 163 components and 1.04144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207449Jy  sigma=0.001894
! Fit after  self-cal, rms=0.207567Jy  sigma=0.001890
! 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.722 mas, bmaj=6.001 mas, bpa=3.921 degrees
! Estimated noise=446.827 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.00478974 Jy
! Component: 100  -  total flux cleaned = 0.00626689 Jy
! Component: 150  -  total flux cleaned = 0.0068732 Jy
! Component: 200  -  total flux cleaned = 0.00736545 Jy
! Total flux subtracted in 200 components = 0.00736545 Jy
! Clean residual min=-0.010819 max=0.009398 Jy/beam
! Clean residual mean=-0.000005 rms=0.003544 Jy/beam
! Combined flux in latest and established models = 1.04881 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 179 components and 1.04881 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206131Jy  sigma=0.001878
! Fit after  self-cal, rms=0.206224Jy  sigma=0.001876
! 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.8313 mas, bmaj=2.36 mas, bpa=7.68 degrees
! Estimated noise=772.102 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.371299 Jy
! Component: 100  -  total flux cleaned = 0.54761 Jy
! Component: 150  -  total flux cleaned = 0.658063 Jy
! Component: 200  -  total flux cleaned = 0.736447 Jy
! Total flux subtracted in 200 components = 0.736447 Jy
! Clean residual min=-0.027231 max=0.045799 Jy/beam
! Clean residual mean=0.000101 rms=0.009140 Jy/beam
! Combined flux in latest and established models = 0.736447 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 46 model components to the UV plane model.
! The established model now contains 46 components and 0.736447 Jy
! Inverting map and beam 
! Estimated beam: bmin=1.178 mas, bmaj=3.294 mas, bpa=6.653 degrees
! Estimated noise=386.162 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 (-1, -1).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.103236 Jy
! Component: 100  -  total flux cleaned = 0.165608 Jy
! Component: 150  -  total flux cleaned = 0.209127 Jy
! Component: 200  -  total flux cleaned = 0.24104 Jy
! Total flux subtracted in 200 components = 0.24104 Jy
! Clean residual min=-0.014925 max=0.024302 Jy/beam
! Clean residual mean=0.000043 rms=0.005129 Jy/beam
! Combined flux in latest and established models = 0.977487 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 100 components and 0.977486 Jy
! Inverting map 
! Added new window around map position (1.4, 2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0294453 Jy
! Component: 100  -  total flux cleaned = 0.048025 Jy
! Component: 150  -  total flux cleaned = 0.060983 Jy
! Component: 200  -  total flux cleaned = 0.0682812 Jy
! Total flux subtracted in 200 components = 0.0682812 Jy
! Clean residual min=-0.011357 max=0.010677 Jy/beam
! Clean residual mean=0.000007 rms=0.003082 Jy/beam
! Combined flux in latest and established models = 1.04577 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 141 components and 1.04577 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.722 mas, bmaj=6.001 mas, bpa=3.921 degrees
! Estimated noise=446.827 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.00741804 Jy
! Component: 100  -  total flux cleaned = 0.00929284 Jy
! Component: 150  -  total flux cleaned = 0.0108997 Jy
! Component: 200  -  total flux cleaned = 0.0120683 Jy
! Total flux subtracted in 200 components = 0.0120683 Jy
! Clean residual min=-0.010678 max=0.008711 Jy/beam
! Clean residual mean=-0.000006 rms=0.002996 Jy/beam
! Combined flux in latest and established models = 1.05784 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 165 components and 1.05784 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=1.178 mas, bmaj=3.294 mas, bpa=6.653 degrees
! Estimated noise=386.162 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00223639 Jy
! Component: 100  -  total flux cleaned = -0.0015996 Jy
! Component: 150  -  total flux cleaned = -0.00103954 Jy
! Component: 200  -  total flux cleaned = -0.000533977 Jy
! Total flux subtracted in 200 components = -0.000533977 Jy
! Clean residual min=-0.011246 max=0.009306 Jy/beam
! Clean residual mean=-0.000001 rms=0.002672 Jy/beam
! Combined flux in latest and established models = 1.0573 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 183 components and 1.0573 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195089Jy  sigma=0.001826
! Fit after  self-cal, rms=0.193949Jy  sigma=0.001820
wmodel J0240-2309_X_1997_07_02_yyk\_map.mod
! Writing 183 model components to file: J0240-2309_X_1997_07_02_yyk_map.mod
wobs J0240-2309_X_1997_07_02_yyk\_uvs.fits
! Writing UV FITS file: J0240-2309_X_1997_07_02_yyk_uvs.fits
wwins J0240-2309_X_1997_07_02_yyk\_map.win
! wwins: Wrote 6 windows to J0240-2309_X_1997_07_02_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.00355972 Jy
! Component: 100  -  total flux cleaned = -0.00533251 Jy
! Component: 150  -  total flux cleaned = -0.00667738 Jy
! Component: 200  -  total flux cleaned = -0.00752336 Jy
! Component: 250  -  total flux cleaned = -0.00806349 Jy
! Component: 300  -  total flux cleaned = -0.00871192 Jy
! Component: 350  -  total flux cleaned = -0.00896136 Jy
! Component: 400  -  total flux cleaned = -0.00908257 Jy
! Component: 450  -  total flux cleaned = -0.00908382 Jy
! Component: 500  -  total flux cleaned = -0.00919924 Jy
! Component: 550  -  total flux cleaned = -0.00897575 Jy
! Component: 600  -  total flux cleaned = -0.00853643 Jy
! Component: 650  -  total flux cleaned = -0.00821601 Jy
! Component: 700  -  total flux cleaned = -0.00748369 Jy
! Component: 750  -  total flux cleaned = -0.00738163 Jy
! Component: 800  -  total flux cleaned = -0.00687848 Jy
! Component: 850  -  total flux cleaned = -0.00668309 Jy
! Component: 900  -  total flux cleaned = -0.00639323 Jy
! Component: 950  -  total flux cleaned = -0.00601601 Jy
! Component: 1000  -  total flux cleaned = -0.00573743 Jy
! Component: 1050  -  total flux cleaned = -0.00555526 Jy
! Component: 1100  -  total flux cleaned = -0.00546651 Jy
! Component: 1150  -  total flux cleaned = -0.00528948 Jy
! Component: 1200  -  total flux cleaned = -0.00529044 Jy
! Component: 1250  -  total flux cleaned = -0.00537812 Jy
! Component: 1300  -  total flux cleaned = -0.00520895 Jy
! Component: 1350  -  total flux cleaned = -0.00512643 Jy
! Component: 1400  -  total flux cleaned = -0.00512572 Jy
! Component: 1450  -  total flux cleaned = -0.00528705 Jy
! Component: 1500  -  total flux cleaned = -0.00520792 Jy
! Component: 1550  -  total flux cleaned = -0.00544468 Jy
! Component: 1600  -  total flux cleaned = -0.00528865 Jy
! Component: 1650  -  total flux cleaned = -0.00513434 Jy
! Component: 1700  -  total flux cleaned = -0.00498273 Jy
! Component: 1750  -  total flux cleaned = -0.00505806 Jy
! Component: 1800  -  total flux cleaned = -0.00505696 Jy
! Component: 1850  -  total flux cleaned = -0.00505652 Jy
! Component: 1900  -  total flux cleaned = -0.00476965 Jy
! Component: 1950  -  total flux cleaned = -0.00484016 Jy
! Component: 2000  -  total flux cleaned = -0.00469869 Jy
! Total flux subtracted in 2048 components = -0.00442241 Jy
! Clean residual min=-0.003877 max=0.003502 Jy/beam
! Clean residual mean=-0.000001 rms=0.001412 Jy/beam
! Combined flux in latest and established models = 1.05288 Jy
keep
! Adding 104 model components to the UV plane model.
! The established model now contains 286 components and 1.05288 Jy
![Exited script file: muppet]
wmap "J0240-2309_X_1997_07_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.178 x 3.294 at 6.653 degrees (North through East)
! Clean map  min=-0.0084798  max=0.31068 Jy/beam
! Writing clean map to FITS file: J0240-2309_X_1997_07_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.310683 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00142272 
device "J0240-2309_X_1997_07_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J0240-2309_X_1997_07_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.37379 1.37379 2.74759 5.49517 10.9903 21.9807 43.9614 87.9228
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0042 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.31 
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.178 x 3.294 at 6.653 degrees (North through East)
! Clean map  min=-0.0084798  max=0.31068 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0240-2309_X_1997_07_02_yyk\_map.gif/gif"
! Attempting to open device: 'J0240-2309_X_1997_07_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0240-2309_X_1997_07_02_yyk_uvs.log closed on Mon Jan  8 02:30:59 2007