! Started logfile: 0229+131_K.log on Tue May  3 09:24:16 2005
observe 0229+131_K.edt
! Reading UV FITS file: 0229+131_K.edt
! AN table 1: 32 integrations on 55 of 55 possible baselines.
! Apparent sampling: 0.568182 visibilities/baseline/integration-bin.
! Found source: 0229+131
! 
! 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 8000 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.02
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.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.0200x0.0200 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 94 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 94 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 89 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 93 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 92 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 92 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 92 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 93 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.531477Jy  sigma=3.066499
! Fit after  self-cal, rms=0.529321Jy  sigma=3.056560
! 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.2976 mas, bmaj=0.6994 mas, bpa=-1.593 degrees
! Estimated noise=1.91696 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.431975 Jy
! Component: 100  -  total flux cleaned = 0.609714 Jy
! Total flux subtracted in 100 components = 0.609715 Jy
! Clean residual min=-0.034194 max=0.095052 Jy/beam
! Clean residual mean=0.001797 rms=0.015163 Jy/beam
! Combined flux in latest and established models = 0.609715 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 24 components and 0.609715 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.274078Jy  sigma=1.575337
! Fit after  self-cal, rms=0.273216Jy  sigma=1.570282
! 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.3207 mas, bmaj=0.723 mas, bpa=-1.849 degrees
! Estimated noise=1.42083 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.120584 Jy
! Component: 100  -  total flux cleaned = 0.185764 Jy
! Component: 150  -  total flux cleaned = 0.228032 Jy
! Component: 200  -  total flux cleaned = 0.256458 Jy
! Total flux subtracted in 200 components = 0.256458 Jy
! Clean residual min=-0.024539 max=0.047609 Jy/beam
! Clean residual mean=0.001018 rms=0.008388 Jy/beam
! Combined flux in latest and established models = 0.866173 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 71 model components to the UV plane model.
! The established model now contains 94 components and 0.866173 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.213080Jy  sigma=1.224102
! Fit after  self-cal, rms=0.212229Jy  sigma=1.219038
! 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.978161
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     HN        1.12     KP        1.00     
!   LA        0.91     MK        1.10     NL        1.05     OV        0.92     
!   PT        1.00     SC        1.16     TI        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.981771
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.94     HN        1.12     KP        1.01     
!   LA        0.90     MK        1.02     NL        1.05     OV        0.97     
!   PT        1.02     SC        1.14     TI        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.987787
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.86     HN        1.10     KP        0.98     
!   LA        0.93     MK        1.04     NL        1.01     OV        1.01     
!   PT        0.99     SC        1.20     TI        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.996307
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.90     HN        1.17     KP        0.93     
!   LA        0.90     MK        1.07     NL        1.06     OV        0.93     
!   PT        0.94     SC        1.17     TI        1.00*    
! 
! 
! Correcting IF 5.
!  Amplitude normalization factor in sub-array 1: 0.977159
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        1.00     HN        1.05     KP        0.93     
!   LA        0.91     MK        1.20     NL        1.06     OV        1.01     
!   PT        1.01     SC        1.20     TI        1.00*    
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.984479
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.93     HN        1.15     KP        0.95     
!   LA        0.91     MK        1.06     NL        1.09     OV        0.85     
!   PT        1.03     SC        1.15     TI        1.00*    
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 0.993663
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.87     HN        1.03     KP        0.98     
!   LA        0.95     MK        1.11     NL        1.11     OV        0.84     
!   PT        0.92     SC        1.21     TI        1.00*    
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.991857
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.88     HN        1.10     KP        0.99     
!   LA        0.93     MK        1.06     NL        1.13     OV        0.86     
!   PT        0.90     SC        1.19     TI        1.00*    
! 
! 
! Fit before self-cal, rms=0.212229Jy  sigma=1.219038
! Fit after  self-cal, rms=0.205640Jy  sigma=1.136148
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.334 mas, bmaj=0.7449 mas, bpa=-2.335 degrees
! Estimated noise=1.41238 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.0202328 Jy
! Component: 100  -  total flux cleaned = -0.0226672 Jy
! Component: 150  -  total flux cleaned = -0.0246939 Jy
! Component: 200  -  total flux cleaned = -0.0261078 Jy
! Total flux subtracted in 200 components = -0.0261078 Jy
! Clean residual min=-0.014811 max=0.023678 Jy/beam
! Clean residual mean=0.000210 rms=0.004725 Jy/beam
! Combined flux in latest and established models = 0.840065 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 120 components and 0.840065 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.202831Jy  sigma=1.121265
! Fit after  self-cal, rms=0.202640Jy  sigma=1.119721
! 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)
! Added new window around map position (0.96, -4.82).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0153066 Jy
! Component: 100  -  total flux cleaned = 0.0121175 Jy
! Component: 150  -  total flux cleaned = 0.00905176 Jy
! Component: 200  -  total flux cleaned = 0.00695773 Jy
! Total flux subtracted in 200 components = 0.00695773 Jy
! Clean residual min=-0.014726 max=0.017467 Jy/beam
! Clean residual mean=0.000232 rms=0.004120 Jy/beam
! Combined flux in latest and established models = 0.847023 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 140 components and 0.847023 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.200162Jy  sigma=1.107659
! Fit after  self-cal, rms=0.197371Jy  sigma=1.082201
! Inverting map and beam 
! Estimated beam: bmin=0.3301 mas, bmaj=0.7424 mas, bpa=-2.422 degrees
! Estimated noise=1.40188 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.00061562 Jy
! Component: 100  -  total flux cleaned = -0.00163245 Jy
! Component: 150  -  total flux cleaned = -0.00140348 Jy
! Component: 200  -  total flux cleaned = -0.00161758 Jy
! Total flux subtracted in 200 components = -0.00161758 Jy
! Clean residual min=-0.011910 max=0.012355 Jy/beam
! Clean residual mean=0.000005 rms=0.003061 Jy/beam
! Combined flux in latest and established models = 0.845405 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 154 components and 0.845405 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.196755Jy  sigma=1.078939
! Fit after  self-cal, rms=0.196730Jy  sigma=1.078649
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0229+131_K
! Writing UV FITS file: 0229+131_K.uvf
! Writing 154 model components to file: 0229+131_K.mod
! wwins: Wrote 2 windows to 0229+131_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3301 x 0.7424 at -2.422 degrees (North through East)
! Clean map  min=-0.011542  max=0.52571 Jy/beam
! Writing clean map to FITS file: 0229+131_K.fits
! Writing difmap environment to: 0229+131_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0229+131_Kuv.ps/vps,1,2
! Attempting to open device: '0229+131_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0229+131_Kim.ps/vps
! Attempting to open device: '0229+131_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.3301 mas, bmaj=0.7424 mas, bpa=-2.422 degrees
! Estimated noise=1.40188 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3301 x 0.7424 at -2.422 degrees (North through East)
! Clean map  min=-0.011542  max=0.52571 Jy/beam
quit
! Quitting program
! Log file 0229+131_K.log closed on Tue May  3 09:24:37 2005