! Started logfile: 0003-066_X.log on Wed Jul  5 17:06:26 2006
observe 0003-066_X.edt
! Reading UV FITS file: 0003-066_X.edt
! AN table 1: 23 integrations on 190 of 190 possible baselines.
! AN table 2: 14 integrations on 190 of 190 possible baselines.
! AN table 3: 26 integrations on 190 of 190 possible baselines.
! AN table 4: 11 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0810811 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0003-066
! 
! 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 4560 visibilities.
![@gonzo8-0.1 0003-066_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 334 telescope corrections were flagged in sub-array 1.
!  A total of 280 telescope corrections were flagged in sub-array 2.
!  A total of 444 telescope corrections were flagged in sub-array 3.
!  A total of 196 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 338 telescope corrections were flagged in sub-array 1.
!  A total of 280 telescope corrections were flagged in sub-array 2.
!  A total of 449 telescope corrections were flagged in sub-array 3.
!  A total of 196 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 334 telescope corrections were flagged in sub-array 1.
!  A total of 280 telescope corrections were flagged in sub-array 2.
!  A total of 445 telescope corrections were flagged in sub-array 3.
!  A total of 196 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 334 telescope corrections were flagged in sub-array 1.
!  A total of 280 telescope corrections were flagged in sub-array 2.
!  A total of 445 telescope corrections were flagged in sub-array 3.
!  A total of 196 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.670111Jy  sigma=0.009926
! Fit after  self-cal, rms=0.671483Jy  sigma=0.009968
! 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.6712 mas, bmaj=1.379 mas, bpa=0.7674 degrees
! Estimated noise=1540.79 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.16632 Jy
! Total flux subtracted in 50 components = 1.16632 Jy
! Clean residual min=-0.084419 max=0.329137 Jy/beam
! Clean residual mean=0.001673 rms=0.026188 Jy/beam
! Combined flux in latest and established models = 1.16632 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 5 components and 1.16632 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.541354Jy  sigma=0.008084
! Fit after  self-cal, rms=0.541356Jy  sigma=0.008084
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.299577 Jy
! Total flux subtracted in 50 components = 0.299577 Jy
! Clean residual min=-0.051908 max=0.119515 Jy/beam
! Clean residual mean=0.001174 rms=0.016173 Jy/beam
! Combined flux in latest and established models = 1.46589 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 15 components and 1.46589 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.370836Jy  sigma=0.005318
! Fit after  self-cal, rms=0.370902Jy  sigma=0.005317
! 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.8936 mas, bmaj=1.893 mas, bpa=-1.294 degrees
! Estimated noise=1020.23 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.189061 Jy
! Component: 100  -  total flux cleaned = 0.277302 Jy
! Total flux subtracted in 100 components = 0.277302 Jy
! Clean residual min=-0.043751 max=0.099116 Jy/beam
! Clean residual mean=0.005306 rms=0.018346 Jy/beam
! Combined flux in latest and established models = 1.7432 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 49 components and 1.7432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308436Jy  sigma=0.003809
! Fit after  self-cal, rms=0.307591Jy  sigma=0.003805
! 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        1.00     FD        0.96     GC        1.07     HN        1.07     
!   LA        0.98     NL        0.95     OV        0.97     SC        0.94     
!   WF        1.20     GG        1.00*    HH        1.00*    KK        1.00     
!   KP        0.96     MA        1.00*    MC        1.00*    MK        1.04     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.93     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  A total of 24 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        0.95     
!   LA        1.00*    NL        1.25     OV        1.00*    SC        0.97     
!   WF        0.80     GG        1.00*    HH        1.53     KK        1.00*    
!   KP        1.00*    MA        1.04     MC        0.94     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.89     PT        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GC        1.11     HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.05     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.00     
!   KP        1.28     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        1.02     FD        0.94     GC        1.10     HN        1.09     
!   LA        0.98     NL        0.92     OV        0.99     SC        2.16     
!   WF        1.15     GG        1.00*    HH        1.00*    KK        1.00     
!   KP        0.93     MA        1.00*    MC        1.00*    MK        1.03     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.96     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  A total of 24 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        0.96     
!   LA        1.00*    NL        1.22     OV        1.00*    SC        1.28     
!   WF        0.81     GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        1.00*    MA        1.15     MC        0.92     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.89     PT        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GC        1.13     HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.04     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.99     
!   KP        1.19     MA        1.00*    MC        1.00*    MK        0.97     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.94     GC        1.12     HN        1.10     
!   LA        0.98     NL        0.91     OV        0.95     SC        0.97     
!   WF        1.19     GG        1.00*    HH        1.00*    KK        1.02     
!   KP        0.93     MA        1.00*    MC        1.00*    MK        1.05     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  A total of 24 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        0.94     
!   LA        1.00*    NL        1.26     OV        1.00*    SC        0.97     
!   WF        0.84     GG        1.00*    HH        1.35     KK        1.00*    
!   KP        1.00*    MA        1.26     MC        0.97     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.90     PT        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GC        1.16     HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.99     
!   KP        1.18     MA        1.00*    MC        1.00*    MK        0.93     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.93     GC        1.18     HN        1.08     
!   LA        0.98     NL        0.91     OV        0.95     SC        0.96     
!   WF        1.15     GG        1.00*    HH        1.00*    KK        1.00     
!   KP        0.94     MA        1.00*    MC        1.00*    MK        1.08     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  A total of 24 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        0.94     
!   LA        1.00*    NL        1.33     OV        1.00*    SC        1.00     
!   WF        0.80     GG        1.00*    HH        1.50     KK        1.00*    
!   KP        1.00*    MA        1.12     MC        0.97     MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        0.86     PT        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        1.11     HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.03     SC        1.00*    
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        0.95     
!   KP        1.14     MA        1.00*    MC        1.00*    MK        0.95     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        1.00*    
! 
! 
! Fit before self-cal, rms=0.307591Jy  sigma=0.003805
! Fit after  self-cal, rms=0.254083Jy  sigma=0.003058
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9006 mas, bmaj=1.988 mas, bpa=-1.528 degrees
! Estimated noise=1005.88 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.00892961 Jy
! Component: 100  -  total flux cleaned = -0.0100344 Jy
! Total flux subtracted in 100 components = -0.0100344 Jy
! Clean residual min=-0.035153 max=0.069280 Jy/beam
! Clean residual mean=0.002598 rms=0.013438 Jy/beam
! Combined flux in latest and established models = 1.73316 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 59 components and 1.73316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252930Jy  sigma=0.003054
! Fit after  self-cal, rms=0.253150Jy  sigma=0.003053
! 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.00149779 Jy
! Component: 100  -  total flux cleaned = -0.00148673 Jy
! Total flux subtracted in 100 components = -0.00148673 Jy
! Clean residual min=-0.034751 max=0.069051 Jy/beam
! Clean residual mean=0.002617 rms=0.013421 Jy/beam
! Combined flux in latest and established models = 1.73167 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 64 components and 1.73167 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252742Jy  sigma=0.003050
! Fit after  self-cal, rms=0.210709Jy  sigma=0.002581
! Inverting map and beam 
! Estimated beam: bmin=0.8979 mas, bmaj=1.99 mas, bpa=-1.702 degrees
! Estimated noise=1006.73 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)
! Added new window around map position (-5.7, 0.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0688031 Jy
! Component: 100  -  total flux cleaned = 0.102499 Jy
! Total flux subtracted in 100 components = 0.102499 Jy
! Clean residual min=-0.023334 max=0.065600 Jy/beam
! Clean residual mean=0.001092 rms=0.008777 Jy/beam
! Combined flux in latest and established models = 1.83417 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 86 components and 1.83417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.192257Jy  sigma=0.002199
! Fit after  self-cal, rms=0.191104Jy  sigma=0.002185
! Inverting map 
! Added new window around map position (-2.7, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0625178 Jy
! Component: 100  -  total flux cleaned = 0.0943439 Jy
! Total flux subtracted in 100 components = 0.0943438 Jy
! Clean residual min=-0.018382 max=0.030464 Jy/beam
! Clean residual mean=-0.000082 rms=0.006098 Jy/beam
! Combined flux in latest and established models = 1.92852 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 111 components and 1.92852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173180Jy  sigma=0.001838
! Fit after  self-cal, rms=0.170842Jy  sigma=0.001812
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0003-066_X
! Writing UV FITS file: 0003-066_X.uvf
! Writing 111 model components to file: 0003-066_X.mod
! wwins: Wrote 3 windows to 0003-066_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8979 x 1.99 at -1.702 degrees (North through East)
! Clean map  min=-0.017661  max=1.5559 Jy/beam
! Writing clean map to FITS file: 0003-066_X.fits
! Writing difmap environment to: 0003-066_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0003-066_X]
device 0003-066_Xuv.ps/vps,1,2
! Attempting to open device: '0003-066_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0003-066_Xim.ps/vps
! Attempting to open device: '0003-066_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.8979 mas, bmaj=1.99 mas, bpa=-1.702 degrees
! Estimated noise=1006.73 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8979 x 1.99 at -1.702 degrees (North through East)
! Clean map  min=-0.017661  max=1.5559 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 0003-066_X.log closed on Wed Jul  5 17:06:43 2006