! Started logfile: 1739+522_X.log on Fri Jun 23 13:02:03 2000
observe 1739+522_X.edt
! Reading UV FITS file: 1739+522_X.edt
! AN table 1: 22 integrations on 6 of 6 possible baselines.
! AN table 2: 77 integrations on 87 of 91 possible baselines.
! AN table 3: 78 integrations on 119 of 120 possible baselines.
! AN table 4: 11 integrations on 6 of 10 possible baselines.
! Apparent sampling: 0.350949 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1739+522
! 
! 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.40999e+09        8e+06          1        8e+06
!  02        2  8.47999e+09        8e+06          1        8e+06
!  03        3  8.79499e+09        8e+06          1        8e+06
!  04        4  8.89999e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1048 lines of history.
! 
! Reading 22712 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
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
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 = 7.0
float win_mult
win_mult = 1.8
float solint
solint = 4.0/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.
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 23 telescope corrections were flagged in sub-array 1.
!  A total of 331 telescope corrections were flagged in sub-array 2.
!  A total of 775 telescope corrections were flagged in sub-array 3.
!  A total of 37 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  A total of 331 telescope corrections were flagged in sub-array 2.
!  A total of 778 telescope corrections were flagged in sub-array 3.
!  A total of 37 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 26 telescope corrections were flagged in sub-array 1.
!  A total of 337 telescope corrections were flagged in sub-array 2.
!  A total of 779 telescope corrections were flagged in sub-array 3.
!  A total of 40 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  A total of 337 telescope corrections were flagged in sub-array 2.
!  A total of 776 telescope corrections were flagged in sub-array 3.
!  A total of 40 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.670198Jy  sigma=3.898091
! Fit after  self-cal, rms=0.670491Jy  sigma=3.899906
! 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.6228 mas, bmaj=0.8024 mas, bpa=-87.98 degrees
! Estimated noise=1.61169 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 = 1.14154 Jy
! Total flux subtracted in 50 components = 1.14154 Jy
! Clean residual min=-0.055423 max=0.318581 Jy/beam
! Clean residual mean=0.000815 rms=0.015831 Jy/beam
! Combined flux in latest and established models = 1.14154 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1.14154 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.543233Jy  sigma=3.158489
! Fit after  self-cal, rms=0.543233Jy  sigma=3.158490
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.311297 Jy
! Total flux subtracted in 50 components = 0.311297 Jy
! Clean residual min=-0.037909 max=0.132737 Jy/beam
! Clean residual mean=0.000386 rms=0.008349 Jy/beam
! Combined flux in latest and established models = 1.45284 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.45284 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300153Jy  sigma=1.741729
! Fit after  self-cal, rms=0.300126Jy  sigma=1.741594
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.141772 Jy
! Total flux subtracted in 50 components = 0.141772 Jy
! Clean residual min=-0.027492 max=0.069724 Jy/beam
! Clean residual mean=0.000192 rms=0.005802 Jy/beam
! Combined flux in latest and established models = 1.59461 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 20 components and 1.59461 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211595Jy  sigma=1.224469
! Fit after  self-cal, rms=0.211569Jy  sigma=1.224330
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0841546 Jy
! Total flux subtracted in 50 components = 0.0841546 Jy
! Clean residual min=-0.021697 max=0.043927 Jy/beam
! Clean residual mean=0.000077 rms=0.004611 Jy/beam
! Combined flux in latest and established models = 1.67877 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 24 components and 1.67877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171481Jy  sigma=0.989618
! Fit after  self-cal, rms=0.171459Jy  sigma=0.989505
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0537664 Jy
! Total flux subtracted in 50 components = 0.0537664 Jy
! Clean residual min=-0.018326 max=0.028568 Jy/beam
! Clean residual mean=0.000004 rms=0.004032 Jy/beam
! Combined flux in latest and established models = 1.73254 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 1.73254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153131Jy  sigma=0.882075
! Fit after  self-cal, rms=0.153105Jy  sigma=0.881937
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0348661 Jy
! Total flux subtracted in 50 components = 0.0348661 Jy
! Clean residual min=-0.019996 max=0.021475 Jy/beam
! Clean residual mean=-0.000043 rms=0.003763 Jy/beam
! Combined flux in latest and established models = 1.7674 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 30 components and 1.7674 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.145343Jy  sigma=0.836505
! Fit after  self-cal, rms=0.145322Jy  sigma=0.836386
! 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.8524 mas, bmaj=1.071 mas, bpa=-78.48 degrees
! Estimated noise=0.822864 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.028421 Jy
! Component: 100  -  total flux cleaned = 0.0411545 Jy
! Total flux subtracted in 100 components = 0.0411545 Jy
! Clean residual min=-0.017001 max=0.021247 Jy/beam
! Clean residual mean=-0.000309 rms=0.003566 Jy/beam
! Combined flux in latest and established models = 1.80856 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 41 components and 1.80856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.140577Jy  sigma=0.808498
! Fit after  self-cal, rms=0.140542Jy  sigma=0.808303
! 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 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   KK        0.93     MK        0.98     OV        1.01     WF        0.91     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        0.98     GN        1.05     
!   HN        0.99     KP        0.99     LA        1.01     MC        0.97     
!   NL        1.00     ON        1.03     OV        0.99     PT        1.00     
!   SC        1.00     WF        1.00     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.97     GC        1.01     GN        1.05     
!   HN        0.96     KK        0.99     KP        0.98     LA        0.97     
!   MC        1.17     MK        0.98     NL        0.99     ON        0.99     
!   OV        0.99     PT        0.98     SC        1.04     WF        1.03     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    KK        0.00*    MK        0.00*    ON        0.00*    
!   WF        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   KK        0.98     MK        0.95     OV        0.98     WF        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        1.00     GN        1.05     
!   HN        0.99     KP        0.99     LA        1.01     MC        0.98     
!   NL        1.00     ON        1.02     OV        1.00     PT        1.01     
!   SC        0.99     WF        0.98     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.97     GC        1.02     GN        1.06     
!   HN        0.94     KK        1.00     KP        0.99     LA        0.97     
!   MC        1.17     MK        0.98     NL        0.99     ON        1.00     
!   OV        0.98     PT        0.98     SC        1.04     WF        1.03     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    KK        0.00*    MK        0.00*    ON        0.00*    
!   WF        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   KK        0.94     MK        0.98     OV        0.99     WF        0.92     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        1.00     GN        1.05     
!   HN        0.99     KP        0.99     LA        1.01     MC        0.96     
!   NL        1.01     ON        1.00*    OV        1.00     PT        1.01     
!   SC        1.00     WF        0.99     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.96     GC        1.01     GN        1.04     
!   HN        0.95     KK        1.01     KP        0.99     LA        0.97     
!   MC        1.14     MK        0.98     NL        1.01     ON        1.04     
!   OV        0.98     PT        0.98     SC        1.05     WF        1.04     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    KK        0.00*    MK        0.00*    ON        0.00*    
!   WF        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   KK        0.93     MK        0.98     OV        0.99     WF        0.93     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        0.99     GN        1.04     
!   HN        0.99     KP        1.00     LA        1.01     MC        0.97     
!   NL        1.00     ON        1.00*    OV        0.99     PT        1.00     
!   SC        0.98     WF        1.01     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.96     GC        1.00     GN        1.01     
!   HN        0.96     KK        1.02     KP        0.99     LA        0.96     
!   MC        1.18     MK        1.00     NL        0.99     ON        1.04     
!   OV        0.98     PT        0.98     SC        1.03     WF        1.02     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   GC        0.00*    KK        0.00*    MK        0.00*    ON        0.00*    
!   WF        0.00*    
! 
! 
! Fit before self-cal, rms=0.140542Jy  sigma=0.808303
! Fit after  self-cal, rms=0.130026Jy  sigma=0.737621
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8611 mas, bmaj=1.08 mas, bpa=-77.79 degrees
! Estimated noise=0.827198 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.00339988 Jy
! Component: 100  -  total flux cleaned = -0.00307608 Jy
! Total flux subtracted in 100 components = -0.00307608 Jy
! Clean residual min=-0.012720 max=0.015466 Jy/beam
! Clean residual mean=-0.000091 rms=0.002787 Jy/beam
! Combined flux in latest and established models = 1.80548 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 45 components and 1.80548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129185Jy  sigma=0.732515
! Fit after  self-cal, rms=0.129151Jy  sigma=0.732294
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * 1.5
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.7, 2.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0153848 Jy
! Component: 100  -  total flux cleaned = 0.0209706 Jy
! Total flux subtracted in 100 components = 0.0209707 Jy
! Clean residual min=-0.011893 max=0.010177 Jy/beam
! Clean residual mean=-0.000158 rms=0.002516 Jy/beam
! Combined flux in latest and established models = 1.82645 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 59 components and 1.82645 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127438Jy  sigma=0.722490
! Fit after  self-cal, rms=0.116785Jy  sigma=0.658179
! Inverting map and beam 
! Estimated beam: bmin=0.862 mas, bmaj=1.081 mas, bpa=-77.58 degrees
! Estimated noise=0.826863 mJy/beam.
doamp = false
solint = solint / 1.5
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.6, 1.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00624748 Jy
! Component: 100  -  total flux cleaned = 0.0101602 Jy
! Total flux subtracted in 100 components = 0.0101602 Jy
! Clean residual min=-0.002724 max=0.003503 Jy/beam
! Clean residual mean=0.000102 rms=0.000726 Jy/beam
! Combined flux in latest and established models = 1.83661 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 77 components and 1.83661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116453Jy  sigma=0.656343
! Fit after  self-cal, rms=0.116433Jy  sigma=0.656225
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1739+522_X
! Writing UV FITS file: 1739+522_X.uvf
! Writing 77 model components to file: 1739+522_X.mod
! wwins: Wrote 3 windows to 1739+522_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.862 x 1.081 at -77.58 degrees (North through East)
! Clean map  min=-0.0027301  max=1.5866 Jy/beam
! Writing clean map to FITS file: 1739+522_X.fits
! Writing difmap environment to: 1739+522_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1739+522_Xuv.ps/vps,1,2
! Attempting to open device: '1739+522_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1739+522_Xim.ps/vps
! Attempting to open device: '1739+522_Xim.ps/vps'
cmul = 1.0
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 (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.862 mas, bmaj=1.081 mas, bpa=-77.58 degrees
! Estimated noise=0.826863 mJy/beam.
! The new contour levels are:
!  -0.00218531 0.00218531 0.00437061 0.00874123 0.0174825 0.0349649 0.0699298 0.13986 0.279719 0.559438 1.11888 2.23775 4.47551 8.95101 17.902 35.8041 71.6081 143.216 286.432 572.865 1145.73 2291.46 4582.92 9165.84 18331.7
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.862 x 1.081 at -77.58 degrees (North through East)
! Clean map  min=-0.0027301  max=1.5866 Jy/beam
quit
! Quitting program
! Log file 1739+522_X.log closed on Fri Jun 23 13:05:12 2000