! Started logfile: 1005+066_K.log on Wed Oct  1 16:14:13 2003
observe 1005+066_K
! Reading UV FITS file: 1005+066_K
! AN table 1: 73 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.652055 visibilities/baseline/integration-bin.
! Found source: J1008+06
! 
! 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 17136 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 224 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 252 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 150 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 187 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 218 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 150 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 187 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 221 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.761056Jy  sigma=4.454015
! Fit after  self-cal, rms=0.722983Jy  sigma=4.231180
! 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.2644 mas, bmaj=1.318 mas, bpa=-19.81 degrees
! Estimated noise=1.89455 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.275492 Jy
! Component: 100  -  total flux cleaned = 0.336708 Jy
! Total flux subtracted in 100 components = 0.336708 Jy
! Clean residual min=-0.021413 max=0.022504 Jy/beam
! Clean residual mean=0.000182 rms=0.006092 Jy/beam
! Combined flux in latest and established models = 0.336708 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.336708 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.342108Jy  sigma=2.002129
! Fit after  self-cal, rms=0.342100Jy  sigma=2.002081
! 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.3297 mas, bmaj=1.365 mas, bpa=-20.42 degrees
! Estimated noise=1.01172 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.0288108 Jy
! Component: 100  -  total flux cleaned = 0.0440351 Jy
! Component: 150  -  total flux cleaned = 0.0540646 Jy
! Component: 200  -  total flux cleaned = 0.0569204 Jy
! Total flux subtracted in 200 components = 0.0569204 Jy
! Clean residual min=-0.011433 max=0.020032 Jy/beam
! Clean residual mean=0.000107 rms=0.004251 Jy/beam
! Combined flux in latest and established models = 0.393628 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 42 model components to the UV plane model.
! The established model now contains 47 components and 0.393628 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.339641Jy  sigma=1.987683
! Fit after  self-cal, rms=0.339615Jy  sigma=1.987533
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale false
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.03926
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        0.73     HN        1.00     KP        1.01     
!   LA        0.92     MK        0.90     NL        1.05     OV        1.04     
!   PT        0.86     SC        1.00*    
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.02633
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.75     HN        1.15     KP        0.96     
!   LA        0.99     MK        0.86     NL        1.11     OV        1.08     
!   PT        0.84     SC        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.994991
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        0.91     HN        1.10     KP        0.97     
!   LA        0.94     MK        0.93     NL        1.07     OV        1.06     
!   PT        0.96     SC        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.996877
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.94     HN        1.03     KP        1.02     
!   LA        0.96     MK        0.98     NL        0.97     OV        1.00     
!   PT        1.11     SC        1.00*    
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 0.98394
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    HN        0.96     KP        1.03     
!   LA        0.97     MK        1.11     NL        1.05     OV        1.14     
!   PT        0.90     SC        1.00*    
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.991472
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        0.99     HN        0.86     KP        0.84     
!   LA        0.99     MK        1.13     NL        1.09     OV        1.31     
!   PT        0.98     SC        1.00*    
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.973532
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.95     HN        0.89     KP        0.79     
!   LA        0.96     MK        1.27     NL        1.11     OV        1.35     
!   PT        1.02     SC        1.00*    
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.958097
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.83     FD        0.86     HN        0.88     KP        1.12     
!   LA        0.95     MK        1.20     NL        1.10     OV        1.53     
!   PT        0.97     SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.339615Jy  sigma=1.987533
! Fit after  self-cal, rms=0.320838Jy  sigma=1.959606
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3334 mas, bmaj=1.353 mas, bpa=-20.27 degrees
! Estimated noise=0.992244 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.00206138 Jy
! Component: 100  -  total flux cleaned = -0.00317821 Jy
! Component: 150  -  total flux cleaned = -0.00347079 Jy
! Component: 200  -  total flux cleaned = -0.00346874 Jy
! Total flux subtracted in 200 components = -0.00346874 Jy
! Clean residual min=-0.007557 max=0.006808 Jy/beam
! Clean residual mean=0.000003 rms=0.002169 Jy/beam
! Combined flux in latest and established models = 0.390159 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 80 components and 0.390159 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.320758Jy  sigma=1.959107
! Fit after  self-cal, rms=0.320825Jy  sigma=1.958890
! 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.000247203 Jy
! Component: 100  -  total flux cleaned = 0.000180129 Jy
! Component: 150  -  total flux cleaned = 1.49809e-05 Jy
! Component: 200  -  total flux cleaned = 1.22082e-05 Jy
! Total flux subtracted in 200 components = 1.22082e-05 Jy
! Clean residual min=-0.007606 max=0.006884 Jy/beam
! Clean residual mean=0.000004 rms=0.002132 Jy/beam
! Combined flux in latest and established models = 0.390172 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 103 components and 0.390171 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.320801Jy  sigma=1.958765
! Fit after  self-cal, rms=0.326750Jy  sigma=1.943248
! Inverting map and beam 
! Estimated beam: bmin=0.3343 mas, bmaj=1.353 mas, bpa=-20.19 degrees
! Estimated noise=1.00158 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.000866727 Jy
! Component: 100  -  total flux cleaned = 0.000299285 Jy
! Component: 150  -  total flux cleaned = -7.62775e-05 Jy
! Component: 200  -  total flux cleaned = -0.000232674 Jy
! Total flux subtracted in 200 components = -0.000232674 Jy
! Clean residual min=-0.006828 max=0.006323 Jy/beam
! Clean residual mean=0.000015 rms=0.001837 Jy/beam
! Combined flux in latest and established models = 0.389939 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 122 components and 0.389939 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.326709Jy  sigma=1.943050
! Fit after  self-cal, rms=0.326738Jy  sigma=1.942971
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1005+066_K
! Writing UV FITS file: 1005+066_K.uvf
! Writing 122 model components to file: 1005+066_K.mod
! wwins: Wrote 1 windows to 1005+066_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3343 x 1.353 at -20.19 degrees (North through East)
! Clean map  min=-0.0069337  max=0.35571 Jy/beam
! Writing clean map to FITS file: 1005+066_K.fits
! Writing difmap environment to: 1005+066_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1005+066_Kuv.ps/vps,1,2
! Attempting to open device: '1005+066_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1005+066_Kim.ps/vps
! Attempting to open device: '1005+066_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.3343 mas, bmaj=1.353 mas, bpa=-20.19 degrees
! Estimated noise=1.00158 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3343 x 1.353 at -20.19 degrees (North through East)
! Clean map  min=-0.0069337  max=0.35571 Jy/beam
quit
! Quitting program
! Log file 1005+066_K.log closed on Wed Oct  1 16:14:55 2003