! Started logfile: 1020+400_X.log on Tue May 28 21:36:26 1996
observe 1020+400_X.edt
! Reading UV FITS file: 1020+400_X.edt
! AN table 1: 95 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.803509 visibilities/baseline/integration-bin.
! Found source: 1020+400
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  8.15049e+09         4e+06         4e+06       USB
! 02  8.23049e+09         4e+06         4e+06       USB
! 03  8.41049e+09         4e+06         4e+06       USB
! 04  8.55049e+09         4e+06         4e+06       USB
! 
! Polarization(s): RR
! 
! Read 515 lines of history.
! 
! Reading 13740 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.2
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.200x0.200 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 218 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 218 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 218 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 218 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.231476Jy  sigma=1.010660
! Fit after  self-cal, rms=0.231349Jy  sigma=1.010094
! 
! 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=0.7755 mas, bmaj=1.284 mas, bpa=-11.62 degrees
! Estimated noise=2.46867 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.637064 Jy
! Total flux subtracted in 50 components = 0.637064 Jy
! Clean residual min=-0.045487 max=0.180945 Jy/beam
! Clean residual mean=0.000001 rms=0.010431 Jy/beam
! Combined flux in latest and established models = 0.637064 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.637064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300274Jy  sigma=1.307153
! Fit after  self-cal, rms=0.300150Jy  sigma=1.306626
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.185083 Jy
! Total flux subtracted in 50 components = 0.185083 Jy
! Clean residual min=-0.025389 max=0.080324 Jy/beam
! Clean residual mean=-0.000004 rms=0.005352 Jy/beam
! Combined flux in latest and established models = 0.822146 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 5 components and 0.822146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173694Jy  sigma=0.755637
! Fit after  self-cal, rms=0.172493Jy  sigma=0.750409
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.088497 Jy
! Total flux subtracted in 50 components = 0.088497 Jy
! Clean residual min=-0.015155 max=0.039813 Jy/beam
! Clean residual mean=-0.000006 rms=0.003104 Jy/beam
! Combined flux in latest and established models = 0.910643 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 7 components and 0.910643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126305Jy  sigma=0.548882
! Fit after  self-cal, rms=0.125880Jy  sigma=0.547040
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0443408 Jy
! Total flux subtracted in 50 components = 0.0443408 Jy
! Clean residual min=-0.011550 max=0.020641 Jy/beam
! Clean residual mean=-0.000007 rms=0.002212 Jy/beam
! Combined flux in latest and established models = 0.954984 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 7 components and 0.954984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111001Jy  sigma=0.481989
! Fit after  self-cal, rms=0.110871Jy  sigma=0.481427
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0225007 Jy
! Total flux subtracted in 50 components = 0.0225007 Jy
! Clean residual min=-0.009604 max=0.018782 Jy/beam
! Clean residual mean=-0.000008 rms=0.001917 Jy/beam
! Combined flux in latest and established models = 0.977485 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 7 components and 0.977485 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106612Jy  sigma=0.462760
! Fit after  self-cal, rms=0.106553Jy  sigma=0.462511
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (-2.8, 3.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0173412 Jy
! Total flux subtracted in 50 components = 0.0173412 Jy
! Clean residual min=-0.008052 max=0.010552 Jy/beam
! Clean residual mean=-0.000007 rms=0.001718 Jy/beam
! Combined flux in latest and established models = 0.994826 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 11 components and 0.994826 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103893Jy  sigma=0.450857
! Fit after  self-cal, rms=0.103787Jy  sigma=0.450401
! 
! 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=0.9848 mas, bmaj=1.569 mas, bpa=-8.456 degrees
! Estimated noise=1.52452 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 (-1.8, 2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0166555 Jy
! Component: 100  -  total flux cleaned = 0.0273953 Jy
! Total flux subtracted in 100 components = 0.0273953 Jy
! Clean residual min=-0.005438 max=0.009549 Jy/beam
! Clean residual mean=-0.000012 rms=0.001427 Jy/beam
! Combined flux in latest and established models = 1.02222 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 28 components and 1.02222 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.101216Jy  sigma=0.439154
! Fit after  self-cal, rms=0.101054Jy  sigma=0.438460
! 
! 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        1.00     HN        1.01     KP        0.99     
!   LA        0.98     MK        0.99     NL        0.98     OV        1.00     
!   PT        0.98     SC        1.01     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     HN        1.00     KP        0.99     
!   LA        0.98     MK        0.99     NL        0.99     OV        0.99     
!   PT        0.99     SC        1.01     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     HN        1.01     KP        1.00     
!   LA        0.98     MK        1.00     NL        0.99     OV        0.99     
!   PT        1.00     SC        1.00     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     HN        1.02     KP        1.00     
!   LA        0.99     MK        0.99     NL        0.99     OV        1.01     
!   PT        0.99     SC        1.00     
! 
! 
! Fit before self-cal, rms=0.101054Jy  sigma=0.438460
! Fit after  self-cal, rms=0.099534Jy  sigma=0.434051
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9858 mas, bmaj=1.573 mas, bpa=-8.542 degrees
! Estimated noise=1.51522 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.00710889 Jy
! Component: 100  -  total flux cleaned = 0.0101221 Jy
! Total flux subtracted in 100 components = 0.0101221 Jy
! Clean residual min=-0.004602 max=0.005213 Jy/beam
! Clean residual mean=-0.000005 rms=0.001060 Jy/beam
! Combined flux in latest and established models = 1.03234 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 40 components and 1.03234 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099068Jy  sigma=0.431976
! Fit after  self-cal, rms=0.099035Jy  sigma=0.431834
! 
! 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)
! Added new window around map position (-3.8, 4.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00462608 Jy
! Component: 100  -  total flux cleaned = 0.00634014 Jy
! Total flux subtracted in 100 components = 0.00634014 Jy
! Clean residual min=-0.004455 max=0.005065 Jy/beam
! Clean residual mean=-0.000003 rms=0.001003 Jy/beam
! Combined flux in latest and established models = 1.03868 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 52 components and 1.03868 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098794Jy  sigma=0.430751
! Fit after  self-cal, rms=0.095099Jy  sigma=0.414282
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=0.9842 mas, bmaj=1.567 mas, bpa=-8.471 degrees
! Estimated noise=1.51534 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)
! Added new window around map position (-12.2, 17.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00389936 Jy
! Component: 100  -  total flux cleaned = 0.00643429 Jy
! Total flux subtracted in 100 components = 0.00643429 Jy
! Clean residual min=-0.002799 max=0.003077 Jy/beam
! Clean residual mean=-0.000003 rms=0.000684 Jy/beam
! Combined flux in latest and established models = 1.04512 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 59 components and 1.04512 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.094940Jy  sigma=0.413565
! Fit after  self-cal, rms=0.094935Jy  sigma=0.413542
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1020+400_X
! Writing UV FITS file: 1020+400_X.uvf
! Writing 59 model components to file: 1020+400_X.mod
! wwins: Wrote 5 windows to 1020+400_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9842 x 1.567 at -8.471 degrees (North through East)
! Clean map  min=-0.0025166  max=0.84475 Jy/beam
! Writing clean map to FITS file: 1020+400_X.fits
! Writing difmap environment to: 1020+400_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1020+400_Xuv.ps/vps,1,2
! Attempting to open device: '1020+400_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1020+400_Xim.ps/vps
! Attempting to open device: '1020+400_Xim.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=0.9842 mas, bmaj=1.567 mas, bpa=-8.471 degrees
! Estimated noise=1.51534 mJy/beam.
! The new contour levels are:
!  -0.00205545 0.00205545 0.0041109 0.0082218 0.0164436 0.0328872 0.0657744 0.131549 0.263097 0.526195 1.05239 2.10478 4.20956 8.41912 16.8382 33.6765 67.353 134.706 269.412 538.824 1077.65 2155.29 4310.59 8621.18 17242.4
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9842 x 1.567 at -8.471 degrees (North through East)
! Clean map  min=-0.0025166  max=0.84475 Jy/beam
quit
! Quitting program
! Log file 1020+400_X.log closed on Tue May 28 21:43:03 1996