! Started logfile: 1936-155_S.log on Thu Apr  3 02:02:46 1997
observe 1936-155_S.edt
! Reading UV FITS file: 1936-155_S.edt
! AN table 1: 45 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.86321 visibilities/baseline/integration-bin.
! Found source: 1936-155
! 
! 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 6992 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 117 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 91 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 91 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 91 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.259035Jy  sigma=1.593133
! Fit after  self-cal, rms=0.258430Jy  sigma=1.589359
! 
! 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=2.637 mas, bmaj=6.74 mas, bpa=-0.6081 degrees
! Estimated noise=2.19962 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.638517 Jy
! Total flux subtracted in 50 components = 0.638517 Jy
! Clean residual min=-0.033431 max=0.178096 Jy/beam
! Clean residual mean=0.000383 rms=0.010983 Jy/beam
! Combined flux in latest and established models = 0.638517 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.638517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281454Jy  sigma=1.730817
! Fit after  self-cal, rms=0.281454Jy  sigma=1.730817
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.142264 Jy
! Total flux subtracted in 50 components = 0.142264 Jy
! Clean residual min=-0.017059 max=0.047663 Jy/beam
! Clean residual mean=0.000184 rms=0.005232 Jy/beam
! Combined flux in latest and established models = 0.780781 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.78078 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207585Jy  sigma=1.274306
! Fit after  self-cal, rms=0.207574Jy  sigma=1.274239
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0470606 Jy
! Total flux subtracted in 50 components = 0.0470606 Jy
! Clean residual min=-0.014988 max=0.020316 Jy/beam
! Clean residual mean=0.000118 rms=0.004218 Jy/beam
! Combined flux in latest and established models = 0.827841 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 12 components and 0.827841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197622Jy  sigma=1.212806
! Fit after  self-cal, rms=0.197605Jy  sigma=1.212703
! 
! 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.387 mas, bmaj=8.097 mas, bpa=0.3985 degrees
! Estimated noise=1.51399 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.025571 Jy
! Component: 100  -  total flux cleaned = 0.0368373 Jy
! Total flux subtracted in 100 components = 0.0368373 Jy
! Clean residual min=-0.013756 max=0.022158 Jy/beam
! Clean residual mean=0.000153 rms=0.003896 Jy/beam
! Combined flux in latest and established models = 0.864678 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 25 components and 0.864679 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194769Jy  sigma=1.195278
! Fit after  self-cal, rms=0.194761Jy  sigma=1.195227
! 
! 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.98     FD        0.97     HN        1.12     KP        0.99     
!   LA        0.96     MK        1.01     NL        1.00     OV        0.98     
!   PT        1.01     SC        1.00     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     HN        1.09     KP        0.93     
!   LA        0.98     MK        0.98     NL        1.00     OV        0.97     
!   PT        1.01     SC        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     HN        1.08     KP        0.99     
!   LA        0.98     MK        0.97     NL        1.02     OV        0.97     
!   PT        1.00     SC        1.02     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     HN        1.12     KP        0.97     
!   LA        0.98     MK        1.00     NL        1.05     OV        0.92     
!   PT        1.00     SC        0.96     
! 
! 
! Fit before self-cal, rms=0.194761Jy  sigma=1.195227
! Fit after  self-cal, rms=0.192154Jy  sigma=1.162398
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.398 mas, bmaj=8.105 mas, bpa=0.7107 degrees
! Estimated noise=1.50565 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.00568655 Jy
! Component: 100  -  total flux cleaned = -0.00603179 Jy
! Total flux subtracted in 100 components = -0.00603179 Jy
! Clean residual min=-0.012343 max=0.013276 Jy/beam
! Clean residual mean=0.000079 rms=0.002812 Jy/beam
! Combined flux in latest and established models = 0.858647 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 31 components and 0.858647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191891Jy  sigma=1.161106
! Fit after  self-cal, rms=0.191899Jy  sigma=1.161061
! 
! 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 = -3.80804e-05 Jy
! Component: 100  -  total flux cleaned = -0.000150104 Jy
! Total flux subtracted in 100 components = -0.000150104 Jy
! Clean residual min=-0.012450 max=0.013114 Jy/beam
! Clean residual mean=0.000080 rms=0.002802 Jy/beam
! Combined flux in latest and established models = 0.858497 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 37 components and 0.858497 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.191825Jy  sigma=1.160689
! Fit after  self-cal, rms=0.188323Jy  sigma=1.116831
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=3.395 mas, bmaj=8.12 mas, bpa=0.6582 degrees
! Estimated noise=1.50528 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.00251725 Jy
! Component: 100  -  total flux cleaned = 0.00259083 Jy
! Total flux subtracted in 100 components = 0.00259083 Jy
! Clean residual min=-0.007621 max=0.007877 Jy/beam
! Clean residual mean=0.000023 rms=0.001751 Jy/beam
! Combined flux in latest and established models = 0.861087 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 41 components and 0.861088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188279Jy  sigma=1.116518
! Fit after  self-cal, rms=0.188285Jy  sigma=1.116481
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1936-155_S
! Writing UV FITS file: 1936-155_S.uvf
! Writing 41 model components to file: 1936-155_S.mod
! wwins: Wrote 1 windows to 1936-155_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.395 x 8.12 at 0.6582 degrees (North through East)
! Clean map  min=-0.007403  max=0.82638 Jy/beam
! Writing clean map to FITS file: 1936-155_S.fits
! Writing difmap environment to: 1936-155_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1936-155_Suv.ps/vps,1,2
! Attempting to open device: '1936-155_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1936-155_Sim.ps/vps
! Attempting to open device: '1936-155_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.395 mas, bmaj=8.12 mas, bpa=0.6582 degrees
! Estimated noise=1.50528 mJy/beam.
! The new contour levels are:
!  -0.00525549 0.00525549 0.010511 0.021022 0.0420439 0.0840878 0.168176 0.336351 0.672702 1.3454 2.69081 5.38162 10.7632 21.5265 43.053 86.1059 172.212 344.424 688.847 1377.69 2755.39 5510.78 11021.6
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.395 x 8.12 at 0.6582 degrees (North through East)
! Clean map  min=-0.007403  max=0.82638 Jy/beam
quit
! Quitting program
! Log file 1936-155_S.log closed on Thu Apr  3 02:08:02 1997