! Started logfile: 2318+049_K.log on Fri Nov 22 14:29:37 2002
observe 2318+049_K.edt
! Reading UV FITS file: 2318+049_K.edt
! AN table 1: 44 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.912121 visibilities/baseline/integration-bin.
! Found source: 2318+049
! 
! 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 7224 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 35 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 35 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 35 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 35 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.402618Jy  sigma=2.744302
! Fit after  self-cal, rms=0.401948Jy  sigma=2.740559
! 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.2565 mas, bmaj=0.657 mas, bpa=-6.521 degrees
! Estimated noise=1.87705 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.476397 Jy
! Component: 100  -  total flux cleaned = 0.590397 Jy
! Total flux subtracted in 100 components = 0.590397 Jy
! Clean residual min=-0.019335 max=0.045538 Jy/beam
! Clean residual mean=0.000007 rms=0.005859 Jy/beam
! Combined flux in latest and established models = 0.590397 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 11 components and 0.590397 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197700Jy  sigma=1.327450
! Fit after  self-cal, rms=0.197681Jy  sigma=1.327323
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0488374 Jy
! Component: 100  -  total flux cleaned = 0.0735947 Jy
! Total flux subtracted in 100 components = 0.0735947 Jy
! Clean residual min=-0.016964 max=0.019367 Jy/beam
! Clean residual mean=0.000016 rms=0.004402 Jy/beam
! Combined flux in latest and established models = 0.663991 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 25 components and 0.663991 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.179484Jy  sigma=1.203809
! Fit after  self-cal, rms=0.179433Jy  sigma=1.203448
! 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.3052 mas, bmaj=0.7231 mas, bpa=-4.863 degrees
! Estimated noise=1.26967 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.0305124 Jy
! Component: 100  -  total flux cleaned = 0.0471882 Jy
! Component: 150  -  total flux cleaned = 0.0574897 Jy
! Component: 200  -  total flux cleaned = 0.0643345 Jy
! Total flux subtracted in 200 components = 0.0643345 Jy
! Clean residual min=-0.016632 max=0.017172 Jy/beam
! Clean residual mean=0.000020 rms=0.003748 Jy/beam
! Combined flux in latest and established models = 0.728326 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 55 model components to the UV plane model.
! The established model now contains 74 components and 0.728326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.173993Jy  sigma=1.167449
! Fit after  self-cal, rms=0.173953Jy  sigma=1.167165
! 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.998536
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        0.95     HN        1.12     KP        0.83     
!   LA        0.92     MK        0.94     NL        1.06     OV        1.04     
!   PT        1.00     SC        1.03     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00679
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     HN        1.06     KP        0.86     
!   LA        0.96     MK        0.98     NL        1.02     OV        1.00     
!   PT        1.03     SC        1.01     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.01874
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     HN        0.96     KP        0.96     
!   LA        0.99     MK        1.05     NL        1.05     OV        0.98     
!   PT        0.86     SC        0.94     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.955955
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.13     HN        0.95     KP        1.08     
!   LA        0.98     MK        1.15     NL        1.13     OV        1.04     
!   PT        1.03     SC        0.93     
! 
! 
! Fit before self-cal, rms=0.173953Jy  sigma=1.167165
! Fit after  self-cal, rms=0.161451Jy  sigma=1.087592
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3068 mas, bmaj=0.7262 mas, bpa=-4.394 degrees
! Estimated noise=1.2604 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.00645978 Jy
! Component: 100  -  total flux cleaned = -0.00852495 Jy
! Component: 150  -  total flux cleaned = -0.00914511 Jy
! Component: 200  -  total flux cleaned = -0.00963893 Jy
! Total flux subtracted in 200 components = -0.00963893 Jy
! Clean residual min=-0.009450 max=0.012626 Jy/beam
! Clean residual mean=0.000026 rms=0.002649 Jy/beam
! Combined flux in latest and established models = 0.718687 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 88 components and 0.718687 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161193Jy  sigma=1.085660
! Fit after  self-cal, rms=0.161195Jy  sigma=1.085362
! 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.000576586 Jy
! Component: 100  -  total flux cleaned = -0.00102649 Jy
! Component: 150  -  total flux cleaned = -0.00120837 Jy
! Component: 200  -  total flux cleaned = -0.00136951 Jy
! Total flux subtracted in 200 components = -0.00136951 Jy
! Clean residual min=-0.009513 max=0.012639 Jy/beam
! Clean residual mean=0.000026 rms=0.002630 Jy/beam
! Combined flux in latest and established models = 0.717317 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 93 components and 0.717317 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161134Jy  sigma=1.084859
! Fit after  self-cal, rms=0.154520Jy  sigma=1.019818
! Inverting map and beam 
! Estimated beam: bmin=0.307 mas, bmaj=0.7274 mas, bpa=-4.393 degrees
! Estimated noise=1.26306 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)
! Added new window around map position (-0.54, 0.75).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00932027 Jy
! Component: 100  -  total flux cleaned = 0.0111921 Jy
! Component: 150  -  total flux cleaned = 0.0113122 Jy
! Component: 200  -  total flux cleaned = 0.0113083 Jy
! Total flux subtracted in 200 components = 0.0113083 Jy
! Clean residual min=-0.005050 max=0.005238 Jy/beam
! Clean residual mean=0.000009 rms=0.001277 Jy/beam
! Combined flux in latest and established models = 0.728626 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 112 components and 0.728626 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153985Jy  sigma=1.015927
! Fit after  self-cal, rms=0.153951Jy  sigma=1.015658
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2318+049_K
! Writing UV FITS file: 2318+049_K.uvf
! Writing 112 model components to file: 2318+049_K.mod
! wwins: Wrote 2 windows to 2318+049_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.307 x 0.7274 at -4.393 degrees (North through East)
! Clean map  min=-0.0048682  max=0.62753 Jy/beam
! Writing clean map to FITS file: 2318+049_K.fits
! Writing difmap environment to: 2318+049_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2318+049_Kuv.ps/vps,1,2
! Attempting to open device: '2318+049_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2318+049_Kim.ps/vps
! Attempting to open device: '2318+049_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.307 mas, bmaj=0.7274 mas, bpa=-4.393 degrees
! Estimated noise=1.26306 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.307 x 0.7274 at -4.393 degrees (North through East)
! Clean map  min=-0.0048682  max=0.62753 Jy/beam
quit
! Quitting program
! Log file 2318+049_K.log closed on Fri Nov 22 14:30:01 2002