! Started logfile: 2309+454_K.log on Wed Oct 26 14:35:19 2005
observe 2309+454_K.edt
! Reading UV FITS file: 2309+454_K.edt
! AN table 1: 54 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.720165 visibilities/baseline/integration-bin.
! Found source: 2309+454
! 
! 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 777 lines of history.
! 
! Reading 14000 visibilities.
![@gonzo7-0.03 2309+454_K]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.03
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.3
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.0300x0.0300 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 80 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 239 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 239 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 239 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 239 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 80 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.703680Jy  sigma=4.042768
! Fit after  self-cal, rms=0.703614Jy  sigma=4.042571
! 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.2659 mas, bmaj=0.676 mas, bpa=17.86 degrees
! Estimated noise=1.97981 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.248605 Jy
! Component: 100  -  total flux cleaned = 0.307012 Jy
! Total flux subtracted in 100 components = 0.307012 Jy
! Clean residual min=-0.015375 max=0.023234 Jy/beam
! Clean residual mean=-0.000228 rms=0.004405 Jy/beam
! Combined flux in latest and established models = 0.307012 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 13 components and 0.307012 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.235886Jy  sigma=1.338588
! Fit after  self-cal, rms=0.235879Jy  sigma=1.338552
! 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.3
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3096 mas, bmaj=0.7845 mas, bpa=14.83 degrees
! Estimated noise=1.15359 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.0357962 Jy
! Component: 100  -  total flux cleaned = 0.0532175 Jy
! Component: 150  -  total flux cleaned = 0.0632268 Jy
! Component: 200  -  total flux cleaned = 0.0693055 Jy
! Total flux subtracted in 200 components = 0.0693055 Jy
! Clean residual min=-0.014129 max=0.023135 Jy/beam
! Clean residual mean=-0.000254 rms=0.004186 Jy/beam
! Combined flux in latest and established models = 0.376317 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 38 components and 0.376317 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.230762Jy  sigma=1.309053
! Fit after  self-cal, rms=0.230735Jy  sigma=1.308888
! 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.976386
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     HN        1.07     KP        1.03     
!   LA        0.86     MK        1.06     NL        1.17     OV        1.08     
!   PT        0.97     SC        1.05     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.99347
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.95     HN        1.04     KP        1.00     
!   LA        0.88     MK        0.99     NL        1.10     OV        1.14     
!   PT        0.98     SC        0.98     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00859
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.88     HN        1.04     KP        0.95     
!   LA        0.87     MK        0.96     NL        1.15     OV        1.20     
!   PT        0.95     SC        0.91     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.00977
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.90     HN        1.14     KP        0.95     
!   LA        0.84     MK        0.86     NL        1.16     OV        1.19     
!   PT        0.92     SC        0.93     
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 0.987408
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.99     HN        0.94     KP        0.94     
!   LA        0.85     MK        0.98     NL        1.15     OV        1.24     
!   PT        1.00     SC        1.04     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.984446
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.91     HN        1.07     KP        0.94     
!   LA        0.89     MK        0.99     NL        1.20     OV        1.16     
!   PT        0.97     SC        1.02     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 1.017
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.83     HN        0.89     KP        0.98     
!   LA        0.89     MK        1.04     NL        1.26     OV        1.10     
!   PT        0.86     SC        0.97     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.982331
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.89     HN        1.08     KP        1.00     
!   LA        0.90     MK        1.04     NL        1.31     OV        1.12     
!   PT        0.88     SC        0.97     
! 
! 
! Fit before self-cal, rms=0.230735Jy  sigma=1.308888
! Fit after  self-cal, rms=0.223517Jy  sigma=1.279181
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3107 mas, bmaj=0.7911 mas, bpa=15.32 degrees
! Estimated noise=1.13341 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.00613371 Jy
! Component: 100  -  total flux cleaned = -0.00796381 Jy
! Component: 150  -  total flux cleaned = -0.00802423 Jy
! Component: 200  -  total flux cleaned = -0.00812093 Jy
! Total flux subtracted in 200 components = -0.00812093 Jy
! Clean residual min=-0.006546 max=0.011929 Jy/beam
! Clean residual mean=-0.000035 rms=0.001976 Jy/beam
! Combined flux in latest and established models = 0.368196 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 46 components and 0.368196 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.223361Jy  sigma=1.278294
! Fit after  self-cal, rms=0.223441Jy  sigma=1.278102
! 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 (0.54, -0.72).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104322 Jy
! Component: 100  -  total flux cleaned = 0.0154879 Jy
! Component: 150  -  total flux cleaned = 0.0161782 Jy
! Component: 200  -  total flux cleaned = 0.0164817 Jy
! Total flux subtracted in 200 components = 0.0164817 Jy
! Clean residual min=-0.006064 max=0.006564 Jy/beam
! Clean residual mean=0.000001 rms=0.001655 Jy/beam
! Combined flux in latest and established models = 0.384678 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 76 components and 0.384678 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.222971Jy  sigma=1.275228
! Fit after  self-cal, rms=0.224016Jy  sigma=1.261713
! Inverting map and beam 
! Estimated beam: bmin=0.31 mas, bmaj=0.7889 mas, bpa=15.14 degrees
! Estimated noise=1.14011 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.00485166 Jy
! Component: 100  -  total flux cleaned = 0.00729175 Jy
! Component: 150  -  total flux cleaned = 0.0081447 Jy
! Component: 200  -  total flux cleaned = 0.00851895 Jy
! Total flux subtracted in 200 components = 0.00851895 Jy
! Clean residual min=-0.004921 max=0.005085 Jy/beam
! Clean residual mean=0.000005 rms=0.001309 Jy/beam
! Combined flux in latest and established models = 0.393197 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 44 model components to the UV plane model.
! The established model now contains 114 components and 0.393197 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.223915Jy  sigma=1.261059
! Fit after  self-cal, rms=0.223914Jy  sigma=1.260928
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2309+454_K
! Writing UV FITS file: 2309+454_K.uvf
! Writing 114 model components to file: 2309+454_K.mod
! wwins: Wrote 2 windows to 2309+454_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.31 x 0.7889 at 15.14 degrees (North through East)
! Clean map  min=-0.004947  max=0.32514 Jy/beam
! Writing clean map to FITS file: 2309+454_K.fits
! Writing difmap environment to: 2309+454_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2309+454_K]
device 2309+454_Kuv.ps/vps,1,2
! Attempting to open device: '2309+454_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2309+454_Kim.ps/vps
! Attempting to open device: '2309+454_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.31 mas, bmaj=0.7889 mas, bpa=15.14 degrees
! Estimated noise=1.14011 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.31 x 0.7889 at 15.14 degrees (North through East)
! Clean map  min=-0.004947  max=0.32514 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.03]
quit
! Quitting program
! Log file 2309+454_K.log closed on Wed Oct 26 14:35:25 2005