! Started logfile: 1357+769_S.log on Fri Oct  2 16:43:17 1998
observe 1357+769_S.edt
! Reading UV FITS file: 1357+769_S.edt
! AN table 1: 145 integrations on 105 of 105 possible baselines.
! AN table 2: 55 integrations on 105 of 105 possible baselines.
! AN table 3: 43 integrations on 69 of 78 possible baselines.
! AN table 4: 68 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.324654 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1357+769
! 
! 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 749 lines of history.
! 
! Reading 40396 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 = 7.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 1561 telescope corrections were flagged in sub-array 1.
!  A total of 321 telescope corrections were flagged in sub-array 2.
!  A total of 350 telescope corrections were flagged in sub-array 3.
!  A total of 707 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1561 telescope corrections were flagged in sub-array 1.
!  A total of 321 telescope corrections were flagged in sub-array 2.
!  A total of 350 telescope corrections were flagged in sub-array 3.
!  A total of 707 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1561 telescope corrections were flagged in sub-array 1.
!  A total of 321 telescope corrections were flagged in sub-array 2.
!  A total of 350 telescope corrections were flagged in sub-array 3.
!  A total of 707 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1561 telescope corrections were flagged in sub-array 1.
!  A total of 321 telescope corrections were flagged in sub-array 2.
!  A total of 350 telescope corrections were flagged in sub-array 3.
!  A total of 707 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.313448Jy  sigma=1.541013
! Fit after  self-cal, rms=0.311655Jy  sigma=1.532300
! 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.166 mas, bmaj=2.785 mas, bpa=-20.16 degrees
! Estimated noise=1.42428 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.556526 Jy
! Total flux subtracted in 50 components = 0.556526 Jy
! Clean residual min=-0.015865 max=0.155354 Jy/beam
! Clean residual mean=-0.000016 rms=0.004010 Jy/beam
! Combined flux in latest and established models = 0.556526 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.556526 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244699Jy  sigma=1.201315
! Fit after  self-cal, rms=0.244699Jy  sigma=1.201314
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.121371 Jy
! Total flux subtracted in 50 components = 0.121371 Jy
! Clean residual min=-0.009522 max=0.034816 Jy/beam
! Clean residual mean=-0.000017 rms=0.001971 Jy/beam
! Combined flux in latest and established models = 0.677897 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.677897 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176020Jy  sigma=0.863060
! Fit after  self-cal, rms=0.176018Jy  sigma=0.863048
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0366556 Jy
! Total flux subtracted in 50 components = 0.0366556 Jy
! Clean residual min=-0.009332 max=0.016448 Jy/beam
! Clean residual mean=-0.000018 rms=0.001710 Jy/beam
! Combined flux in latest and established models = 0.714552 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 6 components and 0.714552 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.166477Jy  sigma=0.816007
! Fit after  self-cal, rms=0.166436Jy  sigma=0.815810
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0169291 Jy
! Total flux subtracted in 50 components = 0.0169291 Jy
! Clean residual min=-0.008811 max=0.011491 Jy/beam
! Clean residual mean=-0.000018 rms=0.001633 Jy/beam
! Combined flux in latest and established models = 0.731481 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 13 components and 0.731481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163503Jy  sigma=0.801336
! Fit after  self-cal, rms=0.163469Jy  sigma=0.801166
! 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.741 mas, bmaj=3.312 mas, bpa=-17.54 degrees
! Estimated noise=0.81271 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.0230241 Jy
! Component: 100  -  total flux cleaned = 0.0340983 Jy
! Total flux subtracted in 100 components = 0.0340983 Jy
! Clean residual min=-0.006125 max=0.010414 Jy/beam
! Clean residual mean=-0.000025 rms=0.001396 Jy/beam
! Combined flux in latest and established models = 0.76558 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 23 components and 0.76558 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160679Jy  sigma=0.787400
! Fit after  self-cal, rms=0.160655Jy  sigma=0.787284
! Inverting map 
! Added new window around map position (-4.4, -2.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00970743 Jy
! Component: 100  -  total flux cleaned = 0.0119723 Jy
! Total flux subtracted in 100 components = 0.0119723 Jy
! Clean residual min=-0.005938 max=0.007398 Jy/beam
! Clean residual mean=-0.000102 rms=0.001304 Jy/beam
! Combined flux in latest and established models = 0.777552 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 36 components and 0.777552 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160062Jy  sigma=0.784320
! Fit after  self-cal, rms=0.160019Jy  sigma=0.784115
! 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 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        0.97     GN        0.96     
!   HN        0.99     KK        0.99     KP        1.05     LA        1.01     
!   MK        0.99     NL        0.92     ON        1.02     OV        1.00     
!   PT        0.99     SC        0.94     WF        0.85     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GN        1.01     HN        0.98     
!   KK        1.00     KP        0.92     LA        0.97     MC        0.99     
!   MK        0.98     NL        1.02     NY        0.99     ON        0.98     
!   OV        0.99     PT        0.99     WF        1.03     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.99     GC        1.02     HN        1.01     
!   KK        1.01     KP        0.98     LA        0.98     MK        0.99     
!   NL        1.12     ON        0.97     OV        0.99     PT        0.97     
!   WF        1.04     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.06     FD        1.06     GC        1.06     GN        1.06     
!   HN        1.06     KK        1.02     KP        1.09     LA        1.06     
!   MK        1.07     NL        0.99     ON        1.00*    OV        1.05     
!   PT        1.07     SC        1.05     WF        1.11     
! 
! 
! Correcting IF 2.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        0.98     GN        0.98     
!   HN        1.00     KK        0.98     KP        1.06     LA        1.01     
!   MK        0.96     NL        1.00     ON        0.94     OV        1.01     
!   PT        1.02     SC        0.97     WF        0.98     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GN        1.00     HN        0.98     
!   KK        1.00     KP        0.93     LA        0.98     MC        0.99     
!   MK        0.99     NL        0.94     NY        1.00     ON        1.08     
!   OV        0.98     PT        0.99     WF        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.97     GC        0.97     HN        0.98     
!   KK        1.03     KP        0.99     LA        0.97     MK        0.98     
!   NL        1.03     ON        1.00     OV        0.98     PT        0.98     
!   WF        1.01     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        1.06     GC        1.06     GN        1.05     
!   HN        1.06     KK        1.02     KP        1.09     LA        1.06     
!   MK        1.08     NL        1.06     ON        1.00*    OV        1.05     
!   PT        1.06     SC        1.04     WF        1.05     
! 
! 
! Correcting IF 3.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        0.95     GN        0.97     
!   HN        0.99     KK        1.00     KP        1.03     LA        1.00     
!   MK        0.98     NL        0.99     ON        1.01     OV        1.00     
!   PT        1.00     SC        0.98     WF        0.99     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GN        0.99     HN        0.98     
!   KK        1.00     KP        0.95     LA        0.97     MC        0.99     
!   MK        0.98     NL        0.97     NY        1.00     ON        0.99     
!   OV        1.00     PT        0.98     WF        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.08     HN        1.01     
!   KK        1.00     KP        0.97     LA        0.99     MK        0.99     
!   NL        1.01     ON        0.97     OV        0.98     PT        0.99     
!   WF        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.06     FD        1.06     GC        1.02     GN        1.06     
!   HN        1.05     KK        1.03     KP        1.07     LA        1.06     
!   MK        1.06     NL        1.07     ON        1.00*    OV        1.05     
!   PT        1.06     SC        1.03     WF        1.06     
! 
! 
! Correcting IF 4.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        0.98     GN        0.98     
!   HN        1.00     KK        1.00     KP        1.04     LA        1.00     
!   MK        0.99     NL        0.99     ON        0.88     OV        1.00     
!   PT        1.00     SC        0.99     WF        0.99     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GN        0.99     HN        0.98     
!   KK        1.02     KP        0.96     LA        0.97     MC        1.00     
!   MK        0.99     NL        0.95     NY        1.00     ON        1.20     
!   OV        0.99     PT        0.99     WF        1.00     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        1.02     HN        1.00     
!   KK        1.00     KP        0.98     LA        1.00     MK        0.97     
!   NL        1.05     ON        0.91     OV        0.95     PT        0.99     
!   WF        1.03     
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.06     GC        1.04     GN        1.06     
!   HN        1.06     KK        1.03     KP        1.08     LA        1.04     
!   MK        1.06     NL        1.06     ON        1.00*    OV        1.06     
!   PT        1.05     SC        1.01     WF        1.04     
! 
! 
! Fit before self-cal, rms=0.160019Jy  sigma=0.784115
! Fit after  self-cal, rms=0.150452Jy  sigma=0.741279
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.76 mas, bmaj=3.325 mas, bpa=-16.86 degrees
! Estimated noise=0.816023 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.000445974 Jy
! Component: 100  -  total flux cleaned = 0.00117704 Jy
! Total flux subtracted in 100 components = 0.00117704 Jy
! Clean residual min=-0.003395 max=0.002845 Jy/beam
! Clean residual mean=0.000029 rms=0.000706 Jy/beam
! Combined flux in latest and established models = 0.778729 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 52 components and 0.778729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150387Jy  sigma=0.740976
! Fit after  self-cal, rms=0.150394Jy  sigma=0.740945
! 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.000638185 Jy
! Component: 100  -  total flux cleaned = 0.00118665 Jy
! Total flux subtracted in 100 components = 0.00118665 Jy
! Clean residual min=-0.003371 max=0.002816 Jy/beam
! Clean residual mean=0.000021 rms=0.000702 Jy/beam
! Combined flux in latest and established models = 0.779916 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 57 components and 0.779916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150362Jy  sigma=0.740793
! Fit after  self-cal, rms=0.146613Jy  sigma=0.717985
! Inverting map and beam 
! Estimated beam: bmin=2.76 mas, bmaj=3.323 mas, bpa=-16.64 degrees
! Estimated noise=0.816509 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.000702265 Jy
! Component: 100  -  total flux cleaned = 0.00106764 Jy
! Total flux subtracted in 100 components = 0.00106764 Jy
! Clean residual min=-0.002769 max=0.002385 Jy/beam
! Clean residual mean=0.000045 rms=0.000588 Jy/beam
! Combined flux in latest and established models = 0.780984 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 63 components and 0.780984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146574Jy  sigma=0.717790
! Fit after  self-cal, rms=0.146577Jy  sigma=0.717779
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1357+769_S
! Writing UV FITS file: 1357+769_S.uvf
! Writing 63 model components to file: 1357+769_S.mod
! wwins: Wrote 2 windows to 1357+769_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.76 x 3.323 at -16.64 degrees (North through East)
! Clean map  min=-0.0026281  max=0.72557 Jy/beam
! Writing clean map to FITS file: 1357+769_S.fits
! Writing difmap environment to: 1357+769_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1357+769_Suv.ps/vps,1,2
! Attempting to open device: '1357+769_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1357+769_Sim.ps/vps
! Attempting to open device: '1357+769_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.76 mas, bmaj=3.323 mas, bpa=-16.64 degrees
! Estimated noise=0.816509 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.76 x 3.323 at -16.64 degrees (North through East)
! Clean map  min=-0.0026281  max=0.72557 Jy/beam
quit
! Quitting program
! Log file 1357+769_S.log closed on Fri Oct  2 16:51:28 1998