! Started logfile: 2329-162_X.log on Thu May 15 14:08:37 1997
observe 2329-162_X.edt
! Reading UV FITS file: 2329-162_X.edt
! AN table 1: 62 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.723656 visibilities/baseline/integration-bin.
! Found source: 2329-162
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  8.15049e+09         4e+06         4e+06       USB
! 02  8.23049e+09         4e+06         4e+06       USB
! 03  8.41049e+09         4e+06         4e+06       USB
! 04  8.55049e+09         4e+06         4e+06       USB
! 
! Polarization(s): RR
! 
! Read 351 lines of history.
! 
! Reading 8076 visibilities.
! Selecting polarization: RR,  channels: 1..1
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.2
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 8.0
float win_mult
win_mult = 1.8
float solint
solint = 4.0/6.0
logical doflt
doflt = true
logical doamp
float new_peak
float flux_cutoff
mapsize field_size,field_cell
! Map grid = 1024x1024 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 168 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 168 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 168 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 168 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.539520Jy  sigma=3.319787
! Fit after  self-cal, rms=0.539382Jy  sigma=3.319031
! 
! Reinstating the default IF.
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvweight 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.
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7585 mas, bmaj=1.893 mas, bpa=-2.952 degrees
! Estimated noise=2.08447 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.339651 Jy
! Total flux subtracted in 50 components = 0.339651 Jy
! Clean residual min=-0.029582 max=0.105208 Jy/beam
! Clean residual mean=-0.000147 rms=0.008606 Jy/beam
! Combined flux in latest and established models = 0.339651 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.339651 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260513Jy  sigma=1.599925
! Fit after  self-cal, rms=0.260481Jy  sigma=1.599732
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.114659 Jy
! Total flux subtracted in 50 components = 0.114659 Jy
! Clean residual min=-0.020310 max=0.067233 Jy/beam
! Clean residual mean=-0.000111 rms=0.005900 Jy/beam
! Combined flux in latest and established models = 0.45431 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 10 components and 0.45431 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.195861Jy  sigma=1.202395
! Fit after  self-cal, rms=0.195634Jy  sigma=1.200976
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (1.2, 0.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0734927 Jy
! Total flux subtracted in 50 components = 0.0734927 Jy
! Clean residual min=-0.016643 max=0.037565 Jy/beam
! Clean residual mean=-0.000084 rms=0.004338 Jy/beam
! Combined flux in latest and established models = 0.527803 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 13 components and 0.527803 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162323Jy  sigma=0.995798
! Fit after  self-cal, rms=0.161635Jy  sigma=0.991527
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0484685 Jy
! Total flux subtracted in 50 components = 0.0484685 Jy
! Clean residual min=-0.014004 max=0.025060 Jy/beam
! Clean residual mean=-0.000067 rms=0.003335 Jy/beam
! Combined flux in latest and established models = 0.576271 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 14 components and 0.576271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144318Jy  sigma=0.884747
! Fit after  self-cal, rms=0.144045Jy  sigma=0.883045
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0321942 Jy
! Total flux subtracted in 50 components = 0.0321942 Jy
! Clean residual min=-0.012212 max=0.018726 Jy/beam
! Clean residual mean=-0.000056 rms=0.002793 Jy/beam
! Combined flux in latest and established models = 0.608465 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 16 components and 0.608465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135481Jy  sigma=0.830162
! Fit after  self-cal, rms=0.135356Jy  sigma=0.829387
! 
! Reinstating the default IF.
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Uniform Weighting CLEAN ***"
! *** Finished Uniform Weighting CLEAN *** 
print "****************************************"
! **************************************** 
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9623 mas, bmaj=2.239 mas, bpa=-1.748 degrees
! Estimated noise=1.38134 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0332961 Jy
! Component: 100  -  total flux cleaned = 0.0504347 Jy
! Total flux subtracted in 100 components = 0.0504347 Jy
! Clean residual min=-0.007845 max=0.011468 Jy/beam
! Clean residual mean=-0.000088 rms=0.002250 Jy/beam
! Combined flux in latest and established models = 0.6589 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 32 components and 0.6589 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128083Jy  sigma=0.784340
! Fit after  self-cal, rms=0.127861Jy  sigma=0.782971
! 
! Reinstating the default IF.
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     HN        1.07     KP        1.00     
!   LA        1.00     MK        0.98     NL        0.94     OV        1.00     
!   PT        0.92     SC        0.94     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     HN        1.09     KP        1.01     
!   LA        0.99     MK        0.97     NL        0.95     OV        0.99     
!   PT        0.91     SC        0.96     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     HN        1.10     KP        1.01     
!   LA        1.01     MK        0.98     NL        0.97     OV        1.01     
!   PT        0.94     SC        0.99     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     HN        1.09     KP        1.01     
!   LA        1.02     MK        0.98     NL        0.95     OV        1.01     
!   PT        0.95     SC        0.99     
! 
! 
! Fit before self-cal, rms=0.127861Jy  sigma=0.782971
! Fit after  self-cal, rms=0.123844Jy  sigma=0.761955
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9618 mas, bmaj=2.231 mas, bpa=-1.482 degrees
! Estimated noise=1.35706 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00416468 Jy
! Component: 100  -  total flux cleaned = 0.00417032 Jy
! Total flux subtracted in 100 components = 0.00417032 Jy
! Clean residual min=-0.006718 max=0.007409 Jy/beam
! Clean residual mean=-0.000028 rms=0.001614 Jy/beam
! Combined flux in latest and established models = 0.66307 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 44 components and 0.66307 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123640Jy  sigma=0.760652
! Fit after  self-cal, rms=0.123627Jy  sigma=0.760490
! 
! Reinstating the default IF.
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * 1.5
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 doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000574704 Jy
! Component: 100  -  total flux cleaned = 0.000575938 Jy
! Total flux subtracted in 100 components = 0.000575938 Jy
! Clean residual min=-0.006698 max=0.007255 Jy/beam
! Clean residual mean=-0.000028 rms=0.001602 Jy/beam
! Combined flux in latest and established models = 0.663646 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 45 components and 0.663646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123550Jy  sigma=0.760025
! Fit after  self-cal, rms=0.122109Jy  sigma=0.746678
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=0.9622 mas, bmaj=2.241 mas, bpa=-1.55 degrees
! Estimated noise=1.35748 mJy/beam.
doamp = false
solint = solint / 1.5
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 doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00221641 Jy
! Component: 100  -  total flux cleaned = 0.00220965 Jy
! Total flux subtracted in 100 components = 0.00220965 Jy
! Clean residual min=-0.005408 max=0.006416 Jy/beam
! Clean residual mean=-0.000000 rms=0.001284 Jy/beam
! Combined flux in latest and established models = 0.665856 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 51 components and 0.665856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.122018Jy  sigma=0.746109
! Fit after  self-cal, rms=0.122011Jy  sigma=0.746043
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2329-162_X
! Writing UV FITS file: 2329-162_X.uvf
! Writing 51 model components to file: 2329-162_X.mod
! wwins: Wrote 2 windows to 2329-162_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9622 x 2.241 at -1.55 degrees (North through East)
! Clean map  min=-0.0051014  max=0.47038 Jy/beam
! Writing clean map to FITS file: 2329-162_X.fits
! Writing difmap environment to: 2329-162_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2329-162_Xuv.ps/vps,1,2
! Attempting to open device: '2329-162_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 2329-162_Xim.ps/vps
! Attempting to open device: '2329-162_Xim.ps/vps'
cmul = 1.0
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
loglevs (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.9622 mas, bmaj=2.241 mas, bpa=-1.55 degrees
! Estimated noise=1.35748 mJy/beam.
! The new contour levels are:
!  -0.00385273 0.00385273 0.00770546 0.0154109 0.0308219 0.0616437 0.123287 0.246575 0.49315 0.986299 1.9726 3.9452 7.8904 15.7808 31.5616 63.1232 126.246 252.493 504.985 1009.97 2019.94 4039.88 8079.76 16159.5
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9622 x 2.241 at -1.55 degrees (North through East)
! Clean map  min=-0.0051014  max=0.47038 Jy/beam
quit
! Quitting program
! Log file 2329-162_X.log closed on Thu May 15 14:10:26 1997