! Started logfile: 0122-003_K.log on Tue May  3 09:20:42 2005
observe 0122-003_K.edt
! Reading UV FITS file: 0122-003_K.edt
! AN table 1: 45 integrations on 55 of 55 possible baselines.
! Apparent sampling: 0.0238384 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0122-003
! 
! 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.37245e+10        8e+06          1        8e+06
!  02        2  2.37375e+10        8e+06          1        8e+06
!  03        3  2.37765e+10        8e+06          1        8e+06
!  04        4  2.38545e+10        8e+06          1        8e+06
!  05        5  2.39975e+10        8e+06          1        8e+06
!  06        6  2.41015e+10        8e+06          1        8e+06
!  07        7  2.41665e+10        8e+06          1        8e+06
!  08        8  2.41925e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 784 lines of history.
! 
! Reading 472 visibilities.
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 = 8.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 474 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 495 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 474 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 474 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 483 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 477 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 477 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 477 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.883252Jy  sigma=4.991468
! Fit after  self-cal, rms=0.876042Jy  sigma=5.004819
! 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.105 mas, bmaj=8.728 mas, bpa=-47.2 degrees
! Estimated noise=14.6441 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.0152635 Jy
! Component: 100  -  total flux cleaned = 0.0355104 Jy
! Total flux subtracted in 100 components = 0.0355104 Jy
! Clean residual min=-0.042798 max=0.044391 Jy/beam
! Clean residual mean=0.000006 rms=0.020499 Jy/beam
! Combined flux in latest and established models = 0.0355104 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 36 components and 0.0355104 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.113340Jy  sigma=0.650398
! Fit after  self-cal, rms=0.113154Jy  sigma=0.649326
! 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.1189 mas, bmaj=7.357 mas, bpa=-47.21 degrees
! Estimated noise=10.9366 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.0513131 Jy
! Component: 100  -  total flux cleaned = -0.0792383 Jy
! Component: 150  -  total flux cleaned = -0.0665585 Jy
! Component: 200  -  total flux cleaned = -0.061939 Jy
! Total flux subtracted in 200 components = -0.061939 Jy
! Clean residual min=-0.012359 max=0.012199 Jy/beam
! Clean residual mean=0.000003 rms=0.005573 Jy/beam
! Combined flux in latest and established models = -0.0264287 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 93 model components to the UV plane model.
! The established model now contains 129 components and -0.0264287 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.055409Jy  sigma=0.318768
! Fit after  self-cal, rms=0.055161Jy  sigma=0.317420
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
save 0122-003_K
! Writing UV FITS file: 0122-003_K.uvf
! Writing 129 model components to file: 0122-003_K.mod
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.1189 x 7.357 at -47.21 degrees (North through East)
! Clean map  min=-0.036464  max=0.052805 Jy/beam
! Writing clean map to FITS file: 0122-003_K.fits
! Writing difmap environment to: 0122-003_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0122-003_Kuv.ps/vps,1,2
! Attempting to open device: '0122-003_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0122-003_Kim.ps/vps
! Attempting to open device: '0122-003_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.1189 mas, bmaj=7.357 mas, bpa=-47.21 degrees
! Estimated noise=10.9366 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.1189 x 7.357 at -47.21 degrees (North through East)
! Clean map  min=-0.036464  max=0.052805 Jy/beam
quit
! Quitting program
! Log file 0122-003_K.log closed on Tue May  3 09:21:20 2005