! Started logfile: 1302-102_S.log on Wed Apr  2 23:11:13 1997
observe 1302-102_S.edt
! Reading UV FITS file: 1302-102_S.edt
! AN table 1: 44 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.811616 visibilities/baseline/integration-bin.
! Found source: 1302-102
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  2.22049e+09         4e+06         4e+06       USB
! 02  2.23049e+09         4e+06         4e+06       USB
! 03  2.29049e+09         4e+06         4e+06       USB
! 04  2.32049e+09         4e+06         4e+06       USB
! 
! Polarization(s): RR
! 
! Read 379 lines of history.
! 
! Reading 6428 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.5
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.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.500x0.500 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 106 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 93 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 93 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 93 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.163131Jy  sigma=0.996770
! Fit after  self-cal, rms=0.162314Jy  sigma=0.991942
! 
! 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=2.954 mas, bmaj=7.505 mas, bpa=1.268 degrees
! Estimated noise=2.15522 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.798863 Jy
! Total flux subtracted in 50 components = 0.798863 Jy
! Clean residual min=-0.047139 max=0.222810 Jy/beam
! Clean residual mean=-0.000008 rms=0.013887 Jy/beam
! Combined flux in latest and established models = 0.798863 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.798863 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279677Jy  sigma=1.717745
! Fit after  self-cal, rms=0.279677Jy  sigma=1.717745
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.174204 Jy
! Total flux subtracted in 50 components = 0.174204 Jy
! Clean residual min=-0.016740 max=0.048587 Jy/beam
! Clean residual mean=0.000004 rms=0.004616 Jy/beam
! Combined flux in latest and established models = 0.973067 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.973067 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169115Jy  sigma=1.034054
! Fit after  self-cal, rms=0.169115Jy  sigma=1.034054
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0403354 Jy
! Total flux subtracted in 50 components = 0.0403354 Jy
! Clean residual min=-0.012624 max=0.016592 Jy/beam
! Clean residual mean=0.000007 rms=0.003492 Jy/beam
! Combined flux in latest and established models = 1.0134 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 9 components and 1.0134 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160388Jy  sigma=0.979988
! Fit after  self-cal, rms=0.160387Jy  sigma=0.979984
! 
! 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=3.615 mas, bmaj=8.857 mas, bpa=1.963 degrees
! Estimated noise=1.58532 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 (5.5, 5.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0197826 Jy
! Component: 100  -  total flux cleaned = 0.0306034 Jy
! Total flux subtracted in 100 components = 0.0306034 Jy
! Clean residual min=-0.009681 max=0.012505 Jy/beam
! Clean residual mean=0.000006 rms=0.002313 Jy/beam
! Combined flux in latest and established models = 1.04401 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 32 components and 1.04401 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158197Jy  sigma=0.966480
! Fit after  self-cal, rms=0.158139Jy  sigma=0.966123
! 
! 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.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.97     HN        1.00     KP        0.99     
!   LA        0.97     MK        0.98     NL        1.07     OV        1.00     
!   PT        0.99     SC        1.01     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     HN        0.97     KP        0.93     
!   LA        1.00     MK        0.98     NL        1.03     OV        1.00     
!   PT        1.00     SC        1.02     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     HN        1.01     KP        0.99     
!   LA        0.99     MK        0.99     NL        1.02     OV        1.00     
!   PT        0.99     SC        1.03     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.03     HN        1.01     KP        1.01     
!   LA        1.00     MK        1.02     NL        1.07     OV        1.00     
!   PT        0.99     SC        0.99     
! 
! 
! Fit before self-cal, rms=0.158139Jy  sigma=0.966123
! Fit after  self-cal, rms=0.153834Jy  sigma=0.943400
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.616 mas, bmaj=8.882 mas, bpa=1.778 degrees
! Estimated noise=1.58058 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.00220357 Jy
! Component: 100  -  total flux cleaned = -0.00237686 Jy
! Total flux subtracted in 100 components = -0.00237686 Jy
! Clean residual min=-0.006774 max=0.007682 Jy/beam
! Clean residual mean=0.000018 rms=0.001748 Jy/beam
! Combined flux in latest and established models = 1.04163 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 45 components and 1.04163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153617Jy  sigma=0.942050
! Fit after  self-cal, rms=0.153616Jy  sigma=0.942022
! 
! 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 = -5.86107e-06 Jy
! Component: 100  -  total flux cleaned = -0.000151686 Jy
! Total flux subtracted in 100 components = -0.000151686 Jy
! Clean residual min=-0.006775 max=0.007392 Jy/beam
! Clean residual mean=0.000017 rms=0.001720 Jy/beam
! Combined flux in latest and established models = 1.04148 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 47 components and 1.04148 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153493Jy  sigma=0.941264
! Fit after  self-cal, rms=0.150259Jy  sigma=0.919407
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.627 mas, bmaj=8.895 mas, bpa=1.86 degrees
! Estimated noise=1.5824 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 = -1.15005e-05 Jy
! Component: 100  -  total flux cleaned = 0.000512609 Jy
! Total flux subtracted in 100 components = 0.000512609 Jy
! Clean residual min=-0.005781 max=0.006032 Jy/beam
! Clean residual mean=0.000013 rms=0.001405 Jy/beam
! Combined flux in latest and established models = 1.04199 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 64 components and 1.04199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150158Jy  sigma=0.918775
! Fit after  self-cal, rms=0.150154Jy  sigma=0.918750
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1302-102_S
! Writing UV FITS file: 1302-102_S.uvf
! Writing 64 model components to file: 1302-102_S.mod
! wwins: Wrote 2 windows to 1302-102_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.627 x 8.895 at 1.86 degrees (North through East)
! Clean map  min=-0.0055276  max=1.0226 Jy/beam
! Writing clean map to FITS file: 1302-102_S.fits
! Writing difmap environment to: 1302-102_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1302-102_Suv.ps/vps,1,2
! Attempting to open device: '1302-102_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1302-102_Sim.ps/vps
! Attempting to open device: '1302-102_Sim.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=3.627 mas, bmaj=8.895 mas, bpa=1.86 degrees
! Estimated noise=1.5824 mJy/beam.
! The new contour levels are:
!  -0.00421401 0.00421401 0.00842803 0.0168561 0.0337121 0.0674242 0.134848 0.269697 0.539394 1.07879 2.15758 4.31515 8.6303 17.2606 34.5212 69.0424 138.085 276.17 552.339 1104.68 2209.36 4418.71 8837.43 17674.9
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.627 x 8.895 at 1.86 degrees (North through East)
! Clean map  min=-0.0055276  max=1.0226 Jy/beam
quit
! Quitting program
! Log file 1302-102_S.log closed on Wed Apr  2 23:16:17 1997