! Started logfile: 1849+670_K.log on Tue Aug  6 09:24:04 2002
observe 1849+670_K.edt
! Reading UV FITS file: 1849+670_K.edt
! AN table 1: 39 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.610256 visibilities/baseline/integration-bin.
! Found source: 1849+670
! 
! 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.42545e+10        8e+06          1        8e+06
!  02        2  2.43345e+10        8e+06          1        8e+06
!  03        3  2.45145e+10        8e+06          1        8e+06
!  04        4  2.46545e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 896 lines of history.
! 
! Reading 4284 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..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 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 118 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.243976Jy  sigma=1.740880
! Fit after  self-cal, rms=0.243663Jy  sigma=1.740053
! 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.25 mas, bmaj=0.4819 mas, bpa=8.033 degrees
! Estimated noise=2.53575 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.909342 Jy
! Component: 100  -  total flux cleaned = 1.10764 Jy
! Total flux subtracted in 100 components = 1.10764 Jy
! Clean residual min=-0.031767 max=0.056588 Jy/beam
! Clean residual mean=-0.000073 rms=0.008558 Jy/beam
! Combined flux in latest and established models = 1.10764 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.10764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189692Jy  sigma=1.353831
! Fit after  self-cal, rms=0.189692Jy  sigma=1.353831
! 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.2666 mas, bmaj=0.532 mas, bpa=8.939 degrees
! Estimated noise=1.60936 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.0580789 Jy
! Component: 100  -  total flux cleaned = 0.0825815 Jy
! Component: 150  -  total flux cleaned = 0.0862564 Jy
! Component: 200  -  total flux cleaned = 0.0881259 Jy
! Total flux subtracted in 200 components = 0.0881259 Jy
! Clean residual min=-0.017220 max=0.020715 Jy/beam
! Clean residual mean=-0.000009 rms=0.004642 Jy/beam
! Combined flux in latest and established models = 1.19576 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 22 components and 1.19576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172870Jy  sigma=1.232956
! Fit after  self-cal, rms=0.171972Jy  sigma=1.226560
! 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.966084
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.96     HN        1.10     KP        1.03     
!   LA        0.95     MK        1.15     NL        1.00     OV        1.06     
!   PT        1.00*    SC        1.02     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00516
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.01     HN        1.03     KP        1.08     
!   LA        0.97     MK        0.95     NL        0.97     OV        0.99     
!   PT        1.00*    SC        1.00     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.02363
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     HN        0.93     KP        0.92     
!   LA        1.01     MK        1.03     NL        1.02     OV        0.97     
!   PT        1.00*    SC        0.92     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.00271
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.15     HN        0.92     KP        1.03     
!   LA        1.03     MK        0.89     NL        1.03     OV        1.05     
!   PT        1.00*    SC        0.90     
! 
! 
! Fit before self-cal, rms=0.171972Jy  sigma=1.226560
! Fit after  self-cal, rms=0.144134Jy  sigma=1.037886
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2648 mas, bmaj=0.5291 mas, bpa=9.058 degrees
! Estimated noise=1.60069 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.0114917 Jy
! Component: 100  -  total flux cleaned = 0.0101362 Jy
! Component: 150  -  total flux cleaned = 0.0106791 Jy
! Component: 200  -  total flux cleaned = 0.0109224 Jy
! Total flux subtracted in 200 components = 0.0109224 Jy
! Clean residual min=-0.011116 max=0.016636 Jy/beam
! Clean residual mean=-0.000008 rms=0.003094 Jy/beam
! Combined flux in latest and established models = 1.20669 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 43 components and 1.20669 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.142136Jy  sigma=1.024511
! Fit after  self-cal, rms=0.141963Jy  sigma=1.022934
! 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.000891895 Jy
! Component: 100  -  total flux cleaned = 0.0017281 Jy
! Component: 150  -  total flux cleaned = 0.00190549 Jy
! Component: 200  -  total flux cleaned = 0.00224035 Jy
! Total flux subtracted in 200 components = 0.00224035 Jy
! Clean residual min=-0.010901 max=0.015968 Jy/beam
! Clean residual mean=-0.000005 rms=0.002910 Jy/beam
! Combined flux in latest and established models = 1.20893 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 49 components and 1.20893 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141358Jy  sigma=1.018788
! Fit after  self-cal, rms=0.129251Jy  sigma=0.930348
! Inverting map and beam 
! Estimated beam: bmin=0.2636 mas, bmaj=0.5291 mas, bpa=8.877 degrees
! Estimated noise=1.60077 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.39, 0.63).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0138863 Jy
! Component: 100  -  total flux cleaned = 0.0208189 Jy
! Component: 150  -  total flux cleaned = 0.0249504 Jy
! Component: 200  -  total flux cleaned = 0.0262033 Jy
! Total flux subtracted in 200 components = 0.0262033 Jy
! Clean residual min=-0.006662 max=0.008590 Jy/beam
! Clean residual mean=-0.000000 rms=0.001950 Jy/beam
! Combined flux in latest and established models = 1.23513 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 68 components and 1.23513 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127726Jy  sigma=0.919466
! Fit after  self-cal, rms=0.127604Jy  sigma=0.918519
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1849+670_K
! Writing UV FITS file: 1849+670_K.uvf
! Writing 68 model components to file: 1849+670_K.mod
! wwins: Wrote 2 windows to 1849+670_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2636 x 0.5291 at 8.877 degrees (North through East)
! Clean map  min=-0.0068462  max=1.1527 Jy/beam
! Writing clean map to FITS file: 1849+670_K.fits
! Writing difmap environment to: 1849+670_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1849+670_Kuv.ps/vps,1,2
! Attempting to open device: '1849+670_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1849+670_Kim.ps/vps
! Attempting to open device: '1849+670_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.2636 mas, bmaj=0.5291 mas, bpa=8.877 degrees
! Estimated noise=1.60077 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2636 x 0.5291 at 8.877 degrees (North through East)
! Clean map  min=-0.0068462  max=1.1527 Jy/beam
quit
! Quitting program
! Log file 1849+670_K.log closed on Tue Aug  6 09:24:37 2002