! Started logfile: 1738+476_S.log on Mon Apr  1 14:42:37 1996
observe 1738+476_S.edt
! Reading UV FITS file: 1738+476_S.edt
! AN table 1: 110 integrations on 36 of 36 possible baselines.
! Apparent sampling: 0.734343 visibilities/baseline/integration-bin.
! Found source: 1738+476
! 
! 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 526 lines of history.
! 
! Reading 11632 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 248 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 248 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 248 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 248 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.151840Jy  sigma=0.659549
! Fit after  self-cal, rms=0.151730Jy  sigma=0.659099
! 
! 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.354 mas, bmaj=4.862 mas, bpa=-27.25 degrees
! Estimated noise=2.77413 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.789454 Jy
! Total flux subtracted in 50 components = 0.789454 Jy
! Clean residual min=-0.040494 max=0.220224 Jy/beam
! Clean residual mean=-0.000076 rms=0.011509 Jy/beam
! Combined flux in latest and established models = 0.789454 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.789454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290578Jy  sigma=1.266401
! Fit after  self-cal, rms=0.290578Jy  sigma=1.266401
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.176749 Jy
! Total flux subtracted in 50 components = 0.176749 Jy
! Clean residual min=-0.016523 max=0.061293 Jy/beam
! Clean residual mean=-0.000038 rms=0.004464 Jy/beam
! Combined flux in latest and established models = 0.966204 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.966204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163624Jy  sigma=0.711586
! Fit after  self-cal, rms=0.163607Jy  sigma=0.711513
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0629394 Jy
! Total flux subtracted in 50 components = 0.0629394 Jy
! Clean residual min=-0.011182 max=0.026970 Jy/beam
! Clean residual mean=-0.000022 rms=0.002712 Jy/beam
! Combined flux in latest and established models = 1.02914 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 1.02914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139479Jy  sigma=0.605695
! Fit after  self-cal, rms=0.139397Jy  sigma=0.605341
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0288975 Jy
! Total flux subtracted in 50 components = 0.0288975 Jy
! Clean residual min=-0.008859 max=0.013392 Jy/beam
! Clean residual mean=-0.000015 rms=0.002164 Jy/beam
! Combined flux in latest and established models = 1.05804 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 15 components and 1.05804 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.133648Jy  sigma=0.580062
! Fit after  self-cal, rms=0.133608Jy  sigma=0.579886
! 
! 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=4.345 mas, bmaj=5.923 mas, bpa=-27.37 degrees
! Estimated noise=1.61118 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.0198778 Jy
! Component: 100  -  total flux cleaned = 0.0293189 Jy
! Total flux subtracted in 100 components = 0.0293189 Jy
! Clean residual min=-0.004757 max=0.005419 Jy/beam
! Clean residual mean=-0.000017 rms=0.001266 Jy/beam
! Combined flux in latest and established models = 1.08736 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 33 components and 1.08736 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.131085Jy  sigma=0.568783
! Fit after  self-cal, rms=0.131036Jy  sigma=0.568570
! 
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     HN        0.99     KP        0.99     
!   LA        0.99     MK        1.00     NL        0.98     OV        0.99     
!   PT        1.01     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     HN        1.00     KP        0.99     
!   LA        1.00     MK        1.01     NL        0.99     OV        1.00     
!   PT        1.01     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     HN        1.00     KP        0.99     
!   LA        1.00     MK        1.03     NL        0.98     OV        1.00     
!   PT        1.02     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     HN        1.02     KP        1.00     
!   LA        1.01     MK        1.02     NL        0.99     OV        1.01     
!   PT        0.97     
! 
! 
! Fit before self-cal, rms=0.131036Jy  sigma=0.568570
! Fit after  self-cal, rms=0.129624Jy  sigma=0.563026
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.375 mas, bmaj=5.937 mas, bpa=-27.63 degrees
! Estimated noise=1.61113 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.000502703 Jy
! Component: 100  -  total flux cleaned = -6.85804e-05 Jy
! Total flux subtracted in 100 components = -6.85804e-05 Jy
! Clean residual min=-0.004735 max=0.004526 Jy/beam
! Clean residual mean=-0.000013 rms=0.001082 Jy/beam
! Combined flux in latest and established models = 1.08729 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 37 components and 1.08729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129539Jy  sigma=0.562666
! Fit after  self-cal, rms=0.129528Jy  sigma=0.562613
! 
! 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 = -8.00493e-05 Jy
! Component: 100  -  total flux cleaned = -6.44977e-06 Jy
! Total flux subtracted in 100 components = -6.44977e-06 Jy
! Clean residual min=-0.004697 max=0.004469 Jy/beam
! Clean residual mean=-0.000013 rms=0.001073 Jy/beam
! Combined flux in latest and established models = 1.08728 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 40 components and 1.08728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129486Jy  sigma=0.562441
! Fit after  self-cal, rms=0.127184Jy  sigma=0.551233
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=4.377 mas, bmaj=5.941 mas, bpa=-27.33 degrees
! Estimated noise=1.61281 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.000538719 Jy
! Component: 100  -  total flux cleaned = 0.000636942 Jy
! Total flux subtracted in 100 components = 0.000636942 Jy
! Clean residual min=-0.003905 max=0.003724 Jy/beam
! Clean residual mean=-0.000007 rms=0.000869 Jy/beam
! Combined flux in latest and established models = 1.08792 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 45 components and 1.08792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.127151Jy  sigma=0.551089
! Fit after  self-cal, rms=0.127144Jy  sigma=0.551062
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1738+476_S
! Writing UV FITS file: 1738+476_S.uvf
! Writing 45 model components to file: 1738+476_S.mod
! wwins: Wrote 1 windows to 1738+476_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.377 x 5.941 at -27.33 degrees (North through East)
! Clean map  min=-0.0038212  max=1.033 Jy/beam
! Writing clean map to FITS file: 1738+476_S.fits
! Writing difmap environment to: 1738+476_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1738+476_Suv.ps/vps,1,2
! Attempting to open device: '1738+476_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1738+476_Sim.ps/vps
! Attempting to open device: '1738+476_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=4.377 mas, bmaj=5.941 mas, bpa=-27.33 degrees
! Estimated noise=1.61281 mJy/beam.
! The new contour levels are:
!  -0.00260694 0.00260694 0.00521389 0.0104278 0.0208555 0.0417111 0.0834222 0.166844 0.333689 0.667377 1.33475 2.66951 5.33902 10.678 21.3561 42.7122 85.4243 170.849 341.697 683.394 1366.79 2733.58 5467.16 10934.3
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.377 x 5.941 at -27.33 degrees (North through East)
! Clean map  min=-0.0038212  max=1.033 Jy/beam
quit
! Quitting program
! Log file 1738+476_S.log closed on Mon Apr  1 14:44:28 1996