! Started logfile: 1538+149_X.log on Mon May 19 09:08:23 1997
observe 1538+149_X.edt
! Reading UV FITS file: 1538+149_X.edt
! AN table 1: 59 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.853107 visibilities/baseline/integration-bin.
! Found source: 1538+149
! 
! Number of spectral-line channels: 1
! 
! IF    Freq (Hz)  Chan BW (Hz)  Full BW (Hz)  Sideband
! 01  8.15049e+09         4e+06         4e+06       USB
! 02  8.23049e+09         4e+06         4e+06       USB
! 03  8.41049e+09         4e+06         4e+06       USB
! 04  8.55049e+09         4e+06         4e+06       USB
! 
! Polarization(s): RR
! 
! Read 351 lines of history.
! 
! Reading 9060 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.2
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.200x0.200 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 119 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 119 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 119 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 119 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.518619Jy  sigma=3.193361
! Fit after  self-cal, rms=0.518629Jy  sigma=3.193533
! 
! 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=0.8215 mas, bmaj=1.63 mas, bpa=-2.83 degrees
! Estimated noise=1.84796 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.375627 Jy
! Total flux subtracted in 50 components = 0.375627 Jy
! Clean residual min=-0.017818 max=0.104774 Jy/beam
! Clean residual mean=0.000084 rms=0.005426 Jy/beam
! Combined flux in latest and established models = 0.375627 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.375627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167654Jy  sigma=1.029896
! Fit after  self-cal, rms=0.167654Jy  sigma=1.029896
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0947592 Jy
! Total flux subtracted in 50 components = 0.0947592 Jy
! Clean residual min=-0.011220 max=0.037524 Jy/beam
! Clean residual mean=0.000032 rms=0.002703 Jy/beam
! Combined flux in latest and established models = 0.470387 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 4 components and 0.470387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.116634Jy  sigma=0.715384
! Fit after  self-cal, rms=0.116569Jy  sigma=0.714978
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0383583 Jy
! Total flux subtracted in 50 components = 0.0383583 Jy
! Clean residual min=-0.009034 max=0.016292 Jy/beam
! Clean residual mean=0.000011 rms=0.001950 Jy/beam
! Combined flux in latest and established models = 0.508745 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 7 components and 0.508745 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106949Jy  sigma=0.655646
! Fit after  self-cal, rms=0.106936Jy  sigma=0.655563
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0162694 Jy
! Total flux subtracted in 50 components = 0.0162694 Jy
! Clean residual min=-0.008507 max=0.008963 Jy/beam
! Clean residual mean=0.000002 rms=0.001782 Jy/beam
! Combined flux in latest and established models = 0.525014 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 8 components and 0.525014 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.105346Jy  sigma=0.645757
! Fit after  self-cal, rms=0.105339Jy  sigma=0.645717
! 
! 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=1.028 mas, bmaj=1.901 mas, bpa=-2.534 degrees
! Estimated noise=1.30104 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.000858763 Jy
! Component: 100  -  total flux cleaned = -0.0012749 Jy
! Total flux subtracted in 100 components = -0.0012749 Jy
! Clean residual min=-0.008028 max=0.007856 Jy/beam
! Clean residual mean=0.000008 rms=0.001515 Jy/beam
! Combined flux in latest and established models = 0.523739 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 13 components and 0.523739 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104828Jy  sigma=0.642552
! Fit after  self-cal, rms=0.104825Jy  sigma=0.642529
! 
! 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        1.01     FD        1.02     HN        0.96     KP        0.98     
!   LA        0.98     MK        0.96     NL        0.98     OV        1.01     
!   PT        0.99     SC        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.02     HN        0.98     KP        0.99     
!   LA        0.97     MK        0.95     NL        0.99     OV        1.00     
!   PT        1.00     SC        0.99     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.02     HN        0.99     KP        1.00     
!   LA        1.00     MK        0.97     NL        1.00     OV        1.01     
!   PT        1.00     SC        1.01     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.02     HN        0.97     KP        1.03     
!   LA        1.01     MK        0.97     NL        0.99     OV        1.01     
!   PT        1.01     SC        0.99     
! 
! 
! Fit before self-cal, rms=0.104825Jy  sigma=0.642529
! Fit after  self-cal, rms=0.102692Jy  sigma=0.636369
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.018 mas, bmaj=1.897 mas, bpa=-3.07 degrees
! Estimated noise=1.29308 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.000639344 Jy
! Component: 100  -  total flux cleaned = -0.000519701 Jy
! Total flux subtracted in 100 components = -0.000519701 Jy
! Clean residual min=-0.006811 max=0.006762 Jy/beam
! Clean residual mean=0.000009 rms=0.001388 Jy/beam
! Combined flux in latest and established models = 0.52322 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 20 components and 0.52322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.102565Jy  sigma=0.635528
! Fit after  self-cal, rms=0.102553Jy  sigma=0.635448
! 
! 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 = -0.000597015 Jy
! Component: 100  -  total flux cleaned = -0.000677817 Jy
! Total flux subtracted in 100 components = -0.000677817 Jy
! Clean residual min=-0.006904 max=0.006816 Jy/beam
! Clean residual mean=0.000009 rms=0.001382 Jy/beam
! Combined flux in latest and established models = 0.522542 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 20 components and 0.522542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.102484Jy  sigma=0.634987
! Fit after  self-cal, rms=0.099414Jy  sigma=0.609801
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=1.022 mas, bmaj=1.894 mas, bpa=-3.201 degrees
! Estimated noise=1.29627 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 (-1.2, 2.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00497468 Jy
! Component: 100  -  total flux cleaned = 0.00710005 Jy
! Total flux subtracted in 100 components = 0.00710005 Jy
! Clean residual min=-0.003939 max=0.004704 Jy/beam
! Clean residual mean=-0.000003 rms=0.000890 Jy/beam
! Combined flux in latest and established models = 0.529642 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 29 components and 0.529642 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.099182Jy  sigma=0.608360
! Fit after  self-cal, rms=0.099170Jy  sigma=0.608255
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (-5.4, 4.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00471059 Jy
! Component: 100  -  total flux cleaned = 0.00779208 Jy
! Total flux subtracted in 100 components = 0.00779208 Jy
! Clean residual min=-0.003576 max=0.003785 Jy/beam
! Clean residual mean=-0.000005 rms=0.000824 Jy/beam
! Combined flux in latest and established models = 0.537434 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 42 components and 0.537434 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098954Jy  sigma=0.606915
! Fit after  self-cal, rms=0.098954Jy  sigma=0.606895
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1538+149_X
! Writing UV FITS file: 1538+149_X.uvf
! Writing 42 model components to file: 1538+149_X.mod
! wwins: Wrote 3 windows to 1538+149_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.022 x 1.894 at -3.201 degrees (North through East)
! Clean map  min=-0.0033301  max=0.48869 Jy/beam
! Writing clean map to FITS file: 1538+149_X.fits
! Writing difmap environment to: 1538+149_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1538+149_Xuv.ps/vps,1,2
! Attempting to open device: '1538+149_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 1538+149_Xim.ps/vps
! Attempting to open device: '1538+149_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=1.022 mas, bmaj=1.894 mas, bpa=-3.201 degrees
! Estimated noise=1.29627 mJy/beam.
! The new contour levels are:
!  -0.00246906 0.00246906 0.00493812 0.00987623 0.0197525 0.0395049 0.0790099 0.15802 0.31604 0.632079 1.26416 2.52832 5.05663 10.1133 20.2265 40.4531 80.9061 161.812 323.624 647.249 1294.5 2589 5177.99 10356
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.022 x 1.894 at -3.201 degrees (North through East)
! Clean map  min=-0.0033301  max=0.48869 Jy/beam
quit
! Quitting program
! Log file 1538+149_X.log closed on Mon May 19 09:13:04 1997