! Started logfile: 2113+293_X.log on Tue Aug  7 10:25:58 2007
observe 2113+293_X.edt
! Reading UV FITS file: 2113+293_X.edt
! AN table 1: 85 integrations on 105 of 105 possible baselines.
! AN table 2: 15 integrations on 105 of 105 possible baselines.
! AN table 3: 59 integrations on 105 of 105 possible baselines.
! AN table 4: 17 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.100649 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2113+293
! 
! 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 1066 lines of history.
! 
! Reading 7440 visibilities.
![@gonzo7-0.1 2113+293_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.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.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 896 telescope corrections were flagged in sub-array 1.
!  A total of 222 telescope corrections were flagged in sub-array 2.
!  A total of 649 telescope corrections were flagged in sub-array 3.
!  A total of 138 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 890 telescope corrections were flagged in sub-array 1.
!  A total of 222 telescope corrections were flagged in sub-array 2.
!  A total of 649 telescope corrections were flagged in sub-array 3.
!  A total of 138 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 899 telescope corrections were flagged in sub-array 1.
!  A total of 222 telescope corrections were flagged in sub-array 2.
!  A total of 649 telescope corrections were flagged in sub-array 3.
!  A total of 138 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 898 telescope corrections were flagged in sub-array 1.
!  A total of 222 telescope corrections were flagged in sub-array 2.
!  A total of 649 telescope corrections were flagged in sub-array 3.
!  A total of 138 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.424708Jy  sigma=0.005115
! Fit after  self-cal, rms=0.419975Jy  sigma=0.005112
! 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.7448 mas, bmaj=0.9318 mas, bpa=5.321 degrees
! Estimated noise=963.415 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.475854 Jy
! Total flux subtracted in 50 components = 0.475854 Jy
! Clean residual min=-0.025251 max=0.134575 Jy/beam
! Clean residual mean=-0.000189 rms=0.008019 Jy/beam
! Combined flux in latest and established models = 0.475854 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.475854 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216843Jy  sigma=0.003005
! Fit after  self-cal, rms=0.216861Jy  sigma=0.003004
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.126386 Jy
! Total flux subtracted in 50 components = 0.126386 Jy
! Clean residual min=-0.015464 max=0.051608 Jy/beam
! Clean residual mean=-0.000111 rms=0.004149 Jy/beam
! Combined flux in latest and established models = 0.60224 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 11 components and 0.60224 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148046Jy  sigma=0.001804
! Fit after  self-cal, rms=0.147400Jy  sigma=0.001800
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0548856 Jy
! Total flux subtracted in 50 components = 0.0548856 Jy
! Clean residual min=-0.012475 max=0.025772 Jy/beam
! Clean residual mean=-0.000076 rms=0.002920 Jy/beam
! Combined flux in latest and established models = 0.657126 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 15 components and 0.657126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129762Jy  sigma=0.001466
! Fit after  self-cal, rms=0.129647Jy  sigma=0.001465
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0274564 Jy
! Total flux subtracted in 50 components = 0.0274564 Jy
! Clean residual min=-0.010964 max=0.017252 Jy/beam
! Clean residual mean=-0.000058 rms=0.002522 Jy/beam
! Combined flux in latest and established models = 0.684582 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 23 components and 0.684582 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124855Jy  sigma=0.001370
! Fit after  self-cal, rms=0.124769Jy  sigma=0.001369
! 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.8826 mas, bmaj=0.9896 mas, bpa=70.36 degrees
! Estimated noise=640.091 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.5, -2.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0239076 Jy
! Component: 100  -  total flux cleaned = 0.0372517 Jy
! Total flux subtracted in 100 components = 0.0372517 Jy
! Clean residual min=-0.011894 max=0.012377 Jy/beam
! Clean residual mean=-0.000084 rms=0.002540 Jy/beam
! Combined flux in latest and established models = 0.721834 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 33 components and 0.721834 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119949Jy  sigma=0.001303
! Fit after  self-cal, rms=0.119650Jy  sigma=0.001299
! 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 150 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.03     HH        1.00*    HN        1.00     
!   KB        1.00*    KK        1.01     KP        1.01     LA        0.97     
!   MK        1.01     NL        0.98     NY        1.00*    OV        0.96     
!   PT        0.96     SC        1.06     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        1.04     HN        1.02     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        0.96     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        0.99     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.01     LA        1.00     
!   MK        1.00*    NL        1.01     NY        1.00*    OV        1.08     
!   PT        1.00     SC        0.97     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 156 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.99     HH        1.00*    HN        1.00     
!   KB        1.00*    KK        1.01     KP        1.01     LA        0.96     
!   MK        1.01     NL        0.98     NY        1.00*    OV        0.95     
!   PT        0.96     SC        1.03     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        1.04     HN        0.99     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        0.94     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        0.86     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        1.01     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.01     LA        1.01     
!   MK        1.00*    NL        1.00     NY        1.00*    OV        1.06     
!   PT        1.00     SC        0.99     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 147 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.02     HH        1.00*    HN        0.98     
!   KB        1.00*    KK        1.01     KP        1.00     LA        0.97     
!   MK        1.01     NL        0.96     NY        1.00*    OV        0.97     
!   PT        0.95     SC        1.04     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        1.02     HN        1.02     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        0.99     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        0.82     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.00     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        0.99     LA        0.99     
!   MK        1.00*    NL        1.00     NY        1.00*    OV        1.07     
!   PT        0.99     SC        0.95     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 153 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.96     HH        1.00*    HN        0.96     
!   KB        1.00*    KK        1.01     KP        1.00     LA        0.96     
!   MK        1.02     NL        0.99     NY        1.00*    OV        0.96     
!   PT        0.97     SC        1.10     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MK        0.00*    NL        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    HH        1.05     HN        0.91     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.07     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        0.88     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.01     HH        1.00*    HN        1.00*    
!   KB        1.00*    KK        1.00*    KP        1.01     LA        0.99     
!   MK        1.00*    NL        1.02     NY        1.00*    OV        1.06     
!   PT        1.00     SC        0.98     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.119650Jy  sigma=0.001299
! Fit after  self-cal, rms=0.105292Jy  sigma=0.001220
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9392 mas, bmaj=1.051 mas, bpa=32.73 degrees
! Estimated noise=636.641 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.00129093 Jy
! Component: 100  -  total flux cleaned = 0.002347 Jy
! Total flux subtracted in 100 components = 0.002347 Jy
! Clean residual min=-0.008902 max=0.006242 Jy/beam
! Clean residual mean=-0.000119 rms=0.001775 Jy/beam
! Combined flux in latest and established models = 0.724181 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 40 components and 0.724181 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104765Jy  sigma=0.001215
! Fit after  self-cal, rms=0.104765Jy  sigma=0.001215
! 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.000150892 Jy
! Component: 100  -  total flux cleaned = 0.000285159 Jy
! Total flux subtracted in 100 components = 0.000285159 Jy
! Clean residual min=-0.008654 max=0.005907 Jy/beam
! Clean residual mean=-0.000118 rms=0.001757 Jy/beam
! Combined flux in latest and established models = 0.724466 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 42 components and 0.724466 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104528Jy  sigma=0.001213
! Fit after  self-cal, rms=0.099309Jy  sigma=0.001103
! Inverting map and beam 
! Estimated beam: bmin=0.9381 mas, bmaj=1.05 mas, bpa=32.3 degrees
! Estimated noise=637.847 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)
! Added new window around map position (-1.3, -3.3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00544856 Jy
! Component: 100  -  total flux cleaned = 0.00795229 Jy
! Total flux subtracted in 100 components = 0.00795229 Jy
! Clean residual min=-0.003217 max=0.004486 Jy/beam
! Clean residual mean=-0.000005 rms=0.000889 Jy/beam
! Combined flux in latest and established models = 0.732419 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 52 components and 0.732419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098934Jy  sigma=0.001099
! Fit after  self-cal, rms=0.098908Jy  sigma=0.001098
! Inverting map 
! Added new window around map position (-3.8, -6.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00419773 Jy
! Component: 100  -  total flux cleaned = 0.00569405 Jy
! Total flux subtracted in 100 components = 0.00569405 Jy
! Clean residual min=-0.003402 max=0.003554 Jy/beam
! Clean residual mean=-0.000005 rms=0.000838 Jy/beam
! Combined flux in latest and established models = 0.738113 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 67 components and 0.738113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098684Jy  sigma=0.001096
! Fit after  self-cal, rms=0.098675Jy  sigma=0.001095
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2113+293_X
! Writing UV FITS file: 2113+293_X.uvf
! Writing 67 model components to file: 2113+293_X.mod
! wwins: Wrote 4 windows to 2113+293_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9381 x 1.05 at 32.3 degrees (North through East)
! Clean map  min=-0.0042829  max=0.60797 Jy/beam
! Writing clean map to FITS file: 2113+293_X.fits
! Writing difmap environment to: 2113+293_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2113+293_X]
device 2113+293_Xuv.ps/vps,1,2
! Attempting to open device: '2113+293_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2113+293_Xim.ps/vps
! Attempting to open device: '2113+293_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.9381 mas, bmaj=1.05 mas, bpa=32.3 degrees
! Estimated noise=637.847 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9381 x 1.05 at 32.3 degrees (North through East)
! Clean map  min=-0.0042829  max=0.60797 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 2113+293_X.log closed on Tue Aug  7 10:26:21 2007