! Started logfile: CTA26_X.log on Thu Nov 15 14:39:33 2007
observe CTA26_X.edt
! Reading UV FITS file: CTA26_X.edt
! AN table 1: 17 integrations on 105 of 105 possible baselines.
! AN table 2: 85 integrations on 105 of 105 possible baselines.
! AN table 3: 11 integrations on 105 of 105 possible baselines.
! AN table 4: 75 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.126646 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: CTA26
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 969 lines of history.
! 
! Reading 10000 visibilities.
![@gonzo7-0.1_south CTA26_X]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.0
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.100x0.100 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 120 telescope corrections were flagged in sub-array 1.
!  A total of 989 telescope corrections were flagged in sub-array 2.
!  A total of 110 telescope corrections were flagged in sub-array 3.
!  A total of 789 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  A total of 989 telescope corrections were flagged in sub-array 2.
!  A total of 115 telescope corrections were flagged in sub-array 3.
!  A total of 789 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  A total of 997 telescope corrections were flagged in sub-array 2.
!  A total of 110 telescope corrections were flagged in sub-array 3.
!  A total of 789 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  A total of 1091 telescope corrections were flagged in sub-array 2.
!  A total of 110 telescope corrections were flagged in sub-array 3.
!  A total of 789 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.590038Jy  sigma=0.006290
! Fit after  self-cal, rms=0.587244Jy  sigma=0.006300
! 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.5023 mas, bmaj=0.8414 mas, bpa=9.249 degrees
! Estimated noise=1286.86 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.891774 Jy
! Total flux subtracted in 50 components = 0.891774 Jy
! Clean residual min=-0.089340 max=0.295051 Jy/beam
! Clean residual mean=0.000450 rms=0.032196 Jy/beam
! Combined flux in latest and established models = 0.891774 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.891774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.621614Jy  sigma=0.006926
! Fit after  self-cal, rms=0.621608Jy  sigma=0.006925
! Inverting map 
! Added new window around map position (0.4, 0.1).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.295935 Jy
! Total flux subtracted in 50 components = 0.295935 Jy
! Clean residual min=-0.073019 max=0.195224 Jy/beam
! Clean residual mean=0.000257 rms=0.024385 Jy/beam
! Combined flux in latest and established models = 1.18771 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 14 components and 1.18771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.521437Jy  sigma=0.005247
! Fit after  self-cal, rms=0.517921Jy  sigma=0.005231
! Inverting map 
! Added new window around map position (2.1, 1.3).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.198849 Jy
! Total flux subtracted in 50 components = 0.198849 Jy
! Clean residual min=-0.065750 max=0.146077 Jy/beam
! Clean residual mean=0.000140 rms=0.019902 Jy/beam
! Combined flux in latest and established models = 1.38656 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 25 components and 1.38656 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.463095Jy  sigma=0.004208
! Fit after  self-cal, rms=0.458406Jy  sigma=0.004162
! Inverting map 
! Added new window around map position (1.5, 1.1).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.153889 Jy
! Total flux subtracted in 50 components = 0.153889 Jy
! Clean residual min=-0.065630 max=0.113594 Jy/beam
! Clean residual mean=0.000049 rms=0.016545 Jy/beam
! Combined flux in latest and established models = 1.54045 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 40 components and 1.54045 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.417385Jy  sigma=0.003381
! Fit after  self-cal, rms=0.411722Jy  sigma=0.003322
! 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.5865 mas, bmaj=0.8611 mas, bpa=18.73 degrees
! Estimated noise=851.21 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.6, 0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.149414 Jy
! Component: 100  -  total flux cleaned = 0.232269 Jy
! Total flux subtracted in 100 components = 0.232269 Jy
! Clean residual min=-0.050755 max=0.085425 Jy/beam
! Clean residual mean=-0.000140 rms=0.013512 Jy/beam
! Combined flux in latest and established models = 1.77272 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 37 model components to the UV plane model.
! The established model now contains 63 components and 1.77272 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373100Jy  sigma=0.002525
! Fit after  self-cal, rms=0.367448Jy  sigma=0.002438
! 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 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     HH        0.94     KB        1.00*    KP        0.83     
!   LA        1.01     MK        1.00*    NL        1.01     NY        1.00*    
!   OV        1.00*    PT        0.98     SC        1.09     TC        1.18     
!   WF        1.11     WZ        0.92     BR        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.98     HH        1.00*    KB        1.00*    KP        0.97     
!   LA        0.95     MK        1.04     NL        1.03     NY        1.00*    
!   OV        0.97     PT        0.97     SC        1.00*    TC        0.97     
!   WF        1.00*    WZ        1.00*    BR        0.90     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.04     HH        1.00*    KB        1.09     KP        0.48     
!   LA        0.96     MK        1.18     NL        1.15     NY        1.00*    
!   OV        1.04     PT        1.02     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.07     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.98     HH        0.92     KB        1.00*    KP        0.88     
!   LA        1.04     MK        1.00*    NL        1.14     NY        1.00*    
!   OV        1.00*    PT        0.88     SC        1.00*    TC        1.22     
!   WF        1.09     WZ        1.03     BR        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     HH        0.73     KB        1.00*    KP        0.78     
!   LA        1.01     MK        1.00*    NL        1.01     NY        1.00*    
!   OV        1.00*    PT        0.99     SC        1.13     TC        1.08     
!   WF        1.16     WZ        0.88     BR        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     HH        1.00*    KB        1.00*    KP        0.97     
!   LA        0.95     MK        1.04     NL        1.10     NY        1.00*    
!   OV        0.97     PT        0.97     SC        1.00*    TC        1.02     
!   WF        1.00*    WZ        1.00*    BR        0.90     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.06     HH        1.00*    KB        1.00*    KP        0.47     
!   LA        0.97     MK        1.18     NL        1.13     NY        1.00*    
!   OV        1.05     PT        1.02     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.03     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.96     HH        0.92     KB        1.00*    KP        0.86     
!   LA        1.01     MK        1.00*    NL        1.13     NY        1.00*    
!   OV        1.00*    PT        0.90     SC        1.00*    TC        1.25     
!   WF        1.14     WZ        0.92     BR        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     HH        0.94     KB        1.00*    KP        0.80     
!   LA        1.01     MK        1.00*    NL        1.01     NY        1.00*    
!   OV        1.00*    PT        1.00     SC        1.10     TC        1.02     
!   WF        1.10     WZ        0.90     BR        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    HH        1.00*    KB        1.00*    KP        0.99     
!   LA        0.96     MK        1.01     NL        0.99     NY        1.00*    
!   OV        0.97     PT        0.99     SC        1.20     TC        1.02     
!   WF        1.00*    WZ        1.00*    BR        0.90     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.04     HH        1.00*    KB        1.05     KP        0.47     
!   LA        0.98     MK        1.14     NL        1.13     NY        1.00*    
!   OV        1.04     PT        1.03     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.06     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.97     HH        0.94     KB        1.00*    KP        0.87     
!   LA        1.02     MK        1.00*    NL        1.16     NY        1.00*    
!   OV        1.00*    PT        0.89     SC        1.00*    TC        1.21     
!   WF        1.23     WZ        0.86     BR        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     HH        1.11     KB        1.00*    KP        0.79     
!   LA        1.02     MK        1.00*    NL        1.01     NY        1.00*    
!   OV        1.00*    PT        1.01     SC        1.08     TC        1.20     
!   WF        1.11     WZ        0.88     BR        1.00*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    HH        1.00*    KB        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.01     NL        1.00     NY        1.00*    
!   OV        1.02     PT        1.00*    SC        1.00*    TC        1.01     
!   WF        1.00*    WZ        1.00*    BR        0.86     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.05     HH        1.00*    KB        1.08     KP        0.47     
!   LA        0.96     MK        1.13     NL        1.14     NY        1.00*    
!   OV        1.04     PT        1.03     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.05     
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     HH        1.14     KB        1.00*    KP        0.87     
!   LA        1.04     MK        1.00*    NL        1.15     NY        1.00*    
!   OV        1.00*    PT        0.87     SC        1.00*    TC        1.25     
!   WF        1.19     WZ        0.89     BR        1.00*    
! 
! 
! Fit before self-cal, rms=0.367448Jy  sigma=0.002438
! Fit after  self-cal, rms=0.318628Jy  sigma=0.001382
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.5853 mas, bmaj=0.8921 mas, bpa=19.06 degrees
! Estimated noise=842.024 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 (2.1, 0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0247078 Jy
! Component: 100  -  total flux cleaned = 0.0280503 Jy
! Total flux subtracted in 100 components = 0.0280503 Jy
! Clean residual min=-0.015300 max=0.021185 Jy/beam
! Clean residual mean=-0.000064 rms=0.003945 Jy/beam
! Combined flux in latest and established models = 1.80077 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 76 components and 1.80077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.315788Jy  sigma=0.001324
! Fit after  self-cal, rms=0.315470Jy  sigma=0.001314
! 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 (5.3, 6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0154021 Jy
! Component: 100  -  total flux cleaned = 0.0217474 Jy
! Total flux subtracted in 100 components = 0.0217474 Jy
! Clean residual min=-0.013629 max=0.015559 Jy/beam
! Clean residual mean=-0.000046 rms=0.003441 Jy/beam
! Combined flux in latest and established models = 1.82251 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 82 components and 1.82251 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313614Jy  sigma=0.001284
! Fit after  self-cal, rms=0.303894Jy  sigma=0.001238
! Inverting map and beam 
! Estimated beam: bmin=0.5827 mas, bmaj=0.8903 mas, bpa=19.13 degrees
! Estimated noise=839.932 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.0121383 Jy
! Component: 100  -  total flux cleaned = 0.017335 Jy
! Total flux subtracted in 100 components = 0.017335 Jy
! Clean residual min=-0.012102 max=0.013108 Jy/beam
! Clean residual mean=-0.000013 rms=0.002987 Jy/beam
! Combined flux in latest and established models = 1.83985 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 90 components and 1.83985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303055Jy  sigma=0.001219
! Fit after  self-cal, rms=0.302826Jy  sigma=0.001215
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save CTA26_X
! Writing UV FITS file: CTA26_X.uvf
! Writing 90 model components to file: CTA26_X.mod
! wwins: Wrote 7 windows to CTA26_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5827 x 0.8903 at 19.13 degrees (North through East)
! Clean map  min=-0.011178  max=1.0926 Jy/beam
! Writing clean map to FITS file: CTA26_X.fits
! Writing difmap environment to: CTA26_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot CTA26_X]
device CTA26_Xuv.ps/vps,1,2
! Attempting to open device: 'CTA26_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device CTA26_Xim.ps/vps
! Attempting to open device: 'CTA26_Xim.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.5827 mas, bmaj=0.8903 mas, bpa=19.13 degrees
! Estimated noise=839.932 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5827 x 0.8903 at 19.13 degrees (North through East)
! Clean map  min=-0.011178  max=1.0926 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1_south]
quit
! Quitting program
! Log file CTA26_X.log closed on Thu Nov 15 14:39:55 2007