! Started logfile: 1357+769_X.log on Thu Oct  1 12:11:55 1998
observe 1357+769_X.edt
! Reading UV FITS file: 1357+769_X.edt
! AN table 1: 173 integrations on 120 of 120 possible baselines.
! AN table 2: 55 integrations on 120 of 120 possible baselines.
! AN table 3: 45 integrations on 91 of 91 possible baselines.
! AN table 4: 83 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.296946 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  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 745 lines of history.
! 
! Reading 49192 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 = 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.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 2089 telescope corrections were flagged in sub-array 1.
!  A total of 374 telescope corrections were flagged in sub-array 2.
!  A total of 394 telescope corrections were flagged in sub-array 3.
!  A total of 980 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2089 telescope corrections were flagged in sub-array 1.
!  A total of 374 telescope corrections were flagged in sub-array 2.
!  A total of 394 telescope corrections were flagged in sub-array 3.
!  A total of 980 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2089 telescope corrections were flagged in sub-array 1.
!  A total of 344 telescope corrections were flagged in sub-array 2.
!  A total of 379 telescope corrections were flagged in sub-array 3.
!  A total of 980 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2077 telescope corrections were flagged in sub-array 1.
!  A total of 341 telescope corrections were flagged in sub-array 2.
!  A total of 380 telescope corrections were flagged in sub-array 3.
!  A total of 980 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.275186Jy  sigma=1.350674
! Fit after  self-cal, rms=0.274654Jy  sigma=1.348357
! 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.5601 mas, bmaj=0.5975 mas, bpa=-12.62 degrees
! Estimated noise=1.3576 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.569307 Jy
! Total flux subtracted in 50 components = 0.569307 Jy
! Clean residual min=-0.014762 max=0.158944 Jy/beam
! Clean residual mean=0.000025 rms=0.003618 Jy/beam
! Combined flux in latest and established models = 0.569307 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.569307 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211556Jy  sigma=1.036765
! Fit after  self-cal, rms=0.211556Jy  sigma=1.036765
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.124159 Jy
! Total flux subtracted in 50 components = 0.124159 Jy
! Clean residual min=-0.006299 max=0.034942 Jy/beam
! Clean residual mean=0.000011 rms=0.001441 Jy/beam
! Combined flux in latest and established models = 0.693466 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.693466 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124693Jy  sigma=0.609763
! Fit after  self-cal, rms=0.124690Jy  sigma=0.609750
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0341733 Jy
! Total flux subtracted in 50 components = 0.0341733 Jy
! Clean residual min=-0.004961 max=0.014526 Jy/beam
! Clean residual mean=0.000007 rms=0.001169 Jy/beam
! Combined flux in latest and established models = 0.727639 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 9 components and 0.727639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.113305Jy  sigma=0.553775
! Fit after  self-cal, rms=0.113301Jy  sigma=0.553752
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.016606 Jy
! Total flux subtracted in 50 components = 0.016606 Jy
! Clean residual min=-0.004722 max=0.008605 Jy/beam
! Clean residual mean=0.000006 rms=0.001101 Jy/beam
! Combined flux in latest and established models = 0.744245 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 17 components and 0.744245 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.109974Jy  sigma=0.537355
! Fit after  self-cal, rms=0.109972Jy  sigma=0.537344
! 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.6917 mas, bmaj=0.7738 mas, bpa=-2.828 degrees
! Estimated noise=0.753639 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.0196107 Jy
! Component: 100  -  total flux cleaned = 0.0297769 Jy
! Total flux subtracted in 100 components = 0.0297769 Jy
! Clean residual min=-0.003152 max=0.006531 Jy/beam
! Clean residual mean=0.000144 rms=0.000825 Jy/beam
! Combined flux in latest and established models = 0.774022 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 39 components and 0.774022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106881Jy  sigma=0.522038
! Fit after  self-cal, rms=0.106871Jy  sigma=0.521988
! Inverting map 
! Added new window around map position (-2.1, 0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00720259 Jy
! Component: 100  -  total flux cleaned = 0.0120483 Jy
! Total flux subtracted in 100 components = 0.0120483 Jy
! Clean residual min=-0.003079 max=0.004781 Jy/beam
! Clean residual mean=0.000077 rms=0.000738 Jy/beam
! Combined flux in latest and established models = 0.78607 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 56 components and 0.78607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106402Jy  sigma=0.519641
! Fit after  self-cal, rms=0.106380Jy  sigma=0.519535
! 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 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.04     GC        1.00     GN        0.97     
!   HN        1.02     KK        1.00     KP        1.02     LA        1.00     
!   MC        0.92     MK        1.03     NL        1.01     ON        1.00     
!   OV        1.02     PT        1.03     SC        1.04     WF        0.98     
! 
!  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     GC        1.00*    GN        0.99     
!   HN        1.00     KK        1.03     KP        0.98     LA        1.00     
!   MC        1.02     MK        0.96     NL        1.02     NY        1.00     
!   ON        1.00     OV        0.99     PT        0.98     WF        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        0.98     HN        1.01     
!   KK        1.02     KP        0.99     LA        0.98     MC        1.04     
!   MK        1.03     NL        0.96     ON        1.03     OV        0.99     
!   PT        0.97     WF        1.01     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.98     GC        1.01     GN        1.03     
!   HN        0.99     KK        0.97     KP        1.00     LA        1.01     
!   MC        1.05     MK        1.00     NL        1.00     ON        1.00*    
!   OV        0.99     PT        1.00     SC        0.96     WF        1.02     
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.99     GC        0.99     GN        0.98     
!   HN        1.01     KK        1.01     KP        1.00     LA        1.00     
!   MC        0.98     MK        1.02     NL        1.00     ON        1.01     
!   OV        1.00     PT        1.01     SC        1.02     WF        0.99     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        1.00*    GN        1.00     
!   HN        0.99     KK        1.03     KP        0.98     LA        1.00     
!   MC        0.99     MK        0.96     NL        1.01     NY        1.01     
!   ON        1.02     OV        0.98     PT        0.99     WF        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.02     HN        1.00     
!   KK        1.01     KP        0.99     LA        0.99     MC        1.02     
!   MK        1.03     NL        0.96     ON        1.01     OV        0.99     
!   PT        0.98     WF        1.00     
! 
!  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        1.01     
!   HN        0.99     KK        0.97     KP        1.00     LA        1.01     
!   MC        1.04     MK        1.01     NL        1.00     ON        1.00*    
!   OV        1.01     PT        1.00     SC        0.99     WF        1.02     
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00     GC        0.99     GN        0.98     
!   HN        1.01     KK        1.02     KP        1.00     LA        1.00     
!   MC        0.98     MK        1.01     NL        1.00     ON        0.99     
!   OV        1.01     PT        1.01     SC        1.01     WF        0.99     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        0.98     GN        1.00     
!   HN        0.99     KK        1.03     KP        0.99     LA        0.99     
!   MC        0.99     MK        0.95     NL        1.02     NY        1.00     
!   ON        1.03     OV        0.99     PT        0.99     WF        1.00     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.03     HN        1.01     
!   KK        1.01     KP        0.98     LA        0.99     MC        1.01     
!   MK        1.03     NL        0.97     ON        0.99     OV        1.01     
!   PT        0.99     WF        0.99     
! 
!  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        1.01     GN        1.03     
!   HN        0.99     KK        0.96     KP        0.99     LA        1.00     
!   MC        1.04     MK        1.00     NL        0.99     ON        1.00*    
!   OV        1.00     PT        1.02     SC        0.99     WF        1.02     
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.99     GC        1.02     GN        0.98     
!   HN        1.01     KK        1.02     KP        1.01     LA        1.00     
!   MC        0.98     MK        1.02     NL        0.99     ON        1.01     
!   OV        1.00     PT        1.01     SC        1.00     WF        0.99     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        1.00     GN        1.00     
!   HN        0.99     KK        1.01     KP        0.99     LA        1.00     
!   MC        0.99     MK        0.96     NL        1.03     NY        1.00     
!   ON        1.01     OV        0.99     PT        0.99     WF        1.01     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GC        1.02     HN        1.00     
!   KK        1.01     KP        1.00     LA        0.99     MC        1.00     
!   MK        1.04     NL        0.97     ON        1.01     OV        0.99     
!   PT        0.99     WF        1.00     
! 
!  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        1.03     GN        1.02     
!   HN        0.98     KK        0.97     KP        1.00     LA        1.00     
!   MC        1.05     MK        1.01     NL        0.99     ON        1.00*    
!   OV        1.00     PT        1.01     SC        1.00     WF        1.02     
! 
! 
! Fit before self-cal, rms=0.106380Jy  sigma=0.519535
! Fit after  self-cal, rms=0.104176Jy  sigma=0.507601
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6931 mas, bmaj=0.7795 mas, bpa=-3.179 degrees
! Estimated noise=0.755243 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.00364207 Jy
! Component: 100  -  total flux cleaned = 0.00508475 Jy
! Total flux subtracted in 100 components = 0.00508475 Jy
! Clean residual min=-0.002355 max=0.003014 Jy/beam
! Clean residual mean=0.000067 rms=0.000562 Jy/beam
! Combined flux in latest and established models = 0.791155 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 64 components and 0.791155 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104062Jy  sigma=0.507002
! Fit after  self-cal, rms=0.104059Jy  sigma=0.506981
! 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.000783878 Jy
! Component: 100  -  total flux cleaned = 0.00122656 Jy
! Total flux subtracted in 100 components = 0.00122656 Jy
! Clean residual min=-0.002343 max=0.002936 Jy/beam
! Clean residual mean=0.000060 rms=0.000559 Jy/beam
! Combined flux in latest and established models = 0.792382 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 73 components and 0.792382 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104029Jy  sigma=0.506822
! Fit after  self-cal, rms=0.099175Jy  sigma=0.481381
! Inverting map and beam 
! Estimated beam: bmin=0.6935 mas, bmaj=0.7781 mas, bpa=-3.504 degrees
! Estimated noise=0.756079 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 (-0.9, -1.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00281459 Jy
! Component: 100  -  total flux cleaned = 0.00371582 Jy
! Total flux subtracted in 100 components = 0.00371582 Jy
! Clean residual min=-0.001507 max=0.001544 Jy/beam
! Clean residual mean=0.000061 rms=0.000369 Jy/beam
! Combined flux in latest and established models = 0.796097 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 93 components and 0.796097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099099Jy  sigma=0.480996
! Fit after  self-cal, rms=0.099097Jy  sigma=0.480978
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1357+769_X
! Writing UV FITS file: 1357+769_X.uvf
! Writing 93 model components to file: 1357+769_X.mod
! wwins: Wrote 3 windows to 1357+769_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6935 x 0.7781 at -3.504 degrees (North through East)
! Clean map  min=-0.0014195  max=0.74254 Jy/beam
! Writing clean map to FITS file: 1357+769_X.fits
! Writing difmap environment to: 1357+769_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1357+769_Xuv.ps/vps,1,2
! Attempting to open device: '1357+769_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1357+769_Xim.ps/vps
! Attempting to open device: '1357+769_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.6935 mas, bmaj=0.7781 mas, bpa=-3.504 degrees
! Estimated noise=0.756079 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6935 x 0.7781 at -3.504 degrees (North through East)
! Clean map  min=-0.0014195  max=0.74254 Jy/beam
quit
! Quitting program
! Log file 1357+769_X.log closed on Thu Oct  1 12:21:34 1998