! Started logfile: 1732+389_S.log on Thu Apr  3 01:22:25 1997
observe 1732+389_S.edt
! Reading UV FITS file: 1732+389_S.edt
! AN table 1: 76 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.859064 visibilities/baseline/integration-bin.
! Found source: 1732+389
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  2.22049e+09         4e+06         4e+06       USB
! 02  2.23049e+09         4e+06         4e+06       USB
! 03  2.29049e+09         4e+06         4e+06       USB
! 04  2.32049e+09         4e+06         4e+06       USB
! 
! Polarization(s): RR
! 
! Read 379 lines of history.
! 
! Reading 11752 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.5
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.500x0.500 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 217 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 162 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 162 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 162 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.164840Jy  sigma=1.015654
! Fit after  self-cal, rms=0.163283Jy  sigma=1.006200
! 
! 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=3.084 mas, bmaj=4.418 mas, bpa=-9.128 degrees
! Estimated noise=1.97297 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.744482 Jy
! Total flux subtracted in 50 components = 0.744482 Jy
! Clean residual min=-0.041769 max=0.207673 Jy/beam
! Clean residual mean=-0.000203 rms=0.009674 Jy/beam
! Combined flux in latest and established models = 0.744482 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.744482 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273541Jy  sigma=1.688431
! Fit after  self-cal, rms=0.273541Jy  sigma=1.688431
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.164245 Jy
! Total flux subtracted in 50 components = 0.164245 Jy
! Clean residual min=-0.018568 max=0.053353 Jy/beam
! Clean residual mean=-0.000082 rms=0.004158 Jy/beam
! Combined flux in latest and established models = 0.908727 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 0.908727 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169980Jy  sigma=1.047633
! Fit after  self-cal, rms=0.169957Jy  sigma=1.047490
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0533613 Jy
! Total flux subtracted in 50 components = 0.0533613 Jy
! Clean residual min=-0.013317 max=0.022204 Jy/beam
! Clean residual mean=-0.000041 rms=0.003073 Jy/beam
! Combined flux in latest and established models = 0.962088 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 8 components and 0.962088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156403Jy  sigma=0.963566
! Fit after  self-cal, rms=0.156324Jy  sigma=0.963078
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0232393 Jy
! Total flux subtracted in 50 components = 0.0232393 Jy
! Clean residual min=-0.012266 max=0.012577 Jy/beam
! Clean residual mean=-0.000024 rms=0.002791 Jy/beam
! Combined flux in latest and established models = 0.985328 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 9 components and 0.985328 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153895Jy  sigma=0.948062
! Fit after  self-cal, rms=0.153854Jy  sigma=0.947806
! 
! 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=3.985 mas, bmaj=5.411 mas, bpa=-6.268 degrees
! Estimated noise=1.18075 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.00920514 Jy
! Component: 100  -  total flux cleaned = 0.00965341 Jy
! Total flux subtracted in 100 components = 0.00965341 Jy
! Clean residual min=-0.007868 max=0.010123 Jy/beam
! Clean residual mean=-0.000060 rms=0.001931 Jy/beam
! Combined flux in latest and established models = 0.994981 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 14 components and 0.994981 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153374Jy  sigma=0.944840
! Fit after  self-cal, rms=0.153356Jy  sigma=0.944729
! 
! 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.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     HN        1.00     KP        0.99     
!   LA        0.98     MK        0.95     NL        1.00*    OV        1.01     
!   PT        0.99     SC        1.04     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     HN        1.00     KP        0.98     
!   LA        1.00     MK        0.93     NL        1.00     OV        0.99     
!   PT        1.00     SC        1.04     
! 
! 
! Correcting IF 3.
!  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.01     KP        0.99     
!   LA        1.00     MK        0.94     NL        1.01     OV        1.00     
!   PT        1.00     SC        1.08     
! 
! 
! 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.02     HN        1.02     KP        1.01     
!   LA        1.00     MK        0.97     NL        1.02     OV        0.98     
!   PT        0.98     SC        1.03     
! 
! 
! Fit before self-cal, rms=0.153356Jy  sigma=0.944729
! Fit after  self-cal, rms=0.150047Jy  sigma=0.923781
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.967 mas, bmaj=5.418 mas, bpa=-7.624 degrees
! Estimated noise=1.1788 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.00210798 Jy
! Component: 100  -  total flux cleaned = -0.0021032 Jy
! Total flux subtracted in 100 components = -0.0021032 Jy
! Clean residual min=-0.006358 max=0.008114 Jy/beam
! Clean residual mean=-0.000047 rms=0.001552 Jy/beam
! Combined flux in latest and established models = 0.992878 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 20 components and 0.992878 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149845Jy  sigma=0.922575
! Fit after  self-cal, rms=0.149836Jy  sigma=0.922496
! 
! 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)
! Added new window around map position (5, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00467349 Jy
! Component: 100  -  total flux cleaned = 0.00526437 Jy
! Total flux subtracted in 100 components = 0.00526437 Jy
! Clean residual min=-0.006127 max=0.005350 Jy/beam
! Clean residual mean=-0.000033 rms=0.001484 Jy/beam
! Combined flux in latest and established models = 0.998142 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 29 components and 0.998142 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149452Jy  sigma=0.920085
! Fit after  self-cal, rms=0.145758Jy  sigma=0.892249
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.965 mas, bmaj=5.402 mas, bpa=-7.087 degrees
! Estimated noise=1.17929 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.00495296 Jy
! Component: 100  -  total flux cleaned = 0.00590497 Jy
! Total flux subtracted in 100 components = 0.00590497 Jy
! Clean residual min=-0.004716 max=0.004187 Jy/beam
! Clean residual mean=0.000006 rms=0.001073 Jy/beam
! Combined flux in latest and established models = 1.00405 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 37 components and 1.00405 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.145600Jy  sigma=0.891221
! Fit after  self-cal, rms=0.145587Jy  sigma=0.891127
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1732+389_S
! Writing UV FITS file: 1732+389_S.uvf
! Writing 37 model components to file: 1732+389_S.mod
! wwins: Wrote 2 windows to 1732+389_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.965 x 5.402 at -7.087 degrees (North through East)
! Clean map  min=-0.0046539  max=0.95849 Jy/beam
! Writing clean map to FITS file: 1732+389_S.fits
! Writing difmap environment to: 1732+389_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1732+389_Suv.ps/vps,1,2
! Attempting to open device: '1732+389_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1732+389_Sim.ps/vps
! Attempting to open device: '1732+389_Sim.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=3.965 mas, bmaj=5.402 mas, bpa=-7.087 degrees
! Estimated noise=1.17929 mJy/beam.
! The new contour levels are:
!  -0.00320706 0.00320706 0.00641411 0.0128282 0.0256565 0.0513129 0.102626 0.205252 0.410503 0.821006 1.64201 3.28403 6.56805 13.1361 26.2722 52.5444 105.089 210.178 420.355 840.711 1681.42 3362.84 6725.68 13451.4
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.965 x 5.402 at -7.087 degrees (North through East)
! Clean map  min=-0.0046539  max=0.95849 Jy/beam
quit
! Quitting program
! Log file 1732+389_S.log closed on Thu Apr  3 01:28:00 1997