! Started logfile: 1958-179_S.log on Wed Jul 10 13:49:04 1996
observe 1958-179_S.edt
! Reading UV FITS file: 1958-179_S.edt
! AN table 1: 93 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.692055 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         8e+06         8e+06       USB
! 
! Polarization(s): RR
! 
! Read 446 lines of history.
! 
! Reading 2317 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 221 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.506756Jy  sigma=5.999487
! Fit after  self-cal, rms=0.506673Jy  sigma=5.998778
! 
! 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.322 mas, bmaj=12.45 mas, bpa=-15.51 degrees
! Estimated noise=1.62989 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.387763 Jy
! Total flux subtracted in 75 components = 0.44865 Jy
! Clean residual min=-0.018360 max=0.061161 Jy/beam
! Clean residual mean=0.000534 rms=0.006024 Jy/beam
! Combined flux in latest and established models = 0.44865 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 8 components and 0.44865 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.136951Jy  sigma=1.611211
! Fit after  self-cal, rms=0.136943Jy  sigma=1.611052
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0597816 Jy
! Total flux subtracted in 75 components = 0.0744391 Jy
! Clean residual min=-0.011404 max=0.015580 Jy/beam
! Clean residual mean=0.000092 rms=0.002947 Jy/beam
! Combined flux in latest and established models = 0.523089 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 15 components and 0.523089 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.112112Jy  sigma=1.313778
! Fit after  self-cal, rms=0.112083Jy  sigma=1.313316
! 
! 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.776 mas, bmaj=12.89 mas, bpa=-14.03 degrees
! Estimated noise=1.33034 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.0159166 Jy
! Component: 100  -  total flux cleaned = 0.0232466 Jy
! Component: 150  -  total flux cleaned = 0.0247516 Jy
! Total flux subtracted in 150 components = 0.0247516 Jy
! Clean residual min=-0.007720 max=0.007067 Jy/beam
! Clean residual mean=-0.000063 rms=0.001896 Jy/beam
! Combined flux in latest and established models = 0.54784 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 39 components and 0.547841 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.110064Jy  sigma=1.288421
! Fit after  self-cal, rms=0.110044Jy  sigma=1.288108
! 
! 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        1.01     FD        0.98     HN        0.99     KP        1.01     
!   LA        1.01     MK        1.01     NL        1.00     OV        1.01     
!   PT        0.98     
! 
! 
! Fit before self-cal, rms=0.110044Jy  sigma=1.288108
! Fit after  self-cal, rms=0.109527Jy  sigma=1.283868
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.78 mas, bmaj=12.91 mas, bpa=-13.97 degrees
! Estimated noise=1.32602 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.00162098 Jy
! Component: 100  -  total flux cleaned = -0.00184378 Jy
! Component: 150  -  total flux cleaned = -0.0019426 Jy
! Total flux subtracted in 150 components = -0.0019426 Jy
! Clean residual min=-0.007741 max=0.006226 Jy/beam
! Clean residual mean=-0.000094 rms=0.001707 Jy/beam
! Combined flux in latest and established models = 0.545898 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 48 components and 0.545898 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.109357Jy  sigma=1.281851
! Fit after  self-cal, rms=0.109345Jy  sigma=1.281703
! 
! 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 = -0.000459286 Jy
! Component: 100  -  total flux cleaned = -0.000459974 Jy
! Component: 150  -  total flux cleaned = -0.000388144 Jy
! Total flux subtracted in 150 components = -0.000388144 Jy
! Clean residual min=-0.007721 max=0.006206 Jy/beam
! Clean residual mean=-0.000091 rms=0.001684 Jy/beam
! Combined flux in latest and established models = 0.54551 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 56 components and 0.54551 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.109262Jy  sigma=1.280718
! Fit after  self-cal, rms=0.107120Jy  sigma=1.250079
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.778 mas, bmaj=12.92 mas, bpa=-13.96 degrees
! Estimated noise=1.32629 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.000840913 Jy
! Component: 100  -  total flux cleaned = 0.00132692 Jy
! Component: 150  -  total flux cleaned = 0.00177226 Jy
! Total flux subtracted in 150 components = 0.00177226 Jy
! Clean residual min=-0.006620 max=0.005735 Jy/beam
! Clean residual mean=-0.000099 rms=0.001489 Jy/beam
! Combined flux in latest and established models = 0.547282 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 66 components and 0.547282 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.107057Jy  sigma=1.249260
! Fit after  self-cal, rms=0.107053Jy  sigma=1.249163
! 
! 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 66 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.778 x 12.92 at -13.96 degrees (North through East)
! Clean map  min=-0.0065193  max=0.50281 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.778 mas, bmaj=12.92 mas, bpa=-13.96 degrees
! Estimated noise=1.32629 mJy/beam.
! The new contour levels are:
!  -0.00446071 0.00446071 0.00892142 0.0178428 0.0356857 0.0713713 0.142743 0.285485 0.570971 1.14194 2.28388 4.56777 9.13553 18.2711 36.5421 73.0843 146.169 292.337 584.674 1169.35 2338.7 4677.39 9354.79 18709.6
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.778 x 12.92 at -13.96 degrees (North through East)
! Clean map  min=-0.0065193  max=0.50281 Jy/beam
quit
! Quitting program
! Log file 1958-179_S.log closed on Wed Jul 10 13:56:18 1996