! Started logfile: 1113+087_K.log on Mon Oct 16 13:43:02 2006
observe 1113+087_K.edt
! Reading UV FITS file: 1113+087_K.edt
! AN table 1: 16 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.763889 visibilities/baseline/integration-bin.
! Found source: 1113+087
! 
! 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 4400 visibilities.
![@gonzo6-0.02 1113+087_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 = 6.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 20 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 50 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 5.
!  A total of 37 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 6.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 7.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 8.
!  A total of 20 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.697973Jy  sigma=0.003027
! Fit after  self-cal, rms=0.696408Jy  sigma=0.003023
! 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.2824 mas, bmaj=1.13 mas, bpa=-22.89 degrees
! Estimated noise=5364.6 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.251399 Jy
! Component: 100  -  total flux cleaned = 0.332815 Jy
! Total flux subtracted in 100 components = 0.332815 Jy
! Clean residual min=-0.027761 max=0.036282 Jy/beam
! Clean residual mean=0.001418 rms=0.008849 Jy/beam
! Combined flux in latest and established models = 0.332815 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 24 components and 0.332815 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.294469Jy  sigma=0.001083
! Fit after  self-cal, rms=0.294308Jy  sigma=0.001083
! 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.3538 mas, bmaj=1.013 mas, bpa=-22.11 degrees
! Estimated noise=2827.3 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.0517944 Jy
! Component: 100  -  total flux cleaned = 0.0770281 Jy
! Component: 150  -  total flux cleaned = 0.0932317 Jy
! Component: 200  -  total flux cleaned = 0.104779 Jy
! Total flux subtracted in 200 components = 0.104779 Jy
! Clean residual min=-0.020706 max=0.015685 Jy/beam
! Clean residual mean=0.000640 rms=0.005237 Jy/beam
! Combined flux in latest and established models = 0.437594 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 67 model components to the UV plane model.
! The established model now contains 89 components and 0.437594 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.282688Jy  sigma=0.001051
! Fit after  self-cal, rms=0.282572Jy  sigma=0.001050
! 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.995095
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     HN        0.96     KP        1.03     
!   LA        0.81     MK        1.11     NL        1.06     OV        1.08     
!   PT        1.00     SC        1.00*    
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.993705
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     HN        0.88     KP        1.13     
!   LA        0.82     MK        0.97     NL        1.16     OV        0.96     
!   PT        1.14     SC        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.994336
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        0.86     HN        1.00*    KP        1.03     
!   LA        0.84     MK        1.00*    NL        1.06     OV        1.19     
!   PT        0.95     SC        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.02989
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.90     HN        1.17     KP        0.95     
!   LA        0.83     MK        0.89     NL        1.17     OV        0.97     
!   PT        0.90     SC        1.00*    
! 
! 
! Correcting IF 5.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01286
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        1.10     HN        0.81     KP        0.91     
!   LA        0.81     MK        1.00*    NL        0.96     OV        1.21     
!   PT        1.19     SC        1.00*    
! 
! 
! Correcting IF 6.
!  Amplitude normalization factor in sub-array 1: 1.01445
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        0.88     HN        0.97     KP        0.98     
!   LA        0.94     MK        1.06     NL        1.07     OV        0.90     
!   PT        0.94     SC        1.00*    
! 
! 
! Correcting IF 7.
!  Amplitude normalization factor in sub-array 1: 1.01854
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.91     HN        0.69     KP        1.02     
!   LA        0.91     MK        1.00     NL        1.27     OV        1.06     
!   PT        0.92     SC        1.00*    
! 
! 
! Correcting IF 8.
!  Amplitude normalization factor in sub-array 1: 0.999261
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.92     HN        0.83     KP        1.06     
!   LA        0.86     MK        1.01     NL        1.34     OV        1.14     
!   PT        0.80     SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.282572Jy  sigma=0.001050
! Fit after  self-cal, rms=0.265277Jy  sigma=0.001026
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.3548 mas, bmaj=1.017 mas, bpa=-21.95 degrees
! Estimated noise=2828.71 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.00649825 Jy
! Component: 100  -  total flux cleaned = 0.00932223 Jy
! Component: 150  -  total flux cleaned = 0.0106463 Jy
! Component: 200  -  total flux cleaned = 0.0111424 Jy
! Total flux subtracted in 200 components = 0.0111424 Jy
! Clean residual min=-0.008303 max=0.008047 Jy/beam
! Clean residual mean=-0.000149 rms=0.002212 Jy/beam
! Combined flux in latest and established models = 0.448737 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 109 components and 0.448737 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.265066Jy  sigma=0.001025
! Fit after  self-cal, rms=0.265004Jy  sigma=0.001025
! 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.000445307 Jy
! Component: 100  -  total flux cleaned = 0.00104125 Jy
! Component: 150  -  total flux cleaned = 0.00123285 Jy
! Component: 200  -  total flux cleaned = 0.00152126 Jy
! Total flux subtracted in 200 components = 0.00152126 Jy
! Clean residual min=-0.007625 max=0.007465 Jy/beam
! Clean residual mean=-0.000165 rms=0.002129 Jy/beam
! Combined flux in latest and established models = 0.450258 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 115 components and 0.450258 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.264964Jy  sigma=0.001025
! Fit after  self-cal, rms=0.265424Jy  sigma=0.001018
! Inverting map and beam 
! Estimated beam: bmin=0.3533 mas, bmaj=1.017 mas, bpa=-21.99 degrees
! Estimated noise=2836.88 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.0027303 Jy
! Component: 100  -  total flux cleaned = 0.00422817 Jy
! Component: 150  -  total flux cleaned = 0.00483458 Jy
! Component: 200  -  total flux cleaned = 0.00502682 Jy
! Total flux subtracted in 200 components = 0.00502682 Jy
! Clean residual min=-0.007410 max=0.007398 Jy/beam
! Clean residual mean=-0.000166 rms=0.002111 Jy/beam
! Combined flux in latest and established models = 0.455285 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 131 components and 0.455285 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.265378Jy  sigma=0.001018
! Fit after  self-cal, rms=0.265367Jy  sigma=0.001018
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1113+087_K
! Writing UV FITS file: 1113+087_K.uvf
! Writing 131 model components to file: 1113+087_K.mod
! wwins: Wrote 1 windows to 1113+087_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3533 x 1.017 at -21.99 degrees (North through East)
! Clean map  min=-0.0073639  max=0.33791 Jy/beam
! Writing clean map to FITS file: 1113+087_K.fits
! Writing difmap environment to: 1113+087_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1113+087_K]
device 1113+087_Kuv.ps/vps,1,2
! Attempting to open device: '1113+087_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1113+087_Kim.ps/vps
! Attempting to open device: '1113+087_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.3533 mas, bmaj=1.017 mas, bpa=-21.99 degrees
! Estimated noise=2836.88 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.3533 x 1.017 at -21.99 degrees (North through East)
! Clean map  min=-0.0073639  max=0.33791 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6-0.02]
quit
! Quitting program
! Log file 1113+087_K.log closed on Mon Oct 16 13:43:10 2006