! Started logfile: 2128-123_X.log on Wed Oct 31 13:11:41 2007
observe 2128-123_X.edt
! Reading UV FITS file: 2128-123_X.edt
! AN table 1: 45 integrations on 105 of 105 possible baselines.
! AN table 2: 4 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0600583 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 969 lines of history.
! 
! Reading 1236 visibilities.
![@gonzo7-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 = 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 559 telescope corrections were flagged in sub-array 1.
!  A total of 60 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 587 telescope corrections were flagged in sub-array 1.
!  A total of 60 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 559 telescope corrections were flagged in sub-array 1.
!  A total of 60 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 559 telescope corrections were flagged in sub-array 1.
!  A total of 60 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.027099Jy  sigma=0.014508
! Fit after  self-cal, rms=1.005318Jy  sigma=0.014701
! 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.5383 mas, bmaj=2.319 mas, bpa=0.2703 degrees
! Estimated noise=2283.39 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 = 1.16301 Jy
! Total flux subtracted in 50 components = 1.16301 Jy
! Clean residual min=-0.192786 max=0.516294 Jy/beam
! Clean residual mean=0.006503 rms=0.080095 Jy/beam
! Combined flux in latest and established models = 1.16301 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 6 components and 1.16301 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.853143Jy  sigma=0.012576
! Fit after  self-cal, rms=0.849265Jy  sigma=0.012534
! 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.6237 mas, bmaj=2.751 mas, bpa=0.1529 degrees
! Estimated noise=1601.94 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.62652 Jy
! Component: 100  -  total flux cleaned = 0.867093 Jy
! Total flux subtracted in 100 components = 0.867093 Jy
! Clean residual min=-0.089811 max=0.214065 Jy/beam
! Clean residual mean=0.006000 rms=0.036832 Jy/beam
! Combined flux in latest and established models = 2.03011 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 25 components and 2.03011 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349929Jy  sigma=0.004987
! Fit after  self-cal, rms=0.343756Jy  sigma=0.004926
! 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 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.91     HH        1.00*    KB        0.63     KP        1.01     
!   LA        0.94     MK        1.83     NL        1.11     NY        1.00*    
!   OV        0.86     PT        0.89     SC        1.09     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        0.92     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    HH        0.00*    KB        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*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.93     HH        1.00*    KB        1.00*    KP        1.03     
!   LA        0.93     MK        1.83     NL        1.16     NY        1.00*    
!   OV        0.85     PT        0.88     SC        1.09     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        0.95     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    HH        0.00*    KB        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*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.94     HH        1.00*    KB        0.69     KP        1.02     
!   LA        0.95     MK        1.80     NL        1.17     NY        1.00*    
!   OV        0.87     PT        0.89     SC        1.13     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        0.98     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    HH        0.00*    KB        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*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.94     HH        1.00*    KB        0.80     KP        1.06     
!   LA        0.94     MK        1.85     NL        1.21     NY        1.00*    
!   OV        0.86     PT        0.90     SC        1.14     TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.00*    HH        0.00*    KB        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*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
! 
! Fit before self-cal, rms=0.343756Jy  sigma=0.004926
! Fit after  self-cal, rms=0.226707Jy  sigma=0.002620
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.5912 mas, bmaj=3.232 mas, bpa=0.3146 degrees
! Estimated noise=1522.77 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 (-3.7, -6.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0748911 Jy
! Component: 100  -  total flux cleaned = 0.0711759 Jy
! Total flux subtracted in 100 components = 0.0711759 Jy
! Clean residual min=-0.034606 max=0.055587 Jy/beam
! Clean residual mean=-0.000592 rms=0.012614 Jy/beam
! Combined flux in latest and established models = 2.10128 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 36 components and 2.10128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194749Jy  sigma=0.002245
! Fit after  self-cal, rms=0.192461Jy  sigma=0.002175
! 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.0162874 Jy
! Component: 100  -  total flux cleaned = 0.00994038 Jy
! Total flux subtracted in 100 components = 0.00994038 Jy
! Clean residual min=-0.033887 max=0.048361 Jy/beam
! Clean residual mean=-0.000725 rms=0.012012 Jy/beam
! Combined flux in latest and established models = 2.11122 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 49 components and 2.11122 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.184826Jy  sigma=0.002115
! Fit after  self-cal, rms=0.153669Jy  sigma=0.001769
! Inverting map and beam 
! Estimated beam: bmin=0.5841 mas, bmaj=3.209 mas, bpa=0.2056 degrees
! Estimated noise=1504.96 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.0218814 Jy
! Component: 100  -  total flux cleaned = 0.0219499 Jy
! Total flux subtracted in 100 components = 0.0219499 Jy
! Clean residual min=-0.025572 max=0.037416 Jy/beam
! Clean residual mean=-0.000343 rms=0.008165 Jy/beam
! Combined flux in latest and established models = 2.13317 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 64 components and 2.13317 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146673Jy  sigma=0.001706
! Fit after  self-cal, rms=0.146144Jy  sigma=0.001690
! 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 64 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: 0.5841 x 3.209 at 0.2056 degrees (North through East)
! Clean map  min=-0.023611  max=1.3699 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=0.5841 mas, bmaj=3.209 mas, bpa=0.2056 degrees
! Estimated noise=1504.96 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5841 x 3.209 at 0.2056 degrees (North through East)
! Clean map  min=-0.023611  max=1.3699 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 2128-123_X.log closed on Wed Oct 31 13:11:53 2007