! Started logfile: 0955+476_S.log on Fri Jul 12 12:21:38 1996
observe 0955+476_S.edt
! Reading UV FITS file: 0955+476_S.edt
! AN table 1: 64 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.609809 visibilities/baseline/integration-bin.
! Found source: 0955+476
! 
! 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 1405 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 148 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.114659Jy  sigma=1.315731
! Fit after  self-cal, rms=0.113979Jy  sigma=1.310137
! 
! 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.508 mas, bmaj=4.791 mas, bpa=10.91 degrees
! Estimated noise=1.99421 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.819133 Jy
! Total flux subtracted in 75 components = 0.940897 Jy
! Clean residual min=-0.021555 max=0.106677 Jy/beam
! Clean residual mean=-0.000034 rms=0.007170 Jy/beam
! Combined flux in latest and established models = 0.940897 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.940897 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.149205Jy  sigma=1.744396
! Fit after  self-cal, rms=0.149205Jy  sigma=1.744397
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=75  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0838393 Jy
! Total flux subtracted in 75 components = 0.0991222 Jy
! Clean residual min=-0.014033 max=0.016884 Jy/beam
! Clean residual mean=-0.000102 rms=0.003649 Jy/beam
! Combined flux in latest and established models = 1.04002 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 1.04002 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.102735Jy  sigma=1.170931
! Fit after  self-cal, rms=0.102724Jy  sigma=1.170808
! 
! 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.888 mas, bmaj=5.304 mas, bpa=9.557 degrees
! Estimated noise=1.65043 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.015279 Jy
! Component: 100  -  total flux cleaned = 0.0208069 Jy
! Component: 150  -  total flux cleaned = 0.02223 Jy
! Total flux subtracted in 150 components = 0.02223 Jy
! Clean residual min=-0.012396 max=0.014016 Jy/beam
! Clean residual mean=-0.000204 rms=0.003149 Jy/beam
! Combined flux in latest and established models = 1.06225 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 20 components and 1.06225 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.100566Jy  sigma=1.144074
! Fit after  self-cal, rms=0.100522Jy  sigma=1.143433
! 
! 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.98     FD        0.95     HN        0.99     LA        1.00     
!   MK        1.02     NL        1.02     OV        1.01     PT        1.02     
!   SC        0.98     
! 
! 
! Fit before self-cal, rms=0.100522Jy  sigma=1.143433
! Fit after  self-cal, rms=0.095268Jy  sigma=1.076005
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.885 mas, bmaj=5.301 mas, bpa=9.966 degrees
! Estimated noise=1.65003 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.00358328 Jy
! Component: 100  -  total flux cleaned = 0.00465233 Jy
! Component: 150  -  total flux cleaned = 0.0049334 Jy
! Total flux subtracted in 150 components = 0.0049334 Jy
! Clean residual min=-0.011529 max=0.010810 Jy/beam
! Clean residual mean=-0.000162 rms=0.002620 Jy/beam
! Combined flux in latest and established models = 1.06718 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 24 components and 1.06718 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.094724Jy  sigma=1.069224
! Fit after  self-cal, rms=0.094699Jy  sigma=1.068832
! 
! 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.000339815 Jy
! Component: 100  -  total flux cleaned = 0.000628143 Jy
! Component: 150  -  total flux cleaned = 0.00079735 Jy
! Total flux subtracted in 150 components = 0.00079735 Jy
! Clean residual min=-0.011465 max=0.010548 Jy/beam
! Clean residual mean=-0.000163 rms=0.002591 Jy/beam
! Combined flux in latest and established models = 1.06798 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 27 components and 1.06798 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.094529Jy  sigma=1.066690
! Fit after  self-cal, rms=0.085164Jy  sigma=0.943008
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.879 mas, bmaj=5.311 mas, bpa=9.786 degrees
! Estimated noise=1.6529 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.00248888 Jy
! Component: 100  -  total flux cleaned = 0.00248893 Jy
! Component: 150  -  total flux cleaned = 0.00243107 Jy
! Total flux subtracted in 150 components = 0.00243107 Jy
! Clean residual min=-0.005811 max=0.006850 Jy/beam
! Clean residual mean=0.000028 rms=0.001518 Jy/beam
! Combined flux in latest and established models = 1.07041 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 34 components and 1.07041 Jy
! 
! Correcting IF 1.
! 
! Fit before self-cal, rms=0.085064Jy  sigma=0.941416
! Fit after  self-cal, rms=0.085056Jy  sigma=0.941273
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0955+476_S
! Writing UV FITS file: 0955+476_S.uvf
! Writing 34 model components to file: 0955+476_S.mod
! wwins: Wrote 1 windows to 0955+476_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.879 x 5.311 at 9.786 degrees (North through East)
! Clean map  min=-0.0055931  max=1.0462 Jy/beam
! Writing clean map to FITS file: 0955+476_S.fits
! Writing difmap environment to: 0955+476_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0955+476_Suv.ps/vps,1,2
! Attempting to open device: '0955+476_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0955+476_Sim.ps/vps
! Attempting to open device: '0955+476_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.879 mas, bmaj=5.311 mas, bpa=9.786 degrees
! Estimated noise=1.6529 mJy/beam.
! The new contour levels are:
!  -0.00454828 0.00454828 0.00909657 0.0181931 0.0363863 0.0727725 0.145545 0.29109 0.58218 1.16436 2.32872 4.65744 9.31488 18.6298 37.2595 74.5191 149.038 298.076 596.153 1192.31 2384.61 4769.22 9538.44 19076.9
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.879 x 5.311 at 9.786 degrees (North through East)
! Clean map  min=-0.0055931  max=1.0462 Jy/beam
quit
! Quitting program
! Log file 0955+476_S.log closed on Fri Jul 12 12:23:23 1996