! Started logfile: 1324+224_K.log on Fri Nov 22 14:20:43 2002
observe 1324+224_K.edt
! Reading UV FITS file: 1324+224_K.edt
! AN table 1: 60 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.869259 visibilities/baseline/integration-bin.
! Found source: 1324+224
! 
! 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.42542e+10      7.5e+06          1      7.5e+06
!  02        2  2.43342e+10      7.5e+06          1      7.5e+06
!  03        3  2.45142e+10      7.5e+06          1      7.5e+06
!  04        4  2.46542e+10      7.5e+06          1      7.5e+06
! 
! Polarization(s): RR
! 
! Read 1280 lines of history.
! 
! Reading 9388 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 = 7.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 50 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 70 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 70 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 76 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.610614Jy  sigma=4.167294
! Fit after  self-cal, rms=0.610214Jy  sigma=4.165312
! 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.2593 mas, bmaj=0.5702 mas, bpa=-3.032 degrees
! Estimated noise=2.00113 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.300149 Jy
! Component: 100  -  total flux cleaned = 0.376255 Jy
! Total flux subtracted in 100 components = 0.376255 Jy
! Clean residual min=-0.013275 max=0.033850 Jy/beam
! Clean residual mean=-0.000133 rms=0.004099 Jy/beam
! Combined flux in latest and established models = 0.376255 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.376255 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164437Jy  sigma=1.108488
! Fit after  self-cal, rms=0.164373Jy  sigma=1.108085
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0396384 Jy
! Component: 100  -  total flux cleaned = 0.0627121 Jy
! Total flux subtracted in 100 components = 0.0627121 Jy
! Clean residual min=-0.010473 max=0.012731 Jy/beam
! Clean residual mean=-0.000076 rms=0.002920 Jy/beam
! Combined flux in latest and established models = 0.438967 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 32 components and 0.438967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151810Jy  sigma=1.021764
! Fit after  self-cal, rms=0.151598Jy  sigma=1.020354
! 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.3145 mas, bmaj=0.6649 mas, bpa=-1.675 degrees
! Estimated noise=1.12492 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.0203385 Jy
! Component: 100  -  total flux cleaned = 0.0318199 Jy
! Component: 150  -  total flux cleaned = 0.0393549 Jy
! Component: 200  -  total flux cleaned = 0.0443994 Jy
! Total flux subtracted in 200 components = 0.0443994 Jy
! Clean residual min=-0.007836 max=0.008748 Jy/beam
! Clean residual mean=-0.000091 rms=0.002202 Jy/beam
! Combined flux in latest and established models = 0.483366 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 54 model components to the UV plane model.
! The established model now contains 81 components and 0.483366 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.148736Jy  sigma=1.000662
! Fit after  self-cal, rms=0.148706Jy  sigma=1.000477
! 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.995859
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.13     FD        0.94     HN        1.10     KP        1.02     
!   LA        0.88     MK        0.96     NL        1.01     OV        0.98     
!   PT        0.99     SC        1.03     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00789
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.96     HN        1.04     KP        1.02     
!   LA        0.93     MK        1.00     NL        1.00     OV        0.94     
!   PT        1.02     SC        1.02     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.00887
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     HN        0.92     KP        1.16     
!   LA        0.95     MK        1.10     NL        1.03     OV        0.94     
!   PT        0.86     SC        0.95     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.955039
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.08     HN        0.89     KP        1.28     
!   LA        0.97     MK        1.21     NL        1.08     OV        1.01     
!   PT        1.00     SC        0.92     
! 
! 
! Fit before self-cal, rms=0.148706Jy  sigma=1.000477
! Fit after  self-cal, rms=0.141621Jy  sigma=0.960503
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3171 mas, bmaj=0.6671 mas, bpa=-1.073 degrees
! Estimated noise=1.10851 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.00554327 Jy
! Component: 100  -  total flux cleaned = -0.00663385 Jy
! Component: 150  -  total flux cleaned = -0.0069698 Jy
! Component: 200  -  total flux cleaned = -0.00723183 Jy
! Total flux subtracted in 200 components = -0.00723183 Jy
! Clean residual min=-0.005368 max=0.005568 Jy/beam
! Clean residual mean=-0.000017 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 0.476134 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 97 components and 0.476134 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141434Jy  sigma=0.958941
! Fit after  self-cal, rms=0.141458Jy  sigma=0.958799
! 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.13898e-07 Jy
! Component: 100  -  total flux cleaned = -0.00021863 Jy
! Component: 150  -  total flux cleaned = -0.000294896 Jy
! Component: 200  -  total flux cleaned = -0.000331141 Jy
! Total flux subtracted in 200 components = -0.000331141 Jy
! Clean residual min=-0.005323 max=0.005759 Jy/beam
! Clean residual mean=-0.000018 rms=0.001310 Jy/beam
! Combined flux in latest and established models = 0.475803 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 105 components and 0.475803 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141435Jy  sigma=0.958614
! Fit after  self-cal, rms=0.139272Jy  sigma=0.934181
! Inverting map and beam 
! Estimated beam: bmin=0.3173 mas, bmaj=0.6693 mas, bpa=-1.09 degrees
! Estimated noise=1.11231 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.000856466 Jy
! Component: 100  -  total flux cleaned = 0.000758849 Jy
! Component: 150  -  total flux cleaned = 0.000633397 Jy
! Component: 200  -  total flux cleaned = 0.000562123 Jy
! Total flux subtracted in 200 components = 0.000562123 Jy
! Clean residual min=-0.004142 max=0.004913 Jy/beam
! Clean residual mean=-0.000015 rms=0.001059 Jy/beam
! Combined flux in latest and established models = 0.476365 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 114 components and 0.476365 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139235Jy  sigma=0.933925
! Fit after  self-cal, rms=0.139238Jy  sigma=0.933868
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1324+224_K
! Writing UV FITS file: 1324+224_K.uvf
! Writing 114 model components to file: 1324+224_K.mod
! wwins: Wrote 1 windows to 1324+224_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3173 x 0.6693 at -1.09 degrees (North through East)
! Clean map  min=-0.0040403  max=0.39624 Jy/beam
! Writing clean map to FITS file: 1324+224_K.fits
! Writing difmap environment to: 1324+224_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1324+224_Kuv.ps/vps,1,2
! Attempting to open device: '1324+224_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1324+224_Kim.ps/vps
! Attempting to open device: '1324+224_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.3173 mas, bmaj=0.6693 mas, bpa=-1.09 degrees
! Estimated noise=1.11231 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3173 x 0.6693 at -1.09 degrees (North through East)
! Clean map  min=-0.0040403  max=0.39624 Jy/beam
quit
! Quitting program
! Log file 1324+224_K.log closed on Fri Nov 22 14:21:06 2002