! Started logfile: 1803+784_Q.log on Thu Aug  8 16:44:24 2002
observe 1803+784_Q.edt
! Reading UV FITS file: 1803+784_Q.edt
! AN table 1: 64 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.753819 visibilities/baseline/integration-bin.
! 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  4.29545e+10        8e+06          1        8e+06
!  02        2  4.30345e+10        8e+06          1        8e+06
!  03        3  4.32145e+10        8e+06          1        8e+06
!  04        4  4.33545e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1885 lines of history.
! 
! Reading 8684 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.02
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.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.0200x0.0200 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 142 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 127 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 112 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 115 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.346675Jy  sigma=2.007947
! Fit after  self-cal, rms=0.344682Jy  sigma=1.996623
! 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.1611 mas, bmaj=0.197 mas, bpa=6.806 degrees
! Estimated noise=2.48829 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.791556 Jy
! Component: 100  -  total flux cleaned = 0.998509 Jy
! Total flux subtracted in 100 components = 0.998509 Jy
! Clean residual min=-0.044535 max=0.089204 Jy/beam
! Clean residual mean=-0.000145 rms=0.013532 Jy/beam
! Combined flux in latest and established models = 0.998509 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 17 components and 0.998509 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336630Jy  sigma=1.949272
! Fit after  self-cal, rms=0.336543Jy  sigma=1.948754
! 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.176 mas, bmaj=0.2356 mas, bpa=-4.023 degrees
! Estimated noise=1.42514 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.118033 Jy
! Component: 100  -  total flux cleaned = 0.177761 Jy
! Component: 150  -  total flux cleaned = 0.210874 Jy
! Component: 200  -  total flux cleaned = 0.229975 Jy
! Total flux subtracted in 200 components = 0.229975 Jy
! Clean residual min=-0.034160 max=0.051015 Jy/beam
! Clean residual mean=-0.000120 rms=0.010636 Jy/beam
! Combined flux in latest and established models = 1.22848 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 42 components and 1.22848 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295249Jy  sigma=1.708743
! Fit after  self-cal, rms=0.295146Jy  sigma=1.708092
! 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        0.97     FD        0.91     HN        0.93     KP        1.08     
!   LA        0.92     MK        1.06     NL        1.24     OV        0.96     
!   PT        1.00*    SC        1.06     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.91     HN        0.95     KP        1.07     
!   LA        0.97     MK        1.09     NL        1.25     OV        0.96     
!   PT        1.00*    SC        1.06     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.92     HN        0.96     KP        1.05     
!   LA        0.92     MK        1.04     NL        1.21     OV        0.98     
!   PT        1.00*    SC        1.08     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.92     HN        0.95     KP        1.09     
!   LA        0.93     MK        1.04     NL        1.18     OV        0.98     
!   PT        1.00*    SC        1.06     
! 
! 
! Fit before self-cal, rms=0.295146Jy  sigma=1.708092
! Fit after  self-cal, rms=0.280443Jy  sigma=1.572873
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.1798 mas, bmaj=0.2368 mas, bpa=-4.654 degrees
! Estimated noise=1.42925 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.42, 0.08).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0433367 Jy
! Component: 100  -  total flux cleaned = 0.0674388 Jy
! Component: 150  -  total flux cleaned = 0.08511 Jy
! Component: 200  -  total flux cleaned = 0.0959069 Jy
! Total flux subtracted in 200 components = 0.0959069 Jy
! Clean residual min=-0.017625 max=0.021380 Jy/beam
! Clean residual mean=-0.000108 rms=0.004748 Jy/beam
! Combined flux in latest and established models = 1.32439 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 46 model components to the UV plane model.
! The established model now contains 87 components and 1.32439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273370Jy  sigma=1.525566
! Fit after  self-cal, rms=0.272979Jy  sigma=1.522531
! 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)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0131274 Jy
! Component: 100  -  total flux cleaned = 0.0189616 Jy
! Component: 150  -  total flux cleaned = 0.0240011 Jy
! Component: 200  -  total flux cleaned = 0.028362 Jy
! Total flux subtracted in 200 components = 0.028362 Jy
! Clean residual min=-0.015770 max=0.020071 Jy/beam
! Clean residual mean=-0.000089 rms=0.004239 Jy/beam
! Combined flux in latest and established models = 1.35275 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 109 components and 1.35275 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271786Jy  sigma=1.514770
! Fit after  self-cal, rms=0.269401Jy  sigma=1.481450
! Inverting map and beam 
! Estimated beam: bmin=0.1797 mas, bmaj=0.2381 mas, bpa=-4.746 degrees
! Estimated noise=1.42819 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)
! Added new window around map position (-0.58, 0.08).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0174882 Jy
! Component: 100  -  total flux cleaned = 0.0281594 Jy
! Component: 150  -  total flux cleaned = 0.0362304 Jy
! Component: 200  -  total flux cleaned = 0.0424996 Jy
! Total flux subtracted in 200 components = 0.0424996 Jy
! Clean residual min=-0.009464 max=0.010646 Jy/beam
! Clean residual mean=-0.000032 rms=0.002550 Jy/beam
! Combined flux in latest and established models = 1.39525 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 139 components and 1.39525 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268065Jy  sigma=1.473098
! Fit after  self-cal, rms=0.268013Jy  sigma=1.472695
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1803+784_Q
! Writing UV FITS file: 1803+784_Q.uvf
! Writing 139 model components to file: 1803+784_Q.mod
! wwins: Wrote 3 windows to 1803+784_Q.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.1797 x 0.2381 at -4.746 degrees (North through East)
! Clean map  min=-0.0095661  max=1.0453 Jy/beam
! Writing clean map to FITS file: 1803+784_Q.fits
! Writing difmap environment to: 1803+784_Q.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1803+784_Quv.ps/vps,1,2
! Attempting to open device: '1803+784_Quv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1803+784_Qim.ps/vps
! Attempting to open device: '1803+784_Qim.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.1797 mas, bmaj=0.2381 mas, bpa=-4.746 degrees
! Estimated noise=1.42819 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.1797 x 0.2381 at -4.746 degrees (North through East)
! Clean map  min=-0.0095661  max=1.0453 Jy/beam
quit
! Quitting program
! Log file 1803+784_Q.log closed on Thu Aug  8 16:44:49 2002