! Started logfile: 1055+018_K.log_3 on Fri Oct 20 08:11:01 2006
observe 1055+018_K.edt
! Reading UV FITS file: 1055+018_K.edt
! AN table 1: 32 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.841667 visibilities/baseline/integration-bin.
! Found source: 1055+018
! 
! 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 1089 lines of history.
! 
! Reading 9696 visibilities.
![@gonzo7-0.02 1055+018_K]
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 51 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 51 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 51 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 51 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 52 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 51 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 52 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 51 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=2.770717Jy  sigma=0.010990
! Fit after  self-cal, rms=2.770816Jy  sigma=0.010991
! 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.2702 mas, bmaj=0.7357 mas, bpa=-12.28 degrees
! Estimated noise=2980.15 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 = 2.69751 Jy
! Component: 100  -  total flux cleaned = 3.38982 Jy
! Total flux subtracted in 100 components = 3.38982 Jy
! Clean residual min=-0.181036 max=0.315177 Jy/beam
! Clean residual mean=0.005502 rms=0.058373 Jy/beam
! Combined flux in latest and established models = 3.38982 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 18 components and 3.38982 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.895757Jy  sigma=0.003245
! Fit after  self-cal, rms=0.895392Jy  sigma=0.003244
! 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.2876 mas, bmaj=0.7912 mas, bpa=-11.72 degrees
! Estimated noise=1964.07 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.362724 Jy
! Component: 100  -  total flux cleaned = 0.520758 Jy
! Component: 150  -  total flux cleaned = 0.572667 Jy
! Component: 200  -  total flux cleaned = 0.570722 Jy
! Total flux subtracted in 200 components = 0.570722 Jy
! Clean residual min=-0.156776 max=0.196046 Jy/beam
! Clean residual mean=0.003575 rms=0.047255 Jy/beam
! Combined flux in latest and established models = 3.96055 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 30 components and 3.96055 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.719664Jy  sigma=0.002721
! Fit after  self-cal, rms=0.719378Jy  sigma=0.002721
! 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.956641
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     HN        1.12     KP        1.00     
!   LA        0.88     MK        0.99     NL        1.15     OV        1.09     
!   PT        1.12     SC        1.11     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.967272
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.92     HN        1.05     KP        1.00     
!   LA        0.91     MK        0.95     NL        1.08     OV        1.09     
!   PT        1.19     SC        1.13     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.99674
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.78     HN        1.02     KP        0.98     
!   LA        0.91     MK        0.93     NL        1.12     OV        1.09     
!   PT        1.13     SC        1.03     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.01832
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.82     HN        1.17     KP        0.87     
!   LA        0.90     MK        0.91     NL        1.17     OV        0.95     
!   PT        0.99     SC        1.07     
! 
! 
! Correcting IF 5.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.985195
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.80     FD        1.02     HN        0.94     KP        0.93     
!   LA        0.91     MK        1.02     NL        1.14     OV        1.15     
!   PT        1.16     SC        1.07     
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 0.97789
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.87     HN        1.09     KP        0.92     
!   LA        0.93     MK        0.98     NL        1.23     OV        0.97     
!   PT        1.12     SC        1.05     
! 
! 
! Correcting IF 7.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00648
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.14     FD        0.78     HN        0.85     KP        0.94     
!   LA        0.95     MK        0.99     NL        1.29     OV        1.04     
!   PT        0.90     SC        1.04     
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.980164
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.09     FD        0.82     HN        1.00     KP        0.93     
!   LA        0.93     MK        1.01     NL        1.32     OV        1.13     
!   PT        0.83     SC        1.14     
! 
! 
! Fit before self-cal, rms=0.719378Jy  sigma=0.002721
! Fit after  self-cal, rms=0.451445Jy  sigma=0.001675
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.2882 mas, bmaj=0.8037 mas, bpa=-11.97 degrees
! Estimated noise=1917.19 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.0928768 Jy
! Component: 100  -  total flux cleaned = -0.105212 Jy
! Component: 150  -  total flux cleaned = -0.10962 Jy
! Component: 200  -  total flux cleaned = -0.113595 Jy
! Total flux subtracted in 200 components = -0.113595 Jy
! Clean residual min=-0.052877 max=0.092413 Jy/beam
! Clean residual mean=0.001155 rms=0.018995 Jy/beam
! Combined flux in latest and established models = 3.84695 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 34 model components to the UV plane model.
! The established model now contains 63 components and 3.84695 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.430213Jy  sigma=0.001575
! Fit after  self-cal, rms=0.430052Jy  sigma=0.001574
! 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.00329709 Jy
! Component: 100  -  total flux cleaned = -0.00559538 Jy
! Component: 150  -  total flux cleaned = -0.0089262 Jy
! Component: 200  -  total flux cleaned = -0.0120327 Jy
! Total flux subtracted in 200 components = -0.0120327 Jy
! Clean residual min=-0.051847 max=0.089074 Jy/beam
! Clean residual mean=0.001236 rms=0.018259 Jy/beam
! Combined flux in latest and established models = 3.83492 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 80 components and 3.83492 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.423948Jy  sigma=0.001551
! Fit after  self-cal, rms=0.375402Jy  sigma=0.001336
! Inverting map and beam 
! Estimated beam: bmin=0.2874 mas, bmaj=0.8028 mas, bpa=-11.93 degrees
! Estimated noise=1919.94 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 (-1.34, 1.38).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.083599 Jy
! Component: 100  -  total flux cleaned = 0.131492 Jy
! Component: 150  -  total flux cleaned = 0.151225 Jy
! Component: 200  -  total flux cleaned = 0.160385 Jy
! Total flux subtracted in 200 components = 0.160385 Jy
! Clean residual min=-0.036769 max=0.042524 Jy/beam
! Clean residual mean=0.000369 rms=0.011555 Jy/beam
! Combined flux in latest and established models = 3.9953 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 50 model components to the UV plane model.
! The established model now contains 129 components and 3.9953 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.351748Jy  sigma=0.001241
! Fit after  self-cal, rms=0.350945Jy  sigma=0.001238
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1055+018_K
! Writing UV FITS file: 1055+018_K.uvf
! Writing 129 model components to file: 1055+018_K.mod
! wwins: Wrote 2 windows to 1055+018_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2874 x 0.8028 at -11.93 degrees (North through East)
! Clean map  min=-0.032835  max=3.4548 Jy/beam
! Writing clean map to FITS file: 1055+018_K.fits
! Writing difmap environment to: 1055+018_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1055+018_K]
device 1055+018_Kuv.ps/vps,1,2
! Attempting to open device: '1055+018_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1055+018_Kim.ps/vps
! Attempting to open device: '1055+018_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.2874 mas, bmaj=0.8028 mas, bpa=-11.93 degrees
! Estimated noise=1919.94 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2874 x 0.8028 at -11.93 degrees (North through East)
! Clean map  min=-0.032835  max=3.4548 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.02]
quit
! Quitting program
! Log file 1055+018_K.log_3 closed on Fri Oct 20 08:11:07 2006