! Started logfile: 2155-152_X.log on Thu May 15 13:57:13 1997
observe 2155-152_X.edt
! Reading UV FITS file: 2155-152_X.edt
! AN table 1: 45 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.802963 visibilities/baseline/integration-bin.
! Found source: 2155-152
! 
! 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 6504 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 = 8.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 100 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 100 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 100 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 100 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.466163Jy  sigma=2.869985
! Fit after  self-cal, rms=0.466218Jy  sigma=2.870508
! 
! 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.7869 mas, bmaj=2.19 mas, bpa=-4.609 degrees
! Estimated noise=2.09016 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.602613 Jy
! Total flux subtracted in 50 components = 0.602613 Jy
! Clean residual min=-0.058782 max=0.233833 Jy/beam
! Clean residual mean=-0.000059 rms=0.020315 Jy/beam
! Combined flux in latest and established models = 0.602613 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.602614 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.488193Jy  sigma=3.000030
! Fit after  self-cal, rms=0.487364Jy  sigma=2.994922
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.252252 Jy
! Total flux subtracted in 50 components = 0.252252 Jy
! Clean residual min=-0.039494 max=0.145961 Jy/beam
! Clean residual mean=-0.000047 rms=0.012819 Jy/beam
! Combined flux in latest and established models = 0.854866 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 11 components and 0.854866 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329018Jy  sigma=2.021663
! Fit after  self-cal, rms=0.328538Jy  sigma=2.018742
! 
! Reinstating the default IF.
! Inverting map 
! Added new window around map position (-1.2, -1.8).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.148545 Jy
! Total flux subtracted in 50 components = 0.148545 Jy
! Clean residual min=-0.031521 max=0.082554 Jy/beam
! Clean residual mean=-0.000046 rms=0.009051 Jy/beam
! Combined flux in latest and established models = 1.00341 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 16 components and 1.00341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247408Jy  sigma=1.520069
! Fit after  self-cal, rms=0.245857Jy  sigma=1.510477
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.093891 Jy
! Total flux subtracted in 50 components = 0.093891 Jy
! Clean residual min=-0.025370 max=0.062296 Jy/beam
! Clean residual mean=-0.000045 rms=0.006986 Jy/beam
! Combined flux in latest and established models = 1.0973 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 29 components and 1.0973 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202129Jy  sigma=1.241661
! Fit after  self-cal, rms=0.201321Jy  sigma=1.236648
! 
! Reinstating the default IF.
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0662625 Jy
! Total flux subtracted in 50 components = 0.0662625 Jy
! Clean residual min=-0.022489 max=0.049185 Jy/beam
! Clean residual mean=-0.000044 rms=0.005686 Jy/beam
! Combined flux in latest and established models = 1.16356 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 39 components and 1.16356 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174866Jy  sigma=1.073977
! Fit after  self-cal, rms=0.174340Jy  sigma=1.070694
! 
! 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=0.9756 mas, bmaj=2.563 mas, bpa=-3.058 degrees
! Estimated noise=1.53283 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.0756622 Jy
! Component: 100  -  total flux cleaned = 0.121456 Jy
! Total flux subtracted in 100 components = 0.121456 Jy
! Clean residual min=-0.016436 max=0.033443 Jy/beam
! Clean residual mean=-0.000070 rms=0.004664 Jy/beam
! Combined flux in latest and established models = 1.28502 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 55 components and 1.28502 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.140898Jy  sigma=0.864918
! Fit after  self-cal, rms=0.139763Jy  sigma=0.857886
! 
! 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.02     FD        0.97     HN        1.01     KP        0.98     
!   LA        0.97     MK        0.98     NL        0.97     OV        0.98     
!   PT        0.91     SC        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.98     HN        1.09     KP        0.98     
!   LA        0.98     MK        0.98     NL        0.99     OV        0.98     
!   PT        0.93     SC        0.99     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     HN        1.03     KP        0.99     
!   LA        0.99     MK        0.99     NL        0.98     OV        0.99     
!   PT        0.94     SC        1.01     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00     HN        1.07     KP        1.00     
!   LA        1.00     MK        0.95     NL        0.97     OV        1.01     
!   PT        0.94     SC        1.01     
! 
! 
! Fit before self-cal, rms=0.139763Jy  sigma=0.857886
! Fit after  self-cal, rms=0.127281Jy  sigma=0.795946
! 
! Reinstating the default IF.
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9791 mas, bmaj=2.581 mas, bpa=-3.206 degrees
! Estimated noise=1.49498 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.0126669 Jy
! Component: 100  -  total flux cleaned = 0.0140815 Jy
! Total flux subtracted in 100 components = 0.0140815 Jy
! Clean residual min=-0.011320 max=0.012319 Jy/beam
! Clean residual mean=-0.000029 rms=0.002534 Jy/beam
! Combined flux in latest and established models = 1.2991 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 61 components and 1.2991 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.125079Jy  sigma=0.782159
! Fit after  self-cal, rms=0.124906Jy  sigma=0.781008
! 
! 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.00195976 Jy
! Component: 100  -  total flux cleaned = 0.00166824 Jy
! Total flux subtracted in 100 components = 0.00166824 Jy
! Clean residual min=-0.011212 max=0.012150 Jy/beam
! Clean residual mean=-0.000029 rms=0.002413 Jy/beam
! Combined flux in latest and established models = 1.30077 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 66 components and 1.30077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.124038Jy  sigma=0.775635
! Fit after  self-cal, rms=0.120103Jy  sigma=0.746350
! 
! Reinstating the default IF.
! Inverting map and beam 
! Estimated beam: bmin=0.975 mas, bmaj=2.571 mas, bpa=-3.36 degrees
! Estimated noise=1.49239 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 (-2.2, -4.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0107015 Jy
! Component: 100  -  total flux cleaned = 0.0121389 Jy
! Total flux subtracted in 100 components = 0.0121389 Jy
! Clean residual min=-0.009254 max=0.007299 Jy/beam
! Clean residual mean=-0.000001 rms=0.001663 Jy/beam
! Combined flux in latest and established models = 1.31291 Jy
! Performing phase self-cal over 0.666667 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 75 components and 1.31291 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119053Jy  sigma=0.739756
! Fit after  self-cal, rms=0.118952Jy  sigma=0.739168
! 
! Reinstating the default IF.
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2155-152_X
! Writing UV FITS file: 2155-152_X.uvf
! Writing 75 model components to file: 2155-152_X.mod
! wwins: Wrote 3 windows to 2155-152_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.975 x 2.571 at -3.36 degrees (North through East)
! Clean map  min=-0.0074644  max=0.6972 Jy/beam
! Writing clean map to FITS file: 2155-152_X.fits
! Writing difmap environment to: 2155-152_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2155-152_Xuv.ps/vps,1,2
! Attempting to open device: '2155-152_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 2155-152_Xim.ps/vps
! Attempting to open device: '2155-152_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.975 mas, bmaj=2.571 mas, bpa=-3.36 degrees
! Estimated noise=1.49239 mJy/beam.
! The new contour levels are:
!  -0.00500759 0.00500759 0.0100152 0.0200304 0.0400607 0.0801215 0.160243 0.320486 0.640972 1.28194 2.56389 5.12777 10.2555 20.5111 41.0222 82.0444 164.089 328.177 656.355 1312.71 2625.42 5250.84 10501.7
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.975 x 2.571 at -3.36 degrees (North through East)
! Clean map  min=-0.0074644  max=0.6972 Jy/beam
quit
! Quitting program
! Log file 2155-152_X.log closed on Thu May 15 13:59:22 1997