! Started logfile: 1617+229_K.log on Wed Oct  1 16:46:00 2003
observe 1617+229_K.edt
! Reading UV FITS file: 1617+229_K.edt
! AN table 1: 88 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.684596 visibilities/baseline/integration-bin.
! Found source: J1619+22
! 
! 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 1186 lines of history.
! 
! Reading 21688 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 226 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 335 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 186 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 226 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 321 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 289 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 267 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 288 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.753605Jy  sigma=4.398656
! Fit after  self-cal, rms=0.752768Jy  sigma=4.393746
! 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.2548 mas, bmaj=0.9769 mas, bpa=-21 degrees
! Estimated noise=1.65051 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.246606 Jy
! Component: 100  -  total flux cleaned = 0.341961 Jy
! Total flux subtracted in 100 components = 0.341961 Jy
! Clean residual min=-0.028387 max=0.042929 Jy/beam
! Clean residual mean=0.000215 rms=0.008105 Jy/beam
! Combined flux in latest and established models = 0.341961 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 0.341961 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.390987Jy  sigma=2.282419
! Fit after  self-cal, rms=0.390891Jy  sigma=2.281855
! 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.3128 mas, bmaj=1.15 mas, bpa=-19.83 degrees
! Estimated noise=0.950566 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.0669541 Jy
! Component: 100  -  total flux cleaned = 0.10306 Jy
! Component: 150  -  total flux cleaned = 0.127529 Jy
! Component: 200  -  total flux cleaned = 0.144617 Jy
! Total flux subtracted in 200 components = 0.144617 Jy
! Clean residual min=-0.013648 max=0.016064 Jy/beam
! Clean residual mean=0.000070 rms=0.004537 Jy/beam
! Combined flux in latest and established models = 0.486578 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 64 model components to the UV plane model.
! The established model now contains 71 components and 0.486578 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.378891Jy  sigma=2.211343
! Fit after  self-cal, rms=0.378838Jy  sigma=2.211031
! 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 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.994457
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.29     FD        0.79     HN        1.08     KP        1.10     
!   LA        0.99     MK        0.97     NL        1.05     OV        0.89     
!   PT        0.90     SC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.969078
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.43     FD        1.00*    HN        1.13     KP        1.04     
!   LA        0.97     MK        0.94     NL        1.15     OV        0.85     
!   PT        0.80     SC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.991293
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.23     FD        0.98     HN        1.03     KP        0.96     
!   LA        1.02     MK        0.96     NL        1.12     OV        0.87     
!   PT        0.91     SC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.973907
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.22     FD        1.04     HN        1.12     KP        1.04     
!   LA        0.99     MK        1.02     NL        0.96     OV        0.87     
!   PT        1.01     SC        1.00*    
! 
! 
! Correcting IF 5.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00838
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.73     HN        1.00     KP        1.12     
!   LA        1.06     MK        1.16     NL        1.05     OV        0.93     
!   PT        0.83     SC        1.00*    
! 
! 
! Correcting IF 6.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.988979
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     HN        0.81     KP        0.92     
!   LA        1.04     MK        1.27     NL        1.08     OV        1.07     
!   PT        0.91     SC        1.00*    
! 
! 
! Correcting IF 7.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.956909
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        1.00*    HN        0.99     KP        0.88     
!   LA        1.03     MK        1.24     NL        1.12     OV        1.08     
!   PT        1.02     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.938075
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.89     HN        0.99     KP        1.13     
!   LA        1.05     MK        1.47     NL        1.09     OV        1.21     
!   PT        0.89     SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.378838Jy  sigma=2.211031
! Fit after  self-cal, rms=0.354561Jy  sigma=2.185993
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3229 mas, bmaj=1.168 mas, bpa=-19.91 degrees
! Estimated noise=0.912578 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.0126831 Jy
! Component: 100  -  total flux cleaned = -0.0192937 Jy
! Component: 150  -  total flux cleaned = -0.0232046 Jy
! Component: 200  -  total flux cleaned = -0.0239622 Jy
! Total flux subtracted in 200 components = -0.0239622 Jy
! Clean residual min=-0.008515 max=0.011139 Jy/beam
! Clean residual mean=0.000038 rms=0.002346 Jy/beam
! Combined flux in latest and established models = 0.462616 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 96 components and 0.462616 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.354094Jy  sigma=2.183358
! Fit after  self-cal, rms=0.354183Jy  sigma=2.183038
! 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.000230275 Jy
! Component: 100  -  total flux cleaned = 0.000392191 Jy
! Component: 150  -  total flux cleaned = 0.000464113 Jy
! Component: 200  -  total flux cleaned = 0.000673544 Jy
! Total flux subtracted in 200 components = 0.000673544 Jy
! Clean residual min=-0.008321 max=0.010791 Jy/beam
! Clean residual mean=0.000039 rms=0.002318 Jy/beam
! Combined flux in latest and established models = 0.46329 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 112 components and 0.46329 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.354149Jy  sigma=2.182881
! Fit after  self-cal, rms=0.369625Jy  sigma=2.169432
! Inverting map and beam 
! Estimated beam: bmin=0.3254 mas, bmaj=1.173 mas, bpa=-19.9 degrees
! Estimated noise=0.930291 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.00028536 Jy
! Component: 100  -  total flux cleaned = -0.000673325 Jy
! Component: 150  -  total flux cleaned = -0.00137637 Jy
! Component: 200  -  total flux cleaned = -0.00162484 Jy
! Total flux subtracted in 200 components = -0.00162484 Jy
! Clean residual min=-0.007340 max=0.009453 Jy/beam
! Clean residual mean=0.000021 rms=0.002154 Jy/beam
! Combined flux in latest and established models = 0.461665 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 120 components and 0.461665 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.369523Jy  sigma=2.168878
! Fit after  self-cal, rms=0.369554Jy  sigma=2.168778
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1617+229_K
! Writing UV FITS file: 1617+229_K.uvf
! Writing 120 model components to file: 1617+229_K.mod
! wwins: Wrote 1 windows to 1617+229_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3254 x 1.173 at -19.9 degrees (North through East)
! Clean map  min=-0.0072898  max=0.33497 Jy/beam
! Writing clean map to FITS file: 1617+229_K.fits
! Writing difmap environment to: 1617+229_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1617+229_Kuv.ps/vps,1,2
! Attempting to open device: '1617+229_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1617+229_Kim.ps/vps
! Attempting to open device: '1617+229_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.3254 mas, bmaj=1.173 mas, bpa=-19.9 degrees
! Estimated noise=0.930291 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3254 x 1.173 at -19.9 degrees (North through East)
! Clean map  min=-0.0072898  max=0.33497 Jy/beam
quit
! Quitting program
! Log file 1617+229_K.log closed on Wed Oct  1 16:46:44 2003