! Started logfile: 1803+784_X.log on Wed Feb 18 21:26:11 1998
observe 1803+784_X.edt
! Reading UV FITS file: 1803+784_X.edt
! AN table 1: 86 integrations on 91 of 91 possible baselines.
! AN table 2: 167 integrations on 91 of 91 possible baselines.
! AN table 3: 25 integrations on 78 of 78 possible baselines.
! Apparent sampling: 0.442878 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1803+784
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 724 lines of history.
! 
! Reading 44240 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 9.0
float win_mult
win_mult = 1.8
float solint
solint = 3.6/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.100x0.100 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
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 670 telescope corrections were flagged in sub-array 1.
!  A total of 1190 telescope corrections were flagged in sub-array 2.
!  A total of 50 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 670 telescope corrections were flagged in sub-array 1.
!  A total of 1672 telescope corrections were flagged in sub-array 2.
!  A total of 50 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 670 telescope corrections were flagged in sub-array 1.
!  A total of 1190 telescope corrections were flagged in sub-array 2.
!  A total of 50 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 670 telescope corrections were flagged in sub-array 1.
!  A total of 1186 telescope corrections were flagged in sub-array 2.
!  A total of 50 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.698020Jy  sigma=3.378104
! Fit after  self-cal, rms=0.697909Jy  sigma=3.378359
! 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.6523 mas, bmaj=0.7195 mas, bpa=-22.97 degrees
! Estimated noise=1.50851 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 = 1.08701 Jy
! Total flux subtracted in 50 components = 1.08701 Jy
! Clean residual min=-0.041256 max=0.303483 Jy/beam
! Clean residual mean=-0.000055 rms=0.011213 Jy/beam
! Combined flux in latest and established models = 1.08701 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.08701 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.629826Jy  sigma=3.048040
! Fit after  self-cal, rms=0.629827Jy  sigma=3.048040
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.267615 Jy
! Total flux subtracted in 50 components = 0.267615 Jy
! Clean residual min=-0.033791 max=0.155237 Jy/beam
! Clean residual mean=-0.000043 rms=0.007970 Jy/beam
! Combined flux in latest and established models = 1.35463 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.35463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.454043Jy  sigma=2.193133
! Fit after  self-cal, rms=0.453599Jy  sigma=2.191128
! Inverting map 
! Added new window around map position (-1.2, -0.1).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.159767 Jy
! Total flux subtracted in 50 components = 0.159767 Jy
! Clean residual min=-0.030485 max=0.081788 Jy/beam
! Clean residual mean=-0.000028 rms=0.006471 Jy/beam
! Combined flux in latest and established models = 1.51439 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 1.51439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364702Jy  sigma=1.758682
! Fit after  self-cal, rms=0.361451Jy  sigma=1.742681
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.111201 Jy
! Total flux subtracted in 50 components = 0.111201 Jy
! Clean residual min=-0.026683 max=0.059561 Jy/beam
! Clean residual mean=-0.000018 rms=0.005444 Jy/beam
! Combined flux in latest and established models = 1.6256 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 28 components and 1.6256 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304825Jy  sigma=1.466236
! Fit after  self-cal, rms=0.303282Jy  sigma=1.458654
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0812884 Jy
! Total flux subtracted in 50 components = 0.0812884 Jy
! Clean residual min=-0.024438 max=0.048641 Jy/beam
! Clean residual mean=-0.000011 rms=0.004833 Jy/beam
! Combined flux in latest and established models = 1.70688 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 39 components and 1.70688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265986Jy  sigma=1.275849
! Fit after  self-cal, rms=0.265131Jy  sigma=1.271660
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0622378 Jy
! Total flux subtracted in 50 components = 0.0622378 Jy
! Clean residual min=-0.022465 max=0.040370 Jy/beam
! Clean residual mean=-0.000005 rms=0.004442 Jy/beam
! Combined flux in latest and established models = 1.76912 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 50 components and 1.76912 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239661Jy  sigma=1.146407
! Fit after  self-cal, rms=0.239203Jy  sigma=1.144161
! 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.8739 mas, bmaj=1.036 mas, bpa=-18.79 degrees
! Estimated noise=0.787426 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.107415 Jy
! Component: 100  -  total flux cleaned = 0.168515 Jy
! Total flux subtracted in 100 components = 0.168515 Jy
! Clean residual min=-0.012292 max=0.039762 Jy/beam
! Clean residual mean=0.001008 rms=0.003957 Jy/beam
! Combined flux in latest and established models = 1.93764 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 52 model components to the UV plane model.
! The established model now contains 89 components and 1.93764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191258Jy  sigma=0.906737
! Fit after  self-cal, rms=0.189827Jy  sigma=0.899609
! Inverting map 
! Added new window around map position (-1.9, -0.3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0428073 Jy
! Component: 100  -  total flux cleaned = 0.0697172 Jy
! Total flux subtracted in 100 components = 0.0697172 Jy
! Clean residual min=-0.010349 max=0.021656 Jy/beam
! Clean residual mean=0.000694 rms=0.003023 Jy/beam
! Combined flux in latest and established models = 2.00736 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 109 components and 2.00736 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180543Jy  sigma=0.853428
! Fit after  self-cal, rms=0.179969Jy  sigma=0.850544
! 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 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        0.97     GN        1.02     
!   HN        1.02     KK        1.20     KP        0.98     LA        0.99     
!   MK        1.01     NL        0.98     ON        0.90     OV        0.99     
!   PT        0.98     WF        1.01     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        0.97     GN        0.98     
!   HN        1.02     KK        1.12     KP        0.98     LA        0.98     
!   MK        0.99     NL        0.97     ON        0.91     OV        0.98     
!   PT        0.98     WF        0.99     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.98     GC        0.99     GN        0.90     
!   HN        1.05     KK        1.06     KP        0.97     LA        0.97     
!   MK        1.00     NL        0.96     OV        0.97     PT        0.97     
!   WF        1.00     
! 
! 
! Correcting IF 2.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.01     GC        0.94     GN        1.27     
!   HN        1.02     KK        1.32     KP        0.98     LA        0.99     
!   MK        1.02     NL        0.97     ON        0.90     OV        1.00     
!   PT        0.98     WF        1.03     
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     GC        0.99     GN        1.19     
!   HN        1.02     KK        1.11     KP        0.98     LA        0.98     
!   MK        1.01     NL        0.96     ON        0.89     OV        0.98     
!   PT        0.97     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.98     GC        0.99     GN        1.49     
!   HN        1.05     KK        1.04     KP        0.97     LA        0.97     
!   MK        1.01     NL        0.95     OV        0.98     PT        0.96     
!   WF        0.99     
! 
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        0.95     GN        0.95     
!   HN        1.01     KK        1.31     KP        0.98     LA        1.00     
!   MK        1.02     NL        0.98     ON        0.92     OV        1.01     
!   PT        0.98     WF        1.00     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        0.96     GN        0.95     
!   HN        1.03     KK        1.21     KP        0.98     LA        0.99     
!   MK        0.99     NL        0.98     ON        0.91     OV        1.00     
!   PT        0.98     WF        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.98     GC        0.99     GN        0.84     
!   HN        1.05     KK        1.07     KP        0.97     LA        0.98     
!   MK        1.01     NL        0.96     OV        0.99     PT        0.98     
!   WF        0.96     
! 
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        0.95     GN        0.97     
!   HN        1.01     KK        1.31     KP        0.99     LA        1.00     
!   MK        1.03     NL        0.98     ON        0.91     OV        1.00     
!   PT        0.99     WF        1.02     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        0.95     GN        0.97     
!   HN        1.02     KK        1.17     KP        0.99     LA        0.99     
!   MK        0.99     NL        0.98     ON        0.92     OV        0.99     
!   PT        0.99     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.98     GC        0.99     GN        0.88     
!   HN        1.05     KK        1.07     KP        0.98     LA        0.98     
!   MK        1.01     NL        0.97     OV        0.99     PT        0.98     
!   WF        0.99     
! 
! 
! Fit before self-cal, rms=0.179969Jy  sigma=0.850544
! Fit after  self-cal, rms=0.139063Jy  sigma=0.633251
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8811 mas, bmaj=1.053 mas, bpa=-20.74 degrees
! Estimated noise=0.786936 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.0170559 Jy
! Component: 100  -  total flux cleaned = 0.0204134 Jy
! Total flux subtracted in 100 components = 0.0204134 Jy
! Clean residual min=-0.005397 max=0.012009 Jy/beam
! Clean residual mean=0.000853 rms=0.001555 Jy/beam
! Combined flux in latest and established models = 2.02777 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 122 components and 2.02777 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137194Jy  sigma=0.623194
! Fit after  self-cal, rms=0.137027Jy  sigma=0.622232
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
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 (-6.7, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0129616 Jy
! Component: 100  -  total flux cleaned = 0.0201374 Jy
! Total flux subtracted in 100 components = 0.0201374 Jy
! Clean residual min=-0.005664 max=0.008798 Jy/beam
! Clean residual mean=0.000767 rms=0.001339 Jy/beam
! Combined flux in latest and established models = 2.04791 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 148 components and 2.04791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135765Jy  sigma=0.615791
! Fit after  self-cal, rms=0.120784Jy  sigma=0.541767
! Inverting map and beam 
! Estimated beam: bmin=0.8814 mas, bmaj=1.05 mas, bpa=-20.03 degrees
! Estimated noise=0.788313 mJy/beam.
! Added new window around map position (-3.7, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.009929 Jy
! Component: 100  -  total flux cleaned = 0.0133856 Jy
! Total flux subtracted in 100 components = 0.0133856 Jy
! Clean residual min=-0.004702 max=0.004785 Jy/beam
! Clean residual mean=0.000512 rms=0.000927 Jy/beam
! Combined flux in latest and established models = 2.06129 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 168 components and 2.06129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119960Jy  sigma=0.537259
! Fit after  self-cal, rms=0.119706Jy  sigma=0.535814
! Inverting map and beam 
! Estimated beam: bmin=0.8816 mas, bmaj=1.05 mas, bpa=-20.03 degrees
! Estimated noise=0.78838 mJy/beam.
doamp = false
solint = solint / (6.0/3.6)
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.00437123 Jy
! Component: 100  -  total flux cleaned = 0.00714116 Jy
! Total flux subtracted in 100 components = 0.00714116 Jy
! Clean residual min=-0.004790 max=0.004546 Jy/beam
! Clean residual mean=0.000464 rms=0.000851 Jy/beam
! Combined flux in latest and established models = 2.06843 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 179 components and 2.06843 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119255Jy  sigma=0.533338
! Fit after  self-cal, rms=0.119234Jy  sigma=0.533191
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1803+784_X
! Writing UV FITS file: 1803+784_X.uvf
! Writing 179 model components to file: 1803+784_X.mod
! wwins: Wrote 5 windows to 1803+784_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8816 x 1.05 at -20.03 degrees (North through East)
! Clean map  min=-0.0037353  max=1.4487 Jy/beam
! Writing clean map to FITS file: 1803+784_X.fits
! Writing difmap environment to: 1803+784_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1803+784_Xuv.ps/vps,1,2
! Attempting to open device: '1803+784_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1803+784_Xim.ps/vps
! Attempting to open device: '1803+784_Xim.ps/vps'
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 -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=0.8816 mas, bmaj=1.05 mas, bpa=-20.03 degrees
! Estimated noise=0.78838 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8816 x 1.05 at -20.03 degrees (North through East)
! Clean map  min=-0.0037353  max=1.4487 Jy/beam
quit
! Quitting program
! Log file 1803+784_X.log closed on Wed Feb 18 21:35:48 1998