! Started logfile: 2201+315_X.log on Wed May 29 01:20:39 1996
observe 2201+315_X.edt
! Reading UV FITS file: 2201+315_X.edt
! AN table 1: 111 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.776977 visibilities/baseline/integration-bin.
! Found source: 2201+315
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  8.15049e+09         4e+06         4e+06       USB
! 02  8.23049e+09         4e+06         4e+06       USB
! 03  8.41049e+09         4e+06         4e+06       USB
! 04  8.55049e+09         4e+06         4e+06       USB
! 
! Polarization(s): RR
! 
! Read 515 lines of history.
! 
! Reading 15524 visibilities.
! Selecting polarization: RR,  channels: 1..1
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.2
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.200x0.200 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 258 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 258 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 269 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 258 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.580267Jy  sigma=2.527119
! Fit after  self-cal, rms=0.580104Jy  sigma=2.526392
! 
! Reinstating the default IF.
! 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.8539 mas, bmaj=1.207 mas, bpa=-6.403 degrees
! Estimated noise=2.31683 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.77042 Jy
! Total flux subtracted in 50 components = 0.77042 Jy
! Clean residual min=-0.089916 max=0.342221 Jy/beam
! Clean residual mean=-0.000241 rms=0.020510 Jy/beam
! Combined flux in latest and established models = 0.77042 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.770419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.669694Jy  sigma=2.915772
! Fit after  self-cal, rms=0.669652Jy  sigma=2.915567
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (-1, -1.6).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.329333 Jy
! Total flux subtracted in 50 components = 0.329333 Jy
! Clean residual min=-0.063771 max=0.164068 Jy/beam
! Clean residual mean=-0.000170 rms=0.014253 Jy/beam
! Combined flux in latest and established models = 1.09975 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 10 components and 1.09975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.473676Jy  sigma=2.062036
! Fit after  self-cal, rms=0.465838Jy  sigma=2.027449
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.212446 Jy
! Total flux subtracted in 50 components = 0.212446 Jy
! Clean residual min=-0.042470 max=0.112363 Jy/beam
! Clean residual mean=-0.000125 rms=0.009948 Jy/beam
! Combined flux in latest and established models = 1.3122 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 11 components and 1.3122 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.345050Jy  sigma=1.501437
! Fit after  self-cal, rms=0.343208Jy  sigma=1.493243
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.142673 Jy
! Total flux subtracted in 50 components = 0.142673 Jy
! Clean residual min=-0.030999 max=0.088100 Jy/beam
! Clean residual mean=-0.000095 rms=0.007476 Jy/beam
! Combined flux in latest and established models = 1.45487 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 17 components and 1.45487 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267007Jy  sigma=1.161412
! Fit after  self-cal, rms=0.266159Jy  sigma=1.157604
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (-2, -2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.103488 Jy
! Total flux subtracted in 50 components = 0.103488 Jy
! Clean residual min=-0.022914 max=0.056489 Jy/beam
! Clean residual mean=-0.000073 rms=0.005805 Jy/beam
! Combined flux in latest and established models = 1.55836 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 25 components and 1.55836 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215722Jy  sigma=0.937920
! Fit after  self-cal, rms=0.214556Jy  sigma=0.932740
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0763477 Jy
! Total flux subtracted in 50 components = 0.0763477 Jy
! Clean residual min=-0.017298 max=0.042837 Jy/beam
! Clean residual mean=-0.000056 rms=0.004594 Jy/beam
! Combined flux in latest and established models = 1.63471 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 33 components and 1.63471 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.180372Jy  sigma=0.783838
! Fit after  self-cal, rms=0.179734Jy  sigma=0.780995
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0579893 Jy
! Total flux subtracted in 50 components = 0.0579893 Jy
! Clean residual min=-0.013854 max=0.032951 Jy/beam
! Clean residual mean=-0.000044 rms=0.003737 Jy/beam
! Combined flux in latest and established models = 1.6927 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 39 components and 1.6927 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156393Jy  sigma=0.679311
! Fit after  self-cal, rms=0.155969Jy  sigma=0.677418
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0448374 Jy
! Total flux subtracted in 50 components = 0.0448374 Jy
! Clean residual min=-0.012430 max=0.026084 Jy/beam
! Clean residual mean=-0.000034 rms=0.003118 Jy/beam
! Combined flux in latest and established models = 1.73753 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 47 components and 1.73753 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.140231Jy  sigma=0.608857
! Fit after  self-cal, rms=0.139918Jy  sigma=0.607457
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0352188 Jy
! Total flux subtracted in 50 components = 0.0352188 Jy
! Clean residual min=-0.011132 max=0.021949 Jy/beam
! Clean residual mean=-0.000027 rms=0.002664 Jy/beam
! Combined flux in latest and established models = 1.77275 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 51 components and 1.77275 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129276Jy  sigma=0.561098
! Fit after  self-cal, rms=0.129075Jy  sigma=0.560193
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0281005 Jy
! Total flux subtracted in 50 components = 0.0281005 Jy
! Clean residual min=-0.010133 max=0.018901 Jy/beam
! Clean residual mean=-0.000021 rms=0.002334 Jy/beam
! Combined flux in latest and established models = 1.80085 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 59 components and 1.80085 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.121925Jy  sigma=0.529048
! Fit after  self-cal, rms=0.121786Jy  sigma=0.528420
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (0.2, 1.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0232018 Jy
! Total flux subtracted in 50 components = 0.0232018 Jy
! Clean residual min=-0.009292 max=0.013676 Jy/beam
! Clean residual mean=-0.000016 rms=0.002079 Jy/beam
! Combined flux in latest and established models = 1.82406 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 64 components and 1.82406 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116971Jy  sigma=0.507445
! Fit after  self-cal, rms=0.116915Jy  sigma=0.507194
! 
! Reinstating the default IF.
! 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=1.091 mas, bmaj=1.505 mas, bpa=-3.926 degrees
! Estimated noise=1.42224 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.0294585 Jy
! Component: 100  -  total flux cleaned = 0.0486768 Jy
! Total flux subtracted in 100 components = 0.0486768 Jy
! Clean residual min=-0.007033 max=0.010660 Jy/beam
! Clean residual mean=0.000008 rms=0.001927 Jy/beam
! Combined flux in latest and established models = 1.87273 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 73 components and 1.87273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.109591Jy  sigma=0.475359
! Fit after  self-cal, rms=0.109394Jy  sigma=0.474480
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0146673 Jy
! Component: 100  -  total flux cleaned = 0.0244979 Jy
! Total flux subtracted in 100 components = 0.0244979 Jy
! Clean residual min=-0.006499 max=0.010368 Jy/beam
! Clean residual mean=0.000020 rms=0.001677 Jy/beam
! Combined flux in latest and established models = 1.89723 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 82 components and 1.89723 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.107462Jy  sigma=0.466116
! Fit after  self-cal, rms=0.107372Jy  sigma=0.465713
! 
! Reinstating the default IF.
! 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 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     HN        1.00     KP        0.99     
!   LA        0.99     MK        1.00     NL        0.99     OV        0.99     
!   PT        0.98     SC        1.00     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     HN        1.01     KP        0.99     
!   LA        0.99     MK        0.99     NL        0.99     OV        0.99     
!   PT        0.99     SC        1.00     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     HN        1.01     KP        1.00     
!   LA        1.00     MK        1.00     NL        0.99     OV        0.99     
!   PT        0.99     SC        1.01     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     HN        1.03     KP        1.01     
!   LA        1.01     MK        0.99     NL        1.01     OV        1.00     
!   PT        1.00     SC        1.01     
! 
! 
! Fit before self-cal, rms=0.107372Jy  sigma=0.465713
! Fit after  self-cal, rms=0.104619Jy  sigma=0.454846
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.096 mas, bmaj=1.509 mas, bpa=-4.215 degrees
! Estimated noise=1.4185 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 (-5.2, -6.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.010959 Jy
! Component: 100  -  total flux cleaned = 0.0173188 Jy
! Total flux subtracted in 100 components = 0.0173188 Jy
! Clean residual min=-0.006138 max=0.005603 Jy/beam
! Clean residual mean=0.000022 rms=0.001369 Jy/beam
! Combined flux in latest and established models = 1.91455 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 96 components and 1.91455 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103572Jy  sigma=0.450228
! Fit after  self-cal, rms=0.103540Jy  sigma=0.450081
! 
! Reinstating the default IF.
! 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 = 0.00502682 Jy
! Component: 100  -  total flux cleaned = 0.00806058 Jy
! Total flux subtracted in 100 components = 0.00806058 Jy
! Clean residual min=-0.006006 max=0.005291 Jy/beam
! Clean residual mean=0.000023 rms=0.001324 Jy/beam
! Combined flux in latest and established models = 1.92261 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 100 components and 1.92261 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.103279Jy  sigma=0.448935
! Fit after  self-cal, rms=0.099649Jy  sigma=0.431533
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=1.095 mas, bmaj=1.513 mas, bpa=-3.98 degrees
! Estimated noise=1.41943 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 (-3.2, -2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00370788 Jy
! Component: 100  -  total flux cleaned = 0.00499379 Jy
! Total flux subtracted in 100 components = 0.00499379 Jy
! Clean residual min=-0.004078 max=0.003650 Jy/beam
! Clean residual mean=0.000004 rms=0.000796 Jy/beam
! Combined flux in latest and established models = 1.9276 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 110 components and 1.9276 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099425Jy  sigma=0.430553
! Fit after  self-cal, rms=0.099400Jy  sigma=0.430436
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2201+315_X
! Writing UV FITS file: 2201+315_X.uvf
! Writing 110 model components to file: 2201+315_X.mod
! wwins: Wrote 6 windows to 2201+315_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.095 x 1.513 at -3.98 degrees (North through East)
! Clean map  min=-0.0036019  max=1.0162 Jy/beam
! Writing clean map to FITS file: 2201+315_X.fits
! Writing difmap environment to: 2201+315_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2201+315_Xuv.ps/vps,1,2
! Attempting to open device: '2201+315_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 2201+315_Xim.ps/vps
! Attempting to open device: '2201+315_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=1.095 mas, bmaj=1.513 mas, bpa=-3.98 degrees
! Estimated noise=1.41943 mJy/beam.
! The new contour levels are:
!  -0.00237921 0.00237921 0.00475843 0.00951685 0.0190337 0.0380674 0.0761348 0.15227 0.304539 0.609079 1.21816 2.43631 4.87263 9.74526 19.4905 38.981 77.9621 155.924 311.848 623.696 1247.39 2494.79 4989.57 9979.14 19958.3
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.095 x 1.513 at -3.98 degrees (North through East)
! Clean map  min=-0.0036019  max=1.0162 Jy/beam
quit
! Quitting program
! Log file 2201+315_X.log closed on Wed May 29 01:29:45 1996