! Started logfile: 1717+178_S.log on Thu Apr  3 01:12:30 1997
observe 1717+178_S.edt
! Reading UV FITS file: 1717+178_S.edt
! AN table 1: 60 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.843704 visibilities/baseline/integration-bin.
! Found source: 1717+178
! 
! 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 9112 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 162 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 124 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 124 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 124 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.365085Jy  sigma=2.252296
! Fit after  self-cal, rms=0.364466Jy  sigma=2.248477
! 
! 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.001 mas, bmaj=5.811 mas, bpa=-4.572 degrees
! Estimated noise=1.9349 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.520814 Jy
! Total flux subtracted in 50 components = 0.520814 Jy
! Clean residual min=-0.023359 max=0.145273 Jy/beam
! Clean residual mean=-0.000090 rms=0.007384 Jy/beam
! Combined flux in latest and established models = 0.520814 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.520814 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209259Jy  sigma=1.289016
! Fit after  self-cal, rms=0.209259Jy  sigma=1.289014
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.11358 Jy
! Total flux subtracted in 50 components = 0.11358 Jy
! Clean residual min=-0.011704 max=0.031748 Jy/beam
! Clean residual mean=-0.000024 rms=0.002892 Jy/beam
! Combined flux in latest and established models = 0.634394 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.634394 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152876Jy  sigma=0.939780
! Fit after  self-cal, rms=0.152875Jy  sigma=0.939770
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0314421 Jy
! Total flux subtracted in 50 components = 0.0314421 Jy
! Clean residual min=-0.009704 max=0.013485 Jy/beam
! Clean residual mean=-0.000006 rms=0.002280 Jy/beam
! Combined flux in latest and established models = 0.665836 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 10 components and 0.665836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148321Jy  sigma=0.911581
! Fit after  self-cal, rms=0.148292Jy  sigma=0.911404
! 
! 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.736 mas, bmaj=6.703 mas, bpa=-3.664 degrees
! Estimated noise=1.32339 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.0128027 Jy
! Component: 100  -  total flux cleaned = 0.0137296 Jy
! Total flux subtracted in 100 components = 0.0137296 Jy
! Clean residual min=-0.005805 max=0.007533 Jy/beam
! Clean residual mean=0.000006 rms=0.001567 Jy/beam
! Combined flux in latest and established models = 0.679566 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 19 components and 0.679566 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.147304Jy  sigma=0.905315
! Fit after  self-cal, rms=0.147280Jy  sigma=0.905172
! 
! 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.00     FD        0.99     HN        1.01     KP        1.00     
!   LA        0.99     MK        0.96     NL        0.98     OV        1.01     
!   PT        1.01     SC        1.01     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.01     HN        0.99     KP        0.99     
!   LA        1.02     MK        0.95     NL        1.01     OV        0.99     
!   PT        1.00     SC        1.01     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     HN        1.00     KP        0.99     
!   LA        0.99     MK        0.95     NL        1.02     OV        1.00     
!   PT        1.00     SC        1.03     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     HN        1.00     KP        0.99     
!   LA        1.01     MK        0.95     NL        1.04     OV        0.98     
!   PT        0.98     SC        0.98     
! 
! 
! Fit before self-cal, rms=0.147280Jy  sigma=0.905172
! Fit after  self-cal, rms=0.145303Jy  sigma=0.898368
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.703 mas, bmaj=6.698 mas, bpa=-4.146 degrees
! Estimated noise=1.31553 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.00466622 Jy
! Component: 100  -  total flux cleaned = 0.00478016 Jy
! Total flux subtracted in 100 components = 0.00478016 Jy
! Clean residual min=-0.006117 max=0.006078 Jy/beam
! Clean residual mean=0.000010 rms=0.001374 Jy/beam
! Combined flux in latest and established models = 0.684346 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 25 components and 0.684346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.145158Jy  sigma=0.897432
! Fit after  self-cal, rms=0.145155Jy  sigma=0.897395
! 
! 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 = -2.2025e-05 Jy
! Component: 100  -  total flux cleaned = -0.000263288 Jy
! Total flux subtracted in 100 components = -0.000263288 Jy
! Clean residual min=-0.006159 max=0.005888 Jy/beam
! Clean residual mean=0.000010 rms=0.001365 Jy/beam
! Combined flux in latest and established models = 0.684082 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 29 components and 0.684082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.145111Jy  sigma=0.897104
! Fit after  self-cal, rms=0.142917Jy  sigma=0.878946
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.703 mas, bmaj=6.699 mas, bpa=-3.963 degrees
! Estimated noise=1.31778 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 = 8.71538e-05 Jy
! Component: 100  -  total flux cleaned = 8.14034e-06 Jy
! Total flux subtracted in 100 components = 8.14034e-06 Jy
! Clean residual min=-0.004675 max=0.004219 Jy/beam
! Clean residual mean=-0.000018 rms=0.001059 Jy/beam
! Combined flux in latest and established models = 0.684091 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 37 components and 0.684091 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142904Jy  sigma=0.878860
! Fit after  self-cal, rms=0.142904Jy  sigma=0.878847
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1717+178_S
! Writing UV FITS file: 1717+178_S.uvf
! Writing 37 model components to file: 1717+178_S.mod
! wwins: Wrote 1 windows to 1717+178_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.703 x 6.699 at -3.963 degrees (North through East)
! Clean map  min=-0.0045066  max=0.66309 Jy/beam
! Writing clean map to FITS file: 1717+178_S.fits
! Writing difmap environment to: 1717+178_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1717+178_Suv.ps/vps,1,2
! Attempting to open device: '1717+178_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1717+178_Sim.ps/vps
! Attempting to open device: '1717+178_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.703 mas, bmaj=6.699 mas, bpa=-3.963 degrees
! Estimated noise=1.31778 mJy/beam.
! The new contour levels are:
!  -0.00317557 0.00317557 0.00635114 0.0127023 0.0254046 0.0508091 0.101618 0.203236 0.406473 0.812946 1.62589 3.25178 6.50357 13.0071 26.0143 52.0285 104.057 208.114 416.228 832.457 1664.91 3329.83 6659.65 13319.3
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.703 x 6.699 at -3.963 degrees (North through East)
! Clean map  min=-0.0045066  max=0.66309 Jy/beam
quit
! Quitting program
! Log file 1717+178_S.log closed on Thu Apr  3 01:17:39 1997