! Started logfile: J1709-1728_S_1997_01_10_pus_uvs.log on Mon Jan 30 01:12:09 2006
obs J1709-1728_S_1997_01_10_pus_uva.fits
! Reading UV FITS file: J1709-1728_S_1997_01_10_pus_uva.fits
! AN table 1: 269 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.749938 visibilities/baseline/integration-bin.
! Found source: J1709-1728
! 
! 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.22049e+09        8e+06          1        8e+06
!  02        2  2.23424e+09        8e+06          1        8e+06
!  03        3  2.29424e+09        8e+06          1        8e+06
!  04        4  2.32424e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 566 lines of history.
! 
! Reading 36312 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
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.581586 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.676 mas, bmaj=7.05 mas, bpa=-0.4183 degrees
! Estimated noise=1516.52 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.365639 Jy
! Component: 100  -  total flux cleaned = 0.442919 Jy
! Total flux subtracted in 100 components = 0.442919 Jy
! Clean residual min=-0.026830 max=0.034937 Jy/beam
! Clean residual mean=0.000073 rms=0.006993 Jy/beam
! Combined flux in latest and established models = 0.442919 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 0.442919 Jy
! 
! Correcting IF 1.
!  A total of 504 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 371 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 371 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 371 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.376462Jy  sigma=0.001659
! Fit after  self-cal, rms=0.365703Jy  sigma=0.001598
! Inverting map and beam 
! Estimated beam: bmin=2.676 mas, bmaj=7.05 mas, bpa=-0.4175 degrees
! Estimated noise=1516.54 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.607 mas, bmaj=9.657 mas, bpa=-2.665 degrees
! Estimated noise=745.723 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.0490143 Jy
! Component: 100  -  total flux cleaned = 0.0662259 Jy
! Component: 150  -  total flux cleaned = 0.0710026 Jy
! Component: 200  -  total flux cleaned = 0.071838 Jy
! Total flux subtracted in 200 components = 0.071838 Jy
! Clean residual min=-0.013730 max=0.017804 Jy/beam
! Clean residual mean=-0.000489 rms=0.003738 Jy/beam
! Combined flux in latest and established models = 0.514757 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 39 components and 0.514757 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362323Jy  sigma=0.001573
! Fit after  self-cal, rms=0.362212Jy  sigma=0.001573
! 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.607 x 9.657 at -2.665 degrees (North through East)
! Clean map  min=-0.013008  max=0.44173 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.00315
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.02     HN        1.13     KP        0.84     
!   LA        1.02     MK        1.03     NL        1.00*    OV        1.03     
!   PT        1.10     SC        0.83     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.968447
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.07     HN        1.25     KP        0.99     
!   LA        1.10     MK        1.03     NL        0.86     OV        1.01     
!   PT        1.08     SC        0.92     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.03208
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.01     HN        1.08     KP        0.85     
!   LA        0.81     MK        0.86     NL        0.89     OV        0.91     
!   PT        1.28     SC        1.04     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.973356
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     HN        1.22     KP        0.92     
!   LA        0.89     MK        1.00     NL        0.96     OV        1.05     
!   PT        1.19     SC        1.02     
! 
! 
! Fit before self-cal, rms=0.362212Jy  sigma=0.001573
! Fit after  self-cal, rms=0.355528Jy  sigma=0.001538
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.355528Jy  sigma=0.001538
! Fit after  self-cal, rms=0.355452Jy  sigma=0.001538
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.598 mas, bmaj=9.426 mas, bpa=-1.827 degrees
! Estimated noise=729.417 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.5, -6.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00870811 Jy
! Component: 100  -  total flux cleaned = 0.00879971 Jy
! Component: 150  -  total flux cleaned = 0.00842207 Jy
! Component: 200  -  total flux cleaned = 0.0081103 Jy
! Total flux subtracted in 200 components = 0.0081103 Jy
! Clean residual min=-0.007011 max=0.005680 Jy/beam
! Clean residual mean=-0.000274 rms=0.001816 Jy/beam
! Combined flux in latest and established models = 0.522867 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 64 components and 0.522867 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354903Jy  sigma=0.001535
! Fit after  self-cal, rms=0.354812Jy  sigma=0.001534
! 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.354812Jy  sigma=0.001534
! Fit after  self-cal, rms=0.333749Jy  sigma=0.001400
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.0138845 Jy
! Component: 100  -  total flux cleaned = 0.0154788 Jy
! Component: 150  -  total flux cleaned = 0.0156131 Jy
! Component: 200  -  total flux cleaned = 0.0156208 Jy
! Total flux subtracted in 200 components = 0.0156208 Jy
! Clean residual min=-0.006372 max=0.005231 Jy/beam
! Clean residual mean=-0.000340 rms=0.001568 Jy/beam
! Combined flux in latest and established models = 0.538488 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 85 components and 0.538488 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333459Jy  sigma=0.001397
! Fit after  self-cal, rms=0.331768Jy  sigma=0.001386
! 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.598 x 9.426 at -1.827 degrees (North through East)
! Clean map  min=-0.0064395  max=0.45378 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.331768Jy  sigma=0.001386
! Fit after  self-cal, rms=0.335633Jy  sigma=0.001375
! 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.335633Jy  sigma=0.001375
! Fit after  self-cal, rms=0.335136Jy  sigma=0.001372
! Inverting map and beam 
! Estimated beam: bmin=3.573 mas, bmaj=9.381 mas, bpa=-1.6 degrees
! Estimated noise=723.308 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00307508 Jy
! Component: 100  -  total flux cleaned = 0.00350051 Jy
! Component: 150  -  total flux cleaned = 0.00375863 Jy
! Component: 200  -  total flux cleaned = 0.00398546 Jy
! Total flux subtracted in 200 components = 0.00398546 Jy
! Clean residual min=-0.002689 max=0.003782 Jy/beam
! Clean residual mean=0.000053 rms=0.000865 Jy/beam
! Combined flux in latest and established models = 0.542473 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 107 components and 0.542473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335071Jy  sigma=0.001372
! Fit after  self-cal, rms=0.334839Jy  sigma=0.001370
! 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.334839Jy  sigma=0.001370
! Fit after  self-cal, rms=0.335794Jy  sigma=0.001367
! 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.335794Jy  sigma=0.001367
! Fit after  self-cal, rms=0.335669Jy  sigma=0.001367
! Inverting map and beam 
! Estimated beam: bmin=3.555 mas, bmaj=9.344 mas, bpa=-1.482 degrees
! Estimated noise=722.159 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00241026 Jy
! Component: 100  -  total flux cleaned = 0.00280763 Jy
! Component: 150  -  total flux cleaned = 0.00301274 Jy
! Component: 200  -  total flux cleaned = 0.00319584 Jy
! Total flux subtracted in 200 components = 0.00319584 Jy
! Clean residual min=-0.002539 max=0.003354 Jy/beam
! Clean residual mean=0.000047 rms=0.000821 Jy/beam
! Combined flux in latest and established models = 0.545669 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 112 components and 0.545669 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335634Jy  sigma=0.001366
! Fit after  self-cal, rms=0.335558Jy  sigma=0.001366
! 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.427 mas, bmaj=16.55 mas, bpa=5.632 degrees
! Estimated noise=888.077 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.000531146 Jy
! Component: 100  -  total flux cleaned = 0.000531601 Jy
! Component: 150  -  total flux cleaned = 0.000563159 Jy
! Component: 200  -  total flux cleaned = 0.000620111 Jy
! Total flux subtracted in 200 components = 0.000620111 Jy
! Clean residual min=-0.002273 max=0.003409 Jy/beam
! Clean residual mean=0.000078 rms=0.000897 Jy/beam
! Combined flux in latest and established models = 0.54629 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 125 components and 0.54629 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335549Jy  sigma=0.001366
! Fit after  self-cal, rms=0.335498Jy  sigma=0.001366
! 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.667 mas, bmaj=6.982 mas, bpa=0.3036 degrees
! Estimated noise=1463.3 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.375506 Jy
! Component: 100  -  total flux cleaned = 0.457344 Jy
! Component: 150  -  total flux cleaned = 0.491577 Jy
! Component: 200  -  total flux cleaned = 0.510201 Jy
! Total flux subtracted in 200 components = 0.510201 Jy
! Clean residual min=-0.006325 max=0.007981 Jy/beam
! Clean residual mean=0.000131 rms=0.001969 Jy/beam
! Combined flux in latest and established models = 0.510201 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 33 model components to the UV plane model.
! The established model now contains 33 components and 0.510201 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.555 mas, bmaj=9.344 mas, bpa=-1.482 degrees
! Estimated noise=722.159 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.0184897 Jy
! Component: 100  -  total flux cleaned = 0.0267754 Jy
! Component: 150  -  total flux cleaned = 0.0311222 Jy
! Component: 200  -  total flux cleaned = 0.0332369 Jy
! Total flux subtracted in 200 components = 0.0332369 Jy
! Clean residual min=-0.002669 max=0.003161 Jy/beam
! Clean residual mean=0.000054 rms=0.000830 Jy/beam
! Combined flux in latest and established models = 0.543438 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 86 components and 0.543438 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.427 mas, bmaj=16.55 mas, bpa=5.632 degrees
! Estimated noise=888.077 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.00220058 Jy
! Component: 100  -  total flux cleaned = 0.00238728 Jy
! Component: 150  -  total flux cleaned = 0.00238616 Jy
! Component: 200  -  total flux cleaned = 0.00242372 Jy
! Total flux subtracted in 200 components = 0.00242372 Jy
! Clean residual min=-0.002500 max=0.003247 Jy/beam
! Clean residual mean=0.000080 rms=0.000880 Jy/beam
! Combined flux in latest and established models = 0.545862 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 107 components and 0.545862 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.555 mas, bmaj=9.344 mas, bpa=-1.482 degrees
! Estimated noise=722.159 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000136146 Jy
! Component: 100  -  total flux cleaned = -7.06067e-05 Jy
! Component: 150  -  total flux cleaned = 4.03832e-05 Jy
! Component: 200  -  total flux cleaned = 4.02456e-05 Jy
! Total flux subtracted in 200 components = 4.02456e-05 Jy
! Clean residual min=-0.002610 max=0.003040 Jy/beam
! Clean residual mean=0.000045 rms=0.000813 Jy/beam
! Combined flux in latest and established models = 0.545902 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 120 components and 0.545902 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335492Jy  sigma=0.001366
! Fit after  self-cal, rms=0.335453Jy  sigma=0.001365
wmodel J1709-1728_S_1997_01_10_pus\_map.mod
! Writing 120 model components to file: J1709-1728_S_1997_01_10_pus_map.mod
wobs J1709-1728_S_1997_01_10_pus\_uvs.fits
! Writing UV FITS file: J1709-1728_S_1997_01_10_pus_uvs.fits
wwins J1709-1728_S_1997_01_10_pus\_map.win
! wwins: Wrote 2 windows to J1709-1728_S_1997_01_10_pus_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.000908282 Jy
! Component: 100  -  total flux cleaned = 0.000767977 Jy
! Component: 150  -  total flux cleaned = 0.000767588 Jy
! Component: 200  -  total flux cleaned = 0.000898495 Jy
! Component: 250  -  total flux cleaned = 0.00106788 Jy
! Component: 300  -  total flux cleaned = 0.00119174 Jy
! Component: 350  -  total flux cleaned = 0.00147281 Jy
! Component: 400  -  total flux cleaned = 0.00170785 Jy
! Component: 450  -  total flux cleaned = 0.00201379 Jy
! Component: 500  -  total flux cleaned = 0.00220036 Jy
! Component: 550  -  total flux cleaned = 0.00245685 Jy
! Component: 600  -  total flux cleaned = 0.00267241 Jy
! Component: 650  -  total flux cleaned = 0.00291991 Jy
! Component: 700  -  total flux cleaned = 0.00302414 Jy
! Component: 750  -  total flux cleaned = 0.00333213 Jy
! Component: 800  -  total flux cleaned = 0.00356761 Jy
! Component: 850  -  total flux cleaned = 0.00380028 Jy
! Component: 900  -  total flux cleaned = 0.00409514 Jy
! Component: 950  -  total flux cleaned = 0.00432059 Jy
! Component: 1000  -  total flux cleaned = 0.00454354 Jy
! Component: 1050  -  total flux cleaned = 0.00476365 Jy
! Component: 1100  -  total flux cleaned = 0.00495036 Jy
! Component: 1150  -  total flux cleaned = 0.00513478 Jy
! Component: 1200  -  total flux cleaned = 0.0052563 Jy
! Component: 1250  -  total flux cleaned = 0.00540669 Jy
! Component: 1300  -  total flux cleaned = 0.00561432 Jy
! Component: 1350  -  total flux cleaned = 0.00564356 Jy
! Component: 1400  -  total flux cleaned = 0.00578888 Jy
! Component: 1450  -  total flux cleaned = 0.00590406 Jy
! Component: 1500  -  total flux cleaned = 0.00598958 Jy
! Component: 1550  -  total flux cleaned = 0.00610189 Jy
! Component: 1600  -  total flux cleaned = 0.006213 Jy
! Component: 1650  -  total flux cleaned = 0.00626802 Jy
! Component: 1700  -  total flux cleaned = 0.00632289 Jy
! Component: 1750  -  total flux cleaned = 0.00643183 Jy
! Component: 1800  -  total flux cleaned = 0.00659288 Jy
! Component: 1850  -  total flux cleaned = 0.00669901 Jy
! Component: 1900  -  total flux cleaned = 0.00675148 Jy
! Component: 1950  -  total flux cleaned = 0.006778 Jy
! Component: 2000  -  total flux cleaned = 0.00695889 Jy
! Total flux subtracted in 2048 components = 0.00693332 Jy
! Clean residual min=-0.001408 max=0.001617 Jy/beam
! Clean residual mean=0.000022 rms=0.000529 Jy/beam
! Combined flux in latest and established models = 0.552836 Jy
keep
! Adding 120 model components to the UV plane model.
! The established model now contains 240 components and 0.552835 Jy
wmap "J1709-1728_S_1997_01_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.555 x 9.344 at -1.482 degrees (North through East)
! Clean map  min=-0.0023449  max=0.45364 Jy/beam
! Writing clean map to FITS file: J1709-1728_S_1997_01_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.453636 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000527769 
device "J1709-1728_S_1997_01_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1709-1728_S_1997_01_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.349026 0.349026 0.698052 1.3961 2.79221 5.58441 11.1688 22.3377 44.6753 89.3506
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.453 
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.555 x 9.344 at -1.482 degrees (North through East)
! Clean map  min=-0.0023449  max=0.45364 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1709-1728_S_1997_01_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1709-1728_S_1997_01_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1709-1728_S_1997_01_10_pus_uvs.log closed on Mon Jan 30 01:13:03 2006