! Started logfile: 0729+259_X.log on Tue Aug  7 10:07:16 2007
observe 0729+259_X.edt
! Reading UV FITS file: 0729+259_X.edt
! AN table 1: 115 integrations on 105 of 105 possible baselines.
! AN table 2: 45 integrations on 105 of 105 possible baselines.
! AN table 3: 34 integrations on 105 of 105 possible baselines.
! AN table 4: 27 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0749407 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0729+259
! 
! 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 6956 visibilities.
![@gonzo7-0.1 0729+259_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 1360 telescope corrections were flagged in sub-array 1.
!  A total of 560 telescope corrections were flagged in sub-array 2.
!  A total of 441 telescope corrections were flagged in sub-array 3.
!  A total of 228 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1352 telescope corrections were flagged in sub-array 1.
!  A total of 560 telescope corrections were flagged in sub-array 2.
!  A total of 438 telescope corrections were flagged in sub-array 3.
!  A total of 215 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1337 telescope corrections were flagged in sub-array 1.
!  A total of 566 telescope corrections were flagged in sub-array 2.
!  A total of 428 telescope corrections were flagged in sub-array 3.
!  A total of 215 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1443 telescope corrections were flagged in sub-array 1.
!  A total of 578 telescope corrections were flagged in sub-array 2.
!  A total of 438 telescope corrections were flagged in sub-array 3.
!  A total of 228 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.704454Jy  sigma=0.008787
! Fit after  self-cal, rms=0.703702Jy  sigma=0.008810
! 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.5895 mas, bmaj=0.8132 mas, bpa=-22.21 degrees
! Estimated noise=1335.71 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.232892 Jy
! Total flux subtracted in 50 components = 0.232892 Jy
! Clean residual min=-0.021839 max=0.070968 Jy/beam
! Clean residual mean=0.000040 rms=0.005925 Jy/beam
! Combined flux in latest and established models = 0.232892 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.232892 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153413Jy  sigma=0.001901
! Fit after  self-cal, rms=0.153377Jy  sigma=0.001901
! Inverting map 
! Added new window around map position (0, 0.9).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0731269 Jy
! Total flux subtracted in 50 components = 0.0731269 Jy
! Clean residual min=-0.013463 max=0.039694 Jy/beam
! Clean residual mean=-0.000032 rms=0.003693 Jy/beam
! Combined flux in latest and established models = 0.306019 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 8 components and 0.306019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124286Jy  sigma=0.001414
! Fit after  self-cal, rms=0.123799Jy  sigma=0.001409
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0373883 Jy
! Total flux subtracted in 50 components = 0.0373883 Jy
! Clean residual min=-0.012234 max=0.024089 Jy/beam
! Clean residual mean=-0.000068 rms=0.002802 Jy/beam
! Combined flux in latest and established models = 0.343407 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 9 components and 0.343407 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114955Jy  sigma=0.001254
! Fit after  self-cal, rms=0.114652Jy  sigma=0.001251
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0156296 Jy
! Total flux subtracted in 50 components = 0.0156296 Jy
! Clean residual min=-0.011024 max=0.015899 Jy/beam
! Clean residual mean=-0.000083 rms=0.002474 Jy/beam
! Combined flux in latest and established models = 0.359037 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 12 components and 0.359037 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.112083Jy  sigma=0.001208
! Fit after  self-cal, rms=0.111922Jy  sigma=0.001207
! 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.754 mas, bmaj=1.028 mas, bpa=-24.52 degrees
! Estimated noise=746.692 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.0135955 Jy
! Component: 100  -  total flux cleaned = 0.0151295 Jy
! Total flux subtracted in 100 components = 0.0151295 Jy
! Clean residual min=-0.010975 max=0.013849 Jy/beam
! Clean residual mean=-0.000346 rms=0.002666 Jy/beam
! Combined flux in latest and established models = 0.374166 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 16 components and 0.374166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110342Jy  sigma=0.001181
! Fit after  self-cal, rms=0.110112Jy  sigma=0.001179
! 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 90 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.28     FD        1.00     HH        1.08     HN        1.00*    
!   KB        0.97     KK        1.00*    KP        1.00*    LA        1.05     
!   MK        1.00*    NL        1.02     NY        1.03     OV        1.00*    
!   PT        1.07     SC        1.14     WZ        0.93     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    HH        1.00*    HN        1.01     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.91     
!   PT        1.04     SC        0.91     WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 4:
!   BR        1.07     FD        0.98     HH        1.00*    HN        0.97     
!   KB        1.00*    KK        0.95     KP        0.94     LA        0.97     
!   MK        1.02     NL        1.05     NY        1.00*    OV        1.00*    
!   PT        0.95     SC        1.04     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.25     FD        0.99     HH        1.10     HN        1.00*    
!   KB        0.87     KK        1.00*    KP        1.00*    LA        1.07     
!   MK        1.00*    NL        0.98     NY        1.00     OV        1.00*    
!   PT        1.10     SC        1.25     WZ        0.89     
! 
!  A total of 87 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    HH        1.00*    HN        1.08     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.90     
!   PT        1.08     SC        1.05     WZ        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.06     FD        0.97     HH        1.00*    HN        1.02     
!   KB        1.00*    KK        0.94     KP        0.95     LA        0.96     
!   MK        1.03     NL        1.03     NY        0.96     OV        1.00*    
!   PT        0.96     SC        1.07     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.21     FD        1.03     HH        1.04     HN        1.00*    
!   KB        0.90     KK        1.00*    KP        1.00*    LA        1.05     
!   MK        1.00*    NL        0.97     NY        1.06     OV        1.00*    
!   PT        1.11     SC        0.99     WZ        0.85     
! 
!  A total of 81 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    HH        1.00*    HN        1.08     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.96     
!   PT        1.10     SC        0.90     WZ        1.00*    
! 
!  A total of 42 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        1.46     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.06     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        0.90     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        0.98     HH        1.00*    HN        0.97     
!   KB        1.00*    KK        0.92     KP        0.95     LA        0.95     
!   MK        1.01     NL        1.02     NY        1.00     OV        1.00*    
!   PT        0.96     SC        1.09     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 63 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.32     FD        1.04     HH        1.10     HN        1.00*    
!   KB        0.88     KK        1.00*    KP        1.00*    LA        1.04     
!   MK        1.00*    NL        0.99     NY        1.04     OV        1.00*    
!   PT        1.05     SC        1.13     WZ        0.90     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    HH        1.00*    HN        1.01     
!   KB        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    OV        0.97     
!   PT        0.97     SC        0.93     WZ        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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 4:
!   BR        1.05     FD        0.97     HH        1.00*    HN        0.95     
!   KB        1.00*    KK        1.01     KP        0.92     LA        0.95     
!   MK        1.01     NL        1.02     NY        1.00*    OV        1.00*    
!   PT        0.94     SC        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.110112Jy  sigma=0.001179
! Fit after  self-cal, rms=0.107113Jy  sigma=0.001115
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.745 mas, bmaj=1.076 mas, bpa=-20 degrees
! Estimated noise=776.642 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.3, 2.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00839357 Jy
! Component: 100  -  total flux cleaned = 0.0121485 Jy
! Total flux subtracted in 100 components = 0.0121485 Jy
! Clean residual min=-0.003926 max=0.004912 Jy/beam
! Clean residual mean=0.000063 rms=0.001074 Jy/beam
! Combined flux in latest and established models = 0.386315 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 24 components and 0.386315 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106442Jy  sigma=0.001106
! Fit after  self-cal, rms=0.106487Jy  sigma=0.001106
! 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.00121472 Jy
! Component: 100  -  total flux cleaned = 0.0013245 Jy
! Total flux subtracted in 100 components = 0.0013245 Jy
! Clean residual min=-0.003754 max=0.004157 Jy/beam
! Clean residual mean=0.000053 rms=0.001045 Jy/beam
! Combined flux in latest and established models = 0.387639 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 32 components and 0.387639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106345Jy  sigma=0.001104
! Fit after  self-cal, rms=0.104287Jy  sigma=0.001068
! Inverting map and beam 
! Estimated beam: bmin=0.7414 mas, bmaj=1.08 mas, bpa=-19.44 degrees
! Estimated noise=778.786 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.0039135 Jy
! Component: 100  -  total flux cleaned = 0.00531092 Jy
! Total flux subtracted in 100 components = 0.00531092 Jy
! Clean residual min=-0.003289 max=0.003761 Jy/beam
! Clean residual mean=0.000073 rms=0.000914 Jy/beam
! Combined flux in latest and established models = 0.39295 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 41 components and 0.39295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104108Jy  sigma=0.001066
! Fit after  self-cal, rms=0.104121Jy  sigma=0.001066
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0729+259_X
! Writing UV FITS file: 0729+259_X.uvf
! Writing 41 model components to file: 0729+259_X.mod
! wwins: Wrote 3 windows to 0729+259_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7414 x 1.08 at -19.44 degrees (North through East)
! Clean map  min=-0.0031354  max=0.274 Jy/beam
! Writing clean map to FITS file: 0729+259_X.fits
! Writing difmap environment to: 0729+259_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0729+259_X]
device 0729+259_Xuv.ps/vps,1,2
! Attempting to open device: '0729+259_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0729+259_Xim.ps/vps
! Attempting to open device: '0729+259_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.7414 mas, bmaj=1.08 mas, bpa=-19.44 degrees
! Estimated noise=778.786 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7414 x 1.08 at -19.44 degrees (North through East)
! Clean map  min=-0.0031354  max=0.274 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0729+259_X.log closed on Tue Aug  7 10:07:39 2007