! Started logfile: 1357+769_S.log on Fri Jul 12 12:34:30 1996
observe 1357+769_S.edt
! Reading UV FITS file: 1357+769_S.edt
! AN table 1: 82 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.808266 visibilities/baseline/integration-bin.
! Found source: 1357+769
! 
! 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 2386 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 99 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.253654Jy  sigma=2.970201
! Fit after  self-cal, rms=0.251247Jy  sigma=2.971450
! 
! 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.315 mas, bmaj=4.164 mas, bpa=-26.97 degrees
! Estimated noise=1.59425 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.595766 Jy
! Total flux subtracted in 75 components = 0.684326 Jy
! Clean residual min=-0.016219 max=0.077590 Jy/beam
! Clean residual mean=-0.000063 rms=0.004334 Jy/beam
! Combined flux in latest and established models = 0.684326 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.684326 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.134282Jy  sigma=1.552697
! Fit after  self-cal, rms=0.134282Jy  sigma=1.552696
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0640753 Jy
! Total flux subtracted in 75 components = 0.0787342 Jy
! Clean residual min=-0.009749 max=0.015786 Jy/beam
! Clean residual mean=-0.000022 rms=0.002531 Jy/beam
! Combined flux in latest and established models = 0.76306 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 7 components and 0.76306 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.101483Jy  sigma=1.137350
! Fit after  self-cal, rms=0.101364Jy  sigma=1.135672
! 
! 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.578 mas, bmaj=4.421 mas, bpa=-25.95 degrees
! Estimated noise=1.24992 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.0211879 Jy
! Component: 100  -  total flux cleaned = 0.0319347 Jy
! Component: 150  -  total flux cleaned = 0.0381614 Jy
! Total flux subtracted in 150 components = 0.0381614 Jy
! Clean residual min=-0.008034 max=0.009014 Jy/beam
! Clean residual mean=-0.000003 rms=0.001801 Jy/beam
! Combined flux in latest and established models = 0.801222 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 35 components and 0.801222 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.097161Jy  sigma=1.081626
! Fit after  self-cal, rms=0.097084Jy  sigma=1.080637
! 
! 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.97     FD        1.00     HN        1.00     LA        1.00     
!   MK        1.02     NL        1.01     OV        1.00     PT        1.00     
!   SC        0.99     
! 
! 
! Fit before self-cal, rms=0.097084Jy  sigma=1.080637
! Fit after  self-cal, rms=0.095725Jy  sigma=1.068412
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.587 mas, bmaj=4.437 mas, bpa=-26.04 degrees
! Estimated noise=1.24677 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.000462238 Jy
! Component: 100  -  total flux cleaned = 0.00115507 Jy
! Component: 150  -  total flux cleaned = 0.0014627 Jy
! Total flux subtracted in 150 components = 0.0014627 Jy
! Clean residual min=-0.007667 max=0.008033 Jy/beam
! Clean residual mean=0.000002 rms=0.001672 Jy/beam
! Combined flux in latest and established models = 0.802684 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 40 components and 0.802684 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.095556Jy  sigma=1.066563
! Fit after  self-cal, rms=0.095532Jy  sigma=1.066300
! 
! 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 = 5.002e-05 Jy
! Component: 100  -  total flux cleaned = 0.000239396 Jy
! Component: 150  -  total flux cleaned = 0.000348925 Jy
! Total flux subtracted in 150 components = 0.000348925 Jy
! Clean residual min=-0.007605 max=0.007938 Jy/beam
! Clean residual mean=0.000002 rms=0.001664 Jy/beam
! Combined flux in latest and established models = 0.803033 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 44 components and 0.803033 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.095460Jy  sigma=1.065516
! Fit after  self-cal, rms=0.089524Jy  sigma=0.990274
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.586 mas, bmaj=4.432 mas, bpa=-25.85 degrees
! Estimated noise=1.24691 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.00133341 Jy
! Component: 100  -  total flux cleaned = 0.00103944 Jy
! Component: 150  -  total flux cleaned = 0.000999472 Jy
! Total flux subtracted in 150 components = 0.000999472 Jy
! Clean residual min=-0.004710 max=0.005716 Jy/beam
! Clean residual mean=0.000010 rms=0.001164 Jy/beam
! Combined flux in latest and established models = 0.804033 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 52 components and 0.804033 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.089453Jy  sigma=0.989210
! Fit after  self-cal, rms=0.089443Jy  sigma=0.989105
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1357+769_S
! Writing UV FITS file: 1357+769_S.uvf
! Writing 52 model components to file: 1357+769_S.mod
! wwins: Wrote 1 windows to 1357+769_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.586 x 4.432 at -25.85 degrees (North through East)
! Clean map  min=-0.0045181  max=0.76392 Jy/beam
! Writing clean map to FITS file: 1357+769_S.fits
! Writing difmap environment to: 1357+769_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1357+769_Suv.ps/vps,1,2
! Attempting to open device: '1357+769_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1357+769_Sim.ps/vps
! Attempting to open device: '1357+769_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.586 mas, bmaj=4.432 mas, bpa=-25.85 degrees
! Estimated noise=1.24691 mJy/beam.
! The new contour levels are:
!  -0.00348987 0.00348987 0.00697975 0.0139595 0.027919 0.055838 0.111676 0.223352 0.446704 0.893408 1.78682 3.57363 7.14726 14.2945 28.589 57.1781 114.356 228.712 457.425 914.849 1829.7 3659.4 7318.8 14637.6
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.586 x 4.432 at -25.85 degrees (North through East)
! Clean map  min=-0.0045181  max=0.76392 Jy/beam
quit
! Quitting program
! Log file 1357+769_S.log closed on Fri Jul 12 12:36:02 1996