! Started logfile: 0014+813_X.log on Wed Feb 18 16:10:31 1998
observe 0014+813_X.edt
! Reading UV FITS file: 0014+813_X.edt
! AN table 1: 20 integrations on 78 of 78 possible baselines.
! AN table 2: 335 integrations on 78 of 78 possible baselines.
! AN table 3: 24 integrations on 55 of 55 possible baselines.
! Apparent sampling: 0.369286 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0014+813
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 724 lines of history.
! 
! Reading 42852 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 9.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.100x0.100 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 66 telescope corrections were flagged in sub-array 1.
!  A total of 2532 telescope corrections were flagged in sub-array 2.
!  A total of 105 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 260 telescope corrections were flagged in sub-array 1.
!  A total of 2532 telescope corrections were flagged in sub-array 2.
!  A total of 105 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  A total of 2523 telescope corrections were flagged in sub-array 2.
!  A total of 105 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  A total of 2523 telescope corrections were flagged in sub-array 2.
!  A total of 105 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.404152Jy  sigma=1.968573
! Fit after  self-cal, rms=0.403838Jy  sigma=1.967150
! 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.6818 mas, bmaj=0.8031 mas, bpa=77.33 degrees
! Estimated noise=1.3513 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=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.440533 Jy
! Total flux subtracted in 50 components = 0.440533 Jy
! Clean residual min=-0.016707 max=0.139336 Jy/beam
! Clean residual mean=-0.000015 rms=0.005407 Jy/beam
! Combined flux in latest and established models = 0.440533 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.440533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296750Jy  sigma=1.442494
! Fit after  self-cal, rms=0.296727Jy  sigma=1.442380
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.149847 Jy
! Total flux subtracted in 50 components = 0.149847 Jy
! Clean residual min=-0.010287 max=0.068616 Jy/beam
! Clean residual mean=-0.000013 rms=0.003240 Jy/beam
! Combined flux in latest and established models = 0.590381 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 12 components and 0.590381 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198641Jy  sigma=0.963933
! Fit after  self-cal, rms=0.198582Jy  sigma=0.963656
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0765501 Jy
! Total flux subtracted in 50 components = 0.0765501 Jy
! Clean residual min=-0.008271 max=0.038348 Jy/beam
! Clean residual mean=-0.000011 rms=0.002391 Jy/beam
! Combined flux in latest and established models = 0.666931 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 19 components and 0.666931 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159500Jy  sigma=0.772604
! Fit after  self-cal, rms=0.159454Jy  sigma=0.772394
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0467518 Jy
! Total flux subtracted in 50 components = 0.0467518 Jy
! Clean residual min=-0.007456 max=0.025723 Jy/beam
! Clean residual mean=-0.000010 rms=0.001974 Jy/beam
! Combined flux in latest and established models = 0.713682 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 29 components and 0.713682 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141724Jy  sigma=0.685556
! Fit after  self-cal, rms=0.141693Jy  sigma=0.685411
! Inverting map 
! Added new window around map position (0, -0.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0318063 Jy
! Total flux subtracted in 50 components = 0.0318063 Jy
! Clean residual min=-0.007023 max=0.017462 Jy/beam
! Clean residual mean=-0.000009 rms=0.001746 Jy/beam
! Combined flux in latest and established models = 0.745489 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 38 components and 0.745489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132995Jy  sigma=0.642768
! Fit after  self-cal, rms=0.132951Jy  sigma=0.642565
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0225274 Jy
! Total flux subtracted in 50 components = 0.0225274 Jy
! Clean residual min=-0.006655 max=0.012667 Jy/beam
! Clean residual mean=-0.000009 rms=0.001615 Jy/beam
! Combined flux in latest and established models = 0.768016 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 47 components and 0.768016 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128489Jy  sigma=0.620691
! Fit after  self-cal, rms=0.128466Jy  sigma=0.620585
! 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.8866 mas, bmaj=1.06 mas, bpa=78.42 degrees
! Estimated noise=0.760509 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0243976 Jy
! Component: 100  -  total flux cleaned = 0.0375277 Jy
! Total flux subtracted in 100 components = 0.0375277 Jy
! Clean residual min=-0.004743 max=0.006921 Jy/beam
! Clean residual mean=-0.000150 rms=0.001230 Jy/beam
! Combined flux in latest and established models = 0.805544 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 67 components and 0.805544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124322Jy  sigma=0.600285
! Fit after  self-cal, rms=0.124299Jy  sigma=0.600177
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.97     GN        0.96     HN        1.06     
!   KK        0.99     KP        0.97     LA        0.99     MK        0.98     
!   NL        0.95     ON        0.84     OV        0.98     PT        0.97     
!   WF        0.98     
! 
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        1.01     GN        0.95     
!   HN        1.03     KK        1.11     KP        0.97     LA        0.98     
!   MK        0.99     NL        0.97     OV        0.96     PT        0.98     
!   WF        0.96     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.97     GN        1.02     HN        1.00     
!   KK        1.11     KP        0.98     LA        0.98     MK        0.98     
!   NL        1.00     OV        0.97     PT        0.97     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GN        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MK        0.00*    
!   NL        0.00*    ON        0.00*    OV        0.00*    PT        0.00*    
!   WF        0.00*    
! 
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        0.99     GN        1.12     
!   HN        1.03     KK        1.17     KP        0.98     LA        0.98     
!   MK        1.00     NL        0.95     OV        0.98     PT        0.98     
!   WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.97     GN        1.07     HN        1.01     
!   KK        1.24     KP        0.98     LA        0.97     MK        0.99     
!   NL        1.00     OV        0.98     PT        0.99     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GN        0.87     HN        1.09     
!   KK        1.08     KP        1.00     LA        1.00     MK        1.01     
!   NL        0.97     ON        0.90     OV        0.99     PT        0.99     
!   WF        0.96     
! 
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.01     GN        0.92     
!   HN        1.06     KK        1.17     KP        0.98     LA        0.99     
!   MK        1.02     NL        0.98     OV        1.00     PT        1.01     
!   WF        0.96     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GN        0.93     HN        1.00     
!   KK        1.25     KP        1.00     LA        1.00     MK        1.01     
!   NL        1.01     OV        1.06     PT        0.98     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GN        0.90     HN        1.07     
!   KK        1.10     KP        1.00     LA        1.01     MK        1.02     
!   NL        0.98     ON        0.86     OV        0.99     PT        1.00     
!   WF        0.96     
! 
!  A total of 180 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.01     GN        0.94     
!   HN        1.05     KK        1.21     KP        1.00     LA        1.00     
!   MK        1.02     NL        0.99     OV        0.99     PT        1.01     
!   WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GN        1.06     HN        1.00     
!   KK        1.28     KP        1.02     LA        0.99     MK        1.01     
!   NL        1.02     OV        1.00     PT        1.00     
! 
! 
! Fit before self-cal, rms=0.124299Jy  sigma=0.600177
! Fit after  self-cal, rms=0.117860Jy  sigma=0.557745
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9113 mas, bmaj=1.085 mas, bpa=78.92 degrees
! Estimated noise=0.768686 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000677536 Jy
! Component: 100  -  total flux cleaned = -0.000672716 Jy
! Total flux subtracted in 100 components = -0.000672716 Jy
! Clean residual min=-0.003119 max=0.004504 Jy/beam
! Clean residual mean=-0.000050 rms=0.000809 Jy/beam
! Combined flux in latest and established models = 0.804871 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 73 components and 0.804871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.117678Jy  sigma=0.556963
! Fit after  self-cal, rms=0.117677Jy  sigma=0.556904
! 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000378375 Jy
! Component: 100  -  total flux cleaned = 0.000281277 Jy
! Total flux subtracted in 100 components = 0.000281277 Jy
! Clean residual min=-0.003075 max=0.004530 Jy/beam
! Clean residual mean=-0.000054 rms=0.000804 Jy/beam
! Combined flux in latest and established models = 0.805152 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 76 components and 0.805153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.117591Jy  sigma=0.556542
! Fit after  self-cal, rms=0.106416Jy  sigma=0.507473
! Inverting map and beam 
! Estimated beam: bmin=0.9118 mas, bmaj=1.086 mas, bpa=80.41 degrees
! Estimated noise=0.768226 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000673836 Jy
! Component: 100  -  total flux cleaned = -0.000824202 Jy
! Total flux subtracted in 100 components = -0.000824202 Jy
! Clean residual min=-0.002177 max=0.003286 Jy/beam
! Clean residual mean=-0.000019 rms=0.000463 Jy/beam
! Combined flux in latest and established models = 0.804328 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 83 components and 0.804328 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106358Jy  sigma=0.507221
! Fit after  self-cal, rms=0.106361Jy  sigma=0.507190
! Inverting map 
! Added new window around map position (-2, -4.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00322035 Jy
! Component: 100  -  total flux cleaned = 0.00391496 Jy
! Total flux subtracted in 100 components = 0.00391496 Jy
! Clean residual min=-0.002109 max=0.003087 Jy/beam
! Clean residual mean=-0.000073 rms=0.000430 Jy/beam
! Combined flux in latest and established models = 0.808243 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 97 components and 0.808243 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106275Jy  sigma=0.506733
! Fit after  self-cal, rms=0.106273Jy  sigma=0.506707
! Inverting map 
! Added new window around map position (-1.1, -9.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00274204 Jy
! Component: 100  -  total flux cleaned = 0.0037086 Jy
! Total flux subtracted in 100 components = 0.0037086 Jy
! Clean residual min=-0.002084 max=0.002226 Jy/beam
! Clean residual mean=-0.000123 rms=0.000405 Jy/beam
! Combined flux in latest and established models = 0.811952 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 112 components and 0.811952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106206Jy  sigma=0.506366
! Fit after  self-cal, rms=0.106206Jy  sigma=0.506353
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0014+813_X
! Writing UV FITS file: 0014+813_X.uvf
! Writing 112 model components to file: 0014+813_X.mod
! wwins: Wrote 4 windows to 0014+813_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9118 x 1.086 at 80.41 degrees (North through East)
! Clean map  min=-0.0019919  max=0.63158 Jy/beam
! Writing clean map to FITS file: 0014+813_X.fits
! Writing difmap environment to: 0014+813_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0014+813_Xuv.ps/vps,1,2
! Attempting to open device: '0014+813_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0014+813_Xim.ps/vps
! Attempting to open device: '0014+813_Xim.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.9118 mas, bmaj=1.086 mas, bpa=80.41 degrees
! Estimated noise=0.768226 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9118 x 1.086 at 80.41 degrees (North through East)
! Clean map  min=-0.0019919  max=0.63158 Jy/beam
quit
! Quitting program
! Log file 0014+813_X.log closed on Wed Feb 18 16:20:07 1998