! Started logfile: 2209+236_K.log on Mon Oct 16 13:51:16 2006
observe 2209+236_K.edt
! Reading UV FITS file: 2209+236_K.edt
! AN table 1: 31 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.993548 visibilities/baseline/integration-bin.
! Found source: 2209+236
! 
! 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 1089 lines of history.
! 
! Reading 11088 visibilities.
![@gonzo6-0.02 2209+236_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 = 6.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 10 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 10 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 10 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 10 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 10 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 10 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 10 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 10 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.627205Jy  sigma=0.002424
! Fit after  self-cal, rms=0.627004Jy  sigma=0.002424
! 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.2854 mas, bmaj=0.6991 mas, bpa=9.075 degrees
! Estimated noise=2411.44 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 = 1.06194 Jy
! Component: 100  -  total flux cleaned = 1.38929 Jy
! Total flux subtracted in 100 components = 1.38929 Jy
! Clean residual min=-0.059163 max=0.137806 Jy/beam
! Clean residual mean=0.000951 rms=0.019994 Jy/beam
! Combined flux in latest and established models = 1.38929 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 1.38929 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.414128Jy  sigma=0.001583
! Fit after  self-cal, rms=0.413565Jy  sigma=0.001580
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.145096 Jy
! Component: 100  -  total flux cleaned = 0.212669 Jy
! Total flux subtracted in 100 components = 0.212669 Jy
! Clean residual min=-0.045197 max=0.049032 Jy/beam
! Clean residual mean=0.000368 rms=0.012469 Jy/beam
! Combined flux in latest and established models = 1.60196 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 32 components and 1.60196 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.354170Jy  sigma=0.001368
! Fit after  self-cal, rms=0.353853Jy  sigma=0.001366
! 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.3078 mas, bmaj=0.7383 mas, bpa=7.606 degrees
! Estimated noise=1663.22 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.0470426 Jy
! Component: 100  -  total flux cleaned = 0.0721664 Jy
! Component: 150  -  total flux cleaned = 0.0791159 Jy
! Component: 200  -  total flux cleaned = 0.0836235 Jy
! Total flux subtracted in 200 components = 0.0836235 Jy
! Clean residual min=-0.032862 max=0.041549 Jy/beam
! Clean residual mean=0.000600 rms=0.010652 Jy/beam
! Combined flux in latest and established models = 1.68558 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 55 components and 1.68558 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.345302Jy  sigma=0.001345
! Fit after  self-cal, rms=0.345206Jy  sigma=0.001344
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale false
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 0.972711
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00     HN        1.12     KP        1.01     
!   LA        0.90     MK        0.99     NL        1.03     OV        1.12     
!   PT        1.09     SC        1.00     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.982134
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.96     HN        1.06     KP        1.04     
!   LA        0.91     MK        0.94     NL        0.94     OV        1.10     
!   PT        1.14     SC        1.00     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00567
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.81     HN        1.06     KP        0.98     
!   LA        0.91     MK        0.92     NL        1.00     OV        1.12     
!   PT        1.08     SC        0.98     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.02605
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.86     HN        1.19     KP        0.90     
!   LA        0.91     MK        0.89     NL        1.05     OV        0.99     
!   PT        0.98     SC        0.98     
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 0.991664
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.83     FD        1.06     HN        0.98     KP        0.94     
!   LA        0.92     MK        1.05     NL        0.99     OV        1.18     
!   PT        1.12     SC        1.01     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.986307
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        0.90     HN        1.12     KP        0.95     
!   LA        0.94     MK        1.02     NL        1.05     OV        1.00     
!   PT        1.09     SC        0.96     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 1.01564
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.17     FD        0.79     HN        0.95     KP        0.95     
!   LA        0.96     MK        0.97     NL        1.12     OV        1.06     
!   PT        0.89     SC        0.98     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.992599
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        0.84     HN        1.05     KP        0.95     
!   LA        0.93     MK        1.02     NL        1.15     OV        1.14     
!   PT        0.85     SC        1.02     
! 
! 
! Fit before self-cal, rms=0.345206Jy  sigma=0.001344
! Fit after  self-cal, rms=0.290323Jy  sigma=0.001138
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3078 mas, bmaj=0.7433 mas, bpa=7.717 degrees
! Estimated noise=1657.77 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.00765448 Jy
! Component: 100  -  total flux cleaned = -0.00879004 Jy
! Component: 150  -  total flux cleaned = -0.00877798 Jy
! Component: 200  -  total flux cleaned = -0.00850662 Jy
! Total flux subtracted in 200 components = -0.00850662 Jy
! Clean residual min=-0.017637 max=0.014177 Jy/beam
! Clean residual mean=-0.000079 rms=0.004229 Jy/beam
! Combined flux in latest and established models = 1.67707 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 64 components and 1.67707 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.289504Jy  sigma=0.001134
! Fit after  self-cal, rms=0.289471Jy  sigma=0.001133
! 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.000309909 Jy
! Component: 100  -  total flux cleaned = -0.000642918 Jy
! Component: 150  -  total flux cleaned = -0.000633645 Jy
! Component: 200  -  total flux cleaned = -0.00101962 Jy
! Total flux subtracted in 200 components = -0.00101962 Jy
! Clean residual min=-0.018075 max=0.013953 Jy/beam
! Clean residual mean=-0.000079 rms=0.004122 Jy/beam
! Combined flux in latest and established models = 1.67605 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 76 components and 1.67605 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.289180Jy  sigma=0.001132
! Fit after  self-cal, rms=0.280525Jy  sigma=0.001097
! Inverting map and beam 
! Estimated beam: bmin=0.3062 mas, bmaj=0.7437 mas, bpa=7.603 degrees
! Estimated noise=1654.82 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.00443489 Jy
! Component: 100  -  total flux cleaned = 0.00518761 Jy
! Component: 150  -  total flux cleaned = 0.00540738 Jy
! Component: 200  -  total flux cleaned = 0.00540409 Jy
! Total flux subtracted in 200 components = 0.00540409 Jy
! Clean residual min=-0.014756 max=0.010673 Jy/beam
! Clean residual mean=-0.000046 rms=0.003013 Jy/beam
! Combined flux in latest and established models = 1.68146 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 81 components and 1.68146 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.280161Jy  sigma=0.001095
! Fit after  self-cal, rms=0.280143Jy  sigma=0.001094
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2209+236_K
! Writing UV FITS file: 2209+236_K.uvf
! Writing 81 model components to file: 2209+236_K.mod
! wwins: Wrote 1 windows to 2209+236_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3062 x 0.7437 at 7.603 degrees (North through East)
! Clean map  min=-0.0096168  max=1.3457 Jy/beam
! Writing clean map to FITS file: 2209+236_K.fits
! Writing difmap environment to: 2209+236_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2209+236_K]
device 2209+236_Kuv.ps/vps,1,2
! Attempting to open device: '2209+236_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2209+236_Kim.ps/vps
! Attempting to open device: '2209+236_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.3062 mas, bmaj=0.7437 mas, bpa=7.603 degrees
! Estimated noise=1654.82 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3062 x 0.7437 at 7.603 degrees (North through East)
! Clean map  min=-0.0096168  max=1.3457 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6-0.02]
quit
! Quitting program
! Log file 2209+236_K.log closed on Mon Oct 16 13:51:22 2006