! Started logfile: DA193_X.log on Thu Jul 29 11:56:37 2004
observe DA193_X.edt
! Reading UV FITS file: DA193_X.edt
! AN table 1: 74 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.712613 visibilities/baseline/integration-bin.
! Found source: DA193
! 
! There are 2 IFs, and a total of 2 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.41447e+09        4e+06          1        4e+06
!  02        2  8.42247e+09        4e+06          1        4e+06
! 
! Polarization(s): RR LL RL LR
! 
! Read 840 lines of history.
! 
! Reading 18984 visibilities.
![@gonzo8-0.1 DA193_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: I,  channels: 1..2
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
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 133 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 133 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=2.759577Jy  sigma=19.233585
! Fit after  self-cal, rms=2.759574Jy  sigma=19.233562
! 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=1.106 mas, bmaj=1.273 mas, bpa=15.11 degrees
! Estimated noise=2.28224 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.74319 Jy
! Total flux subtracted in 50 components = 2.74319 Jy
! Clean residual min=-0.180416 max=0.841814 Jy/beam
! Clean residual mean=0.001452 rms=0.064578 Jy/beam
! Combined flux in latest and established models = 2.74319 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.74319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=1.206161Jy  sigma=8.407692
! Fit after  self-cal, rms=1.205806Jy  sigma=8.405216
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.814091 Jy
! Total flux subtracted in 50 components = 0.814091 Jy
! Clean residual min=-0.100097 max=0.330600 Jy/beam
! Clean residual mean=0.000379 rms=0.032543 Jy/beam
! Combined flux in latest and established models = 3.55729 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 22 components and 3.55729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.604507Jy  sigma=4.211945
! Fit after  self-cal, rms=0.600851Jy  sigma=4.186709
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.364699 Jy
! Total flux subtracted in 50 components = 0.364699 Jy
! Clean residual min=-0.065948 max=0.169933 Jy/beam
! Clean residual mean=-0.000132 rms=0.021089 Jy/beam
! Combined flux in latest and established models = 3.92199 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 44 components and 3.92199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.379068Jy  sigma=2.642178
! Fit after  self-cal, rms=0.376408Jy  sigma=2.623676
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.195886 Jy
! Total flux subtracted in 50 components = 0.195886 Jy
! Clean residual min=-0.053571 max=0.094479 Jy/beam
! Clean residual mean=-0.000409 rms=0.016224 Jy/beam
! Combined flux in latest and established models = 4.11787 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 54 components and 4.11787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.281146Jy  sigma=1.962754
! Fit after  self-cal, rms=0.279210Jy  sigma=1.949240
! 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.222 mas, bmaj=1.411 mas, bpa=10.79 degrees
! Estimated noise=1.53145 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.123881 Jy
! Component: 100  -  total flux cleaned = 0.18473 Jy
! Total flux subtracted in 100 components = 0.18473 Jy
! Clean residual min=-0.042801 max=0.046968 Jy/beam
! Clean residual mean=-0.001363 rms=0.011926 Jy/beam
! Combined flux in latest and established models = 4.3026 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 71 components and 4.3026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.226948Jy  sigma=1.590619
! Fit after  self-cal, rms=0.225642Jy  sigma=1.581502
! 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     HN        1.01     KP        1.00     
!   LA        0.98     MK        1.03     NL        1.02     OV        1.06     
!   PT        0.99     SC        1.04     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     HN        1.01     KP        1.00     
!   LA        0.97     MK        1.02     NL        1.02     OV        1.06     
!   PT        0.99     SC        1.04     
! 
! 
! Fit before self-cal, rms=0.225642Jy  sigma=1.581502
! Fit after  self-cal, rms=0.185098Jy  sigma=1.255602
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.236 mas, bmaj=1.421 mas, bpa=9.95 degrees
! Estimated noise=1.53634 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.0015626 Jy
! Component: 100  -  total flux cleaned = 0.00261243 Jy
! Total flux subtracted in 100 components = 0.00261243 Jy
! Clean residual min=-0.033015 max=0.036156 Jy/beam
! Clean residual mean=-0.001685 rms=0.009301 Jy/beam
! Combined flux in latest and established models = 4.30521 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 81 components and 4.30521 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.182864Jy  sigma=1.240983
! Fit after  self-cal, rms=0.182515Jy  sigma=1.238659
! 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.000161753 Jy
! Component: 100  -  total flux cleaned = -0.000179545 Jy
! Total flux subtracted in 100 components = -0.000179545 Jy
! Clean residual min=-0.032476 max=0.035787 Jy/beam
! Clean residual mean=-0.001684 rms=0.009202 Jy/beam
! Combined flux in latest and established models = 4.30503 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 84 components and 4.30503 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.181179Jy  sigma=1.229820
! Fit after  self-cal, rms=0.096131Jy  sigma=0.629591
! Inverting map and beam 
! Estimated beam: bmin=1.229 mas, bmaj=1.426 mas, bpa=10.47 degrees
! Estimated noise=1.53585 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.00252086 Jy
! Component: 100  -  total flux cleaned = -0.000228377 Jy
! Total flux subtracted in 100 components = -0.000228377 Jy
! Clean residual min=-0.011515 max=0.013782 Jy/beam
! Clean residual mean=0.000052 rms=0.003110 Jy/beam
! Combined flux in latest and established models = 4.30481 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 94 components and 4.30481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Fit before self-cal, rms=0.093273Jy  sigma=0.609332
! Fit after  self-cal, rms=0.092891Jy  sigma=0.606574
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save DA193_X
! Writing UV FITS file: DA193_X.uvf
! Writing 94 model components to file: DA193_X.mod
! wwins: Wrote 1 windows to DA193_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.229 x 1.426 at 10.47 degrees (North through East)
! Clean map  min=-0.01068  max=3.4854 Jy/beam
! Writing clean map to FITS file: DA193_X.fits
! Writing difmap environment to: DA193_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot DA193_X]
device DA193_Xuv.ps/vps,1,2
! Attempting to open device: 'DA193_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device DA193_Xim.ps/vps
! Attempting to open device: 'DA193_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.229 mas, bmaj=1.426 mas, bpa=10.47 degrees
! Estimated noise=1.53585 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.229 x 1.426 at 10.47 degrees (North through East)
! Clean map  min=-0.01068  max=3.4854 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file DA193_X.log closed on Thu Jul 29 11:56:51 2004