! Started logfile: 1739+522_X.log on Wed May  9 15:53:31 2001
observe 1739+522_X.edt
! Reading UV FITS file: 1739+522_X.edt
! AN table 1: 37 integrations on 4 of 6 possible baselines.
! AN table 2: 32 integrations on 3 of 3 possible baselines.
! AN table 3: 72 integrations on 119 of 120 possible baselines.
! AN table 4: 57 integrations on 91 of 91 possible baselines.
! Apparent sampling: 0.247232 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.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 1411 lines of history.
! 
! Reading 13844 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 133 telescope corrections were flagged in sub-array 1.
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  A total of 683 telescope corrections were flagged in sub-array 3.
!  A total of 627 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 136 telescope corrections were flagged in sub-array 1.
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  A total of 684 telescope corrections were flagged in sub-array 3.
!  A total of 627 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 148 telescope corrections were flagged in sub-array 1.
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  A total of 683 telescope corrections were flagged in sub-array 3.
!  A total of 617 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 142 telescope corrections were flagged in sub-array 1.
!  A total of 96 telescope corrections were flagged in sub-array 2.
!  A total of 690 telescope corrections were flagged in sub-array 3.
!  A total of 617 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.727113Jy  sigma=4.196459
! Fit after  self-cal, rms=0.725704Jy  sigma=4.188849
! 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.5554 mas, bmaj=0.7663 mas, bpa=33.67 degrees
! Estimated noise=1.74287 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.13781 Jy
! Total flux subtracted in 50 components = 1.13781 Jy
! Clean residual min=-0.067357 max=0.364527 Jy/beam
! Clean residual mean=0.000109 rms=0.016658 Jy/beam
! Combined flux in latest and established models = 1.13781 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.13781 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.621537Jy  sigma=3.587450
! Fit after  self-cal, rms=0.621524Jy  sigma=3.587367
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.387669 Jy
! Total flux subtracted in 50 components = 0.387669 Jy
! Clean residual min=-0.042147 max=0.172697 Jy/beam
! Clean residual mean=0.000013 rms=0.009343 Jy/beam
! Combined flux in latest and established models = 1.52548 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 9 components and 1.52548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351501Jy  sigma=2.025841
! Fit after  self-cal, rms=0.351387Jy  sigma=2.025167
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.187041 Jy
! Total flux subtracted in 50 components = 0.187041 Jy
! Clean residual min=-0.030624 max=0.084842 Jy/beam
! Clean residual mean=-0.000033 rms=0.006600 Jy/beam
! Combined flux in latest and established models = 1.71252 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 10 components and 1.71252 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248318Jy  sigma=1.425990
! Fit after  self-cal, rms=0.248259Jy  sigma=1.425638
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0965791 Jy
! Total flux subtracted in 50 components = 0.0965791 Jy
! Clean residual min=-0.025013 max=0.050172 Jy/beam
! Clean residual mean=-0.000057 rms=0.005664 Jy/beam
! Combined flux in latest and established models = 1.8091 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 17 components and 1.8091 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212869Jy  sigma=1.218625
! Fit after  self-cal, rms=0.212833Jy  sigma=1.218416
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0616433 Jy
! Total flux subtracted in 50 components = 0.0616433 Jy
! Clean residual min=-0.023233 max=0.033113 Jy/beam
! Clean residual mean=-0.000074 rms=0.005222 Jy/beam
! Combined flux in latest and established models = 1.87074 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 20 components and 1.87074 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198345Jy  sigma=1.132853
! Fit after  self-cal, rms=0.198322Jy  sigma=1.132718
! 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.6506 mas, bmaj=0.9071 mas, bpa=29.47 degrees
! Estimated noise=1.11137 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.0412393 Jy
! Component: 100  -  total flux cleaned = 0.0634861 Jy
! Total flux subtracted in 100 components = 0.0634861 Jy
! Clean residual min=-0.021804 max=0.028768 Jy/beam
! Clean residual mean=-0.000184 rms=0.004503 Jy/beam
! Combined flux in latest and established models = 1.93423 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 37 components and 1.93423 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190722Jy  sigma=1.086941
! Fit after  self-cal, rms=0.190687Jy  sigma=1.086724
! 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 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   KK        0.00*    MC        0.00*    NY        0.00*    ON        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   KK        0.00*    MK        0.00*    ON        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.01     GC        1.00     HN        1.02     
!   KP        0.98     LA        0.99     NL        1.01     OV        0.98     
!   PT        1.00     SC        1.04     KK        1.00     MC        1.21     
!   MK        1.03     NY        0.97     ON        0.95     GN        0.98     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.92     FD        1.12     GC        1.01     HN        0.72     
!   KP        1.07     LA        1.00     NL        0.95     OV        1.06     
!   PT        1.07     SC        0.93     MC        0.92     NY        1.01     
!   ON        0.96     GN        0.85     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   KK        0.00*    MC        0.00*    NY        0.00*    ON        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   KK        0.00*    MK        0.00*    ON        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.01     GC        0.98     HN        1.02     
!   KP        0.98     LA        0.99     NL        1.01     OV        0.98     
!   PT        0.99     SC        1.05     KK        1.00     MC        1.22     
!   MK        1.03     NY        0.98     ON        0.98     GN        0.99     
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        1.11     GC        1.00     HN        0.71     
!   KP        1.09     LA        0.99     NL        0.94     OV        1.07     
!   PT        1.06     SC        0.96     MC        0.94     NY        0.96     
!   ON        1.00     GN        0.86     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   KK        0.00*    MC        0.00*    NY        0.00*    ON        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   KK        0.00*    MK        0.00*    ON        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        0.97     HN        1.02     
!   KP        0.97     LA        0.99     NL        1.01     OV        0.98     
!   PT        0.97     SC        1.06     KK        0.99     MC        1.25     
!   MK        1.04     NY        0.98     ON        1.00     GN        0.96     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.12     GC        1.01     HN        0.74     
!   KP        1.08     LA        0.99     NL        0.96     OV        1.06     
!   PT        1.04     SC        0.96     MC        0.94     NY        1.00     
!   ON        1.01     GN        0.84     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   KK        0.00*    MC        0.00*    NY        0.00*    ON        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   KK        0.00*    MK        0.00*    ON        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        0.97     HN        1.02     
!   KP        0.98     LA        0.98     NL        1.00     OV        0.98     
!   PT        0.97     SC        1.07     KK        1.01     MC        1.28     
!   MK        1.05     NY        0.97     ON        0.97     GN        0.96     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.11     GC        1.01     HN        0.74     
!   KP        1.08     LA        1.00     NL        0.96     OV        1.06     
!   PT        1.03     SC        0.97     MC        0.93     NY        1.00     
!   ON        0.96     GN        0.85     
! 
! 
! Fit before self-cal, rms=0.190687Jy  sigma=1.086724
! Fit after  self-cal, rms=0.151196Jy  sigma=0.847626
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.6634 mas, bmaj=0.9182 mas, bpa=27.98 degrees
! Estimated noise=1.1299 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.000823089 Jy
! Component: 100  -  total flux cleaned = -0.0008476 Jy
! Total flux subtracted in 100 components = -0.0008476 Jy
! Clean residual min=-0.013129 max=0.014671 Jy/beam
! Clean residual mean=-0.000050 rms=0.003030 Jy/beam
! Combined flux in latest and established models = 1.93338 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 42 components and 1.93338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150617Jy  sigma=0.844387
! Fit after  self-cal, rms=0.150598Jy  sigma=0.844225
! 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)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.13704e-05 Jy
! Component: 100  -  total flux cleaned = -8.99789e-05 Jy
! Total flux subtracted in 100 components = -8.99789e-05 Jy
! Clean residual min=-0.013187 max=0.014442 Jy/beam
! Clean residual mean=-0.000050 rms=0.003026 Jy/beam
! Combined flux in latest and established models = 1.93329 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 42 components and 1.93329 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150387Jy  sigma=0.843054
! Fit after  self-cal, rms=0.122763Jy  sigma=0.685066
! Inverting map and beam 
! Estimated beam: bmin=0.6633 mas, bmaj=0.9174 mas, bpa=27.87 degrees
! Estimated noise=1.13117 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.3, 1.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00897033 Jy
! Component: 100  -  total flux cleaned = 0.0128532 Jy
! Total flux subtracted in 100 components = 0.0128532 Jy
! Clean residual min=-0.004288 max=0.005117 Jy/beam
! Clean residual mean=0.000013 rms=0.001028 Jy/beam
! Combined flux in latest and established models = 1.94614 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 55 components and 1.94614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.122111Jy  sigma=0.681487
! Fit after  self-cal, rms=0.122090Jy  sigma=0.681364
! Inverting map 
! Added new window around map position (-1.9, 5.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.003491 Jy
! Component: 100  -  total flux cleaned = 0.00472785 Jy
! Total flux subtracted in 100 components = 0.00472785 Jy
! Clean residual min=-0.004392 max=0.004659 Jy/beam
! Clean residual mean=0.000012 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 1.95087 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 59 components and 1.95087 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121813Jy  sigma=0.679787
! Fit after  self-cal, rms=0.121805Jy  sigma=0.679739
! 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 59 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.6633 x 0.9174 at 27.87 degrees (North through East)
! Clean map  min=-0.0042798  max=1.5487 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.6633 mas, bmaj=0.9174 mas, bpa=27.87 degrees
! Estimated noise=1.13117 mJy/beam.
! The new contour levels are:
!  -0.00299992 0.00299992 0.00599984 0.0119997 0.0239994 0.0479988 0.0959975 0.191995 0.38399 0.76798 1.53596 3.07192 6.14384 12.2877 24.5754 49.1507 98.3015 196.603 393.206 786.412 1572.82 3145.65 6291.29 12582.6
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6633 x 0.9174 at 27.87 degrees (North through East)
! Clean map  min=-0.0042798  max=1.5487 Jy/beam
quit
! Quitting program
! Log file 1739+522_X.log closed on Wed May  9 15:53:58 2001