! Started logfile: 0823+033_X.log on Wed Jul 17 17:25:47 1996
observe 0823+033_X.edt
! Reading UV FITS file: 0823+033_X.edt
! AN table 1: 142 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.63615 visibilities/baseline/integration-bin.
! Found source: 0823+033
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  8.10599e+09       1.6e+07       1.6e+07       USB
! 
! Polarization(s): RR
! 
! Read 1199 lines of history.
! 
! Reading 3252 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 = 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.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 305 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.211313Jy  sigma=2.380264
! Fit after  self-cal, rms=0.210806Jy  sigma=2.379314
! 
! 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.9802 mas, bmaj=1.911 mas, bpa=-2.355 degrees
! Estimated noise=1.34862 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.744436 Jy
! Total flux subtracted in 75 components = 0.867381 Jy
! Clean residual min=-0.031558 max=0.125748 Jy/beam
! Clean residual mean=0.000040 rms=0.008107 Jy/beam
! Combined flux in latest and established models = 0.867381 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 6 components and 0.867381 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.227149Jy  sigma=2.602821
! Fit after  self-cal, rms=0.227001Jy  sigma=2.600349
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.125664 Jy
! Total flux subtracted in 75 components = 0.160014 Jy
! Clean residual min=-0.020607 max=0.060605 Jy/beam
! Clean residual mean=0.000012 rms=0.004671 Jy/beam
! Combined flux in latest and established models = 1.0274 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 17 components and 1.0274 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.149375Jy  sigma=1.607437
! Fit after  self-cal, rms=0.148653Jy  sigma=1.596897
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (1, 2.4).
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0570111 Jy
! Total flux subtracted in 75 components = 0.0747298 Jy
! Clean residual min=-0.012985 max=0.025285 Jy/beam
! Clean residual mean=0.000005 rms=0.003399 Jy/beam
! Combined flux in latest and established models = 1.10212 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 28 components and 1.10212 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.125611Jy  sigma=1.280732
! Fit after  self-cal, rms=0.124406Jy  sigma=1.264207
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0286637 Jy
! Total flux subtracted in 75 components = 0.0384561 Jy
! Clean residual min=-0.010697 max=0.016339 Jy/beam
! Clean residual mean=-0.000000 rms=0.002905 Jy/beam
! Combined flux in latest and established models = 1.14058 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 39 components and 1.14058 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.117440Jy  sigma=1.162531
! Fit after  self-cal, rms=0.117098Jy  sigma=1.157399
! 
! 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=1.055 mas, bmaj=2.048 mas, bpa=-3.653 degrees
! Estimated noise=1.10481 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.0206658 Jy
! Component: 100  -  total flux cleaned = 0.0331699 Jy
! Component: 150  -  total flux cleaned = 0.0417181 Jy
! Total flux subtracted in 150 components = 0.0417181 Jy
! Clean residual min=-0.010824 max=0.013182 Jy/beam
! Clean residual mean=-0.000038 rms=0.002742 Jy/beam
! Combined flux in latest and established models = 1.1823 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 39 model components to the UV plane model.
! The established model now contains 66 components and 1.1823 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.113532Jy  sigma=1.100769
! Fit after  self-cal, rms=0.113376Jy  sigma=1.098353
! 
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     HN        1.06     LA        0.99     
!   MK        1.00     NL        0.99     OV        0.98     PT        1.00     
!   SC        1.01     
! 
! 
! Fit before self-cal, rms=0.113376Jy  sigma=1.098353
! Fit after  self-cal, rms=0.110355Jy  sigma=1.052861
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.059 mas, bmaj=2.055 mas, bpa=-3.652 degrees
! Estimated noise=1.10252 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.00143115 Jy
! Component: 100  -  total flux cleaned = -0.00210969 Jy
! Component: 150  -  total flux cleaned = -0.00251867 Jy
! Total flux subtracted in 150 components = -0.00251867 Jy
! Clean residual min=-0.009333 max=0.011773 Jy/beam
! Clean residual mean=-0.000037 rms=0.002384 Jy/beam
! Combined flux in latest and established models = 1.17978 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 80 components and 1.17978 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.109840Jy  sigma=1.045838
! Fit after  self-cal, rms=0.109811Jy  sigma=1.044944
! 
! 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.000346534 Jy
! Component: 100  -  total flux cleaned = -0.000348014 Jy
! Component: 150  -  total flux cleaned = -0.000264269 Jy
! Total flux subtracted in 150 components = -0.000264269 Jy
! Clean residual min=-0.009206 max=0.011851 Jy/beam
! Clean residual mean=-0.000037 rms=0.002370 Jy/beam
! Combined flux in latest and established models = 1.17952 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 82 components and 1.17952 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.109623Jy  sigma=1.042445
! Fit after  self-cal, rms=0.130680Jy  sigma=0.766112
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=1.06 mas, bmaj=2.053 mas, bpa=-3.621 degrees
! Estimated noise=1.10061 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.00181153 Jy
! Component: 100  -  total flux cleaned = 0.00255021 Jy
! Component: 150  -  total flux cleaned = 0.00254888 Jy
! Total flux subtracted in 150 components = 0.00254888 Jy
! Clean residual min=-0.003495 max=0.003227 Jy/beam
! Clean residual mean=-0.000001 rms=0.000830 Jy/beam
! Combined flux in latest and established models = 1.18207 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 87 components and 1.18207 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.130594Jy  sigma=0.763230
! Fit after  self-cal, rms=0.130575Jy  sigma=0.762818
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0823+033_X
! Writing UV FITS file: 0823+033_X.uvf
! Writing 87 model components to file: 0823+033_X.mod
! wwins: Wrote 2 windows to 0823+033_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.06 x 2.053 at -3.621 degrees (North through East)
! Clean map  min=-0.0032725  max=0.94301 Jy/beam
! Writing clean map to FITS file: 0823+033_X.fits
! Writing difmap environment to: 0823+033_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0823+033_Xuv.ps/vps,1,2
! Attempting to open device: '0823+033_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0823+033_Xim.ps/vps
! Attempting to open device: '0823+033_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=1.06 mas, bmaj=2.053 mas, bpa=-3.621 degrees
! Estimated noise=1.10061 mJy/beam.
! The new contour levels are:
!  -0.00249636 0.00249636 0.00499272 0.00998543 0.0199709 0.0399417 0.0798835 0.159767 0.319534 0.639068 1.27814 2.55627 5.11254 10.2251 20.4502 40.9003 81.8007 163.601 327.203 654.405 1308.81 2617.62 5235.24 10470.5
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.06 x 2.053 at -3.621 degrees (North through East)
! Clean map  min=-0.0032725  max=0.94301 Jy/beam
quit
! Quitting program
! Log file 0823+033_X.log closed on Wed Jul 17 17:27:26 1996