! Started logfile: J2307-2247_S_1997_07_02_yyk_uvs.log on Sun Jan  7 20:21:37 2007
obs J2307-2247_S_1997_07_02_yyk_uva.fits
! Reading UV FITS file: J2307-2247_S_1997_07_02_yyk_uva.fits
! AN table 1: 144 integrations on 45 of 45 possible baselines.
! Apparent sampling: 1.20895 visibilities/baseline/integration-bin.
! Found source: J2307-2247
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22447e+09        8e+06          1        8e+06
!  02        2  2.23447e+09        8e+06          1        8e+06
!  03        3  2.29447e+09        8e+06          1        8e+06
!  04        4  2.32447e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 754 lines of history.
! 
! Reading 31336 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 J2307-2247_S_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.500x0.500 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.598776 Jy 
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.669 mas, bmaj=7.847 mas, bpa=-10.19 degrees
! Estimated noise=1407.18 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.370026 Jy
! Component: 100  -  total flux cleaned = 0.520528 Jy
! Total flux subtracted in 100 components = 0.520528 Jy
! Clean residual min=-0.035475 max=0.088758 Jy/beam
! Clean residual mean=-0.000082 rms=0.012101 Jy/beam
! Combined flux in latest and established models = 0.520528 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 18 components and 0.520528 Jy
! 
! Correcting IF 1.
!  A total of 377 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 234 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 234 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 234 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.368134Jy  sigma=0.001718
! Fit after  self-cal, rms=0.367730Jy  sigma=0.001715
! Inverting map and beam 
! Estimated beam: bmin=2.669 mas, bmaj=7.847 mas, bpa=-10.19 degrees
! Estimated noise=1407.29 mJy/beam.
! Added new window around map position (4, 4).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.10032 Jy
! Component: 100  -  total flux cleaned = 0.148499 Jy
! Total flux subtracted in 100 components = 0.148499 Jy
! Clean residual min=-0.022734 max=0.026191 Jy/beam
! Clean residual mean=-0.000201 rms=0.006163 Jy/beam
! Combined flux in latest and established models = 0.669027 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 26 components and 0.669027 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.345303Jy  sigma=0.001597
! Fit after  self-cal, rms=0.344600Jy  sigma=0.001592
! 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=3.476 mas, bmaj=9.368 mas, bpa=-9.177 degrees
! Estimated noise=1031.17 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.0128938 Jy
! Component: 100  -  total flux cleaned = 0.0155588 Jy
! Component: 150  -  total flux cleaned = 0.0159467 Jy
! Component: 200  -  total flux cleaned = 0.0155929 Jy
! Total flux subtracted in 200 components = 0.0155929 Jy
! Clean residual min=-0.015317 max=0.016254 Jy/beam
! Clean residual mean=-0.000068 rms=0.004815 Jy/beam
! Combined flux in latest and established models = 0.68462 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 42 components and 0.68462 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.342288Jy  sigma=0.001585
! Fit after  self-cal, rms=0.342223Jy  sigma=0.001584
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.476 x 9.368 at -9.177 degrees (North through East)
! Clean map  min=-0.014745  max=0.38043 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: 1.03126
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.13     HN        0.85     KP        0.90     
!   LA        1.00     MK        0.99     NL        1.00*    OV        1.11     
!   PT        0.98     SC        0.79     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.989888
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.16     HN        0.99     KP        0.95     
!   LA        1.12     MK        1.07     NL        0.96     OV        1.02     
!   PT        0.95     SC        0.88     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.06606
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.08     HN        0.86     KP        0.91     
!   LA        0.83     MK        0.85     NL        0.93     OV        0.96     
!   PT        1.06     SC        0.95     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.00748
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.11     HN        1.06     KP        0.95     
!   LA        0.89     MK        1.03     NL        1.09     OV        0.93     
!   PT        0.93     SC        0.93     
! 
! 
! Fit before self-cal, rms=0.342223Jy  sigma=0.001584
! Fit after  self-cal, rms=0.327155Jy  sigma=0.001561
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.327155Jy  sigma=0.001561
! Fit after  self-cal, rms=0.327146Jy  sigma=0.001561
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.366 mas, bmaj=8.985 mas, bpa=-7.327 degrees
! Estimated noise=1036.41 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.0219079 Jy
! Component: 100  -  total flux cleaned = 0.0288799 Jy
! Component: 150  -  total flux cleaned = 0.0294517 Jy
! Component: 200  -  total flux cleaned = 0.0299219 Jy
! Total flux subtracted in 200 components = 0.0299219 Jy
! Clean residual min=-0.008284 max=0.007778 Jy/beam
! Clean residual mean=-0.000092 rms=0.002033 Jy/beam
! Combined flux in latest and established models = 0.714542 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 54 components and 0.714542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326168Jy  sigma=0.001556
! Fit after  self-cal, rms=0.326129Jy  sigma=0.001556
! 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.326129Jy  sigma=0.001556
! Fit after  self-cal, rms=0.324257Jy  sigma=0.001548
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.00201659 Jy
! Component: 100  -  total flux cleaned = 0.00159168 Jy
! Component: 150  -  total flux cleaned = 0.00148249 Jy
! Component: 200  -  total flux cleaned = 0.00137898 Jy
! Total flux subtracted in 200 components = 0.00137898 Jy
! Clean residual min=-0.007908 max=0.007588 Jy/beam
! Clean residual mean=-0.000089 rms=0.001946 Jy/beam
! Combined flux in latest and established models = 0.715921 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 59 components and 0.715921 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324118Jy  sigma=0.001547
! Fit after  self-cal, rms=0.323925Jy  sigma=0.001547
! Inverting map 
print "*** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime ***"
! *** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime *** 
! 
dynam = dynam - 0.25
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.366 x 8.985 at -7.327 degrees (North through East)
! Clean map  min=-0.0090601  max=0.38338 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.323925Jy  sigma=0.001547
! Fit after  self-cal, rms=0.320914Jy  sigma=0.001538
! 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.320914Jy  sigma=0.001538
! Fit after  self-cal, rms=0.320904Jy  sigma=0.001538
! Inverting map and beam 
! Estimated beam: bmin=3.325 mas, bmaj=8.895 mas, bpa=-6.877 degrees
! Estimated noise=1027.01 mJy/beam.
! Added new window around map position (-44, 40).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00139018 Jy
! Component: 100  -  total flux cleaned = 0.00137557 Jy
! Component: 150  -  total flux cleaned = 0.00178514 Jy
! Component: 200  -  total flux cleaned = 0.00195058 Jy
! Total flux subtracted in 200 components = 0.00195058 Jy
! Clean residual min=-0.005565 max=0.005316 Jy/beam
! Clean residual mean=-0.000053 rms=0.001472 Jy/beam
! Combined flux in latest and established models = 0.717872 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 81 components and 0.717872 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320618Jy  sigma=0.001537
! Fit after  self-cal, rms=0.320623Jy  sigma=0.001537
! 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.320623Jy  sigma=0.001537
! Fit after  self-cal, rms=0.320826Jy  sigma=0.001535
! 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.320826Jy  sigma=0.001535
! Fit after  self-cal, rms=0.320839Jy  sigma=0.001536
! Inverting map and beam 
! Estimated beam: bmin=3.326 mas, bmaj=8.891 mas, bpa=-6.771 degrees
! Estimated noise=1027.25 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000293479 Jy
! Component: 100  -  total flux cleaned = 0.000566188 Jy
! Component: 150  -  total flux cleaned = 0.000680147 Jy
! Component: 200  -  total flux cleaned = 0.000676005 Jy
! Total flux subtracted in 200 components = 0.000676005 Jy
! Clean residual min=-0.004857 max=0.005421 Jy/beam
! Clean residual mean=-0.000055 rms=0.001388 Jy/beam
! Combined flux in latest and established models = 0.718548 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 92 components and 0.718548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320747Jy  sigma=0.001535
! Fit after  self-cal, rms=0.320754Jy  sigma=0.001535
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.862 mas, bmaj=17.62 mas, bpa=-4.757 degrees
! Estimated noise=1304.23 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.000362069 Jy
! Component: 100  -  total flux cleaned = -0.000283639 Jy
! Component: 150  -  total flux cleaned = -0.000287127 Jy
! Component: 200  -  total flux cleaned = -0.00023366 Jy
! Total flux subtracted in 200 components = -0.00023366 Jy
! Clean residual min=-0.005197 max=0.003980 Jy/beam
! Clean residual mean=-0.000115 rms=0.001552 Jy/beam
! Combined flux in latest and established models = 0.718314 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 107 components and 0.718314 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320738Jy  sigma=0.001535
! Fit after  self-cal, rms=0.320741Jy  sigma=0.001535
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
win_mult = win_mult / 1.4
print "************** FINISHED TAPERING SELF-CAL CLEAN **************"
! ************** FINISHED TAPERING SELF-CAL CLEAN ************** 
! 
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true,true,true
! clrmod: Cleared the established, tentative and continuum models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter, clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.63 mas, bmaj=7.675 mas, bpa=-9.111 degrees
! Estimated noise=1375.24 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.372577 Jy
! Component: 100  -  total flux cleaned = 0.530067 Jy
! Component: 150  -  total flux cleaned = 0.614273 Jy
! Component: 200  -  total flux cleaned = 0.662743 Jy
! Total flux subtracted in 200 components = 0.662743 Jy
! Clean residual min=-0.016181 max=0.023628 Jy/beam
! Clean residual mean=-0.000019 rms=0.004302 Jy/beam
! Combined flux in latest and established models = 0.662743 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 30 model components to the UV plane model.
! The established model now contains 30 components and 0.662743 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.326 mas, bmaj=8.891 mas, bpa=-6.771 degrees
! Estimated noise=1027.25 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 (-3.5, -4).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0367703 Jy
! Component: 100  -  total flux cleaned = 0.048566 Jy
! Component: 150  -  total flux cleaned = 0.0508399 Jy
! Component: 200  -  total flux cleaned = 0.0515508 Jy
! Total flux subtracted in 200 components = 0.0515508 Jy
! Clean residual min=-0.007109 max=0.006927 Jy/beam
! Clean residual mean=-0.000067 rms=0.001689 Jy/beam
! Combined flux in latest and established models = 0.714294 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 63 components and 0.714294 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.862 mas, bmaj=17.62 mas, bpa=-4.757 degrees
! Estimated noise=1304.23 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.00648005 Jy
! Component: 100  -  total flux cleaned = 0.00647425 Jy
! Component: 150  -  total flux cleaned = 0.00647688 Jy
! Component: 200  -  total flux cleaned = 0.00659014 Jy
! Total flux subtracted in 200 components = 0.00659014 Jy
! Clean residual min=-0.004974 max=0.004201 Jy/beam
! Clean residual mean=-0.000123 rms=0.001593 Jy/beam
! Combined flux in latest and established models = 0.720884 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 84 components and 0.720884 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.326 mas, bmaj=8.891 mas, bpa=-6.771 degrees
! Estimated noise=1027.25 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00252855 Jy
! Component: 100  -  total flux cleaned = -0.00192488 Jy
! Component: 150  -  total flux cleaned = -0.00142981 Jy
! Component: 200  -  total flux cleaned = -0.00115257 Jy
! Total flux subtracted in 200 components = -0.00115257 Jy
! Clean residual min=-0.004806 max=0.004918 Jy/beam
! Clean residual mean=-0.000050 rms=0.001365 Jy/beam
! Combined flux in latest and established models = 0.719731 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 106 components and 0.719732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320782Jy  sigma=0.001535
! Fit after  self-cal, rms=0.320764Jy  sigma=0.001535
wmodel J2307-2247_S_1997_07_02_yyk\_map.mod
! Writing 106 model components to file: J2307-2247_S_1997_07_02_yyk_map.mod
wobs J2307-2247_S_1997_07_02_yyk\_uvs.fits
! Writing UV FITS file: J2307-2247_S_1997_07_02_yyk_uvs.fits
wwins J2307-2247_S_1997_07_02_yyk\_map.win
! wwins: Wrote 4 windows to J2307-2247_S_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.00026999 Jy
! Component: 100  -  total flux cleaned = 0.00068396 Jy
! Component: 150  -  total flux cleaned = 0.000918215 Jy
! Component: 200  -  total flux cleaned = 0.000705719 Jy
! Component: 250  -  total flux cleaned = 0.000640538 Jy
! Component: 300  -  total flux cleaned = 0.00064159 Jy
! Component: 350  -  total flux cleaned = 0.000704119 Jy
! Component: 400  -  total flux cleaned = 0.00070685 Jy
! Component: 450  -  total flux cleaned = 0.000534592 Jy
! Component: 500  -  total flux cleaned = 0.000423217 Jy
! Component: 550  -  total flux cleaned = 0.000259454 Jy
! Component: 600  -  total flux cleaned = 0.000205104 Jy
! Component: 650  -  total flux cleaned = 0.000152089 Jy
! Component: 700  -  total flux cleaned = -9.62295e-05 Jy
! Component: 750  -  total flux cleaned = -0.000192515 Jy
! Component: 800  -  total flux cleaned = -0.00037986 Jy
! Component: 850  -  total flux cleaned = -0.000699791 Jy
! Component: 900  -  total flux cleaned = -0.000877865 Jy
! Component: 950  -  total flux cleaned = -0.00109701 Jy
! Component: 1000  -  total flux cleaned = -0.00135417 Jy
! Component: 1050  -  total flux cleaned = -0.00169017 Jy
! Component: 1100  -  total flux cleaned = -0.00197795 Jy
! Component: 1150  -  total flux cleaned = -0.00221972 Jy
! Component: 1200  -  total flux cleaned = -0.00249603 Jy
! Component: 1250  -  total flux cleaned = -0.0027289 Jy
! Component: 1300  -  total flux cleaned = -0.00307176 Jy
! Component: 1350  -  total flux cleaned = -0.00329504 Jy
! Component: 1400  -  total flux cleaned = -0.00362477 Jy
! Component: 1450  -  total flux cleaned = -0.00391299 Jy
! Component: 1500  -  total flux cleaned = -0.00423119 Jy
! Component: 1550  -  total flux cleaned = -0.00454428 Jy
! Component: 1600  -  total flux cleaned = -0.00481911 Jy
! Component: 1650  -  total flux cleaned = -0.00512368 Jy
! Component: 1700  -  total flux cleaned = -0.00545676 Jy
! Component: 1750  -  total flux cleaned = -0.00588321 Jy
! Component: 1800  -  total flux cleaned = -0.00623889 Jy
! Component: 1850  -  total flux cleaned = -0.00665282 Jy
! Component: 1900  -  total flux cleaned = -0.00693581 Jy
! Component: 1950  -  total flux cleaned = -0.00718473 Jy
! Component: 2000  -  total flux cleaned = -0.007645 Jy
! Total flux subtracted in 2048 components = -0.00794751 Jy
! Clean residual min=-0.001943 max=0.001631 Jy/beam
! Clean residual mean=-0.000050 rms=0.000618 Jy/beam
! Combined flux in latest and established models = 0.711784 Jy
keep
! Adding 125 model components to the UV plane model.
! The established model now contains 231 components and 0.711784 Jy
![Exited script file: muppet]
wmap "J2307-2247_S_1997_07_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.326 x 8.891 at -6.771 degrees (North through East)
! Clean map  min=-0.0073333  max=0.38306 Jy/beam
! Writing clean map to FITS file: J2307-2247_S_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.383059 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000617555 
device "J2307-2247_S_1997_07_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J2307-2247_S_1997_07_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.48365 0.48365 0.967301 1.9346 3.8692 7.7384 15.4768 30.9536 61.9072
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.383 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.326 x 8.891 at -6.771 degrees (North through East)
! Clean map  min=-0.0073333  max=0.38306 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2307-2247_S_1997_07_02_yyk\_map.gif/gif"
! Attempting to open device: 'J2307-2247_S_1997_07_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2307-2247_S_1997_07_02_yyk_uvs.log closed on Sun Jan  7 20:21:44 2007