! Started logfile: 0955+476_X.log on Tue Dec 22 10:40:04 1998
observe 0955+476_X.edt
! Reading UV FITS file: 0955+476_X.edt
! AN table 1: 26 integrations on 78 of 78 possible baselines.
! AN table 2: 233 integrations on 105 of 105 possible baselines.
! AN table 3: 119 integrations on 115 of 120 possible baselines.
! Apparent sampling: 0.354398 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0955+476
! 
! 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 1274 lines of history.
! 
! Reading 56956 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.0
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 146 telescope corrections were flagged in sub-array 1.
!  A total of 2016 telescope corrections were flagged in sub-array 2.
!  A total of 939 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 146 telescope corrections were flagged in sub-array 1.
!  A total of 2016 telescope corrections were flagged in sub-array 2.
!  A total of 1008 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 149 telescope corrections were flagged in sub-array 1.
!  A total of 2015 telescope corrections were flagged in sub-array 2.
!  A total of 1008 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 149 telescope corrections were flagged in sub-array 1.
!  A total of 2015 telescope corrections were flagged in sub-array 2.
!  A total of 1008 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.176900Jy  sigma=0.933763
! Fit after  self-cal, rms=0.175778Jy  sigma=0.928347
! 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.567 mas, bmaj=0.8052 mas, bpa=-10.36 degrees
! Estimated noise=1.10895 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.669669 Jy
! Total flux subtracted in 50 components = 0.669669 Jy
! Clean residual min=-0.020729 max=0.187051 Jy/beam
! Clean residual mean=-0.000076 rms=0.005701 Jy/beam
! Combined flux in latest and established models = 0.669669 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 0.669669 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275719Jy  sigma=1.476681
! Fit after  self-cal, rms=0.275719Jy  sigma=1.476680
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.155069 Jy
! Total flux subtracted in 50 components = 0.155069 Jy
! Clean residual min=-0.013903 max=0.060628 Jy/beam
! Clean residual mean=-0.000043 rms=0.002865 Jy/beam
! Combined flux in latest and established models = 0.824738 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 5 components and 0.824738 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165448Jy  sigma=0.875633
! Fit after  self-cal, rms=0.165447Jy  sigma=0.875627
! Inverting map 
! Added new window around map position (-0.3, 0).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.061007 Jy
! Total flux subtracted in 50 components = 0.061007 Jy
! Clean residual min=-0.012314 max=0.036147 Jy/beam
! Clean residual mean=-0.000030 rms=0.002181 Jy/beam
! Combined flux in latest and established models = 0.885745 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 11 components and 0.885745 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139982Jy  sigma=0.735183
! Fit after  self-cal, rms=0.139840Jy  sigma=0.734370
! Inverting map 
! Added new window around map position (0.4, 0.1).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0353223 Jy
! Total flux subtracted in 50 components = 0.0353223 Jy
! Clean residual min=-0.012055 max=0.023192 Jy/beam
! Clean residual mean=-0.000022 rms=0.001886 Jy/beam
! Combined flux in latest and established models = 0.921068 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 14 components and 0.921068 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131170Jy  sigma=0.686365
! Fit after  self-cal, rms=0.131161Jy  sigma=0.686315
! Inverting map 
! Added new window around map position (-0.2, 0.5).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.022964 Jy
! Total flux subtracted in 50 components = 0.022964 Jy
! Clean residual min=-0.012442 max=0.019411 Jy/beam
! Clean residual mean=-0.000017 rms=0.001753 Jy/beam
! Combined flux in latest and established models = 0.944032 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 15 components and 0.944032 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128034Jy  sigma=0.668997
! Fit after  self-cal, rms=0.127968Jy  sigma=0.668627
! Inverting map 
! Added new window around map position (0.2, -0.6).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0175461 Jy
! Total flux subtracted in 50 components = 0.0175461 Jy
! Clean residual min=-0.012123 max=0.010799 Jy/beam
! Clean residual mean=-0.000013 rms=0.001669 Jy/beam
! Combined flux in latest and established models = 0.961578 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 18 components and 0.961578 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126634Jy  sigma=0.661300
! Fit after  self-cal, rms=0.126628Jy  sigma=0.661269
! 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.7685 mas, bmaj=1.022 mas, bpa=-8.058 degrees
! Estimated noise=0.608698 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.00554244 Jy
! Component: 100  -  total flux cleaned = 0.00574425 Jy
! Total flux subtracted in 100 components = 0.00574425 Jy
! Clean residual min=-0.006575 max=0.008275 Jy/beam
! Clean residual mean=-0.000036 rms=0.001556 Jy/beam
! Combined flux in latest and established models = 0.967322 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 28 components and 0.967322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126239Jy  sigma=0.659118
! Fit after  self-cal, rms=0.126221Jy  sigma=0.659028
! 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        1.00     FD        1.03     GC        0.94     GN        1.02     
!   HN        0.93     KP        1.04     LA        0.99     MC        0.97     
!   NL        1.00     ON        0.94     OV        1.03     SC        1.02     
!   WF        0.94     
! 
!  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.97     GN        1.02     
!   HN        0.98     KK        1.01     KP        1.01     LA        0.98     
!   MC        1.12     NL        1.02     OV        1.01     PT        1.00     
!   SC        1.00     WF        0.98     MK        0.99     
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.01     GC        0.97     GN        1.00     
!   HN        1.13     KK        1.05     KP        0.99     LA        0.95     
!   MC        0.97     NL        1.00     ON        1.00*    OV        1.00     
!   PT        1.00     SC        0.98     WF        0.98     MK        0.99     
! 
! 
! 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        1.03     GC        0.95     GN        0.99     
!   HN        0.93     KP        1.03     LA        0.99     MC        0.97     
!   NL        1.02     ON        0.92     OV        1.04     SC        1.01     
!   WF        0.94     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        0.97     GN        1.01     
!   HN        0.99     KK        1.01     KP        1.01     LA        0.98     
!   MC        1.12     NL        1.02     OV        1.01     PT        1.00     
!   SC        1.00     WF        0.98     MK        0.99     
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00     GC        0.98     GN        0.99     
!   HN        1.13     KK        1.02     KP        1.00     LA        0.94     
!   MC        0.98     NL        1.00     ON        1.00*    OV        1.01     
!   PT        1.00     SC        0.98     WF        0.92     MK        0.92     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.04     GC        0.96     GN        1.01     
!   HN        0.93     KP        1.04     LA        0.98     MC        0.97     
!   NL        0.99     ON        0.92     OV        1.05     SC        1.00     
!   WF        0.93     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        0.98     GN        1.01     
!   HN        0.98     KK        1.03     KP        1.01     LA        0.97     
!   MC        1.13     NL        1.02     OV        1.01     PT        1.00     
!   SC        1.00     WF        0.97     MK        0.99     
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00     GC        0.98     GN        1.01     
!   HN        1.20     KK        1.04     KP        0.99     LA        0.94     
!   MC        0.98     NL        1.00     ON        1.00*    OV        1.01     
!   PT        1.00     SC        0.98     WF        1.00     MK        0.95     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.03     GC        0.99     GN        1.00     
!   HN        0.90     KP        1.02     LA        1.00     MC        0.92     
!   NL        0.99     ON        0.95     OV        1.01     SC        1.01     
!   WF        0.95     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        0.97     GN        1.00     
!   HN        0.98     KK        1.02     KP        1.02     LA        0.97     
!   MC        1.09     NL        1.02     OV        1.00     PT        0.99     
!   SC        0.99     WF        0.97     MK        0.99     
! 
!  A total of 111 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.01     GC        0.98     GN        0.98     
!   HN        1.18     KK        1.04     KP        1.00     LA        0.94     
!   MC        0.95     NL        0.99     ON        1.00*    OV        1.00     
!   PT        1.00     SC        0.98     WF        0.97     MK        0.98     
! 
! 
! Fit before self-cal, rms=0.126221Jy  sigma=0.659028
! Fit after  self-cal, rms=0.119576Jy  sigma=0.617599
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7689 mas, bmaj=1.024 mas, bpa=-7.817 degrees
! Estimated noise=0.612675 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.000628683 Jy
! Component: 100  -  total flux cleaned = 0.000417786 Jy
! Total flux subtracted in 100 components = 0.000417786 Jy
! Clean residual min=-0.004585 max=0.004044 Jy/beam
! Clean residual mean=-0.000016 rms=0.000881 Jy/beam
! Combined flux in latest and established models = 0.96774 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 35 components and 0.96774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119474Jy  sigma=0.617038
! Fit after  self-cal, rms=0.119467Jy  sigma=0.616984
! 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 = 6.63479e-05 Jy
! Component: 100  -  total flux cleaned = -0.00018061 Jy
! Total flux subtracted in 100 components = -0.00018061 Jy
! Clean residual min=-0.004542 max=0.004045 Jy/beam
! Clean residual mean=-0.000016 rms=0.000876 Jy/beam
! Combined flux in latest and established models = 0.967559 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 35 components and 0.967559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119404Jy  sigma=0.616630
! Fit after  self-cal, rms=0.114685Jy  sigma=0.587158
! Inverting map and beam 
! Estimated beam: bmin=0.7693 mas, bmaj=1.026 mas, bpa=-7.687 degrees
! Estimated noise=0.613088 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.9, -0.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00345673 Jy
! Component: 100  -  total flux cleaned = 0.00364104 Jy
! Total flux subtracted in 100 components = 0.00364104 Jy
! Clean residual min=-0.002326 max=0.002118 Jy/beam
! Clean residual mean=-0.000002 rms=0.000414 Jy/beam
! Combined flux in latest and established models = 0.9712 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 44 components and 0.9712 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114569Jy  sigma=0.586512
! Fit after  self-cal, rms=0.114560Jy  sigma=0.586451
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0955+476_X
! Writing UV FITS file: 0955+476_X.uvf
! Writing 44 model components to file: 0955+476_X.mod
! wwins: Wrote 6 windows to 0955+476_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7693 x 1.026 at -7.687 degrees (North through East)
! Clean map  min=-0.001746  max=0.89544 Jy/beam
! Writing clean map to FITS file: 0955+476_X.fits
! Writing difmap environment to: 0955+476_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 0955+476_Xuv.ps/vps,1,2
! Attempting to open device: '0955+476_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 0955+476_Xim.ps/vps
! Attempting to open device: '0955+476_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.7693 mas, bmaj=1.026 mas, bpa=-7.687 degrees
! Estimated noise=0.613088 mJy/beam.
! The new contour levels are:
!  -0.0012468 0.0012468 0.00249361 0.00498721 0.00997442 0.0199488 0.0398977 0.0797954 0.159591 0.319182 0.638363 1.27673 2.55345 5.1069 10.2138 20.4276 40.8552 81.7105 163.421 326.842 653.684 1307.37 2614.74 5229.47 10458.9
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7693 x 1.026 at -7.687 degrees (North through East)
! Clean map  min=-0.001746  max=0.89544 Jy/beam
device 0955+476_Xim_un.ps/vps
! Attempting to open device: '0955+476_Xim_un.ps/vps'
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.
loglevs (imstat(rms)*3),20000,2
! Inverting map and beam 
! Estimated beam: bmin=0.5716 mas, bmaj=0.812 mas, bpa=-10.25 degrees
! Estimated noise=1.12076 mJy/beam.
! The new contour levels are:
!  -0.00239312 0.00239312 0.00478623 0.00957247 0.0191449 0.0382899 0.0765797 0.153159 0.306319 0.612638 1.22528 2.45055 4.9011 9.80221 19.6044 39.2088 78.4176 156.835 313.671 627.341 1254.68 2509.36 5018.73 10037.5
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5716 x 0.812 at -10.25 degrees (North through East)
! Clean map  min=-0.0034723  max=0.86148 Jy/beam
quit
! Quitting program
! Log file 0955+476_X.log closed on Tue Dec 22 10:44:41 1998