! Started logfile: 2209+236_S.log on Fri Apr 18 07:29:51 2008
observe 2209+236_S.edt
! Reading UV FITS file: 2209+236_S.edt
! AN table 1: 25 integrations on 136 of 136 possible baselines.
! AN table 2: 7 integrations on 136 of 136 possible baselines.
! AN table 3: 22 integrations on 136 of 136 possible baselines.
! AN table 4: 42 integrations on 136 of 136 possible baselines.
! AN table 5: 14 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0843583 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2209+236
! 
! 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  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1141 lines of history.
! 
! Reading 5048 visibilities.
![@gonzo7-0.4 2209+236_S]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
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 = 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.400x0.400 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 284 telescope corrections were flagged in sub-array 1.
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  A total of 316 telescope corrections were flagged in sub-array 3.
!  A total of 594 telescope corrections were flagged in sub-array 4.
!  A total of 204 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 284 telescope corrections were flagged in sub-array 1.
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  A total of 317 telescope corrections were flagged in sub-array 3.
!  A total of 594 telescope corrections were flagged in sub-array 4.
!  A total of 204 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 284 telescope corrections were flagged in sub-array 1.
!  A total of 72 telescope corrections were flagged in sub-array 2.
!  A total of 316 telescope corrections were flagged in sub-array 3.
!  A total of 594 telescope corrections were flagged in sub-array 4.
!  A total of 209 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 297 telescope corrections were flagged in sub-array 1.
!  A total of 77 telescope corrections were flagged in sub-array 2.
!  A total of 328 telescope corrections were flagged in sub-array 3.
!  A total of 604 telescope corrections were flagged in sub-array 4.
!  A total of 204 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.377579Jy  sigma=0.004155
! Fit after  self-cal, rms=0.361578Jy  sigma=0.003901
! 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=2.359 mas, bmaj=4.334 mas, bpa=4.599 degrees
! Estimated noise=1486.43 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.678873 Jy
! Total flux subtracted in 50 components = 0.678873 Jy
! Clean residual min=-0.061197 max=0.189345 Jy/beam
! Clean residual mean=-0.000371 rms=0.016022 Jy/beam
! Combined flux in latest and established models = 0.678873 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 0.678873 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429505Jy  sigma=0.004463
! Fit after  self-cal, rms=0.429504Jy  sigma=0.004463
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.167574 Jy
! Total flux subtracted in 50 components = 0.167574 Jy
! Clean residual min=-0.053371 max=0.068824 Jy/beam
! Clean residual mean=-0.000331 rms=0.013546 Jy/beam
! Combined flux in latest and established models = 0.846448 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.846448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360061Jy  sigma=0.003663
! Fit after  self-cal, rms=0.360090Jy  sigma=0.003663
! 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=2.885 mas, bmaj=5.165 mas, bpa=-0.4498 degrees
! Estimated noise=999.109 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.102257 Jy
! Component: 100  -  total flux cleaned = 0.151004 Jy
! Total flux subtracted in 100 components = 0.151004 Jy
! Clean residual min=-0.046645 max=0.050946 Jy/beam
! Clean residual mean=-0.001390 rms=0.012143 Jy/beam
! Combined flux in latest and established models = 0.997452 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 32 components and 0.997452 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333241Jy  sigma=0.003385
! Fit after  self-cal, rms=0.333229Jy  sigma=0.003385
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        0.93     HN        0.91     KB        7.29     
!   KK        1.06     KP        1.02     LA        0.96     MK        0.56     
!   NL        0.89     NY        1.40     OV        1.28     PT        0.91     
!   SC        0.79     TS        1.13     WF        0.86     WZ        1.00*    
!   ZC        0.69     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.05     HN        1.00*    KB        1.00*    
!   KK        0.87     KP        0.97     LA        0.97     MK        0.85     
!   NL        1.04     NY        1.00*    OV        1.10     PT        1.03     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HN        1.03     KB       11.66     
!   KK        1.00*    KP        1.00*    LA        1.33     MK        1.00*    
!   NL        1.01     NY        1.42     OV        1.00*    PT        1.00*    
!   SC        1.03     TS        0.81     WF        1.00*    WZ        1.00*    
!   ZC        0.88     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.98     HN        1.08     KB       10.00     
!   KK        1.07     KP        0.77     LA        1.00     MK        1.01     
!   NL        1.04     NY        1.10     OV        1.00*    PT        0.95     
!   SC        1.00*    TS        0.72     WF        1.24     WZ        1.00*    
!   ZC        0.87     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.17     FD        1.00*    HN        1.00*    KB       10.54     
!   KK        1.00     KP        1.00*    LA        1.00*    MK        0.93     
!   NL        1.00*    NY        0.74     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS       13.89     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.86     FD        0.90     HN        0.90     KB       10.92     
!   KK        1.07     KP        1.11     LA        0.90     MK        0.52     
!   NL        0.88     NY        1.23     OV        1.31     PT        0.87     
!   SC        0.73     TS        1.07     WF        0.90     WZ        1.00*    
!   ZC        0.72     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     HN        1.00*    KB        1.00*    
!   KK        0.87     KP        1.06     LA        0.98     MK        0.93     
!   NL        1.08     NY        1.00*    OV        1.09     PT        0.99     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HN        0.97     KB       11.33     
!   KK        1.00*    KP        1.00*    LA        1.32     MK        1.00*    
!   NL        1.08     NY        1.44     OV        1.00*    PT        1.00*    
!   SC        1.09     TS        0.74     WF        1.00*    WZ        1.00*    
!   ZC        0.90     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.88     FD        0.98     HN        1.07     KB       12.69     
!   KK        1.02     KP        0.73     LA        1.01     MK        0.92     
!   NL        1.02     NY        1.19     OV        1.00*    PT        0.98     
!   SC        1.00*    TS        0.85     WF        1.26     WZ        1.00*    
!   ZC        0.80     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR       10.78     FD        1.00*    HN        1.00*    KB       12.25     
!   KK        0.97     KP        1.00*    LA        1.00*    MK        0.99     
!   NL        1.00*    NY        0.90     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS       12.73     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        0.90     HN        0.88     KB        6.60     
!   KK        1.00     KP        1.14     LA        0.93     MK        0.90     
!   NL        0.90     NY        1.42     OV        1.30     PT        0.89     
!   SC        0.75     TS        0.91     WF        0.91     WZ        1.00*    
!   ZC        0.78     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     HN        1.00*    KB        1.00*    
!   KK        0.88     KP        1.02     LA        0.96     MK        0.92     
!   NL        1.11     NY        1.00*    OV        1.11     PT        0.98     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HN        1.01     KB        7.45     
!   KK        1.00*    KP        1.00*    LA        1.34     MK        1.00*    
!   NL        0.97     NY        1.33     OV        1.00*    PT        1.00*    
!   SC        1.09     TS        0.79     WF        1.00*    WZ        1.00*    
!   ZC        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.97     HN        1.10     KB       12.77     
!   KK        1.01     KP        0.68     LA        1.02     MK        0.91     
!   NL        1.04     NY        1.17     OV        1.00*    PT        0.96     
!   SC        1.00*    TS        0.79     WF        1.17     WZ        1.00*    
!   ZC        0.90     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.20     FD        1.00*    HN        1.00*    KB        9.28     
!   KK        0.98     KP        1.00*    LA        1.00*    MK        1.02     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        8.70     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        1.00*    HN        0.85     KB       10.41     
!   KK        1.02     KP        1.12     LA        0.93     MK        0.93     
!   NL        0.92     NY        1.51     OV        1.35     PT        0.89     
!   SC        0.73     TS        0.86     WF        1.00     WZ        1.00*    
!   ZC        0.69     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    HN        1.00*    KB        1.00*    
!   KK        0.89     KP        1.04     LA        0.96     MK        0.91     
!   NL        1.03     NY        1.00*    OV        1.09     PT        1.00     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HN        0.99     KB        6.26     
!   KK        1.00*    KP        1.00*    LA        1.26     MK        1.00*    
!   NL        1.00     NY        1.44     OV        1.00*    PT        1.00*    
!   SC        1.05     TS        0.70     WF        1.00*    WZ        1.00*    
!   ZC        0.92     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        1.00*    HN        1.09     KB        9.65     
!   KK        1.04     KP        0.70     LA        0.98     MK        0.91     
!   NL        1.02     NY        1.15     OV        1.00*    PT        0.99     
!   SC        1.00*    TS        0.78     WF        1.34     WZ        1.00*    
!   ZC        0.85     
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.21     FD        1.00*    HN        1.00*    KB        9.27     
!   KK        0.97     KP        1.00*    LA        1.00*    MK        1.03     
!   NL        1.00*    NY        0.94     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS       14.11     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Fit before self-cal, rms=0.333229Jy  sigma=0.003385
! Fit after  self-cal, rms=0.822391Jy  sigma=0.001273
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.96 mas, bmaj=5.313 mas, bpa=0.6061 degrees
! Estimated noise=1008.39 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.00256815 Jy
! Component: 100  -  total flux cleaned = -0.00257834 Jy
! Total flux subtracted in 100 components = -0.00257834 Jy
! Clean residual min=-0.010076 max=0.008934 Jy/beam
! Clean residual mean=0.000109 rms=0.001918 Jy/beam
! Combined flux in latest and established models = 0.994874 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 40 components and 0.994874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.821883Jy  sigma=0.001266
! Fit after  self-cal, rms=0.824268Jy  sigma=0.001263
! 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00119926 Jy
! Component: 100  -  total flux cleaned = 0.00139224 Jy
! Total flux subtracted in 100 components = 0.00139224 Jy
! Clean residual min=-0.009889 max=0.008634 Jy/beam
! Clean residual mean=0.000108 rms=0.001886 Jy/beam
! Combined flux in latest and established models = 0.996266 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 43 components and 0.996266 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.823947Jy  sigma=0.001259
! Fit after  self-cal, rms=0.902887Jy  sigma=0.001149
! Inverting map and beam 
! Estimated beam: bmin=2.982 mas, bmaj=5.302 mas, bpa=0.254 degrees
! Estimated noise=1007.77 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.00194565 Jy
! Component: 100  -  total flux cleaned = -0.00196308 Jy
! Total flux subtracted in 100 components = -0.00196308 Jy
! Clean residual min=-0.007025 max=0.006976 Jy/beam
! Clean residual mean=0.000078 rms=0.001512 Jy/beam
! Combined flux in latest and established models = 0.994303 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 48 components and 0.994303 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.902709Jy  sigma=0.001145
! Fit after  self-cal, rms=0.902762Jy  sigma=0.001144
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2209+236_S
! Writing UV FITS file: 2209+236_S.uvf
! Writing 48 model components to file: 2209+236_S.mod
! wwins: Wrote 1 windows to 2209+236_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.982 x 5.302 at 0.254 degrees (North through East)
! Clean map  min=-0.0067616  max=0.89396 Jy/beam
! Writing clean map to FITS file: 2209+236_S.fits
! Writing difmap environment to: 2209+236_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2209+236_S]
device 2209+236_Suv.ps/vps,1,2
! Attempting to open device: '2209+236_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2209+236_Sim.ps/vps
! Attempting to open device: '2209+236_Sim.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=2.982 mas, bmaj=5.302 mas, bpa=0.254 degrees
! Estimated noise=1007.77 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.982 x 5.302 at 0.254 degrees (North through East)
! Clean map  min=-0.0067616  max=0.89396 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 2209+236_S.log closed on Fri Apr 18 07:30:08 2008