! Started logfile: 1034-293_K.log on Sat Jun  5 23:28:17 2004
observe 1034-293_K.edt
! Reading UV FITS file: 1034-293_K.edt
! AN table 1: 31 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.951254 visibilities/baseline/integration-bin.
! Found source: 1034-293
! 
! There are 8 IFs, and a total of 8 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.42136e+10        8e+06          1        8e+06
!  02        2  2.42266e+10        8e+06          1        8e+06
!  03        3  2.42656e+10        8e+06          1        8e+06
!  04        4  2.43436e+10        8e+06          1        8e+06
!  05        5  2.44866e+10        8e+06          1        8e+06
!  06        6  2.45906e+10        8e+06          1        8e+06
!  07        7  2.46556e+10        8e+06          1        8e+06
!  08        8  2.46816e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1068 lines of history.
! 
! Reading 10616 visibilities.
![@gonzo7-0.03 1034-293_K]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.03
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.4
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.0300x0.0300 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..8
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
! Reading IF 5 channels: 5..5
! Reading IF 6 channels: 6..6
! Reading IF 7 channels: 7..7
! Reading IF 8 channels: 8..8
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 18 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 22 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 18 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 18 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 18 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 18 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.382719Jy  sigma=2.226672
! Fit after  self-cal, rms=0.380973Jy  sigma=2.217398
! 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.2304 mas, bmaj=0.675 mas, bpa=-4.545 degrees
! Estimated noise=2.18954 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.60735 Jy
! Component: 100  -  total flux cleaned = 0.751553 Jy
! Total flux subtracted in 100 components = 0.751553 Jy
! Clean residual min=-0.045928 max=0.088855 Jy/beam
! Clean residual mean=0.000342 rms=0.014687 Jy/beam
! Combined flux in latest and established models = 0.751553 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 10 components and 0.751553 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.337805Jy  sigma=1.967068
! Fit after  self-cal, rms=0.337738Jy  sigma=1.966650
! 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.4
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2744 mas, bmaj=0.7557 mas, bpa=-6.16 degrees
! Estimated noise=1.22425 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0850046 Jy
! Component: 100  -  total flux cleaned = 0.124358 Jy
! Component: 150  -  total flux cleaned = 0.144693 Jy
! Component: 200  -  total flux cleaned = 0.154987 Jy
! Total flux subtracted in 200 components = 0.154987 Jy
! Clean residual min=-0.056045 max=0.078400 Jy/beam
! Clean residual mean=0.000164 rms=0.014882 Jy/beam
! Combined flux in latest and established models = 0.90654 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 37 components and 0.90654 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.318256Jy  sigma=1.850934
! Fit after  self-cal, rms=0.318187Jy  sigma=1.850547
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale false
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 0.956804
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.30     FD        0.87     HN        1.31     KP        0.90     
!   LA        0.91     MK        0.88     NL        1.42     OV        0.79     
!   PT        0.97     SC        1.09     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.965668
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.32     FD        0.90     HN        1.36     KP        0.91     
!   LA        0.92     MK        0.86     NL        1.39     OV        0.80     
!   PT        0.88     SC        1.03     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.972391
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.26     FD        0.93     HN        1.31     KP        0.91     
!   LA        0.91     MK        0.88     NL        1.33     OV        0.81     
!   PT        0.95     SC        0.98     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.96858
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        0.95     HN        1.35     KP        0.91     
!   LA        0.90     MK        0.95     NL        1.27     OV        0.78     
!   PT        1.07     SC        1.01     
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 0.989525
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.91     HN        1.22     KP        0.99     
!   LA        0.93     MK        1.02     NL        1.28     OV        0.77     
!   PT        0.94     SC        0.98     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.978733
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        1.06     HN        1.09     KP        0.80     
!   LA        0.97     MK        1.12     NL        1.38     OV        0.81     
!   PT        0.96     SC        0.94     
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.957909
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.15     FD        1.05     HN        1.16     KP        0.81     
!   LA        0.98     MK        1.08     NL        1.37     OV        0.87     
!   PT        1.06     SC        0.93     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.955059
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        1.04     HN        1.20     KP        0.84     
!   LA        0.98     MK        1.13     NL        1.42     OV        0.86     
!   PT        0.97     SC        0.92     
! 
! 
! Fit before self-cal, rms=0.318187Jy  sigma=1.850547
! Fit after  self-cal, rms=0.266934Jy  sigma=1.566425
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2765 mas, bmaj=0.7542 mas, bpa=-5.668 degrees
! Estimated noise=1.15165 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0404548 Jy
! Component: 100  -  total flux cleaned = -0.0520284 Jy
! Component: 150  -  total flux cleaned = -0.0555344 Jy
! Component: 200  -  total flux cleaned = -0.0562419 Jy
! Total flux subtracted in 200 components = -0.0562419 Jy
! Clean residual min=-0.014210 max=0.023381 Jy/beam
! Clean residual mean=-0.000063 rms=0.003852 Jy/beam
! Combined flux in latest and established models = 0.850298 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 47 components and 0.850298 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.261704Jy  sigma=1.529967
! Fit after  self-cal, rms=0.261952Jy  sigma=1.529252
! 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.66, -0.63).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.018522 Jy
! Component: 100  -  total flux cleaned = 0.024828 Jy
! Component: 150  -  total flux cleaned = 0.0261064 Jy
! Component: 200  -  total flux cleaned = 0.026425 Jy
! Total flux subtracted in 200 components = 0.026425 Jy
! Clean residual min=-0.011778 max=0.012005 Jy/beam
! Clean residual mean=-0.000038 rms=0.003006 Jy/beam
! Combined flux in latest and established models = 0.876723 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 69 components and 0.876723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.260727Jy  sigma=1.520444
! Fit after  self-cal, rms=0.257651Jy  sigma=1.498146
! Inverting map and beam 
! Estimated beam: bmin=0.2756 mas, bmaj=0.7522 mas, bpa=-5.67 degrees
! Estimated noise=1.14936 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00750839 Jy
! Component: 100  -  total flux cleaned = 0.00974464 Jy
! Component: 150  -  total flux cleaned = 0.0101966 Jy
! Component: 200  -  total flux cleaned = 0.010539 Jy
! Total flux subtracted in 200 components = 0.010539 Jy
! Clean residual min=-0.009023 max=0.009468 Jy/beam
! Clean residual mean=-0.000021 rms=0.002462 Jy/beam
! Combined flux in latest and established models = 0.887262 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 84 components and 0.887262 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Correcting IF 5.
! 
! Correcting IF 6.
! 
! Correcting IF 7.
! 
! Correcting IF 8.
! 
! Fit before self-cal, rms=0.257426Jy  sigma=1.496598
! Fit after  self-cal, rms=0.257364Jy  sigma=1.496184
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1034-293_K
! Writing UV FITS file: 1034-293_K.uvf
! Writing 84 model components to file: 1034-293_K.mod
! wwins: Wrote 2 windows to 1034-293_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2756 x 0.7522 at -5.67 degrees (North through East)
! Clean map  min=-0.0082802  max=0.74605 Jy/beam
! Writing clean map to FITS file: 1034-293_K.fits
! Writing difmap environment to: 1034-293_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1034-293_K]
device 1034-293_Kuv.ps/vps,1,2
! Attempting to open device: '1034-293_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1034-293_Kim.ps/vps
! Attempting to open device: '1034-293_Kim.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.2756 mas, bmaj=0.7522 mas, bpa=-5.67 degrees
! Estimated noise=1.14936 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2756 x 0.7522 at -5.67 degrees (North through East)
! Clean map  min=-0.0082802  max=0.74605 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.03]
quit
! Quitting program
! Log file 1034-293_K.log closed on Sat Jun  5 23:28:33 2004