! Started logfile: 1656-075_K.log on Wed Oct  1 16:50:36 2003
observe 1656-075_K
! Reading UV FITS file: 1656-075_K
! AN table 1: 75 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.732444 visibilities/baseline/integration-bin.
! Found source: J1658-07
! 
! 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 1182 lines of history.
! 
! Reading 19776 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..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 185 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 265 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 182 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 182 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 245 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 225 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 225 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 213 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.784737Jy  sigma=4.592161
! Fit after  self-cal, rms=0.731296Jy  sigma=4.279756
! 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.2732 mas, bmaj=0.7741 mas, bpa=-8.962 degrees
! Estimated noise=1.55494 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.2845 Jy
! Component: 100  -  total flux cleaned = 0.377889 Jy
! Total flux subtracted in 100 components = 0.377889 Jy
! Clean residual min=-0.028305 max=0.041674 Jy/beam
! Clean residual mean=0.000008 rms=0.008126 Jy/beam
! Combined flux in latest and established models = 0.377889 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 0.377889 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.424360Jy  sigma=2.482497
! Fit after  self-cal, rms=0.424325Jy  sigma=2.482298
! 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.35 mas, bmaj=1.067 mas, bpa=-14.63 degrees
! Estimated noise=1.01369 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.0618532 Jy
! Component: 100  -  total flux cleaned = 0.0901913 Jy
! Component: 150  -  total flux cleaned = 0.106052 Jy
! Component: 200  -  total flux cleaned = 0.115188 Jy
! Total flux subtracted in 200 components = 0.115188 Jy
! Clean residual min=-0.021688 max=0.021418 Jy/beam
! Clean residual mean=0.000004 rms=0.005916 Jy/beam
! Combined flux in latest and established models = 0.493078 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 46 model components to the UV plane model.
! The established model now contains 62 components and 0.493078 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.416035Jy  sigma=2.433811
! Fit after  self-cal, rms=0.416015Jy  sigma=2.433689
! 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.98532
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.18     FD        0.68     HN        1.00*    KP        1.14     
!   LA        1.01     MK        0.85     NL        1.22     OV        0.90     
!   PT        0.91     SC        1.25     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.03569
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.15     FD        0.64     HN        1.00*    KP        1.05     
!   LA        0.96     MK        0.91     NL        1.19     OV        0.90     
!   PT        0.86     SC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.977731
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.19     FD        0.91     HN        1.15     KP        1.02     
!   LA        1.01     MK        0.91     NL        1.23     OV        0.82     
!   PT        0.99     SC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.961565
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.94     HN        1.13     KP        1.03     
!   LA        1.02     MK        1.08     NL        1.06     OV        0.88     
!   PT        1.20     SC        1.00*    
! 
! 
! Correcting IF 5.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.985171
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.66     HN        0.96     KP        1.18     
!   LA        1.05     MK        1.00*    NL        1.36     OV        0.94     
!   PT        0.99     SC        1.00*    
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.998522
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     HN        0.81     KP        0.92     
!   LA        1.06     MK        1.19     NL        1.00*    OV        1.04     
!   PT        1.04     SC        1.00*    
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.97341
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.05     HN        0.87     KP        0.94     
!   LA        1.03     MK        1.20     NL        1.00*    OV        1.06     
!   PT        1.07     SC        1.00*    
! 
! 
! Correcting IF 8.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.938466
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.83     HN        0.92     KP        1.08     
!   LA        1.06     MK        1.27     NL        1.31     OV        1.16     
!   PT        1.03     SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.416015Jy  sigma=2.433689
! Fit after  self-cal, rms=0.387671Jy  sigma=2.392241
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3531 mas, bmaj=1.101 mas, bpa=-14.57 degrees
! Estimated noise=0.978908 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.0128503 Jy
! Component: 100  -  total flux cleaned = -0.0174402 Jy
! Component: 150  -  total flux cleaned = -0.0188676 Jy
! Component: 200  -  total flux cleaned = -0.0188671 Jy
! Total flux subtracted in 200 components = -0.0188671 Jy
! Clean residual min=-0.011422 max=0.014010 Jy/beam
! Clean residual mean=-0.000064 rms=0.003420 Jy/beam
! Combined flux in latest and established models = 0.474211 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 80 components and 0.474211 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.387299Jy  sigma=2.389943
! Fit after  self-cal, rms=0.387466Jy  sigma=2.389461
! 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 = 6.65144e-05 Jy
! Component: 100  -  total flux cleaned = 0.000200851 Jy
! Component: 150  -  total flux cleaned = 0.000200091 Jy
! Component: 200  -  total flux cleaned = 0.000199444 Jy
! Total flux subtracted in 200 components = 0.000199444 Jy
! Clean residual min=-0.011358 max=0.013904 Jy/beam
! Clean residual mean=-0.000064 rms=0.003410 Jy/beam
! Combined flux in latest and established models = 0.47441 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 83 components and 0.47441 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.387447Jy  sigma=2.389349
! Fit after  self-cal, rms=0.395344Jy  sigma=2.373151
! Inverting map and beam 
! Estimated beam: bmin=0.3537 mas, bmaj=1.101 mas, bpa=-14.52 degrees
! Estimated noise=0.990205 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.00361189 Jy
! Component: 100  -  total flux cleaned = 0.00500335 Jy
! Component: 150  -  total flux cleaned = 0.00526715 Jy
! Component: 200  -  total flux cleaned = 0.00522142 Jy
! Total flux subtracted in 200 components = 0.00522142 Jy
! Clean residual min=-0.009985 max=0.013367 Jy/beam
! Clean residual mean=-0.000049 rms=0.003239 Jy/beam
! Combined flux in latest and established models = 0.479632 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 90 components and 0.479632 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.395308Jy  sigma=2.372939
! Fit after  self-cal, rms=0.395360Jy  sigma=2.372859
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1656-075_K
! Writing UV FITS file: 1656-075_K.uvf
! Writing 90 model components to file: 1656-075_K.mod
! wwins: Wrote 1 windows to 1656-075_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3537 x 1.101 at -14.52 degrees (North through East)
! Clean map  min=-0.0099466  max=0.3764 Jy/beam
! Writing clean map to FITS file: 1656-075_K.fits
! Writing difmap environment to: 1656-075_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1656-075_Kuv.ps/vps,1,2
! Attempting to open device: '1656-075_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1656-075_Kim.ps/vps
! Attempting to open device: '1656-075_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.3537 mas, bmaj=1.101 mas, bpa=-14.52 degrees
! Estimated noise=0.990205 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3537 x 1.101 at -14.52 degrees (North through East)
! Clean map  min=-0.0099466  max=0.3764 Jy/beam
quit
! Quitting program
! Log file 1656-075_K.log closed on Wed Oct  1 16:51:16 2003