! Started logfile: 1803+784_K.log_2 on Mon May  9 09:14:16 2005
observe 1803+784_K.edt
! Reading UV FITS file: 1803+784_K.edt
! AN table 1: 47 integrations on 55 of 55 possible baselines.
! AN table 2: 48 integrations on 55 of 55 possible baselines.
! Apparent sampling: 0.550239 visibilities/baseline/integration-bin.
! Found source: 1803+784
! 
! There are 8 IFs, and a total of 8 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.37245e+10        8e+06          1        8e+06
!  02        2  2.37375e+10        8e+06          1        8e+06
!  03        3  2.37765e+10        8e+06          1        8e+06
!  04        4  2.38545e+10        8e+06          1        8e+06
!  05        5  2.39975e+10        8e+06          1        8e+06
!  06        6  2.41015e+10        8e+06          1        8e+06
!  07        7  2.41665e+10        8e+06          1        8e+06
!  08        8  2.41925e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 784 lines of history.
! 
! Reading 23000 visibilities.
![@gonzo5-0.02 1803+784_K]
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 = 5.0
float win_mult
win_mult = 1.4
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..8
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
! Reading IF 5 channels: 5..5
! Reading IF 6 channels: 6..6
! Reading IF 7 channels: 7..7
! Reading IF 8 channels: 8..8
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 134 telescope corrections were flagged in sub-array 1.
!  A total of 185 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 134 telescope corrections were flagged in sub-array 1.
!  A total of 185 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 134 telescope corrections were flagged in sub-array 1.
!  A total of 185 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 134 telescope corrections were flagged in sub-array 1.
!  A total of 186 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 5.
!  A total of 134 telescope corrections were flagged in sub-array 1.
!  A total of 186 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 6.
!  A total of 137 telescope corrections were flagged in sub-array 1.
!  A total of 189 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 7.
!  A total of 134 telescope corrections were flagged in sub-array 1.
!  A total of 186 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 8.
!  A total of 134 telescope corrections were flagged in sub-array 1.
!  A total of 185 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=0.298692Jy  sigma=1.680819
! Fit after  self-cal, rms=0.294063Jy  sigma=1.657888
! 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.3321 mas, bmaj=0.4489 mas, bpa=76.82 degrees
! Estimated noise=1.70706 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.685181 Jy
! Component: 100  -  total flux cleaned = 0.850836 Jy
! Total flux subtracted in 100 components = 0.850836 Jy
! Clean residual min=-0.033225 max=0.106983 Jy/beam
! Clean residual mean=0.000156 rms=0.011031 Jy/beam
! Combined flux in latest and established models = 0.850836 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.850836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.292529Jy  sigma=1.640115
! Fit after  self-cal, rms=0.292397Jy  sigma=1.639390
! Inverting map 
! Added new window around map position (-1.44, 0.04).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0975976 Jy
! Component: 100  -  total flux cleaned = 0.154416 Jy
! Total flux subtracted in 100 components = 0.154416 Jy
! Clean residual min=-0.021858 max=0.031170 Jy/beam
! Clean residual mean=0.000064 rms=0.006670 Jy/beam
! Combined flux in latest and established models = 1.00525 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 48 components and 1.00525 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.246311Jy  sigma=1.374375
! Fit after  self-cal, rms=0.244105Jy  sigma=1.361309
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0441105 Jy
! Component: 100  -  total flux cleaned = 0.0755471 Jy
! Total flux subtracted in 100 components = 0.0755471 Jy
! Clean residual min=-0.015963 max=0.020801 Jy/beam
! Clean residual mean=0.000034 rms=0.004809 Jy/beam
! Combined flux in latest and established models = 1.0808 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 74 components and 1.0808 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.230721Jy  sigma=1.284103
! Fit after  self-cal, rms=0.230326Jy  sigma=1.281724
! 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.4
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.4118 mas, bmaj=0.5294 mas, bpa=82.23 degrees
! Estimated noise=0.902333 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.48, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.042423 Jy
! Component: 100  -  total flux cleaned = 0.0716208 Jy
! Component: 150  -  total flux cleaned = 0.0926702 Jy
! Component: 200  -  total flux cleaned = 0.108066 Jy
! Total flux subtracted in 200 components = 0.108066 Jy
! Clean residual min=-0.014271 max=0.016004 Jy/beam
! Clean residual mean=-0.000036 rms=0.003847 Jy/beam
! Combined flux in latest and established models = 1.18887 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 95 model components to the UV plane model.
! The established model now contains 168 components and 1.18887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.220423Jy  sigma=1.224575
! Fit after  self-cal, rms=0.219918Jy  sigma=1.221623
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale false
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.988988
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.08     HN        1.10     KP        1.04     
!   LA        0.91     MK        1.00     NL        1.00     OV        0.95     
!   PT        1.08     SC        1.00*    TI        1.00*    
! 
!  Amplitude normalization factor in sub-array 2: 0.983419
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.03     HN        1.06     KP        1.01     
!   LA        0.91     MK        1.00*    NL        1.02     OV        1.00*    
!   PT        1.11     SC        1.08     TI        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.99204
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.04     HN        1.05     KP        1.05     
!   LA        0.93     MK        0.97     NL        0.97     OV        0.98     
!   PT        1.13     SC        1.00*    TI        1.00*    
! 
!  Amplitude normalization factor in sub-array 2: 0.985547
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.99     HN        1.01     KP        1.02     
!   LA        0.94     MK        1.00*    NL        1.00     OV        1.00*    
!   PT        1.13     SC        1.10     TI        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00866
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.95     HN        1.02     KP        1.01     
!   LA        0.95     MK        0.94     NL        0.96     OV        1.03     
!   PT        1.08     SC        1.00*    TI        1.00*    
! 
!  Amplitude normalization factor in sub-array 2: 1.00357
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.90     HN        0.99     KP        0.98     
!   LA        0.95     MK        1.00*    NL        1.00     OV        1.00*    
!   PT        1.10     SC        1.06     TI        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00906
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.98     HN        1.13     KP        0.93     
!   LA        0.95     MK        0.93     NL        1.04     OV        0.97     
!   PT        1.02     SC        1.00*    TI        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 1.00112
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.93     HN        1.08     KP        0.93     
!   LA        0.95     MK        1.00*    NL        1.06     OV        1.00*    
!   PT        1.03     SC        1.07     TI        1.00*    
! 
! 
! Correcting IF 5.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00183
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.84     FD        1.09     HN        0.99     KP        0.97     
!   LA        0.95     MK        1.03     NL        1.00     OV        1.00     
!   PT        1.10     SC        1.00*    TI        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 1.00131
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.84     FD        1.05     HN        0.98     KP        0.94     
!   LA        0.94     MK        1.00*    NL        1.03     OV        1.00*    
!   PT        1.13     SC        1.07     TI        1.00*    
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.994615
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.03     HN        1.08     KP        0.98     
!   LA        0.95     MK        1.00     NL        1.06     OV        0.87     
!   PT        1.09     SC        1.00*    TI        1.00*    
! 
!  Amplitude normalization factor in sub-array 2: 0.986336
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.96     HN        1.06     KP        0.98     
!   LA        0.93     MK        1.00*    NL        1.08     OV        1.00*    
!   PT        1.10     SC        1.03     TI        1.00*    
! 
! 
! Correcting IF 7.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01299
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        0.95     HN        0.97     KP        0.99     
!   LA        0.98     MK        1.00     NL        1.05     OV        0.86     
!   PT        0.97     SC        1.00*    TI        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Amplitude normalization factor in sub-array 2: 1.00137
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        0.89     HN        0.94     KP        0.97     
!   LA        0.98     MK        1.00*    NL        1.08     OV        1.00*    
!   PT        1.03     SC        1.02     TI        1.00*    
! 
! 
! Correcting IF 8.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00772
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.96     HN        1.04     KP        1.01     
!   LA        0.96     MK        1.00     NL        1.08     OV        0.88     
!   PT        0.94     SC        1.00*    TI        1.00*    
! 
!  Amplitude normalization factor in sub-array 2: 0.996854
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        0.91     HN        1.01     KP        0.99     
!   LA        0.96     MK        1.00*    NL        1.11     OV        1.00*    
!   PT        0.97     SC        1.03     TI        1.00*    
! 
! 
! Fit before self-cal, rms=0.219918Jy  sigma=1.221623
! Fit after  self-cal, rms=0.203627Jy  sigma=1.138576
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.4141 mas, bmaj=0.5333 mas, bpa=82.66 degrees
! Estimated noise=0.895305 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.0129102 Jy
! Component: 100  -  total flux cleaned = 0.0153639 Jy
! Component: 150  -  total flux cleaned = 0.0157798 Jy
! Component: 200  -  total flux cleaned = 0.0160696 Jy
! Total flux subtracted in 200 components = 0.0160696 Jy
! Clean residual min=-0.008347 max=0.007099 Jy/beam
! Clean residual mean=-0.000099 rms=0.002195 Jy/beam
! Combined flux in latest and established models = 1.20493 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 45 model components to the UV plane model.
! The established model now contains 206 components and 1.20493 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.202824Jy  sigma=1.133267
! Fit after  self-cal, rms=0.202710Jy  sigma=1.132326
! 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 (-3.46, 0.34).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00686129 Jy
! Component: 100  -  total flux cleaned = 0.00939169 Jy
! Component: 150  -  total flux cleaned = 0.0116752 Jy
! Component: 200  -  total flux cleaned = 0.0130565 Jy
! Total flux subtracted in 200 components = 0.0130565 Jy
! Clean residual min=-0.007372 max=0.007093 Jy/beam
! Clean residual mean=-0.000129 rms=0.002006 Jy/beam
! Combined flux in latest and established models = 1.21799 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 228 components and 1.21799 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.202369Jy  sigma=1.130225
! Fit after  self-cal, rms=0.198557Jy  sigma=1.101182
! Inverting map and beam 
! Estimated beam: bmin=0.4141 mas, bmaj=0.5326 mas, bpa=82.04 degrees
! Estimated noise=0.897742 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00380406 Jy
! Component: 100  -  total flux cleaned = 0.00546107 Jy
! Component: 150  -  total flux cleaned = 0.00610377 Jy
! Component: 200  -  total flux cleaned = 0.00666845 Jy
! Total flux subtracted in 200 components = 0.00666845 Jy
! Clean residual min=-0.004577 max=0.003928 Jy/beam
! Clean residual mean=-0.000162 rms=0.001174 Jy/beam
! Combined flux in latest and established models = 1.22466 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 245 components and 1.22466 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.198447Jy  sigma=1.100593
! Fit after  self-cal, rms=0.198447Jy  sigma=1.100536
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1803+784_K
! Writing UV FITS file: 1803+784_K.uvf
! Writing 245 model components to file: 1803+784_K.mod
! wwins: Wrote 4 windows to 1803+784_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.4141 x 0.5326 at 82.04 degrees (North through East)
! Clean map  min=-0.0045679  max=0.89392 Jy/beam
! Writing clean map to FITS file: 1803+784_K.fits
! Writing difmap environment to: 1803+784_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1803+784_K]
device 1803+784_Kuv.ps/vps,1,2
! Attempting to open device: '1803+784_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1803+784_Kim.ps/vps
! Attempting to open device: '1803+784_Kim.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.4141 mas, bmaj=0.5326 mas, bpa=82.04 degrees
! Estimated noise=0.897742 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.4141 x 0.5326 at 82.04 degrees (North through East)
! Clean map  min=-0.0045679  max=0.89392 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo5-0.02]
quit
! Quitting program
! Log file 1803+784_K.log_2 closed on Mon May  9 09:16:52 2005