! Started logfile: 1611+343_S.log on Fri Nov  6 11:30:12 1998
observe 1611+343_S.edt
! Reading UV FITS file: 1611+343_S.edt
! AN table 1: 59 integrations on 81 of 91 possible baselines.
! AN table 2: 23 integrations on 78 of 78 possible baselines.
! AN table 3: 15 integrations on 45 of 45 possible baselines.
! AN table 4: 80 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.32739 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 752 lines of history.
! 
! Reading 20492 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.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.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 593 telescope corrections were flagged in sub-array 1.
!  A total of 83 telescope corrections were flagged in sub-array 2.
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  A total of 669 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 592 telescope corrections were flagged in sub-array 1.
!  A total of 83 telescope corrections were flagged in sub-array 2.
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  A total of 669 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 592 telescope corrections were flagged in sub-array 1.
!  A total of 83 telescope corrections were flagged in sub-array 2.
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  A total of 669 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 592 telescope corrections were flagged in sub-array 1.
!  A total of 82 telescope corrections were flagged in sub-array 2.
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  A total of 669 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.312035Jy  sigma=11.050496
! Fit after  self-cal, rms=2.311805Jy  sigma=11.050160
! 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.628 mas, bmaj=3.671 mas, bpa=-5.963 degrees
! Estimated noise=2.00164 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.10429 Jy
! Total flux subtracted in 50 components = 2.10429 Jy
! Clean residual min=-0.139433 max=0.740225 Jy/beam
! Clean residual mean=-0.000577 rms=0.038024 Jy/beam
! Combined flux in latest and established models = 2.10429 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 7 components and 2.10429 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.446435Jy  sigma=6.913287
! Fit after  self-cal, rms=1.444918Jy  sigma=6.906254
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.799619 Jy
! Total flux subtracted in 50 components = 0.799619 Jy
! Clean residual min=-0.087519 max=0.377494 Jy/beam
! Clean residual mean=-0.000361 rms=0.023749 Jy/beam
! Combined flux in latest and established models = 2.9039 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 15 components and 2.9039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.924401Jy  sigma=4.415405
! Fit after  self-cal, rms=0.920767Jy  sigma=4.398564
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.45377 Jy
! Total flux subtracted in 50 components = 0.45377 Jy
! Clean residual min=-0.069777 max=0.226954 Jy/beam
! Clean residual mean=-0.000236 rms=0.016871 Jy/beam
! Combined flux in latest and established models = 3.35767 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 18 components and 3.35767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.662539Jy  sigma=3.159922
! Fit after  self-cal, rms=0.659794Jy  sigma=3.147145
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.282031 Jy
! Total flux subtracted in 50 components = 0.282031 Jy
! Clean residual min=-0.058271 max=0.147012 Jy/beam
! Clean residual mean=-0.000157 rms=0.013248 Jy/beam
! Combined flux in latest and established models = 3.6397 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 26 components and 3.6397 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.520985Jy  sigma=2.479135
! Fit after  self-cal, rms=0.519382Jy  sigma=2.471302
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.18391 Jy
! Total flux subtracted in 50 components = 0.18391 Jy
! Clean residual min=-0.051014 max=0.098306 Jy/beam
! Clean residual mean=-0.000105 rms=0.011350 Jy/beam
! Combined flux in latest and established models = 3.82361 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 33 components and 3.82361 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443996Jy  sigma=2.107006
! Fit after  self-cal, rms=0.443359Jy  sigma=2.103379
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.124891 Jy
! Total flux subtracted in 50 components = 0.124891 Jy
! Clean residual min=-0.047538 max=0.070092 Jy/beam
! Clean residual mean=-0.000071 rms=0.010342 Jy/beam
! Combined flux in latest and established models = 3.94851 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 42 components and 3.94851 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.402142Jy  sigma=1.903030
! Fit after  self-cal, rms=0.401936Jy  sigma=1.901404
! 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=2.953 mas, bmaj=4.442 mas, bpa=-5.159 degrees
! Estimated noise=1.1877 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.139118 Jy
! Component: 100  -  total flux cleaned = 0.220482 Jy
! Total flux subtracted in 100 components = 0.220482 Jy
! Clean residual min=-0.034445 max=0.064589 Jy/beam
! Clean residual mean=-0.000095 rms=0.008715 Jy/beam
! Combined flux in latest and established models = 4.16899 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 56 components and 4.16899 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355953Jy  sigma=1.675550
! Fit after  self-cal, rms=0.355908Jy  sigma=1.674673
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        0.97     GN        0.95     
!   HN        0.99     KK        1.00*    KP        1.00     LA        0.92     
!   NL        0.91     ON        1.02     OV        0.94     PT        0.99     
!   SC        1.03     WF        0.89     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GN        1.08     HN        1.07     
!   KK        0.99     KP        1.00     LA        1.02     MK        0.85     
!   NL        1.04     NY        1.13     OV        0.98     PT        1.00     
!   WF        1.13     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.02     GC        1.09     HN        0.97     
!   LA        0.94     NL        1.00     ON        1.00*    PT        1.04     
!   SC        0.98     WF        1.07     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        0.99     GN        0.97     
!   HN        1.01     KK        0.98     KP        0.93     LA        0.97     
!   MK        1.03     NL        1.09     ON        1.00*    OV        0.99     
!   PT        0.98     SC        1.00     WF        0.96     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.01     GN        0.96     
!   HN        0.99     KK        1.00*    KP        1.00     LA        0.97     
!   NL        0.97     ON        0.97     OV        0.99     PT        0.98     
!   SC        1.05     WF        1.11     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GN        1.09     HN        1.05     
!   KK        1.00     KP        1.02     LA        1.00     MK        0.87     
!   NL        0.96     NY        1.17     OV        0.98     PT        1.00     
!   WF        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.03     GC        1.13     HN        0.99     
!   LA        1.01     NL        0.99     ON        1.00*    PT        1.03     
!   SC        0.99     WF        0.98     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        0.99     GC        1.01     GN        0.97     
!   HN        0.99     KK        0.97     KP        0.96     LA        1.01     
!   MK        1.02     NL        0.97     ON        1.00*    OV        0.99     
!   PT        0.98     SC        1.04     WF        1.01     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        0.97     GN        0.96     
!   HN        0.99     KK        1.00*    KP        0.99     LA        0.95     
!   NL        0.98     ON        1.03     OV        0.91     PT        0.98     
!   SC        1.03     WF        1.15     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GN        1.08     HN        1.07     
!   KK        0.99     KP        0.99     LA        0.99     MK        0.85     
!   NL        0.97     NY        1.11     OV        0.99     PT        0.99     
!   WF        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.02     GC        1.09     HN        0.98     
!   LA        1.01     NL        1.00     ON        1.00*    PT        1.03     
!   SC        0.98     WF        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        0.99     GC        0.99     GN        0.99     
!   HN        1.00     KK        0.97     KP        0.96     LA        1.00     
!   MK        1.02     NL        1.00     ON        1.00*    OV        1.00     
!   PT        0.98     SC        1.01     WF        1.00     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.01     GN        0.96     
!   HN        1.00     KK        1.00*    KP        1.00     LA        0.97     
!   NL        0.96     ON        0.86     OV        0.96     PT        0.99     
!   SC        1.02     WF        1.25     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GN        1.07     HN        1.06     
!   KK        1.01     KP        1.01     LA        0.97     MK        0.88     
!   NL        0.96     NY        1.15     OV        1.00     PT        1.00     
!   WF        1.11     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.03     GC        1.10     HN        0.97     
!   LA        1.01     NL        0.97     ON        1.00*    PT        1.03     
!   SC        0.98     WF        1.02     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.16     FD        1.00     GC        1.04     GN        0.97     
!   HN        1.02     KK        0.99     KP        0.96     LA        1.00     
!   MK        1.01     NL        0.98     ON        1.00*    OV        1.00     
!   PT        1.02     SC        1.04     WF        1.04     
! 
! 
! Fit before self-cal, rms=0.355908Jy  sigma=1.674673
! Fit after  self-cal, rms=0.294666Jy  sigma=1.374354
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.959 mas, bmaj=4.494 mas, bpa=-6.176 degrees
! Estimated noise=1.18634 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, 7.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0435157 Jy
! Component: 100  -  total flux cleaned = 0.0571486 Jy
! Total flux subtracted in 100 components = 0.0571486 Jy
! Clean residual min=-0.021880 max=0.035503 Jy/beam
! Clean residual mean=-0.000011 rms=0.005461 Jy/beam
! Combined flux in latest and established models = 4.22614 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 68 components and 4.22614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287538Jy  sigma=1.337053
! Fit after  self-cal, rms=0.287181Jy  sigma=1.335552
! 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 (-4, 8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0268178 Jy
! Component: 100  -  total flux cleaned = 0.0375275 Jy
! Total flux subtracted in 100 components = 0.0375275 Jy
! Clean residual min=-0.021470 max=0.023928 Jy/beam
! Clean residual mean=0.000019 rms=0.005152 Jy/beam
! Combined flux in latest and established models = 4.26366 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 75 components and 4.26366 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283298Jy  sigma=1.316101
! Fit after  self-cal, rms=0.186258Jy  sigma=0.837570
! Inverting map and beam 
! Estimated beam: bmin=2.951 mas, bmaj=4.474 mas, bpa=-5.981 degrees
! Estimated noise=1.18244 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 (-4, -0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0155088 Jy
! Component: 100  -  total flux cleaned = 0.0245094 Jy
! Total flux subtracted in 100 components = 0.0245094 Jy
! Clean residual min=-0.010855 max=0.014646 Jy/beam
! Clean residual mean=-0.000028 rms=0.002488 Jy/beam
! Combined flux in latest and established models = 4.28817 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 88 components and 4.28817 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182716Jy  sigma=0.817664
! Fit after  self-cal, rms=0.182579Jy  sigma=0.817123
! 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 4 windows to 1611+343_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.951 x 4.474 at -5.981 degrees (North through East)
! Clean map  min=-0.0092911  max=2.8028 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=2.951 mas, bmaj=4.474 mas, bpa=-5.981 degrees
! Estimated noise=1.18244 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.951 x 4.474 at -5.981 degrees (North through East)
! Clean map  min=-0.0092911  max=2.8028 Jy/beam
quit
! Quitting program
! Log file 1611+343_S.log closed on Fri Nov  6 11:33:44 1998