! Started logfile: 1053+704_S.log on Wed Apr 16 15:57:11 1997
observe 1053+704_S.edt
! Reading UV FITS file: 1053+704_S.edt
! AN table 1: 60 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.873333 visibilities/baseline/integration-bin.
! Found source: 1053+704
! 
! 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 383 lines of history.
! 
! Reading 9432 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 172 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.733913Jy  sigma=4.516944
! Fit after  self-cal, rms=0.733285Jy  sigma=4.513200
! 
! 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.143 mas, bmaj=4.088 mas, bpa=50.25 degrees
! Estimated noise=2.07605 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.213729 Jy
! Total flux subtracted in 50 components = 0.213729 Jy
! Clean residual min=-0.015062 max=0.059616 Jy/beam
! Clean residual mean=-0.000115 rms=0.003972 Jy/beam
! Combined flux in latest and established models = 0.213729 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.213729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170801Jy  sigma=1.045674
! Fit after  self-cal, rms=0.170801Jy  sigma=1.045675
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0490844 Jy
! Total flux subtracted in 50 components = 0.0490844 Jy
! Clean residual min=-0.012901 max=0.018118 Jy/beam
! Clean residual mean=-0.000069 rms=0.002791 Jy/beam
! Combined flux in latest and established models = 0.262813 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 13 components and 0.262813 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157198Jy  sigma=0.961599
! Fit after  self-cal, rms=0.157177Jy  sigma=0.961463
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0200683 Jy
! Total flux subtracted in 50 components = 0.0200683 Jy
! Clean residual min=-0.011745 max=0.011672 Jy/beam
! Clean residual mean=-0.000050 rms=0.002551 Jy/beam
! Combined flux in latest and established models = 0.282882 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 22 components and 0.282882 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154980Jy  sigma=0.947971
! Fit after  self-cal, rms=0.154948Jy  sigma=0.947759
! 
! 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.857 mas, bmaj=5.032 mas, bpa=50.43 degrees
! Estimated noise=1.32295 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.0122908 Jy
! Component: 100  -  total flux cleaned = 0.0182506 Jy
! Total flux subtracted in 100 components = 0.0182506 Jy
! Clean residual min=-0.006317 max=0.006922 Jy/beam
! Clean residual mean=-0.000062 rms=0.001519 Jy/beam
! Combined flux in latest and established models = 0.301132 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 40 components and 0.301132 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154107Jy  sigma=0.942645
! Fit after  self-cal, rms=0.154101Jy  sigma=0.942603
! 
! 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        1.05     FD        1.02     HN        1.04     KP        0.99     
!   LA        0.99     MK        1.00     NL        1.00*    OV        1.01     
!   PT        0.91     SC        1.12     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.03     HN        0.95     KP        0.91     
!   LA        1.02     MK        0.99     NL        0.95     OV        1.04     
!   PT        0.92     SC        1.03     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.03     HN        0.95     KP        1.00     
!   LA        1.04     MK        0.96     NL        0.97     OV        0.99     
!   PT        0.95     SC        1.07     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.09     HN        0.96     KP        1.01     
!   LA        1.01     MK        0.94     NL        0.97     OV        0.98     
!   PT        0.95     SC        0.98     
! 
! 
! Fit before self-cal, rms=0.154101Jy  sigma=0.942603
! Fit after  self-cal, rms=0.151333Jy  sigma=0.936297
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.867 mas, bmaj=5.02 mas, bpa=50.62 degrees
! Estimated noise=1.31302 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.00210844 Jy
! Component: 100  -  total flux cleaned = 0.00227393 Jy
! Total flux subtracted in 100 components = 0.00227393 Jy
! Clean residual min=-0.006134 max=0.005541 Jy/beam
! Clean residual mean=-0.000026 rms=0.001365 Jy/beam
! Combined flux in latest and established models = 0.303406 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 48 components and 0.303406 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151303Jy  sigma=0.936129
! Fit after  self-cal, rms=0.151315Jy  sigma=0.936090
! 
! 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 = 5.52657e-05 Jy
! Component: 100  -  total flux cleaned = 0.000146852 Jy
! Total flux subtracted in 100 components = 0.000146852 Jy
! Clean residual min=-0.006170 max=0.005572 Jy/beam
! Clean residual mean=-0.000025 rms=0.001363 Jy/beam
! Combined flux in latest and established models = 0.303553 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 51 components and 0.303553 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151301Jy  sigma=0.936007
! Fit after  self-cal, rms=0.149681Jy  sigma=0.920485
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.864 mas, bmaj=5.021 mas, bpa=50.57 degrees
! Estimated noise=1.32164 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.00237444 Jy
! Component: 100  -  total flux cleaned = 0.00262044 Jy
! Total flux subtracted in 100 components = 0.00262044 Jy
! Clean residual min=-0.004791 max=0.004520 Jy/beam
! Clean residual mean=-0.000014 rms=0.001141 Jy/beam
! Combined flux in latest and established models = 0.306173 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 54 components and 0.306173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149643Jy  sigma=0.920290
! Fit after  self-cal, rms=0.149648Jy  sigma=0.920251
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1053+704_S
! Writing UV FITS file: 1053+704_S.uvf
! Writing 54 model components to file: 1053+704_S.mod
! wwins: Wrote 1 windows to 1053+704_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.864 x 5.021 at 50.57 degrees (North through East)
! Clean map  min=-0.004595  max=0.27881 Jy/beam
! Writing clean map to FITS file: 1053+704_S.fits
! Writing difmap environment to: 1053+704_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1053+704_Suv.ps/vps,1,2
! Attempting to open device: '1053+704_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1053+704_Sim.ps/vps
! Attempting to open device: '1053+704_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.864 mas, bmaj=5.021 mas, bpa=50.57 degrees
! Estimated noise=1.32164 mJy/beam.
! The new contour levels are:
!  -0.00342262 0.00342262 0.00684524 0.0136905 0.0273809 0.0547619 0.109524 0.219048 0.438095 0.87619 1.75238 3.50476 7.00952 14.019 28.0381 56.0762 112.152 224.305 448.609 897.219 1794.44 3588.88 7177.75 14355.5
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.864 x 5.021 at 50.57 degrees (North through East)
! Clean map  min=-0.004595  max=0.27881 Jy/beam
quit
! Quitting program
! Log file 1053+704_S.log closed on Wed Apr 16 15:59:02 1997