! Started logfile: 1611+343_S.log on Wed Nov  4 13:49:02 1998
observe 1611+343_S.edt
! Reading UV FITS file: 1611+343_S.edt
! AN table 1: 48 integrations on 66 of 66 possible baselines.
! AN table 2: 73 integrations on 79 of 91 possible baselines.
! AN table 3: 67 integrations on 91 of 91 possible baselines.
! AN table 4: 143 integrations on 91 of 91 possible baselines.
! Apparent sampling: 0.333001 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1611+343
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1618 lines of history.
! 
! Reading 37356 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 8.0
float win_mult
win_mult = 1.0
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.400x0.400 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 409 telescope corrections were flagged in sub-array 1.
!  A total of 491 telescope corrections were flagged in sub-array 2.
!  A total of 700 telescope corrections were flagged in sub-array 3.
!  A total of 1169 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 409 telescope corrections were flagged in sub-array 1.
!  A total of 491 telescope corrections were flagged in sub-array 2.
!  A total of 694 telescope corrections were flagged in sub-array 3.
!  A total of 1169 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 409 telescope corrections were flagged in sub-array 1.
!  A total of 491 telescope corrections were flagged in sub-array 2.
!  A total of 694 telescope corrections were flagged in sub-array 3.
!  A total of 1169 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 409 telescope corrections were flagged in sub-array 1.
!  A total of 491 telescope corrections were flagged in sub-array 2.
!  A total of 694 telescope corrections were flagged in sub-array 3.
!  A total of 1169 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.360901Jy  sigma=12.712788
! Fit after  self-cal, rms=2.362148Jy  sigma=12.719745
! 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=2.578 mas, bmaj=4.049 mas, bpa=-11.76 degrees
! Estimated noise=1.665 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 = 2.12263 Jy
! Total flux subtracted in 50 components = 2.12263 Jy
! Clean residual min=-0.130019 max=0.666554 Jy/beam
! Clean residual mean=-0.000137 rms=0.034486 Jy/beam
! Combined flux in latest and established models = 2.12263 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 2.12264 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.420191Jy  sigma=7.660946
! Fit after  self-cal, rms=1.420147Jy  sigma=7.660721
! Inverting map 
! Added new window around map position (-0.4, 2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.725822 Jy
! Total flux subtracted in 50 components = 0.725822 Jy
! Clean residual min=-0.088258 max=0.356451 Jy/beam
! Clean residual mean=-0.000103 rms=0.022582 Jy/beam
! Combined flux in latest and established models = 2.84846 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 14 components and 2.84846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.934456Jy  sigma=5.036978
! Fit after  self-cal, rms=0.933095Jy  sigma=5.029653
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.428211 Jy
! Total flux subtracted in 50 components = 0.428211 Jy
! Clean residual min=-0.064357 max=0.257334 Jy/beam
! Clean residual mean=-0.000086 rms=0.016617 Jy/beam
! Combined flux in latest and established models = 3.27667 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 18 components and 3.27667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.676230Jy  sigma=3.637702
! Fit after  self-cal, rms=0.675472Jy  sigma=3.633613
! Inverting map 
! Added new window around map position (2, -0.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.286978 Jy
! Total flux subtracted in 50 components = 0.286978 Jy
! Clean residual min=-0.053414 max=0.161861 Jy/beam
! Clean residual mean=-0.000075 rms=0.012983 Jy/beam
! Combined flux in latest and established models = 3.56365 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 23 components and 3.56365 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.522160Jy  sigma=2.800029
! Fit after  self-cal, rms=0.521174Jy  sigma=2.794938
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.19283 Jy
! Total flux subtracted in 50 components = 0.19283 Jy
! Clean residual min=-0.047119 max=0.125119 Jy/beam
! Clean residual mean=-0.000068 rms=0.010961 Jy/beam
! Combined flux in latest and established models = 3.75648 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 32 components and 3.75648 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.432507Jy  sigma=2.311047
! Fit after  self-cal, rms=0.431914Jy  sigma=2.307911
! Inverting map 
! Added new window around map position (-2.4, -0.4).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.140116 Jy
! Total flux subtracted in 50 components = 0.140116 Jy
! Clean residual min=-0.041687 max=0.077649 Jy/beam
! Clean residual mean=-0.000063 rms=0.009705 Jy/beam
! Combined flux in latest and established models = 3.89659 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 37 components and 3.89659 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377885Jy  sigma=2.012299
! Fit after  self-cal, rms=0.377601Jy  sigma=2.010835
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0995447 Jy
! Total flux subtracted in 50 components = 0.0995447 Jy
! Clean residual min=-0.038318 max=0.057266 Jy/beam
! Clean residual mean=-0.000060 rms=0.009007 Jy/beam
! Combined flux in latest and established models = 3.99614 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 43 components and 3.99614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346590Jy  sigma=1.840641
! Fit after  self-cal, rms=0.346431Jy  sigma=1.839803
! 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=3.485 mas, bmaj=4.733 mas, bpa=-19.75 degrees
! Estimated noise=0.766002 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.114722 Jy
! Component: 100  -  total flux cleaned = 0.179446 Jy
! Total flux subtracted in 100 components = 0.179446 Jy
! Clean residual min=-0.028303 max=0.044780 Jy/beam
! Clean residual mean=-0.000267 rms=0.006985 Jy/beam
! Combined flux in latest and established models = 4.17558 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 51 components and 4.17558 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311087Jy  sigma=1.644825
! Fit after  self-cal, rms=0.310731Jy  sigma=1.642863
! 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        1.01     FD        0.98     GC        1.21     GN        1.00     
!   HN        0.95     LA        0.93     MC        1.24     NL        0.94     
!   ON        1.09     PT        0.97     SC        1.07     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.91     GC        0.99     GN        0.95     
!   HN        1.00     KP        0.97     LA        1.01     MC        1.28     
!   NL        0.97     ON        1.00*    OV        0.98     PT        0.95     
!   SC        0.98     WF        0.83     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        0.97     GC        1.04     GN        0.97     
!   HN        1.13     KK        1.01     KP        0.99     LA        0.89     
!   MC        1.00*    NL        1.00*    OV        0.97     PT        0.95     
!   WF        1.17     MK        1.04     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GC        0.99     GN        0.97     
!   HN        0.99     KK        1.00     KP        1.00     LA        0.99     
!   NL        1.02     OV        0.98     PT        0.95     SC        1.00     
!   WF        0.89     MK        1.00     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.99     GC        1.18     GN        0.99     
!   HN        0.97     LA        1.00     MC        0.67     NL        1.01     
!   ON        0.97     PT        0.97     SC        1.08     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.93     GC        1.00     GN        0.95     
!   HN        1.01     KP        0.97     LA        0.96     MC        1.03     
!   NL        1.01     ON        1.00*    OV        0.99     PT        0.95     
!   SC        1.00     WF        1.02     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.99     GC        1.00     GN        0.95     
!   HN        1.13     KK        1.03     KP        0.98     LA        0.96     
!   MC        1.00*    NL        1.87     OV        0.98     PT        0.94     
!   WF        1.08     MK        1.02     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.99     GC        1.01     GN        0.96     
!   HN        0.99     KK        0.97     KP        0.97     LA        0.97     
!   NL        1.05     OV        0.97     PT        0.95     SC        1.02     
!   WF        0.98     MK        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.01     GC        1.24     GN        1.02     
!   HN        1.00     LA        1.07     MC        0.62     NL        1.04     
!   ON        1.06     PT        0.99     SC        1.13     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.95     GC        1.04     GN        0.98     
!   HN        1.02     KP        1.00     LA        1.02     MC        1.05     
!   NL        1.04     ON        1.00*    OV        1.01     PT        0.97     
!   SC        1.04     WF        1.04     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.01     GC        1.02     GN        0.99     
!   HN        1.06     KK        1.06     KP        1.00     LA        0.99     
!   MC        1.00*    NL        2.23     OV        1.01     PT        0.98     
!   WF        1.13     MK        1.04     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.02     GC        1.06     GN        0.99     
!   HN        1.02     KK        1.03     KP        1.00     LA        0.98     
!   NL        1.08     OV        1.00     PT        0.97     SC        1.05     
!   WF        1.03     MK        1.03     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.03     GC        1.20     GN        1.02     
!   HN        0.98     LA        1.05     MC        0.86     NL        1.06     
!   ON        1.08     PT        1.00     SC        1.15     WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        0.97     GC        1.04     GN        1.01     
!   HN        1.04     KP        1.01     LA        0.99     MC        0.77     
!   NL        1.05     ON        1.00*    OV        1.02     PT        0.97     
!   SC        1.09     WF        1.05     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.02     GC        1.03     GN        1.01     
!   HN        1.18     KK        1.07     KP        1.01     LA        1.00     
!   MC        1.00*    NL        1.97     OV        1.01     PT        0.98     
!   WF        1.12     MK        1.04     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.03     GC        1.08     GN        1.00     
!   HN        1.03     KK        1.04     KP        1.01     LA        0.99     
!   NL        1.09     OV        1.01     PT        0.98     SC        1.07     
!   WF        1.04     MK        1.04     
! 
! 
! Fit before self-cal, rms=0.310731Jy  sigma=1.642863
! Fit after  self-cal, rms=0.217994Jy  sigma=1.145927
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.509 mas, bmaj=4.763 mas, bpa=-19.25 degrees
! Estimated noise=0.766514 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 (4, 6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0238436 Jy
! Component: 100  -  total flux cleaned = 0.0285199 Jy
! Total flux subtracted in 100 components = 0.0285199 Jy
! Clean residual min=-0.014876 max=0.018567 Jy/beam
! Clean residual mean=0.000098 rms=0.003032 Jy/beam
! Combined flux in latest and established models = 4.2041 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 63 components and 4.2041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215339Jy  sigma=1.130547
! Fit after  self-cal, rms=0.215131Jy  sigma=1.129265
! 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)
! Added new window around map position (-6.8, 6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0156014 Jy
! Component: 100  -  total flux cleaned = 0.0181688 Jy
! Total flux subtracted in 100 components = 0.0181688 Jy
! Clean residual min=-0.013792 max=0.015679 Jy/beam
! Clean residual mean=0.000100 rms=0.002866 Jy/beam
! Combined flux in latest and established models = 4.22227 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 77 components and 4.22227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.213571Jy  sigma=1.120381
! Fit after  self-cal, rms=0.178281Jy  sigma=0.908911
! Inverting map and beam 
! Estimated beam: bmin=3.507 mas, bmaj=4.756 mas, bpa=-19.07 degrees
! Estimated noise=0.76648 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.6, 10.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0145146 Jy
! Component: 100  -  total flux cleaned = 0.0180561 Jy
! Total flux subtracted in 100 components = 0.0180561 Jy
! Clean residual min=-0.011061 max=0.010869 Jy/beam
! Clean residual mean=0.000090 rms=0.001846 Jy/beam
! Combined flux in latest and established models = 4.24033 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 88 components and 4.24033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176998Jy  sigma=0.901415
! Fit after  self-cal, rms=0.176935Jy  sigma=0.901076
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1611+343_S
! Writing UV FITS file: 1611+343_S.uvf
! Writing 88 model components to file: 1611+343_S.mod
! wwins: Wrote 7 windows to 1611+343_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.507 x 4.756 at -19.07 degrees (North through East)
! Clean map  min=-0.0071804  max=3.0327 Jy/beam
! Writing clean map to FITS file: 1611+343_S.fits
! Writing difmap environment to: 1611+343_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1611+343_Suv.ps/vps,1,2
! Attempting to open device: '1611+343_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1611+343_Sim.ps/vps
! Attempting to open device: '1611+343_Sim.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=3.507 mas, bmaj=4.756 mas, bpa=-19.07 degrees
! Estimated noise=0.76648 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.507 x 4.756 at -19.07 degrees (North through East)
! Clean map  min=-0.0071804  max=3.0327 Jy/beam
quit
! Quitting program
! Log file 1611+343_S.log closed on Wed Nov  4 13:52:50 1998