! Started logfile: J1832-2039_S_1997_07_02_yyk_uvs.log on Sun Jan  7 19:31:56 2007
obs J1832-2039_S_1997_07_02_yyk_uva.fits
! Reading UV FITS file: J1832-2039_S_1997_07_02_yyk_uva.fits
! AN table 1: 139 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.973141 visibilities/baseline/integration-bin.
! Found source: J1832-2039
! 
! 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 755 lines of history.
! 
! Reading 24348 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 J1832-2039_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.649943 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.619 mas, bmaj=6.717 mas, bpa=-1.491 degrees
! Estimated noise=1808.02 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=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.253246 Jy
! Component: 100  -  total flux cleaned = 0.420572 Jy
! Total flux subtracted in 100 components = 0.420572 Jy
! Clean residual min=-0.045251 max=0.073883 Jy/beam
! Clean residual mean=0.000742 rms=0.021782 Jy/beam
! Combined flux in latest and established models = 0.420572 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 71 model components to the UV plane model.
! The established model now contains 71 components and 0.420572 Jy
! 
! Correcting IF 1.
!  A total of 197 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 63 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 28 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 28 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.521415Jy  sigma=0.002094
! Fit after  self-cal, rms=0.518822Jy  sigma=0.002084
! Inverting map and beam 
! Estimated beam: bmin=2.619 mas, bmaj=6.717 mas, bpa=-1.491 degrees
! Estimated noise=1808.26 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=3.466 mas, bmaj=8.944 mas, bpa=-3.84 degrees
! Estimated noise=1171.1 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.27408 Jy
! Component: 100  -  total flux cleaned = 0.450775 Jy
! Component: 150  -  total flux cleaned = 0.57234 Jy
! Component: 200  -  total flux cleaned = 0.658028 Jy
! Total flux subtracted in 200 components = 0.658028 Jy
! Clean residual min=-0.023220 max=0.036085 Jy/beam
! Clean residual mean=0.001455 rms=0.013449 Jy/beam
! Combined flux in latest and established models = 1.0786 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 140 model components to the UV plane model.
! The established model now contains 191 components and 1.0786 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.413902Jy  sigma=0.001508
! Fit after  self-cal, rms=0.410547Jy  sigma=0.001499
! 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.466 x 8.944 at -3.84 degrees (North through East)
! Clean map  min=-0.021262  max=0.2546 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.766232
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        1.00     HN        1.01     KP        0.87     
!   LA        0.92     MK        3.53     NL        1.00*    OV        1.03     
!   PT        0.87     SC        1.91     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.883615
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.05     HN        1.30     KP        0.92     
!   LA        1.01     MK        0.41     NL        1.00     OV        0.97     
!   PT        0.87     SC        2.80     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.998603
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        0.99     HN        0.89     KP        0.90     
!   LA        0.75     MK        1.12     NL        0.97     OV        0.88     
!   PT        1.00     SC        1.60     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.822612
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.03     HN        1.49     KP        0.92     
!   LA        0.84     MK        1.46     NL        1.07     OV        0.88     
!   PT        0.86     SC        2.61     
! 
! 
! Fit before self-cal, rms=0.410547Jy  sigma=0.001499
! Fit after  self-cal, rms=0.545958Jy  sigma=0.001792
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.545958Jy  sigma=0.001792
! Fit after  self-cal, rms=0.546875Jy  sigma=0.001791
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.676 mas, bmaj=12.01 mas, bpa=-15.74 degrees
! Estimated noise=791.626 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.14014 Jy
! Component: 100  -  total flux cleaned = -0.203571 Jy
! Component: 150  -  total flux cleaned = -0.240953 Jy
! Component: 200  -  total flux cleaned = -0.264168 Jy
! Total flux subtracted in 200 components = -0.264168 Jy
! Clean residual min=-0.009768 max=0.009643 Jy/beam
! Clean residual mean=-0.000323 rms=0.003634 Jy/beam
! Combined flux in latest and established models = 0.814432 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 117 model components to the UV plane model.
! The established model now contains 277 components and 0.814432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.536305Jy  sigma=0.001500
! Fit after  self-cal, rms=0.534829Jy  sigma=0.001498
! 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.534829Jy  sigma=0.001498
! Fit after  self-cal, rms=0.533419Jy  sigma=0.001491
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.0171134 Jy
! Component: 100  -  total flux cleaned = -0.0209777 Jy
! Component: 150  -  total flux cleaned = -0.0243853 Jy
! Component: 200  -  total flux cleaned = -0.0249791 Jy
! Total flux subtracted in 200 components = -0.0249791 Jy
! Clean residual min=-0.003929 max=0.003921 Jy/beam
! Clean residual mean=-0.000110 rms=0.001611 Jy/beam
! Combined flux in latest and established models = 0.789452 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 65 model components to the UV plane model.
! The established model now contains 340 components and 0.789452 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.533268Jy  sigma=0.001483
! Fit after  self-cal, rms=0.533029Jy  sigma=0.001482
! 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.676 x 12.01 at -15.74 degrees (North through East)
! Clean map  min=-0.0094229  max=0.16811 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.533029Jy  sigma=0.001482
! Fit after  self-cal, rms=0.542824Jy  sigma=0.001414
! 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.542824Jy  sigma=0.001414
! Fit after  self-cal, rms=0.542383Jy  sigma=0.001414
! Inverting map and beam 
! Estimated beam: bmin=3.242 mas, bmaj=11.27 mas, bpa=-17.71 degrees
! Estimated noise=722.109 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000761988 Jy
! Component: 100  -  total flux cleaned = 0.00172026 Jy
! Component: 150  -  total flux cleaned = 0.00232793 Jy
! Component: 200  -  total flux cleaned = 0.00287268 Jy
! Total flux subtracted in 200 components = 0.00287268 Jy
! Clean residual min=-0.002223 max=0.002206 Jy/beam
! Clean residual mean=0.000007 rms=0.000866 Jy/beam
! Combined flux in latest and established models = 0.792325 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 63 model components to the UV plane model.
! The established model now contains 400 components and 0.792325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.542154Jy  sigma=0.001412
! Fit after  self-cal, rms=0.541945Jy  sigma=0.001412
! 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.541945Jy  sigma=0.001412
! Fit after  self-cal, rms=0.602870Jy  sigma=0.001411
! 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.602870Jy  sigma=0.001411
! Fit after  self-cal, rms=0.602863Jy  sigma=0.001411
! Inverting map and beam 
! Estimated beam: bmin=3.126 mas, bmaj=10.95 mas, bpa=-18.67 degrees
! Estimated noise=698.785 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00106042 Jy
! Component: 100  -  total flux cleaned = 0.00249234 Jy
! Component: 150  -  total flux cleaned = 0.00312885 Jy
! Component: 200  -  total flux cleaned = 0.00312527 Jy
! Total flux subtracted in 200 components = 0.00312527 Jy
! Clean residual min=-0.001833 max=0.001835 Jy/beam
! Clean residual mean=0.000023 rms=0.000710 Jy/beam
! Combined flux in latest and established models = 0.79545 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 61 model components to the UV plane model.
! The established model now contains 443 components and 0.79545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.602717Jy  sigma=0.001410
! Fit after  self-cal, rms=0.602734Jy  sigma=0.001410
! 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=8.3 mas, bmaj=17.85 mas, bpa=-4.075 degrees
! Estimated noise=918.737 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.000676945 Jy
! Component: 100  -  total flux cleaned = 0.00182001 Jy
! Component: 150  -  total flux cleaned = 0.00297645 Jy
! Component: 200  -  total flux cleaned = 0.00340644 Jy
! Total flux subtracted in 200 components = 0.00340644 Jy
! Clean residual min=-0.001292 max=0.001282 Jy/beam
! Clean residual mean=0.000019 rms=0.000578 Jy/beam
! Combined flux in latest and established models = 0.798856 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 70 model components to the UV plane model.
! The established model now contains 512 components and 0.798856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.602661Jy  sigma=0.001409
! Fit after  self-cal, rms=0.602815Jy  sigma=0.001409
! 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.698 mas, bmaj=7.285 mas, bpa=-8.865 degrees
! Estimated noise=1310.19 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.184146 Jy
! Component: 100  -  total flux cleaned = 0.310347 Jy
! Component: 150  -  total flux cleaned = 0.405935 Jy
! Component: 200  -  total flux cleaned = 0.480116 Jy
! Total flux subtracted in 200 components = 0.480116 Jy
! Clean residual min=-0.021304 max=0.032729 Jy/beam
! Clean residual mean=0.000335 rms=0.009096 Jy/beam
! Combined flux in latest and established models = 0.480116 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 103 model components to the UV plane model.
! The established model now contains 103 components and 0.480116 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.126 mas, bmaj=10.95 mas, bpa=-18.67 degrees
! Estimated noise=698.785 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.0936209 Jy
! Component: 100  -  total flux cleaned = 0.155526 Jy
! Component: 150  -  total flux cleaned = 0.198903 Jy
! Component: 200  -  total flux cleaned = 0.230082 Jy
! Total flux subtracted in 200 components = 0.230082 Jy
! Clean residual min=-0.008930 max=0.013182 Jy/beam
! Clean residual mean=0.000388 rms=0.004306 Jy/beam
! Combined flux in latest and established models = 0.710197 Jy
! Adding 127 model components to the UV plane model.
! The established model now contains 204 components and 0.710197 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=8.3 mas, bmaj=17.85 mas, bpa=-4.075 degrees
! Estimated noise=918.737 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.0378067 Jy
! Component: 100  -  total flux cleaned = 0.0558869 Jy
! Component: 150  -  total flux cleaned = 0.0633016 Jy
! Component: 200  -  total flux cleaned = 0.0672403 Jy
! Total flux subtracted in 200 components = 0.0672403 Jy
! Clean residual min=-0.003862 max=0.003872 Jy/beam
! Clean residual mean=0.000126 rms=0.001715 Jy/beam
! Combined flux in latest and established models = 0.777438 Jy
! Adding 109 model components to the UV plane model.
! The established model now contains 291 components and 0.777438 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.126 mas, bmaj=10.95 mas, bpa=-18.67 degrees
! Estimated noise=698.785 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00188237 Jy
! Component: 100  -  total flux cleaned = 0.002405 Jy
! Component: 150  -  total flux cleaned = 0.00284102 Jy
! Component: 200  -  total flux cleaned = 0.00304557 Jy
! Total flux subtracted in 200 components = 0.00304557 Jy
! Clean residual min=-0.002552 max=0.002559 Jy/beam
! Clean residual mean=0.000039 rms=0.000978 Jy/beam
! Combined flux in latest and established models = 0.780483 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 57 model components to the UV plane model.
! The established model now contains 348 components and 0.780483 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.603340Jy  sigma=0.001412
! Fit after  self-cal, rms=0.602147Jy  sigma=0.001410
wmodel J1832-2039_S_1997_07_02_yyk\_map.mod
! Writing 348 model components to file: J1832-2039_S_1997_07_02_yyk_map.mod
wobs J1832-2039_S_1997_07_02_yyk\_uvs.fits
! Writing UV FITS file: J1832-2039_S_1997_07_02_yyk_uvs.fits
wwins J1832-2039_S_1997_07_02_yyk\_map.win
! wwins: No CLEAN windows to write.
! Error occured in command: wwins
![Exited script file: muppet]
! 
wmap "J1832-2039_S_1997_07_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.126 x 10.95 at -18.67 degrees (North through East)
! Clean map  min=-0.0041034  max=0.14028 Jy/beam
! Writing clean map to FITS file: J1832-2039_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.140278 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000879847 
device "J1832-2039_S_1997_07_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J1832-2039_S_1997_07_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.88165 1.88165 3.7633 7.52661 15.0532 30.1064 60.2129
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0026 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.14 
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.126 x 10.95 at -18.67 degrees (North through East)
! Clean map  min=-0.0041034  max=0.14028 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1832-2039_S_1997_07_02_yyk\_map.gif/gif"
! Attempting to open device: 'J1832-2039_S_1997_07_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1832-2039_S_1997_07_02_yyk_uvs.log closed on Sun Jan  7 19:32:05 2007