! Started logfile: 2013+163_X.log on Tue Aug  7 10:25:04 2007
observe 2013+163_X.edt
! Reading UV FITS file: 2013+163_X.edt
! AN table 1: 32 integrations on 105 of 105 possible baselines.
! AN table 2: 52 integrations on 105 of 105 possible baselines.
! AN table 3: 116 integrations on 105 of 105 possible baselines.
! AN table 4: 23 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.075678 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2013+163
! 
! 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 7088 visibilities.
![@gonzo7-0.1 2013+163_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 441 telescope corrections were flagged in sub-array 1.
!  A total of 554 telescope corrections were flagged in sub-array 2.
!  A total of 1463 telescope corrections were flagged in sub-array 3.
!  A total of 192 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 441 telescope corrections were flagged in sub-array 1.
!  A total of 551 telescope corrections were flagged in sub-array 2.
!  A total of 1472 telescope corrections were flagged in sub-array 3.
!  A total of 192 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 453 telescope corrections were flagged in sub-array 1.
!  A total of 551 telescope corrections were flagged in sub-array 2.
!  A total of 1466 telescope corrections were flagged in sub-array 3.
!  A total of 192 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 441 telescope corrections were flagged in sub-array 1.
!  A total of 554 telescope corrections were flagged in sub-array 2.
!  A total of 1469 telescope corrections were flagged in sub-array 3.
!  A total of 192 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.635453Jy  sigma=0.008033
! Fit after  self-cal, rms=0.619022Jy  sigma=0.007950
! 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.6685 mas, bmaj=0.9406 mas, bpa=-12.76 degrees
! Estimated noise=1123.35 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.298617 Jy
! Total flux subtracted in 50 components = 0.298617 Jy
! Clean residual min=-0.015423 max=0.083292 Jy/beam
! Clean residual mean=-0.000076 rms=0.004764 Jy/beam
! Combined flux in latest and established models = 0.298617 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.298617 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.147795Jy  sigma=0.001655
! Fit after  self-cal, rms=0.147795Jy  sigma=0.001655
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0655131 Jy
! Total flux subtracted in 50 components = 0.0655131 Jy
! Clean residual min=-0.009016 max=0.020653 Jy/beam
! Clean residual mean=-0.000022 rms=0.002560 Jy/beam
! Combined flux in latest and established models = 0.36413 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.36413 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.118049Jy  sigma=0.001236
! Fit after  self-cal, rms=0.118033Jy  sigma=0.001236
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0209088 Jy
! Total flux subtracted in 50 components = 0.0209088 Jy
! Clean residual min=-0.008975 max=0.011904 Jy/beam
! Clean residual mean=-0.000005 rms=0.002273 Jy/beam
! Combined flux in latest and established models = 0.385039 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 6 components and 0.385039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114214Jy  sigma=0.001188
! Fit after  self-cal, rms=0.114118Jy  sigma=0.001187
! 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.88 mas, bmaj=1.038 mas, bpa=-15.04 degrees
! Estimated noise=706.147 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.0109339 Jy
! Component: 100  -  total flux cleaned = 0.0116433 Jy
! Total flux subtracted in 100 components = 0.0116433 Jy
! Clean residual min=-0.010498 max=0.012903 Jy/beam
! Clean residual mean=0.000021 rms=0.002353 Jy/beam
! Combined flux in latest and established models = 0.396682 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 14 components and 0.396682 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112805Jy  sigma=0.001177
! Fit after  self-cal, rms=0.112766Jy  sigma=0.001177
! 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 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 51 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     HH        0.90     HN        0.99     
!   KB        1.07     KK        1.00*    KP        1.00     LA        1.00     
!   MK        1.00*    NL        1.04     NY        0.89     OV        1.00*    
!   PT        0.96     SC        1.06     WZ        0.97     
! 
!  A total of 93 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.07     HH        0.97     HN        0.89     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.06     
!   MK        1.00*    NL        1.19     NY        1.07     OV        1.00*    
!   PT        1.00*    SC        0.81     WZ        0.97     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.00     HH        1.00*    HN        0.96     
!   KB        1.00*    KK        0.93     KP        1.00     LA        1.02     
!   MK        1.00     NL        1.03     NY        1.00*    OV        1.04     
!   PT        0.99     SC        0.98     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     HH        1.00     HN        1.01     
!   KB        1.16     KK        1.00*    KP        0.96     LA        1.02     
!   MK        1.00*    NL        1.07     NY        0.86     OV        1.00*    
!   PT        0.95     SC        1.06     WZ        0.87     
! 
!  A total of 84 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.14     HH        0.90     HN        0.84     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.04     
!   MK        1.00*    NL        1.24     NY        1.01     OV        1.00*    
!   PT        1.00*    SC        0.80     WZ        0.84     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.99     HH        1.00*    HN        0.96     
!   KB        1.00*    KK        0.93     KP        1.01     LA        0.99     
!   MK        1.02     NL        1.04     NY        1.00*    OV        1.00     
!   PT        0.98     SC        1.00     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.03     HH        1.02     HN        0.99     
!   KB        1.16     KK        1.00*    KP        0.98     LA        0.97     
!   MK        1.00*    NL        1.05     NY        0.93     OV        1.00*    
!   PT        0.97     SC        1.05     WZ        0.82     
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00     HH        0.95     HN        0.88     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.04     
!   MK        1.00*    NL        1.12     NY        1.08     OV        1.00*    
!   PT        1.00*    SC        0.93     WZ        0.80     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     HH        1.00*    HN        0.95     
!   KB        1.00*    KK        0.96     KP        1.01     LA        0.98     
!   MK        1.05     NL        1.02     NY        1.00*    OV        0.98     
!   PT        0.98     SC        0.99     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     HH        1.03     HN        1.02     
!   KB        1.31     KK        1.00*    KP        0.95     LA        0.98     
!   MK        1.00*    NL        1.06     NY        1.01     OV        1.00*    
!   PT        0.99     SC        1.01     WZ        0.83     
! 
!  A total of 87 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00     HH        1.06     HN        0.81     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.05     
!   MK        1.00*    NL        1.09     NY        1.17     OV        1.00*    
!   PT        1.00*    SC        0.90     WZ        0.81     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.98     HH        1.00*    HN        0.97     
!   KB        1.00*    KK        0.91     KP        0.98     LA        0.97     
!   MK        1.03     NL        1.02     NY        1.00*    OV        0.99     
!   PT        0.99     SC        0.98     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.112766Jy  sigma=0.001177
! Fit after  self-cal, rms=0.096716Jy  sigma=0.001086
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8773 mas, bmaj=1.143 mas, bpa=-7.874 degrees
! Estimated noise=717.965 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.00232368 Jy
! Component: 100  -  total flux cleaned = 0.00202186 Jy
! Total flux subtracted in 100 components = 0.00202186 Jy
! Clean residual min=-0.003782 max=0.005317 Jy/beam
! Clean residual mean=0.000015 rms=0.001077 Jy/beam
! Combined flux in latest and established models = 0.398704 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 19 components and 0.398704 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.096539Jy  sigma=0.001084
! Fit after  self-cal, rms=0.096531Jy  sigma=0.001084
! 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.000548655 Jy
! Component: 100  -  total flux cleaned = 0.000311605 Jy
! Total flux subtracted in 100 components = 0.000311605 Jy
! Clean residual min=-0.003701 max=0.005283 Jy/beam
! Clean residual mean=0.000015 rms=0.001062 Jy/beam
! Combined flux in latest and established models = 0.399015 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 19 components and 0.399015 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.096448Jy  sigma=0.001083
! Fit after  self-cal, rms=0.095437Jy  sigma=0.001061
! Inverting map and beam 
! Estimated beam: bmin=0.8766 mas, bmaj=1.143 mas, bpa=-7.836 degrees
! Estimated noise=720.083 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.00203609 Jy
! Component: 100  -  total flux cleaned = 0.0019174 Jy
! Total flux subtracted in 100 components = 0.0019174 Jy
! Clean residual min=-0.003760 max=0.004773 Jy/beam
! Clean residual mean=0.000000 rms=0.000981 Jy/beam
! Combined flux in latest and established models = 0.400933 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 22 components and 0.400933 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.095372Jy  sigma=0.001060
! Fit after  self-cal, rms=0.095363Jy  sigma=0.001059
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2013+163_X
! Writing UV FITS file: 2013+163_X.uvf
! Writing 22 model components to file: 2013+163_X.mod
! wwins: Wrote 1 windows to 2013+163_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8766 x 1.143 at -7.836 degrees (North through East)
! Clean map  min=-0.0036402  max=0.38076 Jy/beam
! Writing clean map to FITS file: 2013+163_X.fits
! Writing difmap environment to: 2013+163_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2013+163_X]
device 2013+163_Xuv.ps/vps,1,2
! Attempting to open device: '2013+163_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2013+163_Xim.ps/vps
! Attempting to open device: '2013+163_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.8766 mas, bmaj=1.143 mas, bpa=-7.836 degrees
! Estimated noise=720.083 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8766 x 1.143 at -7.836 degrees (North through East)
! Clean map  min=-0.0036402  max=0.38076 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 2013+163_X.log closed on Tue Aug  7 10:25:25 2007