! Started logfile: 1954-388_X.log on Tue Oct  7 09:23:02 1997
observe 1954-388_X.edt
! Reading UV FITS file: 1954-388_X.edt
! AN table 1: 8 integrations on 3 of 3 possible baselines.
! AN table 2: 18 integrations on 42 of 45 possible baselines.
! Apparent sampling: 0.624359 visibilities/baseline/integration-bin.
! Found source: 1954-388
! 
! 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.40972e+09      6.5e+06          1      6.5e+06
!  02        2  8.47972e+09      6.5e+06          1      6.5e+06
!  03        3  8.79472e+09      6.5e+06          1      6.5e+06
!  04        4  8.89972e+09      6.5e+06          1      6.5e+06
! 
! Polarization(s): RR
! 
! Read 2187 lines of history.
! 
! Reading 1948 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 = 9.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 9 telescope corrections were flagged in sub-array 1.
!  A total of 65 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  A total of 65 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  A total of 65 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  A total of 65 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.930849Jy  sigma=10.667938
! Fit after  self-cal, rms=1.929340Jy  sigma=10.658546
! 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.6368 mas, bmaj=2.224 mas, bpa=-6.203 degrees
! Estimated noise=4.41295 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 = 2.16603 Jy
! Total flux subtracted in 50 components = 2.16603 Jy
! Clean residual min=-0.173465 max=0.604073 Jy/beam
! Clean residual mean=0.001697 rms=0.055831 Jy/beam
! Combined flux in latest and established models = 2.16603 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 2.16603 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.810792Jy  sigma=4.479612
! Fit after  self-cal, rms=0.810792Jy  sigma=4.479614
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.498878 Jy
! Total flux subtracted in 50 components = 0.498878 Jy
! Clean residual min=-0.085654 max=0.191897 Jy/beam
! Clean residual mean=0.000924 rms=0.026551 Jy/beam
! Combined flux in latest and established models = 2.66491 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 10 components and 2.66491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.414176Jy  sigma=2.290281
! Fit after  self-cal, rms=0.413722Jy  sigma=2.287761
! 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.7694 mas, bmaj=2.873 mas, bpa=-7.219 degrees
! Estimated noise=3.20105 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.284847 Jy
! Component: 100  -  total flux cleaned = 0.411941 Jy
! Total flux subtracted in 100 components = 0.411941 Jy
! Clean residual min=-0.037785 max=0.064242 Jy/beam
! Clean residual mean=0.000634 rms=0.012504 Jy/beam
! Combined flux in latest and established models = 3.07685 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 24 components and 3.07685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189822Jy  sigma=1.050828
! Fit after  self-cal, rms=0.188631Jy  sigma=1.044369
! 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:
!   GN        0.00*    SC        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GN        0.97     KK        0.98     KP        0.97     
!   LA        0.99     MK        0.98     NL        1.03     OV        0.98     
!   PT        0.96     SC        0.98     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   GN        0.00*    SC        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GN        0.97     KK        0.99     KP        0.97     
!   LA        1.00     MK        0.98     NL        1.03     OV        0.99     
!   PT        0.95     SC        1.00     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   GN        0.00*    SC        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.97     GN        1.03     KK        1.00     KP        0.98     
!   LA        1.01     MK        0.99     NL        1.06     OV        1.01     
!   PT        0.97     SC        1.03     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   GN        0.00*    SC        0.00*    WF        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.96     GN        1.01     KK        1.01     KP        1.00     
!   LA        1.02     MK        1.01     NL        1.06     OV        1.06     
!   PT        0.98     SC        1.02     
! 
! 
! Fit before self-cal, rms=0.188631Jy  sigma=1.044369
! Fit after  self-cal, rms=0.118331Jy  sigma=0.657642
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7601 mas, bmaj=2.875 mas, bpa=-7.299 degrees
! Estimated noise=3.1925 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.0290605 Jy
! Component: 100  -  total flux cleaned = 0.0302669 Jy
! Total flux subtracted in 100 components = 0.0302669 Jy
! Clean residual min=-0.017888 max=0.020640 Jy/beam
! Clean residual mean=0.000330 rms=0.004964 Jy/beam
! Combined flux in latest and established models = 3.10712 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 33 components and 3.10712 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110222Jy  sigma=0.612160
! Fit after  self-cal, rms=0.109504Jy  sigma=0.608172
! 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.00455519 Jy
! Component: 100  -  total flux cleaned = 0.0037709 Jy
! Total flux subtracted in 100 components = 0.0037709 Jy
! Clean residual min=-0.017269 max=0.016960 Jy/beam
! Clean residual mean=0.000315 rms=0.004690 Jy/beam
! Combined flux in latest and established models = 3.11089 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 39 components and 3.11089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.107550Jy  sigma=0.597325
! Fit after  self-cal, rms=0.097555Jy  sigma=0.539948
! Inverting map and beam 
! Estimated beam: bmin=0.7589 mas, bmaj=2.875 mas, bpa=-7.281 degrees
! Estimated noise=3.19518 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)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.011519 Jy
! Component: 100  -  total flux cleaned = 0.0127342 Jy
! Total flux subtracted in 100 components = 0.0127342 Jy
! Clean residual min=-0.011380 max=0.015524 Jy/beam
! Clean residual mean=0.000315 rms=0.002865 Jy/beam
! Combined flux in latest and established models = 3.12362 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 43 components and 3.12363 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.094865Jy  sigma=0.524578
! Fit after  self-cal, rms=0.094699Jy  sigma=0.523715
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1954-388_X
! Writing UV FITS file: 1954-388_X.uvf
! Writing 43 model components to file: 1954-388_X.mod
! wwins: Wrote 1 windows to 1954-388_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7589 x 2.875 at -7.281 degrees (North through East)
! Clean map  min=-0.010888  max=2.8339 Jy/beam
! Writing clean map to FITS file: 1954-388_X.fits
! Writing difmap environment to: 1954-388_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1954-388_Xuv.ps/vps,1,2
! Attempting to open device: '1954-388_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1954-388_Xim.ps/vps
! Attempting to open device: '1954-388_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.7589 mas, bmaj=2.875 mas, bpa=-7.281 degrees
! Estimated noise=3.19518 mJy/beam.
! The new contour levels are:
!  -0.0085825 0.0085825 0.017165 0.03433 0.06866 0.13732 0.27464 0.54928 1.09856 2.19712 4.39424 8.78848 17.577 35.1539 70.3079 140.616 281.231 562.463 1124.93 2249.85 4499.7 8999.41 17998.8
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7589 x 2.875 at -7.281 degrees (North through East)
! Clean map  min=-0.010888  max=2.8339 Jy/beam
device 1954-388_Xim_un.ps/vps
! Attempting to open device: '1954-388_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.6226 mas, bmaj=2.203 mas, bpa=-6.314 degrees
! Estimated noise=4.29842 mJy/beam.
! The new contour levels are:
!  -0.0106692 0.0106692 0.0213384 0.0426767 0.0853535 0.170707 0.341414 0.682828 1.36566 2.73131 5.46262 10.9252 21.8505 43.701 87.402 174.804 349.608 699.216 1398.43 2796.86 5593.73 11187.5
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6226 x 2.203 at -6.314 degrees (North through East)
! Clean map  min=-0.012974  max=2.7552 Jy/beam
quit
! Quitting program
! Log file 1954-388_X.log closed on Tue Oct  7 09:25:02 1997