! Started logfile: J1619+0613_S_1997_01_10_pus_uvs.log on Mon Jan 30 01:08:22 2006
obs J1619+0613_S_1997_01_10_pus_uva.fits
! Reading UV FITS file: J1619+0613_S_1997_01_10_pus_uva.fits
! AN table 1: 272 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.751062 visibilities/baseline/integration-bin.
! Found source: J1619+0613
! 
! 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 36772 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.57448 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=3.384 mas, bmaj=6.417 mas, bpa=-2.435 degrees
! Estimated noise=1261.64 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.364445 Jy
! Component: 100  -  total flux cleaned = 0.427955 Jy
! Total flux subtracted in 100 components = 0.427955 Jy
! Clean residual min=-0.022744 max=0.032912 Jy/beam
! Clean residual mean=-0.000051 rms=0.007143 Jy/beam
! Combined flux in latest and established models = 0.427955 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.427955 Jy
! 
! Correcting IF 1.
!  A total of 604 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 373 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 373 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 373 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.377251Jy  sigma=0.001638
! Fit after  self-cal, rms=0.367345Jy  sigma=0.001591
! Inverting map and beam 
! Estimated beam: bmin=3.384 mas, bmaj=6.417 mas, bpa=-2.433 degrees
! Estimated noise=1261.6 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=4.353 mas, bmaj=7.96 mas, bpa=-4.151 degrees
! Estimated noise=717.995 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.0433916 Jy
! Component: 100  -  total flux cleaned = 0.0623727 Jy
! Component: 150  -  total flux cleaned = 0.0700309 Jy
! Component: 200  -  total flux cleaned = 0.0721549 Jy
! Total flux subtracted in 200 components = 0.0721549 Jy
! Clean residual min=-0.015442 max=0.018375 Jy/beam
! Clean residual mean=-0.000151 rms=0.004808 Jy/beam
! Combined flux in latest and established models = 0.50011 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 37 components and 0.50011 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364422Jy  sigma=0.001569
! Fit after  self-cal, rms=0.364365Jy  sigma=0.001568
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.353 x 7.96 at -4.151 degrees (North through East)
! Clean map  min=-0.015148  max=0.43138 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.0153
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     HN        1.06     KP        0.82     
!   LA        1.00     MK        1.01     NL        1.00*    OV        1.02     
!   PT        1.11     SC        0.84     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.960848
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.09     HN        1.23     KP        0.97     
!   LA        1.08     MK        1.01     NL        1.02     OV        0.96     
!   PT        1.08     SC        0.95     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.02761
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     HN        0.98     KP        0.83     
!   LA        0.81     MK        0.87     NL        1.01     OV        0.89     
!   PT        1.30     SC        1.09     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.959526
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.04     HN        1.17     KP        0.90     
!   LA        0.88     MK        1.00     NL        1.14     OV        1.03     
!   PT        1.19     SC        1.07     
! 
! 
! Fit before self-cal, rms=0.364365Jy  sigma=0.001568
! Fit after  self-cal, rms=0.347664Jy  sigma=0.001533
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.347664Jy  sigma=0.001533
! Fit after  self-cal, rms=0.347672Jy  sigma=0.001533
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.337 mas, bmaj=7.922 mas, bpa=-4.007 degrees
! Estimated noise=697.469 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.00613851 Jy
! Component: 100  -  total flux cleaned = -0.00725337 Jy
! Component: 150  -  total flux cleaned = -0.00808923 Jy
! Component: 200  -  total flux cleaned = -0.00841125 Jy
! Total flux subtracted in 200 components = -0.00841125 Jy
! Clean residual min=-0.009096 max=0.013331 Jy/beam
! Clean residual mean=0.000015 rms=0.002995 Jy/beam
! Combined flux in latest and established models = 0.491699 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 48 components and 0.491699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347210Jy  sigma=0.001531
! Fit after  self-cal, rms=0.347182Jy  sigma=0.001531
! 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.347182Jy  sigma=0.001531
! Fit after  self-cal, rms=0.326628Jy  sigma=0.001411
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-7, 5.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.019765 Jy
! Component: 100  -  total flux cleaned = 0.0266839 Jy
! Component: 150  -  total flux cleaned = 0.0281382 Jy
! Component: 200  -  total flux cleaned = 0.0283656 Jy
! Total flux subtracted in 200 components = 0.0283656 Jy
! Clean residual min=-0.007766 max=0.011631 Jy/beam
! Clean residual mean=-0.000024 rms=0.002520 Jy/beam
! Combined flux in latest and established models = 0.520064 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 80 components and 0.520064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325790Jy  sigma=0.001405
! Fit after  self-cal, rms=0.324397Jy  sigma=0.001396
! 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: 4.337 x 7.922 at -4.007 degrees (North through East)
! Clean map  min=-0.0088969  max=0.43588 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.324397Jy  sigma=0.001396
! Fit after  self-cal, rms=0.372006Jy  sigma=0.001362
! 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.372006Jy  sigma=0.001362
! Fit after  self-cal, rms=0.371765Jy  sigma=0.001359
! Inverting map and beam 
! Estimated beam: bmin=4.273 mas, bmaj=7.785 mas, bpa=-4.507 degrees
! Estimated noise=685.372 mJy/beam.
! Added new window around map position (2.5, 12).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.010225 Jy
! Component: 100  -  total flux cleaned = 0.0132576 Jy
! Component: 150  -  total flux cleaned = 0.0141238 Jy
! Component: 200  -  total flux cleaned = 0.0149884 Jy
! Total flux subtracted in 200 components = 0.0149884 Jy
! Clean residual min=-0.003777 max=0.007528 Jy/beam
! Clean residual mean=0.000000 rms=0.001235 Jy/beam
! Combined flux in latest and established models = 0.535053 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 117 components and 0.535053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371503Jy  sigma=0.001357
! Fit after  self-cal, rms=0.371364Jy  sigma=0.001356
! Inverting map 
! Added new window around map position (3, 33).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00645706 Jy
! Component: 100  -  total flux cleaned = 0.00871906 Jy
! Component: 150  -  total flux cleaned = 0.00988283 Jy
! Component: 200  -  total flux cleaned = 0.010208 Jy
! Total flux subtracted in 200 components = 0.010208 Jy
! Clean residual min=-0.003636 max=0.003508 Jy/beam
! Clean residual mean=-0.000010 rms=0.000983 Jy/beam
! Combined flux in latest and established models = 0.545261 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 39 model components to the UV plane model.
! The established model now contains 152 components and 0.545261 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371266Jy  sigma=0.001355
! Fit after  self-cal, rms=0.371200Jy  sigma=0.001355
! 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.371200Jy  sigma=0.001355
! Fit after  self-cal, rms=0.388779Jy  sigma=0.001352
! 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.388779Jy  sigma=0.001352
! Fit after  self-cal, rms=0.388749Jy  sigma=0.001352
! Inverting map and beam 
! Estimated beam: bmin=4.275 mas, bmaj=7.76 mas, bpa=-4.448 degrees
! Estimated noise=684.382 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00312065 Jy
! Component: 100  -  total flux cleaned = 0.00386699 Jy
! Component: 150  -  total flux cleaned = 0.00443133 Jy
! Component: 200  -  total flux cleaned = 0.00468761 Jy
! Total flux subtracted in 200 components = 0.00468761 Jy
! Clean residual min=-0.003181 max=0.003216 Jy/beam
! Clean residual mean=-0.000003 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 0.549948 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 177 components and 0.549948 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.388699Jy  sigma=0.001352
! Fit after  self-cal, rms=0.388663Jy  sigma=0.001351
! 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.879 mas, bmaj=11.24 mas, bpa=8.284 degrees
! Estimated noise=805.229 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.00155482 Jy
! Component: 100  -  total flux cleaned = 0.00187075 Jy
! Component: 150  -  total flux cleaned = 0.00171008 Jy
! Component: 200  -  total flux cleaned = 0.00175655 Jy
! Total flux subtracted in 200 components = 0.00175655 Jy
! Clean residual min=-0.003700 max=0.003056 Jy/beam
! Clean residual mean=-0.000015 rms=0.000980 Jy/beam
! Combined flux in latest and established models = 0.551705 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 201 components and 0.551705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.388648Jy  sigma=0.001351
! Fit after  self-cal, rms=0.388621Jy  sigma=0.001351
! 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=3.353 mas, bmaj=6.314 mas, bpa=-1.965 degrees
! Estimated noise=1214.68 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.372779 Jy
! Component: 100  -  total flux cleaned = 0.440274 Jy
! Component: 150  -  total flux cleaned = 0.469075 Jy
! Component: 200  -  total flux cleaned = 0.486981 Jy
! Total flux subtracted in 200 components = 0.486981 Jy
! Clean residual min=-0.006577 max=0.008544 Jy/beam
! Clean residual mean=0.000001 rms=0.001983 Jy/beam
! Combined flux in latest and established models = 0.486981 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 35 model components to the UV plane model.
! The established model now contains 35 components and 0.486982 Jy
! Inverting map and beam 
! Estimated beam: bmin=4.275 mas, bmaj=7.76 mas, bpa=-4.448 degrees
! Estimated noise=684.382 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.0205084 Jy
! Component: 100  -  total flux cleaned = 0.0327595 Jy
! Component: 150  -  total flux cleaned = 0.0418017 Jy
! Component: 200  -  total flux cleaned = 0.0488239 Jy
! Total flux subtracted in 200 components = 0.0488239 Jy
! Clean residual min=-0.005052 max=0.004085 Jy/beam
! Clean residual mean=0.000020 rms=0.001235 Jy/beam
! Combined flux in latest and established models = 0.535805 Jy
! Adding 72 model components to the UV plane model.
! The established model now contains 102 components and 0.535806 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.879 mas, bmaj=11.24 mas, bpa=8.284 degrees
! Estimated noise=805.229 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.00628241 Jy
! Component: 100  -  total flux cleaned = 0.00957027 Jy
! Component: 150  -  total flux cleaned = 0.0118576 Jy
! Component: 200  -  total flux cleaned = 0.013207 Jy
! Total flux subtracted in 200 components = 0.013207 Jy
! Clean residual min=-0.004198 max=0.003194 Jy/beam
! Clean residual mean=-0.000007 rms=0.001072 Jy/beam
! Combined flux in latest and established models = 0.549013 Jy
! Adding 72 model components to the UV plane model.
! The established model now contains 167 components and 0.549012 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=4.275 mas, bmaj=7.76 mas, bpa=-4.448 degrees
! Estimated noise=684.382 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -8.2785e-05 Jy
! Component: 100  -  total flux cleaned = 0.000562576 Jy
! Component: 150  -  total flux cleaned = 0.000897273 Jy
! Component: 200  -  total flux cleaned = 0.00129435 Jy
! Total flux subtracted in 200 components = 0.00129435 Jy
! Clean residual min=-0.004032 max=0.003410 Jy/beam
! Clean residual mean=-0.000005 rms=0.000936 Jy/beam
! Combined flux in latest and established models = 0.550307 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 191 components and 0.550307 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.388637Jy  sigma=0.001351
! Fit after  self-cal, rms=0.388605Jy  sigma=0.001351
wmodel J1619+0613_S_1997_01_10_pus\_map.mod
! Writing 191 model components to file: J1619+0613_S_1997_01_10_pus_map.mod
wobs J1619+0613_S_1997_01_10_pus\_uvs.fits
! Writing UV FITS file: J1619+0613_S_1997_01_10_pus_uvs.fits
wwins J1619+0613_S_1997_01_10_pus\_map.win
! wwins: Wrote 4 windows to J1619+0613_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.000862934 Jy
! Component: 100  -  total flux cleaned = -0.000459194 Jy
! Component: 150  -  total flux cleaned = 0.000124253 Jy
! Component: 200  -  total flux cleaned = 0.000472747 Jy
! Component: 250  -  total flux cleaned = 0.000758754 Jy
! Component: 300  -  total flux cleaned = 0.000942725 Jy
! Component: 350  -  total flux cleaned = 0.00112039 Jy
! Component: 400  -  total flux cleaned = 0.0012496 Jy
! Component: 450  -  total flux cleaned = 0.00133324 Jy
! Component: 500  -  total flux cleaned = 0.0014569 Jy
! Component: 550  -  total flux cleaned = 0.0014976 Jy
! Component: 600  -  total flux cleaned = 0.00157682 Jy
! Component: 650  -  total flux cleaned = 0.00161544 Jy
! Component: 700  -  total flux cleaned = 0.0016909 Jy
! Component: 750  -  total flux cleaned = 0.00172785 Jy
! Component: 800  -  total flux cleaned = 0.00183624 Jy
! Component: 850  -  total flux cleaned = 0.00194249 Jy
! Component: 900  -  total flux cleaned = 0.00197641 Jy
! Component: 950  -  total flux cleaned = 0.00190681 Jy
! Component: 1000  -  total flux cleaned = 0.00197503 Jy
! Component: 1050  -  total flux cleaned = 0.00190758 Jy
! Component: 1100  -  total flux cleaned = 0.00194126 Jy
! Component: 1150  -  total flux cleaned = 0.00190905 Jy
! Component: 1200  -  total flux cleaned = 0.00190991 Jy
! Component: 1250  -  total flux cleaned = 0.00213533 Jy
! Component: 1300  -  total flux cleaned = 0.00226201 Jy
! Component: 1350  -  total flux cleaned = 0.00229289 Jy
! Component: 1400  -  total flux cleaned = 0.00238608 Jy
! Component: 1450  -  total flux cleaned = 0.00247869 Jy
! Component: 1500  -  total flux cleaned = 0.00260027 Jy
! Component: 1550  -  total flux cleaned = 0.00275047 Jy
! Component: 1600  -  total flux cleaned = 0.00292814 Jy
! Component: 1650  -  total flux cleaned = 0.00307476 Jy
! Component: 1700  -  total flux cleaned = 0.00324927 Jy
! Component: 1750  -  total flux cleaned = 0.00336486 Jy
! Component: 1800  -  total flux cleaned = 0.00359366 Jy
! Component: 1850  -  total flux cleaned = 0.00373498 Jy
! Component: 1900  -  total flux cleaned = 0.00381949 Jy
! Component: 1950  -  total flux cleaned = 0.00393084 Jy
! Component: 2000  -  total flux cleaned = 0.00426165 Jy
! Total flux subtracted in 2048 components = 0.00423389 Jy
! Clean residual min=-0.001735 max=0.001666 Jy/beam
! Clean residual mean=0.000007 rms=0.000597 Jy/beam
! Combined flux in latest and established models = 0.554541 Jy
keep
! Adding 147 model components to the UV plane model.
! The established model now contains 338 components and 0.554541 Jy
wmap "J1619+0613_S_1997_01_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.275 x 7.76 at -4.448 degrees (North through East)
! Clean map  min=-0.002816  max=0.43658 Jy/beam
! Writing clean map to FITS file: J1619+0613_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.436575 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000598274 
device "J1619+0613_S_1997_01_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1619+0613_S_1997_01_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.411114 0.411114 0.822228 1.64446 3.28891 6.57783 13.1557 26.3113 52.6226
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.436 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.275 x 7.76 at -4.448 degrees (North through East)
! Clean map  min=-0.002816  max=0.43658 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1619+0613_S_1997_01_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1619+0613_S_1997_01_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1619+0613_S_1997_01_10_pus_uvs.log closed on Mon Jan 30 01:09:19 2006