! Started logfile: 0458-020_K.log on Fri Aug  2 13:24:17 2002
observe 0458-020_K.edt
! Reading UV FITS file: 0458-020_K.edt
! AN table 1: 29 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.826054 visibilities/baseline/integration-bin.
! Found source: 0458-020
! 
! 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  2.42545e+10        8e+06          1        8e+06
!  02        2  2.43345e+10        8e+06          1        8e+06
!  03        3  2.45145e+10        8e+06          1        8e+06
!  04        4  2.46545e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 896 lines of history.
! 
! Reading 4312 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.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.0300x0.0300 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 71 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 71 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 71 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 71 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.195715Jy  sigma=1.386943
! Fit after  self-cal, rms=0.195708Jy  sigma=1.386887
! 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.259 mas, bmaj=0.6617 mas, bpa=-3.386 degrees
! Estimated noise=2.55292 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.70248 Jy
! Component: 100  -  total flux cleaned = 0.856539 Jy
! Total flux subtracted in 100 components = 0.856539 Jy
! Clean residual min=-0.025465 max=0.047657 Jy/beam
! Clean residual mean=-0.000026 rms=0.007830 Jy/beam
! Combined flux in latest and established models = 0.856539 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.856539 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170289Jy  sigma=1.206730
! Fit after  self-cal, rms=0.170285Jy  sigma=1.206689
! 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.2704 mas, bmaj=0.6671 mas, bpa=-1.64 degrees
! Estimated noise=1.66716 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.0444616 Jy
! Component: 100  -  total flux cleaned = 0.0546527 Jy
! Component: 150  -  total flux cleaned = 0.0542507 Jy
! Component: 200  -  total flux cleaned = 0.0535149 Jy
! Total flux subtracted in 200 components = 0.0535149 Jy
! Clean residual min=-0.012852 max=0.015049 Jy/beam
! Clean residual mean=-0.000047 rms=0.003640 Jy/beam
! Combined flux in latest and established models = 0.910054 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 26 components and 0.910054 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159467Jy  sigma=1.128645
! Fit after  self-cal, rms=0.159402Jy  sigma=1.128155
! 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.964683
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.93     HN        1.09     KP        1.04     
!   LA        0.96     MK        1.17     NL        1.01     OV        1.03     
!   PT        1.01     SC        1.05     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00919
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.95     HN        1.04     KP        1.02     
!   LA        0.97     MK        0.94     NL        0.99     OV        0.98     
!   PT        1.03     SC        1.02     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.03094
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.00     HN        0.93     KP        0.97     
!   LA        1.00     MK        1.03     NL        1.04     OV        0.96     
!   PT        0.88     SC        0.95     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.993706
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.08     HN        0.91     KP        1.05     
!   LA        1.02     MK        0.89     NL        1.08     OV        1.05     
!   PT        1.06     SC        0.94     
! 
! 
! Fit before self-cal, rms=0.159402Jy  sigma=1.128155
! Fit after  self-cal, rms=0.147264Jy  sigma=1.047117
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2698 mas, bmaj=0.6655 mas, bpa=-1.517 degrees
! Estimated noise=1.65834 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.00109291 Jy
! Component: 100  -  total flux cleaned = -0.00202649 Jy
! Component: 150  -  total flux cleaned = -0.0030765 Jy
! Component: 200  -  total flux cleaned = -0.00401915 Jy
! Total flux subtracted in 200 components = -0.00401915 Jy
! Clean residual min=-0.010416 max=0.010538 Jy/beam
! Clean residual mean=-0.000035 rms=0.002828 Jy/beam
! Combined flux in latest and established models = 0.906035 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 35 components and 0.906035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146661Jy  sigma=1.042186
! Fit after  self-cal, rms=0.146662Jy  sigma=1.041995
! 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00126332 Jy
! Component: 100  -  total flux cleaned = -0.00187789 Jy
! Component: 150  -  total flux cleaned = -0.00257576 Jy
! Component: 200  -  total flux cleaned = -0.00321171 Jy
! Total flux subtracted in 200 components = -0.00321171 Jy
! Clean residual min=-0.010184 max=0.009574 Jy/beam
! Clean residual mean=-0.000033 rms=0.002718 Jy/beam
! Combined flux in latest and established models = 0.902823 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 41 components and 0.902823 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146419Jy  sigma=1.039912
! Fit after  self-cal, rms=0.137117Jy  sigma=0.973329
! Inverting map and beam 
! Estimated beam: bmin=0.2694 mas, bmaj=0.6649 mas, bpa=-1.462 degrees
! Estimated noise=1.65954 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.00303301 Jy
! Component: 100  -  total flux cleaned = 0.00278173 Jy
! Component: 150  -  total flux cleaned = 0.00255558 Jy
! Component: 200  -  total flux cleaned = 0.00255644 Jy
! Total flux subtracted in 200 components = 0.00255644 Jy
! Clean residual min=-0.008009 max=0.008004 Jy/beam
! Clean residual mean=-0.000013 rms=0.002212 Jy/beam
! Combined flux in latest and established models = 0.90538 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 48 components and 0.90538 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136930Jy  sigma=0.971666
! Fit after  self-cal, rms=0.136932Jy  sigma=0.971637
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0458-020_K
! Writing UV FITS file: 0458-020_K.uvf
! Writing 48 model components to file: 0458-020_K.mod
! wwins: Wrote 1 windows to 0458-020_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2694 x 0.6649 at -1.462 degrees (North through East)
! Clean map  min=-0.0077529  max=0.89581 Jy/beam
! Writing clean map to FITS file: 0458-020_K.fits
! Writing difmap environment to: 0458-020_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0458-020_Kuv.ps/vps,1,2
! Attempting to open device: '0458-020_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0458-020_Kim.ps/vps
! Attempting to open device: '0458-020_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.2694 mas, bmaj=0.6649 mas, bpa=-1.462 degrees
! Estimated noise=1.65954 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2694 x 0.6649 at -1.462 degrees (North through East)
! Clean map  min=-0.0077529  max=0.89581 Jy/beam
quit
! Quitting program
! Log file 0458-020_K.log closed on Fri Aug  2 13:24:51 2002