! Started logfile: 0727-115_X.log on Thu Jul 27 12:00:47 2006
observe 0727-115_X.edt
! Reading UV FITS file: 0727-115_X.edt
! AN table 1: 13 integrations on 190 of 190 possible baselines.
! AN table 2: 11 integrations on 190 of 190 possible baselines.
! AN table 3: 50 integrations on 190 of 190 possible baselines.
! AN table 4: 16 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.13076 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0727-115
! 
! 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 1409 lines of history.
! 
! Reading 8944 visibilities.
![@gonzo8-0.1 0727-115_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 = 8.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 212 telescope corrections were flagged in sub-array 1.
!  A total of 172 telescope corrections were flagged in sub-array 2.
!  A total of 770 telescope corrections were flagged in sub-array 3.
!  A total of 247 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 217 telescope corrections were flagged in sub-array 1.
!  A total of 173 telescope corrections were flagged in sub-array 2.
!  A total of 770 telescope corrections were flagged in sub-array 3.
!  A total of 268 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 212 telescope corrections were flagged in sub-array 1.
!  A total of 172 telescope corrections were flagged in sub-array 2.
!  A total of 778 telescope corrections were flagged in sub-array 3.
!  A total of 250 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 212 telescope corrections were flagged in sub-array 1.
!  A total of 172 telescope corrections were flagged in sub-array 2.
!  A total of 770 telescope corrections were flagged in sub-array 3.
!  A total of 256 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.028398Jy  sigma=0.027894
! Fit after  self-cal, rms=2.028321Jy  sigma=0.027939
! 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.6946 mas, bmaj=1.792 mas, bpa=-5.257 degrees
! Estimated noise=1162.99 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 = 2.30489 Jy
! Total flux subtracted in 50 components = 2.30489 Jy
! Clean residual min=-0.102747 max=0.642867 Jy/beam
! Clean residual mean=0.000980 rms=0.035513 Jy/beam
! Combined flux in latest and established models = 2.30489 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 2.30489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.781704Jy  sigma=0.011004
! Fit after  self-cal, rms=0.781704Jy  sigma=0.011004
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.51366 Jy
! Total flux subtracted in 50 components = 0.51366 Jy
! Clean residual min=-0.050136 max=0.178187 Jy/beam
! Clean residual mean=0.000517 rms=0.016663 Jy/beam
! Combined flux in latest and established models = 2.81855 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 8 components and 2.81855 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404278Jy  sigma=0.005533
! Fit after  self-cal, rms=0.404087Jy  sigma=0.005532
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.195016 Jy
! Total flux subtracted in 50 components = 0.195016 Jy
! Clean residual min=-0.046739 max=0.092519 Jy/beam
! Clean residual mean=0.000345 rms=0.012314 Jy/beam
! Combined flux in latest and established models = 3.01356 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 18 components and 3.01356 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323903Jy  sigma=0.004231
! Fit after  self-cal, rms=0.323643Jy  sigma=0.004228
! 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.8789 mas, bmaj=1.942 mas, bpa=-5.318 degrees
! Estimated noise=793.209 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.132491 Jy
! Component: 100  -  total flux cleaned = 0.206832 Jy
! Total flux subtracted in 100 components = 0.206832 Jy
! Clean residual min=-0.045751 max=0.052644 Jy/beam
! Clean residual mean=0.001586 rms=0.010694 Jy/beam
! Combined flux in latest and established models = 3.22039 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 51 components and 3.22039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276560Jy  sigma=0.003392
! Fit after  self-cal, rms=0.276122Jy  sigma=0.003388
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        1.00*    HN        1.01     
!   LA        0.97     NL        0.93     OV        0.95     SC        0.91     
!   WF        1.06     GG        1.00*    HH        1.00*    KK        1.02     
!   KP        0.96     MA        1.00*    MC        1.00*    MK        1.00     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.96     GC        1.00*    HN        1.03     
!   LA        0.97     NL        0.98     OV        0.98     SC        0.93     
!   WF        0.88     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.96     MA        1.00*    MC        1.00*    MK        1.09     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.94     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00     GC        1.04     HN        1.00*    
!   LA        1.03     NL        1.12     OV        1.03     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.99     
!   KP        1.01     MA        1.00*    MC        1.00*    MK        1.01     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.03     GC        1.00*    HN        1.01     
!   LA        0.90     NL        1.06     OV        1.00     SC        1.08     
!   WF        1.08     GG        1.00*    HH        1.00*    KK        1.03     
!   KP        0.99     MA        1.00*    MC        1.00*    MK        0.98     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        1.00*    HN        1.02     
!   LA        0.96     NL        0.90     OV        0.96     SC        1.00*    
!   WF        1.03     GG        1.00*    HH        1.00*    KK        1.01     
!   KP        0.93     MA        1.00*    MC        1.00*    MK        0.99     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.94     GC        1.00*    HN        1.02     
!   LA        0.98     NL        0.99     OV        0.98     SC        1.25     
!   WF        0.89     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.91     MA        1.00*    MC        1.00*    MK        1.07     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.97     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00     GC        1.03     HN        1.00*    
!   LA        1.03     NL        1.17     OV        1.02     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.99     
!   KP        0.96     MA        1.00*    MC        1.00*    MK        1.01     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00     GC        1.00*    HN        1.00     
!   LA        0.90     NL        1.06     OV        1.03     SC        1.00*    
!   WF        1.09     GG        1.00*    HH        1.00*    KK        1.03     
!   KP        0.96     MA        1.00*    MC        1.00*    MK        0.98     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.95     GC        1.00*    HN        1.01     
!   LA        0.96     NL        0.90     OV        0.92     SC        0.92     
!   WF        1.02     GG        1.00*    HH        1.00*    KK        1.01     
!   KP        0.92     MA        1.00*    MC        1.00*    MK        1.01     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.93     GC        1.00*    HN        1.01     
!   LA        0.97     NL        1.01     OV        0.99     SC        0.91     
!   WF        0.91     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.92     MA        1.00*    MC        1.00*    MK        1.12     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.99     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.04     HN        1.00*    
!   LA        1.03     NL        1.11     OV        1.00     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.99     
!   KP        0.94     MA        1.00*    MC        1.00*    MK        0.97     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.98     GC        1.00*    HN        1.01     
!   LA        0.88     NL        1.05     OV        0.99     SC        1.09     
!   WF        1.18     GG        1.00*    HH        1.00*    KK        1.03     
!   KP        0.97     MA        1.00*    MC        1.00*    MK        1.01     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.94     GC        1.00*    HN        1.00     
!   LA        0.94     NL        0.92     OV        0.93     SC        0.96     
!   WF        1.02     GG        1.00*    HH        1.00*    KK        1.00     
!   KP        0.93     MA        1.00*    MC        1.00*    MK        1.04     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.93     GC        1.00*    HN        1.01     
!   LA        0.97     NL        1.07     OV        0.99     SC        0.93     
!   WF        0.89     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.93     MA        1.00*    MC        1.00*    MK        1.07     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.98     
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        1.00     HN        1.00*    
!   LA        1.04     NL        1.12     OV        1.02     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.94     
!   KP        0.94     MA        1.00*    MC        1.00*    MK        0.96     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.01     GC        1.00*    HN        1.02     
!   LA        0.83     NL        1.05     OV        0.96     SC        1.16     
!   WF        1.20     GG        1.00*    HH        1.00*    KK        1.03     
!   KP        1.00     MA        1.00*    MC        1.00*    MK        1.03     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Fit before self-cal, rms=0.276122Jy  sigma=0.003388
! Fit after  self-cal, rms=0.152264Jy  sigma=0.001701
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8747 mas, bmaj=1.967 mas, bpa=-6.104 degrees
! Estimated noise=802.241 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.9, 1.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.037896 Jy
! Component: 100  -  total flux cleaned = 0.0599902 Jy
! Total flux subtracted in 100 components = 0.0599902 Jy
! Clean residual min=-0.009838 max=0.019920 Jy/beam
! Clean residual mean=0.001510 rms=0.003249 Jy/beam
! Combined flux in latest and established models = 3.28038 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 82 components and 3.28038 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142519Jy  sigma=0.001556
! Fit after  self-cal, rms=0.141714Jy  sigma=0.001546
! 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.1, 3.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0202955 Jy
! Component: 100  -  total flux cleaned = 0.0344056 Jy
! Total flux subtracted in 100 components = 0.0344056 Jy
! Clean residual min=-0.008438 max=0.012260 Jy/beam
! Clean residual mean=0.001305 rms=0.002813 Jy/beam
! Combined flux in latest and established models = 3.31479 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 101 components and 3.31479 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.138050Jy  sigma=0.001504
! Fit after  self-cal, rms=0.132791Jy  sigma=0.001426
! Inverting map and beam 
! Estimated beam: bmin=0.8737 mas, bmaj=1.966 mas, bpa=-6.151 degrees
! Estimated noise=802.102 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.0158236 Jy
! Component: 100  -  total flux cleaned = 0.0270943 Jy
! Total flux subtracted in 100 components = 0.0270943 Jy
! Clean residual min=-0.006507 max=0.010839 Jy/beam
! Clean residual mean=0.001008 rms=0.002101 Jy/beam
! Combined flux in latest and established models = 3.34188 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 126 components and 3.34188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.130432Jy  sigma=0.001397
! Fit after  self-cal, rms=0.130238Jy  sigma=0.001395
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0727-115_X
! Writing UV FITS file: 0727-115_X.uvf
! Writing 126 model components to file: 0727-115_X.mod
! wwins: Wrote 3 windows to 0727-115_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8737 x 1.966 at -6.151 degrees (North through East)
! Clean map  min=-0.0062639  max=2.9838 Jy/beam
! Writing clean map to FITS file: 0727-115_X.fits
! Writing difmap environment to: 0727-115_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0727-115_X]
device 0727-115_Xuv.ps/vps,1,2
! Attempting to open device: '0727-115_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0727-115_Xim.ps/vps
! Attempting to open device: '0727-115_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.8737 mas, bmaj=1.966 mas, bpa=-6.151 degrees
! Estimated noise=802.102 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8737 x 1.966 at -6.151 degrees (North through East)
! Clean map  min=-0.0062639  max=2.9838 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 0727-115_X.log closed on Thu Jul 27 12:01:07 2006