! Started logfile: 1958-179_S.log on Fri Jul 12 12:47:29 1996
observe 1958-179_S.edt
! Reading UV FITS file: 1958-179_S.edt
! AN table 1: 137 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.682482 visibilities/baseline/integration-bin.
! Found source: 1958-179
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  2.22099e+09       1.6e+07       1.6e+07       USB
! 
! Polarization(s): RR
! 
! Read 816 lines of history.
! 
! Reading 3366 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 = 75
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 263 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.605495Jy  sigma=7.255990
! Fit after  self-cal, rms=0.604585Jy  sigma=7.254333
! 
! 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=3.028 mas, bmaj=7.578 mas, bpa=-3.155 degrees
! Estimated noise=1.3405 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=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.308755 Jy
! Total flux subtracted in 75 components = 0.358825 Jy
! Clean residual min=-0.010812 max=0.050401 Jy/beam
! Clean residual mean=0.000018 rms=0.003266 Jy/beam
! Combined flux in latest and established models = 0.358825 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.358825 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.118769Jy  sigma=1.380168
! Fit after  self-cal, rms=0.118760Jy  sigma=1.380072
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0494939 Jy
! Total flux subtracted in 75 components = 0.061685 Jy
! Clean residual min=-0.007623 max=0.012959 Jy/beam
! Clean residual mean=-0.000033 rms=0.002039 Jy/beam
! Combined flux in latest and established models = 0.42051 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 11 components and 0.42051 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.099497Jy  sigma=1.128125
! Fit after  self-cal, rms=0.099403Jy  sigma=1.127021
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0142945 Jy
! Total flux subtracted in 75 components = 0.0183166 Jy
! Clean residual min=-0.007776 max=0.008076 Jy/beam
! Clean residual mean=-0.000048 rms=0.001898 Jy/beam
! Combined flux in latest and established models = 0.438827 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 13 components and 0.438827 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.097688Jy  sigma=1.102439
! Fit after  self-cal, rms=0.097656Jy  sigma=1.102062
! 
! 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.4 mas, bmaj=8.212 mas, bpa=-1.076 degrees
! Estimated noise=1.06018 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=150  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00545746 Jy
! Component: 100  -  total flux cleaned = 0.00638484 Jy
! Component: 150  -  total flux cleaned = 0.00630488 Jy
! Total flux subtracted in 150 components = 0.00630488 Jy
! Clean residual min=-0.005621 max=0.006249 Jy/beam
! Clean residual mean=-0.000098 rms=0.001581 Jy/beam
! Combined flux in latest and established models = 0.445132 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 24 components and 0.445132 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.097417Jy  sigma=1.097954
! Fit after  self-cal, rms=0.097406Jy  sigma=1.097801
! 
! 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        1.00     FD        0.99     HN        1.04     LA        0.99     
!   MK        1.01     NL        1.01     OV        1.00     PT        0.98     
!   SC        0.98     
! 
! 
! Fit before self-cal, rms=0.097406Jy  sigma=1.097801
! Fit after  self-cal, rms=0.097174Jy  sigma=1.090790
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.403 mas, bmaj=8.2 mas, bpa=-0.6515 degrees
! Estimated noise=1.05935 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=150  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00329095 Jy
! Component: 100  -  total flux cleaned = -0.0034236 Jy
! Component: 150  -  total flux cleaned = -0.00352561 Jy
! Total flux subtracted in 150 components = -0.00352561 Jy
! Clean residual min=-0.005702 max=0.005760 Jy/beam
! Clean residual mean=-0.000121 rms=0.001502 Jy/beam
! Combined flux in latest and established models = 0.441606 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 31 components and 0.441606 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.096878Jy  sigma=1.087234
! Fit after  self-cal, rms=0.096874Jy  sigma=1.087158
! 
! 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=150  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 4.43346e-05 Jy
! Component: 100  -  total flux cleaned = -6.72982e-05 Jy
! Component: 150  -  total flux cleaned = -0.000215321 Jy
! Total flux subtracted in 150 components = -0.000215321 Jy
! Clean residual min=-0.005685 max=0.005728 Jy/beam
! Clean residual mean=-0.000121 rms=0.001497 Jy/beam
! Combined flux in latest and established models = 0.441391 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 36 components and 0.441391 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.096824Jy  sigma=1.086428
! Fit after  self-cal, rms=0.093477Jy  sigma=1.003101
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.405 mas, bmaj=8.242 mas, bpa=-0.5632 degrees
! Estimated noise=1.05826 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=150  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000195541 Jy
! Component: 100  -  total flux cleaned = -0.000513937 Jy
! Component: 150  -  total flux cleaned = -0.00060104 Jy
! Total flux subtracted in 150 components = -0.00060104 Jy
! Clean residual min=-0.004293 max=0.003791 Jy/beam
! Clean residual mean=-0.000048 rms=0.000977 Jy/beam
! Combined flux in latest and established models = 0.44079 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 45 components and 0.44079 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.093419Jy  sigma=1.002571
! Fit after  self-cal, rms=0.093426Jy  sigma=1.002493
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1958-179_S
! Writing UV FITS file: 1958-179_S.uvf
! Writing 45 model components to file: 1958-179_S.mod
! wwins: Wrote 1 windows to 1958-179_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.405 x 8.242 at -0.5632 degrees (North through East)
! Clean map  min=-0.0041147  max=0.40334 Jy/beam
! Writing clean map to FITS file: 1958-179_S.fits
! Writing difmap environment to: 1958-179_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1958-179_Suv.ps/vps,1,2
! Attempting to open device: '1958-179_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1958-179_Sim.ps/vps
! Attempting to open device: '1958-179_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.405 mas, bmaj=8.242 mas, bpa=-0.5632 degrees
! Estimated noise=1.05826 mJy/beam.
! The new contour levels are:
!  -0.00293072 0.00293072 0.00586144 0.0117229 0.0234458 0.0468916 0.0937831 0.187566 0.375132 0.750265 1.50053 3.00106 6.00212 12.0042 24.0085 48.0169 96.0339 192.068 384.136 768.271 1536.54 3073.08 6146.17 12292.3
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.405 x 8.242 at -0.5632 degrees (North through East)
! Clean map  min=-0.0041147  max=0.40334 Jy/beam
quit
! Quitting program
! Log file 1958-179_S.log closed on Fri Jul 12 12:49:07 1996