! Started logfile: 1150+497_S.log on Wed Apr  2 22:35:40 1997
observe 1150+497_S.edt
! Reading UV FITS file: 1150+497_S.edt
! AN table 1: 75 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.789037 visibilities/baseline/integration-bin.
! Found source: 1150+497
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  2.22049e+09         4e+06         4e+06       USB
! 02  2.23049e+09         4e+06         4e+06       USB
! 03  2.29049e+09         4e+06         4e+06       USB
! 04  2.32049e+09         4e+06         4e+06       USB
! 
! Polarization(s): RR
! 
! Read 379 lines of history.
! 
! Reading 10652 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 = 50
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 197 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 159 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 159 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 159 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.322817Jy  sigma=1.972694
! Fit after  self-cal, rms=0.321252Jy  sigma=1.964005
! 
! 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.236 mas, bmaj=3.959 mas, bpa=-4.435 degrees
! Estimated noise=1.93314 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=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.553231 Jy
! Total flux subtracted in 50 components = 0.553231 Jy
! Clean residual min=-0.030583 max=0.154318 Jy/beam
! Clean residual mean=-0.000240 rms=0.007688 Jy/beam
! Combined flux in latest and established models = 0.553231 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.553231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232517Jy  sigma=1.418703
! Fit after  self-cal, rms=0.232518Jy  sigma=1.418702
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.124505 Jy
! Total flux subtracted in 50 components = 0.124505 Jy
! Clean residual min=-0.014401 max=0.043011 Jy/beam
! Clean residual mean=-0.000134 rms=0.003600 Jy/beam
! Combined flux in latest and established models = 0.677735 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.677735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165793Jy  sigma=1.009307
! Fit after  self-cal, rms=0.165777Jy  sigma=1.009209
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0440239 Jy
! Total flux subtracted in 50 components = 0.0440239 Jy
! Clean residual min=-0.010528 max=0.018523 Jy/beam
! Clean residual mean=-0.000097 rms=0.002746 Jy/beam
! Combined flux in latest and established models = 0.721759 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 8 components and 0.721759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156267Jy  sigma=0.950850
! Fit after  self-cal, rms=0.156253Jy  sigma=0.950765
! 
! 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=4.058 mas, bmaj=4.87 mas, bpa=6.698 degrees
! Estimated noise=1.22494 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0195408 Jy
! Component: 100  -  total flux cleaned = 0.026934 Jy
! Total flux subtracted in 100 components = 0.026934 Jy
! Clean residual min=-0.007939 max=0.016570 Jy/beam
! Clean residual mean=-0.000171 rms=0.002039 Jy/beam
! Combined flux in latest and established models = 0.748693 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 12 components and 0.748693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154250Jy  sigma=0.938478
! Fit after  self-cal, rms=0.154208Jy  sigma=0.938229
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (-6.5, -15.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0156188 Jy
! Component: 100  -  total flux cleaned = 0.0238716 Jy
! Total flux subtracted in 100 components = 0.0238716 Jy
! Clean residual min=-0.008269 max=0.010011 Jy/beam
! Clean residual mean=-0.000148 rms=0.001767 Jy/beam
! Combined flux in latest and established models = 0.772564 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 27 components and 0.772564 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152783Jy  sigma=0.929546
! Fit after  self-cal, rms=0.152616Jy  sigma=0.928520
! 
! 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.99     HN        0.98     KP        1.02     
!   LA        0.99     MK        0.96     NL        1.08     OV        1.01     
!   PT        1.00     SC        1.02     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     HN        0.99     KP        0.97     
!   LA        1.02     MK        0.96     NL        1.01     OV        1.01     
!   PT        0.99     SC        1.04     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     HN        1.01     KP        0.99     
!   LA        0.99     MK        0.95     NL        1.04     OV        1.00     
!   PT        0.98     SC        1.04     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.03     HN        1.01     KP        1.00     
!   LA        1.00     MK        0.99     NL        1.04     OV        0.98     
!   PT        0.95     SC        1.00     
! 
! 
! Fit before self-cal, rms=0.152616Jy  sigma=0.928520
! Fit after  self-cal, rms=0.150756Jy  sigma=0.918574
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.045 mas, bmaj=4.85 mas, bpa=5.374 degrees
! Estimated noise=1.22344 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00676968 Jy
! Component: 100  -  total flux cleaned = 0.0110763 Jy
! Total flux subtracted in 100 components = 0.0110763 Jy
! Clean residual min=-0.007125 max=0.006114 Jy/beam
! Clean residual mean=-0.000131 rms=0.001527 Jy/beam
! Combined flux in latest and established models = 0.783641 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 37 components and 0.783641 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150472Jy  sigma=0.916793
! Fit after  self-cal, rms=0.150452Jy  sigma=0.916637
! 
! 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00254604 Jy
! Component: 100  -  total flux cleaned = 0.00340171 Jy
! Total flux subtracted in 100 components = 0.00340171 Jy
! Clean residual min=-0.006916 max=0.005972 Jy/beam
! Clean residual mean=-0.000127 rms=0.001508 Jy/beam
! Combined flux in latest and established models = 0.787042 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 47 components and 0.787042 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150345Jy  sigma=0.915969
! Fit after  self-cal, rms=0.147452Jy  sigma=0.885287
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=4.04 mas, bmaj=4.866 mas, bpa=6.398 degrees
! Estimated noise=1.22802 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0033231 Jy
! Component: 100  -  total flux cleaned = 0.00443804 Jy
! Total flux subtracted in 100 components = 0.00443804 Jy
! Clean residual min=-0.004946 max=0.003991 Jy/beam
! Clean residual mean=-0.000013 rms=0.001080 Jy/beam
! Combined flux in latest and established models = 0.79148 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 57 components and 0.79148 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.147373Jy  sigma=0.884802
! Fit after  self-cal, rms=0.147373Jy  sigma=0.884767
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1150+497_S
! Writing UV FITS file: 1150+497_S.uvf
! Writing 57 model components to file: 1150+497_S.mod
! wwins: Wrote 2 windows to 1150+497_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.04 x 4.866 at 6.398 degrees (North through East)
! Clean map  min=-0.0046859  max=0.71535 Jy/beam
! Writing clean map to FITS file: 1150+497_S.fits
! Writing difmap environment to: 1150+497_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1150+497_Suv.ps/vps,1,2
! Attempting to open device: '1150+497_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1150+497_Sim.ps/vps
! Attempting to open device: '1150+497_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=4.04 mas, bmaj=4.866 mas, bpa=6.398 degrees
! Estimated noise=1.22802 mJy/beam.
! The new contour levels are:
!  -0.00323277 0.00323277 0.00646554 0.0129311 0.0258622 0.0517244 0.103449 0.206897 0.413795 0.82759 1.65518 3.31036 6.62072 13.2414 26.4829 52.9657 105.931 211.863 423.726 847.452 1694.9 3389.81 6779.61 13559.2
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.04 x 4.866 at 6.398 degrees (North through East)
! Clean map  min=-0.0046859  max=0.71535 Jy/beam
quit
! Quitting program
! Log file 1150+497_S.log closed on Wed Apr  2 22:41:45 1997