! Started logfile: 1357+769_X.log on Wed Feb 18 20:12:12 1998
observe 1357+769_X.edt
! Reading UV FITS file: 1357+769_X.edt
! AN table 1: 132 integrations on 91 of 91 possible baselines.
! AN table 2: 72 integrations on 91 of 91 possible baselines.
! AN table 3: 67 integrations on 78 of 78 possible baselines.
! AN table 4: 10 integrations on 3 of 3 possible baselines.
! Apparent sampling: 0.371956 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 724 lines of history.
! 
! Reading 35440 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 1112 telescope corrections were flagged in sub-array 1.
!  A total of 467 telescope corrections were flagged in sub-array 2.
!  A total of 542 telescope corrections were flagged in sub-array 3.
!  A total of 21 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1112 telescope corrections were flagged in sub-array 1.
!  A total of 467 telescope corrections were flagged in sub-array 2.
!  A total of 542 telescope corrections were flagged in sub-array 3.
!  A total of 21 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1112 telescope corrections were flagged in sub-array 1.
!  A total of 470 telescope corrections were flagged in sub-array 2.
!  A total of 542 telescope corrections were flagged in sub-array 3.
!  A total of 21 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1112 telescope corrections were flagged in sub-array 1.
!  A total of 467 telescope corrections were flagged in sub-array 2.
!  A total of 542 telescope corrections were flagged in sub-array 3.
!  A total of 21 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.250218Jy  sigma=1.219278
! Fit after  self-cal, rms=0.248790Jy  sigma=1.212565
! 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.6387 mas, bmaj=0.6768 mas, bpa=51.67 degrees
! Estimated noise=1.47844 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.609549 Jy
! Total flux subtracted in 50 components = 0.609549 Jy
! Clean residual min=-0.020080 max=0.170154 Jy/beam
! Clean residual mean=0.000039 rms=0.005141 Jy/beam
! Combined flux in latest and established models = 0.609549 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.609549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245494Jy  sigma=1.197025
! Fit after  self-cal, rms=0.245494Jy  sigma=1.197025
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.132936 Jy
! Total flux subtracted in 50 components = 0.132936 Jy
! Clean residual min=-0.010352 max=0.037294 Jy/beam
! Clean residual mean=0.000027 rms=0.002662 Jy/beam
! Combined flux in latest and established models = 0.742485 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.742485 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163078Jy  sigma=0.794403
! Fit after  self-cal, rms=0.163075Jy  sigma=0.794390
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0359887 Jy
! Total flux subtracted in 50 components = 0.0359887 Jy
! Clean residual min=-0.010269 max=0.016622 Jy/beam
! Clean residual mean=0.000024 rms=0.002420 Jy/beam
! Combined flux in latest and established models = 0.778474 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 13 components and 0.778474 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153200Jy  sigma=0.746069
! Fit after  self-cal, rms=0.153191Jy  sigma=0.746028
! 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.818 mas, bmaj=0.8451 mas, bpa=24.2 degrees
! Estimated noise=0.829687 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.0332223 Jy
! Component: 100  -  total flux cleaned = 0.0505867 Jy
! Total flux subtracted in 100 components = 0.0505867 Jy
! Clean residual min=-0.007402 max=0.013616 Jy/beam
! Clean residual mean=0.000073 rms=0.001937 Jy/beam
! Combined flux in latest and established models = 0.82906 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 45 components and 0.829061 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.146756Jy  sigma=0.714593
! Fit after  self-cal, rms=0.146748Jy  sigma=0.714552
! 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 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        1.01     GN        0.98     
!   HN        1.00     KK        1.16     KP        0.98     LA        0.96     
!   MK        1.01     NL        0.98     ON        0.91     OV        0.97     
!   PT        0.99     WF        0.99     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.96     GC        0.97     GN        0.96     
!   HN        1.06     KK        1.06     KP        0.97     LA        0.98     
!   MK        1.02     NL        0.96     ON        0.92     OV        0.98     
!   PT        0.98     WF        0.97     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        0.99     GN        0.96     
!   HN        1.05     KK        1.15     KP        0.96     LA        0.96     
!   MK        1.05     NL        0.96     OV        0.98     PT        0.98     
!   WF        0.95     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        0.98     GN        1.03     
!   HN        1.01     KK        1.25     KP        0.99     LA        0.97     
!   MK        1.02     NL        0.96     ON        0.92     OV        0.98     
!   PT        0.98     WF        0.99     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        0.97     GN        1.40     
!   HN        1.06     KK        1.03     KP        0.97     LA        0.98     
!   MK        1.02     NL        0.96     ON        0.92     OV        0.98     
!   PT        0.96     WF        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        0.97     GN        1.54     
!   HN        1.05     KK        1.15     KP        0.97     LA        0.96     
!   MK        1.05     NL        0.96     OV        0.98     PT        0.97     
!   WF        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 99 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.98     
!   HN        1.00     KK        1.27     KP        1.00     LA        0.97     
!   MK        1.03     NL        0.97     ON        0.92     OV        0.99     
!   PT        0.99     WF        0.97     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        0.99     GN        0.87     
!   HN        1.08     KK        1.07     KP        0.98     LA        0.99     
!   MK        1.03     NL        0.97     ON        0.90     OV        0.99     
!   PT        0.98     WF        0.96     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        1.01     GN        0.85     
!   HN        1.06     KK        1.29     KP        0.98     LA        0.97     
!   MK        1.06     NL        0.96     OV        0.99     PT        0.98     
!   WF        0.93     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        0.96     GN        0.98     
!   HN        1.00     KK        1.25     KP        1.00     LA        0.98     
!   MK        1.04     NL        0.98     ON        0.90     OV        0.99     
!   PT        0.99     WF        0.99     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        0.96     GN        0.95     
!   HN        1.07     KK        1.10     KP        0.98     LA        0.98     
!   MK        1.04     NL        0.97     ON        0.93     OV        0.98     
!   PT        0.97     WF        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        1.01     GN        0.91     
!   HN        1.04     KK        1.34     KP        0.98     LA        0.98     
!   MK        1.06     NL        0.97     OV        0.98     PT        0.98     
!   WF        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    KK        0.00*    MK        0.00*    
! 
! 
! Fit before self-cal, rms=0.146748Jy  sigma=0.714552
! Fit after  self-cal, rms=0.122408Jy  sigma=0.603337
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8203 mas, bmaj=0.8627 mas, bpa=23.53 degrees
! Estimated noise=0.829532 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.00199889 Jy
! Component: 100  -  total flux cleaned = 0.0020071 Jy
! Total flux subtracted in 100 components = 0.0020071 Jy
! Clean residual min=-0.003159 max=0.004870 Jy/beam
! Clean residual mean=0.000095 rms=0.000688 Jy/beam
! Combined flux in latest and established models = 0.831068 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 50 components and 0.831068 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121988Jy  sigma=0.601237
! Fit after  self-cal, rms=0.122005Jy  sigma=0.601187
! 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 (-1.4, -0.3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00210218 Jy
! Component: 100  -  total flux cleaned = 0.00311929 Jy
! Total flux subtracted in 100 components = 0.00311929 Jy
! Clean residual min=-0.002922 max=0.003074 Jy/beam
! Clean residual mean=0.000066 rms=0.000656 Jy/beam
! Combined flux in latest and established models = 0.834187 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 58 components and 0.834187 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121756Jy  sigma=0.599979
! Fit after  self-cal, rms=0.118272Jy  sigma=0.584473
! Inverting map and beam 
! Estimated beam: bmin=0.8218 mas, bmaj=0.859 mas, bpa=21.34 degrees
! Estimated noise=0.830546 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.00319792 Jy
! Component: 100  -  total flux cleaned = 0.00420407 Jy
! Total flux subtracted in 100 components = 0.00420407 Jy
! Clean residual min=-0.002068 max=0.002424 Jy/beam
! Clean residual mean=0.000036 rms=0.000500 Jy/beam
! Combined flux in latest and established models = 0.838391 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 74 components and 0.838391 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.118189Jy  sigma=0.584037
! Fit after  self-cal, rms=0.118193Jy  sigma=0.584017
! 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 74 model components to file: 1357+769_X.mod
! wwins: Wrote 2 windows to 1357+769_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8218 x 0.859 at 21.34 degrees (North through East)
! Clean map  min=-0.0019334  max=0.79143 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.8218 mas, bmaj=0.859 mas, bpa=21.34 degrees
! Estimated noise=0.830546 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8218 x 0.859 at 21.34 degrees (North through East)
! Clean map  min=-0.0019334  max=0.79143 Jy/beam
quit
! Quitting program
! Log file 1357+769_X.log closed on Wed Feb 18 20:18:38 1998