! Started logfile: 2128-123_X.log on Mon Aug  7 21:36:06 2006
observe 2128-123_X.edt
! Reading UV FITS file: 2128-123_X.edt
! AN table 1: 19 integrations on 190 of 190 possible baselines.
! AN table 2: 52 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0942921 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2128-123
! 
! 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 5088 visibilities.
![@gonzo8-0.1 2128-123_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 339 telescope corrections were flagged in sub-array 1.
!  A total of 926 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 342 telescope corrections were flagged in sub-array 1.
!  A total of 929 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 339 telescope corrections were flagged in sub-array 1.
!  A total of 926 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 339 telescope corrections were flagged in sub-array 1.
!  A total of 926 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.895380Jy  sigma=0.026167
! Fit after  self-cal, rms=1.899014Jy  sigma=0.026239
! 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.962 mas, bmaj=2.344 mas, bpa=14.8 degrees
! Estimated noise=2058.12 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.17931 Jy
! Total flux subtracted in 50 components = 2.17931 Jy
! Clean residual min=-0.177913 max=0.607784 Jy/beam
! Clean residual mean=0.004886 rms=0.069281 Jy/beam
! Combined flux in latest and established models = 2.17931 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.17931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.863013Jy  sigma=0.012291
! Fit after  self-cal, rms=0.863012Jy  sigma=0.012291
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.537233 Jy
! Total flux subtracted in 50 components = 0.537233 Jy
! Clean residual min=-0.120435 max=0.297603 Jy/beam
! Clean residual mean=0.003080 rms=0.043819 Jy/beam
! Combined flux in latest and established models = 2.71655 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 11 components and 2.71655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.568842Jy  sigma=0.007952
! Fit after  self-cal, rms=0.568083Jy  sigma=0.007941
! 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=1.289 mas, bmaj=2.668 mas, bpa=3.421 degrees
! Estimated noise=1240.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)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.257127 Jy
! Component: 100  -  total flux cleaned = 0.386312 Jy
! Total flux subtracted in 100 components = 0.386312 Jy
! Clean residual min=-0.104650 max=0.292165 Jy/beam
! Clean residual mean=0.004708 rms=0.041901 Jy/beam
! Combined flux in latest and established models = 3.10286 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 33 components and 3.10286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.481856Jy  sigma=0.006228
! Fit after  self-cal, rms=0.480932Jy  sigma=0.006219
! 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.94     FD        0.91     GC        1.00*    HN        1.00*    
!   LA        1.35     NL        1.07     OV        0.91     SC        1.03     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.95     MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.92     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        0.90     GC        1.00*    HN        1.04     
!   LA        1.00*    NL        0.98     OV        0.96     SC        0.99     
!   WF        0.85     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        1.06     MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.97     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.90     GC        1.00*    HN        1.00*    
!   LA        1.39     NL        1.03     OV        0.91     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.93     MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.95     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.11     FD        0.89     GC        1.00*    HN        1.04     
!   LA        1.00*    NL        0.98     OV        0.96     SC        1.31     
!   WF        0.85     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        1.04     MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.01     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.90     GC        1.00*    HN        1.00*    
!   LA        1.44     NL        1.00     OV        0.88     SC        1.06     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.91     MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.96     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        0.89     GC        1.00*    HN        1.04     
!   LA        1.00*    NL        0.97     OV        0.97     SC        0.97     
!   WF        0.89     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        1.02     MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.05     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.89     GC        1.00*    HN        1.00*    
!   LA        1.44     NL        0.98     OV        0.88     SC        1.09     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.92     MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.96     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        0.89     GC        1.00*    HN        1.04     
!   LA        1.00*    NL        1.01     OV        0.97     SC        0.98     
!   WF        0.85     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        1.06     MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.04     
! 
! 
! Fit before self-cal, rms=0.480932Jy  sigma=0.006219
! Fit after  self-cal, rms=0.345515Jy  sigma=0.004229
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.296 mas, bmaj=2.748 mas, bpa=2.918 degrees
! Estimated noise=1219.53 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, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.179582 Jy
! Component: 100  -  total flux cleaned = 0.171805 Jy
! Total flux subtracted in 100 components = 0.171805 Jy
! Clean residual min=-0.049230 max=0.081910 Jy/beam
! Clean residual mean=0.001916 rms=0.015279 Jy/beam
! Combined flux in latest and established models = 3.27466 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 45 components and 3.27466 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241458Jy  sigma=0.002837
! Fit after  self-cal, rms=0.229360Jy  sigma=0.002707
! 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.00389791 Jy
! Component: 100  -  total flux cleaned = -0.00614332 Jy
! Total flux subtracted in 100 components = -0.00614332 Jy
! Clean residual min=-0.042962 max=0.060686 Jy/beam
! Clean residual mean=0.001962 rms=0.012635 Jy/beam
! Combined flux in latest and established models = 3.26852 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 52 components and 3.26852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211660Jy  sigma=0.002478
! Fit after  self-cal, rms=0.169878Jy  sigma=0.002024
! Inverting map and beam 
! Estimated beam: bmin=1.29 mas, bmaj=2.733 mas, bpa=3.035 degrees
! Estimated noise=1209.61 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.0456423 Jy
! Component: 100  -  total flux cleaned = 0.0492257 Jy
! Total flux subtracted in 100 components = 0.0492257 Jy
! Clean residual min=-0.020158 max=0.044277 Jy/beam
! Clean residual mean=0.001149 rms=0.007481 Jy/beam
! Combined flux in latest and established models = 3.31774 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 66 components and 3.31774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152492Jy  sigma=0.001767
! Fit after  self-cal, rms=0.150088Jy  sigma=0.001741
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2128-123_X
! Writing UV FITS file: 2128-123_X.uvf
! Writing 66 model components to file: 2128-123_X.mod
! wwins: Wrote 2 windows to 2128-123_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.29 x 2.733 at 3.035 degrees (North through East)
! Clean map  min=-0.019096  max=2.7418 Jy/beam
! Writing clean map to FITS file: 2128-123_X.fits
! Writing difmap environment to: 2128-123_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2128-123_X]
device 2128-123_Xuv.ps/vps,1,2
! Attempting to open device: '2128-123_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2128-123_Xim.ps/vps
! Attempting to open device: '2128-123_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=1.29 mas, bmaj=2.733 mas, bpa=3.035 degrees
! Estimated noise=1209.61 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.29 x 2.733 at 3.035 degrees (North through East)
! Clean map  min=-0.019096  max=2.7418 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 2128-123_X.log closed on Mon Aug  7 21:36:23 2006