! Started logfile: J2213-2529_X_1997_07_02_yyk_uvs.log on Mon Jan  8 10:35:42 2007
obs J2213-2529_X_1997_07_02_yyk_uva.fits
! Reading UV FITS file: J2213-2529_X_1997_07_02_yyk_uva.fits
! AN table 1: 148 integrations on 45 of 45 possible baselines.
! Apparent sampling: 1.13874 visibilities/baseline/integration-bin.
! Found source: J2213-2529
! 
! 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 30336 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 J2213-2529_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.503832 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.7203 mas, bmaj=2.077 mas, bpa=-7.628 degrees
! Estimated noise=1229.54 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.362344 Jy
! Component: 100  -  total flux cleaned = 0.448797 Jy
! Total flux subtracted in 100 components = 0.448797 Jy
! Clean residual min=-0.019407 max=0.033388 Jy/beam
! Clean residual mean=0.000004 rms=0.005756 Jy/beam
! Combined flux in latest and established models = 0.448797 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.448797 Jy
! 
! Correcting IF 1.
!  A total of 198 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 198 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 198 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 198 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.255458Jy  sigma=0.001831
! Fit after  self-cal, rms=0.255142Jy  sigma=0.001829
! Inverting map and beam 
! Estimated beam: bmin=0.7204 mas, bmaj=2.077 mas, bpa=-7.623 degrees
! Estimated noise=1229.42 mJy/beam.
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.902 mas, bmaj=2.498 mas, bpa=-6.839 degrees
! Estimated noise=654.143 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.0551703 Jy
! Component: 100  -  total flux cleaned = 0.0786949 Jy
! Component: 150  -  total flux cleaned = 0.0893115 Jy
! Component: 200  -  total flux cleaned = 0.0928009 Jy
! Total flux subtracted in 200 components = 0.0928009 Jy
! Clean residual min=-0.017654 max=0.033065 Jy/beam
! Clean residual mean=-0.000208 rms=0.006106 Jy/beam
! Combined flux in latest and established models = 0.541598 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 35 components and 0.541597 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.251163Jy  sigma=0.001765
! Fit after  self-cal, rms=0.251047Jy  sigma=0.001765
! 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.902 x 2.498 at -6.839 degrees (North through East)
! Clean map  min=-0.016678  max=0.40165 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.99634
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     HN        1.01     KP        1.02     
!   LA        0.97     MK        1.00     NL        1.12     OV        1.06     
!   PT        0.90     SC        0.98     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.998491
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.95     HN        0.96     KP        1.01     
!   LA        0.96     MK        0.99     NL        1.13     OV        1.11     
!   PT        0.87     SC        1.05     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.986146
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     HN        0.99     KP        1.02     
!   LA        0.97     MK        1.01     NL        1.12     OV        1.03     
!   PT        0.94     SC        1.05     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.98226
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     HN        1.01     KP        1.02     
!   LA        0.99     MK        1.01     NL        1.13     OV        1.06     
!   PT        0.94     SC        1.05     
! 
! 
! Fit before self-cal, rms=0.251047Jy  sigma=0.001765
! Fit after  self-cal, rms=0.253781Jy  sigma=0.001746
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.253781Jy  sigma=0.001746
! Fit after  self-cal, rms=0.253836Jy  sigma=0.001746
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9128 mas, bmaj=2.543 mas, bpa=-7.256 degrees
! Estimated noise=645.525 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 (6, 4.4).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0371512 Jy
! Component: 100  -  total flux cleaned = 0.0488776 Jy
! Component: 150  -  total flux cleaned = 0.050858 Jy
! Component: 200  -  total flux cleaned = 0.0517909 Jy
! Total flux subtracted in 200 components = 0.0517909 Jy
! Clean residual min=-0.010076 max=0.017864 Jy/beam
! Clean residual mean=-0.000030 rms=0.002990 Jy/beam
! Combined flux in latest and established models = 0.593388 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 42 model components to the UV plane model.
! The established model now contains 75 components and 0.593388 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249962Jy  sigma=0.001714
! Fit after  self-cal, rms=0.249714Jy  sigma=0.001712
! 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.0104012 Jy
! Component: 100  -  total flux cleaned = 0.0109815 Jy
! Component: 150  -  total flux cleaned = 0.0114612 Jy
! Component: 200  -  total flux cleaned = 0.0114612 Jy
! Total flux subtracted in 200 components = 0.0114612 Jy
! Clean residual min=-0.010331 max=0.007623 Jy/beam
! Clean residual mean=-0.000023 rms=0.002295 Jy/beam
! Combined flux in latest and established models = 0.60485 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 100 components and 0.60485 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248626Jy  sigma=0.001705
! Fit after  self-cal, rms=0.248533Jy  sigma=0.001704
! 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.248533Jy  sigma=0.001704
! Fit after  self-cal, rms=0.232041Jy  sigma=0.001581
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.00791438 Jy
! Component: 100  -  total flux cleaned = 0.0101346 Jy
! Component: 150  -  total flux cleaned = 0.0102864 Jy
! Component: 200  -  total flux cleaned = 0.0102874 Jy
! Total flux subtracted in 200 components = 0.0102874 Jy
! Clean residual min=-0.008947 max=0.007994 Jy/beam
! Clean residual mean=-0.000003 rms=0.002235 Jy/beam
! Combined flux in latest and established models = 0.615137 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 115 components and 0.615137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231917Jy  sigma=0.001579
! Fit after  self-cal, rms=0.228317Jy  sigma=0.001557
! 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.9128 x 2.543 at -7.256 degrees (North through East)
! Clean map  min=-0.008459  max=0.40992 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.228317Jy  sigma=0.001557
! Fit after  self-cal, rms=0.231659Jy  sigma=0.001548
! 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.231659Jy  sigma=0.001548
! Fit after  self-cal, rms=0.230500Jy  sigma=0.001541
! Inverting map and beam 
! Estimated beam: bmin=0.9155 mas, bmaj=2.538 mas, bpa=-7.125 degrees
! Estimated noise=640.751 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00457012 Jy
! Component: 100  -  total flux cleaned = 0.00678595 Jy
! Component: 150  -  total flux cleaned = 0.00739109 Jy
! Component: 200  -  total flux cleaned = 0.00759481 Jy
! Total flux subtracted in 200 components = 0.00759481 Jy
! Clean residual min=-0.006023 max=0.005984 Jy/beam
! Clean residual mean=0.000062 rms=0.001561 Jy/beam
! Combined flux in latest and established models = 0.622732 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 134 components and 0.622732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230343Jy  sigma=0.001540
! Fit after  self-cal, rms=0.229844Jy  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.229844Jy  sigma=0.001537
! Fit after  self-cal, rms=0.229285Jy  sigma=0.001534
! 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.229285Jy  sigma=0.001534
! Fit after  self-cal, rms=0.229168Jy  sigma=0.001533
! Inverting map and beam 
! Estimated beam: bmin=0.9144 mas, bmaj=2.537 mas, bpa=-7.192 degrees
! Estimated noise=639.267 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00133766 Jy
! Component: 100  -  total flux cleaned = 0.0021023 Jy
! Component: 150  -  total flux cleaned = 0.00255104 Jy
! Component: 200  -  total flux cleaned = 0.00278589 Jy
! Total flux subtracted in 200 components = 0.00278589 Jy
! Clean residual min=-0.005652 max=0.005583 Jy/beam
! Clean residual mean=0.000050 rms=0.001448 Jy/beam
! Combined flux in latest and established models = 0.625518 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 150 components and 0.625518 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229091Jy  sigma=0.001533
! Fit after  self-cal, rms=0.229027Jy  sigma=0.001532
! 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.31 mas, bmaj=5.651 mas, bpa=-3.926 degrees
! Estimated noise=811.408 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.000123578 Jy
! Component: 100  -  total flux cleaned = 0.000956294 Jy
! Component: 150  -  total flux cleaned = 0.00121159 Jy
! Component: 200  -  total flux cleaned = 0.00138261 Jy
! Total flux subtracted in 200 components = 0.00138261 Jy
! Clean residual min=-0.006637 max=0.007058 Jy/beam
! Clean residual mean=0.000097 rms=0.002124 Jy/beam
! Combined flux in latest and established models = 0.6269 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 164 components and 0.6269 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229014Jy  sigma=0.001532
! Fit after  self-cal, rms=0.228982Jy  sigma=0.001532
! 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.7228 mas, bmaj=2.082 mas, bpa=-7.711 degrees
! Estimated noise=1220.95 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.369794 Jy
! Component: 100  -  total flux cleaned = 0.455932 Jy
! Component: 150  -  total flux cleaned = 0.496873 Jy
! Component: 200  -  total flux cleaned = 0.524812 Jy
! Total flux subtracted in 200 components = 0.524812 Jy
! Clean residual min=-0.009544 max=0.011820 Jy/beam
! Clean residual mean=0.000054 rms=0.002998 Jy/beam
! Combined flux in latest and established models = 0.524812 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 36 model components to the UV plane model.
! The established model now contains 36 components and 0.524812 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9144 mas, bmaj=2.537 mas, bpa=-7.192 degrees
! Estimated noise=639.267 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.0299889 Jy
! Component: 100  -  total flux cleaned = 0.0498108 Jy
! Component: 150  -  total flux cleaned = 0.0636996 Jy
! Component: 200  -  total flux cleaned = 0.0736929 Jy
! Total flux subtracted in 200 components = 0.0736929 Jy
! Clean residual min=-0.005507 max=0.005890 Jy/beam
! Clean residual mean=0.000034 rms=0.001838 Jy/beam
! Combined flux in latest and established models = 0.598505 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 100 components and 0.598505 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.31 mas, bmaj=5.651 mas, bpa=-3.926 degrees
! Estimated noise=811.408 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.0113477 Jy
! Component: 100  -  total flux cleaned = 0.0182135 Jy
! Component: 150  -  total flux cleaned = 0.0226233 Jy
! Component: 200  -  total flux cleaned = 0.0242615 Jy
! Total flux subtracted in 200 components = 0.0242615 Jy
! Clean residual min=-0.006517 max=0.007360 Jy/beam
! Clean residual mean=0.000093 rms=0.002185 Jy/beam
! Combined flux in latest and established models = 0.622766 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 135 components and 0.622767 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9144 mas, bmaj=2.537 mas, bpa=-7.192 degrees
! Estimated noise=639.267 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000211951 Jy
! Component: 100  -  total flux cleaned = 0.000437997 Jy
! Component: 150  -  total flux cleaned = 0.000740196 Jy
! Component: 200  -  total flux cleaned = 0.00108541 Jy
! Total flux subtracted in 200 components = 0.00108541 Jy
! Clean residual min=-0.005445 max=0.005366 Jy/beam
! Clean residual mean=0.000048 rms=0.001385 Jy/beam
! Combined flux in latest and established models = 0.623852 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 155 components and 0.623852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228974Jy  sigma=0.001531
! Fit after  self-cal, rms=0.228935Jy  sigma=0.001531
wmodel J2213-2529_X_1997_07_02_yyk\_map.mod
! Writing 155 model components to file: J2213-2529_X_1997_07_02_yyk_map.mod
wobs J2213-2529_X_1997_07_02_yyk\_uvs.fits
! Writing UV FITS file: J2213-2529_X_1997_07_02_yyk_uvs.fits
wwins J2213-2529_X_1997_07_02_yyk\_map.win
! wwins: Wrote 3 windows to J2213-2529_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.00013426 Jy
! Component: 100  -  total flux cleaned = 0.000299787 Jy
! Component: 150  -  total flux cleaned = 0.000440759 Jy
! Component: 200  -  total flux cleaned = 0.000638778 Jy
! Component: 250  -  total flux cleaned = 0.000699574 Jy
! Component: 300  -  total flux cleaned = 0.000820433 Jy
! Component: 350  -  total flux cleaned = 0.000878328 Jy
! Component: 400  -  total flux cleaned = 0.000987393 Jy
! Component: 450  -  total flux cleaned = 0.000986857 Jy
! Component: 500  -  total flux cleaned = 0.00103833 Jy
! Component: 550  -  total flux cleaned = 0.00118385 Jy
! Component: 600  -  total flux cleaned = 0.00108855 Jy
! Component: 650  -  total flux cleaned = 0.000951818 Jy
! Component: 700  -  total flux cleaned = 0.00081826 Jy
! Component: 750  -  total flux cleaned = 0.000645188 Jy
! Component: 800  -  total flux cleaned = 0.000477236 Jy
! Component: 850  -  total flux cleaned = 0.000314033 Jy
! Component: 900  -  total flux cleaned = 0.000115506 Jy
! Component: 950  -  total flux cleaned = 3.81933e-05 Jy
! Component: 1000  -  total flux cleaned = -0.000150918 Jy
! Component: 1050  -  total flux cleaned = -0.000298281 Jy
! Component: 1100  -  total flux cleaned = -0.000405985 Jy
! Component: 1150  -  total flux cleaned = -0.000547458 Jy
! Component: 1200  -  total flux cleaned = -0.000650975 Jy
! Component: 1250  -  total flux cleaned = -0.000819147 Jy
! Component: 1300  -  total flux cleaned = -0.000884796 Jy
! Component: 1350  -  total flux cleaned = -0.0010794 Jy
! Component: 1400  -  total flux cleaned = -0.00114242 Jy
! Component: 1450  -  total flux cleaned = -0.00123576 Jy
! Component: 1500  -  total flux cleaned = -0.00129792 Jy
! Component: 1550  -  total flux cleaned = -0.00150992 Jy
! Component: 1600  -  total flux cleaned = -0.00156945 Jy
! Component: 1650  -  total flux cleaned = -0.00165728 Jy
! Component: 1700  -  total flux cleaned = -0.00171535 Jy
! Component: 1750  -  total flux cleaned = -0.00182993 Jy
! Component: 1800  -  total flux cleaned = -0.00194308 Jy
! Component: 1850  -  total flux cleaned = -0.00205404 Jy
! Component: 1900  -  total flux cleaned = -0.00216338 Jy
! Component: 1950  -  total flux cleaned = -0.00219009 Jy
! Component: 2000  -  total flux cleaned = -0.00221699 Jy
! Total flux subtracted in 2048 components = -0.00229643 Jy
! Clean residual min=-0.001514 max=0.001539 Jy/beam
! Clean residual mean=0.000007 rms=0.000526 Jy/beam
! Combined flux in latest and established models = 0.621556 Jy
keep
! Adding 139 model components to the UV plane model.
! The established model now contains 294 components and 0.621556 Jy
![Exited script file: muppet]
wmap "J2213-2529_X_1997_07_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9144 x 2.537 at -7.192 degrees (North through East)
! Clean map  min=-0.0027447  max=0.41205 Jy/beam
! Writing clean map to FITS file: J2213-2529_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.412047 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000523228 
device "J2213-2529_X_1997_07_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J2213-2529_X_1997_07_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.380948 0.380948 0.761896 1.52379 3.04758 6.09517 12.1903 24.3807 48.7614 97.5227
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.412 
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.9144 x 2.537 at -7.192 degrees (North through East)
! Clean map  min=-0.0027447  max=0.41205 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2213-2529_X_1997_07_02_yyk\_map.gif/gif"
! Attempting to open device: 'J2213-2529_X_1997_07_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2213-2529_X_1997_07_02_yyk_uvs.log closed on Mon Jan  8 10:35:51 2007