! Started logfile: 1637+574_K.log on Tue Aug  6 07:53:41 2002
observe 1637+574_K.edt
! Reading UV FITS file: 1637+574_K.edt
! AN table 1: 54 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.77037 visibilities/baseline/integration-bin.
! Found source: 1637+574
! 
! 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 7488 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 116 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 116 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 116 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 116 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.295332Jy  sigma=2.115094
! Fit after  self-cal, rms=0.294850Jy  sigma=2.111874
! 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.2641 mas, bmaj=0.4403 mas, bpa=-4.278 degrees
! Estimated noise=2.24696 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.83631 Jy
! Component: 100  -  total flux cleaned = 1.0833 Jy
! Total flux subtracted in 100 components = 1.0833 Jy
! Clean residual min=-0.033717 max=0.099551 Jy/beam
! Clean residual mean=-0.000337 rms=0.010509 Jy/beam
! Combined flux in latest and established models = 1.0833 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 1.0833 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228836Jy  sigma=1.639950
! Fit after  self-cal, rms=0.227617Jy  sigma=1.631174
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.103768 Jy
! Component: 100  -  total flux cleaned = 0.151712 Jy
! Total flux subtracted in 100 components = 0.151712 Jy
! Clean residual min=-0.022492 max=0.024187 Jy/beam
! Clean residual mean=-0.000093 rms=0.006066 Jy/beam
! Combined flux in latest and established models = 1.23501 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 23 components and 1.23501 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.175156Jy  sigma=1.253248
! Fit after  self-cal, rms=0.174696Jy  sigma=1.249935
! 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.2982 mas, bmaj=0.4946 mas, bpa=-5.529 degrees
! Estimated noise=1.22339 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.0326993 Jy
! Component: 100  -  total flux cleaned = 0.048624 Jy
! Component: 150  -  total flux cleaned = 0.0525923 Jy
! Component: 200  -  total flux cleaned = 0.0534737 Jy
! Total flux subtracted in 200 components = 0.0534737 Jy
! Clean residual min=-0.020612 max=0.015751 Jy/beam
! Clean residual mean=-0.000020 rms=0.004145 Jy/beam
! Combined flux in latest and established models = 1.28848 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 35 components and 1.28848 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168782Jy  sigma=1.207171
! Fit after  self-cal, rms=0.168668Jy  sigma=1.206348
! 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.966132
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.96     HN        1.10     KP        1.04     
!   LA        0.95     MK        1.19     NL        1.03     OV        1.03     
!   PT        1.00*    SC        1.01     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00473
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00     HN        1.04     KP        1.08     
!   LA        0.97     MK        0.96     NL        0.98     OV        0.99     
!   PT        1.00*    SC        1.00     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.02256
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.02     HN        0.94     KP        0.91     
!   LA        0.99     MK        1.06     NL        1.04     OV        0.96     
!   PT        1.00*    SC        0.92     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.998134
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.15     HN        0.92     KP        1.03     
!   LA        1.03     MK        0.92     NL        1.06     OV        1.04     
!   PT        1.00*    SC        0.91     
! 
! 
! Fit before self-cal, rms=0.168668Jy  sigma=1.206348
! Fit after  self-cal, rms=0.145602Jy  sigma=1.047884
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2977 mas, bmaj=0.4937 mas, bpa=-4.926 degrees
! Estimated noise=1.21961 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.000801742 Jy
! Component: 100  -  total flux cleaned = 5.5586e-05 Jy
! Component: 150  -  total flux cleaned = 0.000311872 Jy
! Component: 200  -  total flux cleaned = 0.00101887 Jy
! Total flux subtracted in 200 components = 0.00101887 Jy
! Clean residual min=-0.013490 max=0.012280 Jy/beam
! Clean residual mean=0.000025 rms=0.003292 Jy/beam
! Combined flux in latest and established models = 1.2895 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 45 components and 1.2895 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144671Jy  sigma=1.041396
! Fit after  self-cal, rms=0.144663Jy  sigma=1.041162
! 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.000470301 Jy
! Component: 100  -  total flux cleaned = 0.00112042 Jy
! Component: 150  -  total flux cleaned = 0.00153261 Jy
! Component: 200  -  total flux cleaned = 0.00191676 Jy
! Total flux subtracted in 200 components = 0.00191676 Jy
! Clean residual min=-0.013431 max=0.012166 Jy/beam
! Clean residual mean=0.000026 rms=0.003227 Jy/beam
! Combined flux in latest and established models = 1.29142 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 47 components and 1.29142 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144108Jy  sigma=1.037396
! Fit after  self-cal, rms=0.130396Jy  sigma=0.936910
! Inverting map and beam 
! Estimated beam: bmin=0.2957 mas, bmaj=0.4921 mas, bpa=-5.493 degrees
! Estimated noise=1.21683 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.00801015 Jy
! Component: 100  -  total flux cleaned = 0.00911152 Jy
! Component: 150  -  total flux cleaned = 0.00999523 Jy
! Component: 200  -  total flux cleaned = 0.0103837 Jy
! Total flux subtracted in 200 components = 0.0103837 Jy
! Clean residual min=-0.008240 max=0.009520 Jy/beam
! Clean residual mean=0.000011 rms=0.002144 Jy/beam
! Combined flux in latest and established models = 1.3018 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 58 components and 1.3018 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129381Jy  sigma=0.929278
! Fit after  self-cal, rms=0.129358Jy  sigma=0.929070
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1637+574_K
! Writing UV FITS file: 1637+574_K.uvf
! Writing 58 model components to file: 1637+574_K.mod
! wwins: Wrote 1 windows to 1637+574_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2957 x 0.4921 at -5.493 degrees (North through East)
! Clean map  min=-0.0079059  max=1.0714 Jy/beam
! Writing clean map to FITS file: 1637+574_K.fits
! Writing difmap environment to: 1637+574_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1637+574_Kuv.ps/vps,1,2
! Attempting to open device: '1637+574_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1637+574_Kim.ps/vps
! Attempting to open device: '1637+574_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.2957 mas, bmaj=0.4921 mas, bpa=-5.493 degrees
! Estimated noise=1.21683 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2957 x 0.4921 at -5.493 degrees (North through East)
! Clean map  min=-0.0079059  max=1.0714 Jy/beam
quit
! Quitting program
! Log file 1637+574_K.log closed on Tue Aug  6 07:54:18 2002