! Started logfile: 1511-100_Q.log on Tue Nov 12 11:30:01 2002
observe 1511-100_Q.edt
! Reading UV FITS file: 1511-100_Q.edt
! AN table 1: 58 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.702299 visibilities/baseline/integration-bin.
! Found source: 1511-100
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  4.29545e+10        8e+06          1        8e+06
!  02        2  4.30345e+10        8e+06          1        8e+06
!  03        3  4.32145e+10        8e+06          1        8e+06
!  04        4  4.33545e+10        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1074 lines of history.
! 
! Reading 7332 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.02
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 8.0
float win_mult
win_mult = 1.8
float solint
solint = 3.6/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.0200x0.0200 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
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 187 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 174 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 171 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 184 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.536429Jy  sigma=3.864635
! Fit after  self-cal, rms=0.535544Jy  sigma=3.861439
! 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.1509 mas, bmaj=0.4103 mas, bpa=-6.436 degrees
! Estimated noise=2.145 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.407677 Jy
! Component: 100  -  total flux cleaned = 0.515153 Jy
! Total flux subtracted in 100 components = 0.515153 Jy
! Clean residual min=-0.032696 max=0.045695 Jy/beam
! Clean residual mean=-0.000038 rms=0.009655 Jy/beam
! Combined flux in latest and established models = 0.515153 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 21 components and 0.515153 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274648Jy  sigma=1.974494
! Fit after  self-cal, rms=0.274471Jy  sigma=1.973194
! 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.1713 mas, bmaj=0.489 mas, bpa=-6.534 degrees
! Estimated noise=1.30162 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0659057 Jy
! Component: 100  -  total flux cleaned = 0.0984399 Jy
! Component: 150  -  total flux cleaned = 0.116925 Jy
! Component: 200  -  total flux cleaned = 0.128231 Jy
! Total flux subtracted in 200 components = 0.128231 Jy
! Clean residual min=-0.018626 max=0.040179 Jy/beam
! Clean residual mean=0.000002 rms=0.006701 Jy/beam
! Combined flux in latest and established models = 0.643384 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 44 model components to the UV plane model.
! The established model now contains 64 components and 0.643384 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259300Jy  sigma=1.862963
! Fit after  self-cal, rms=0.259213Jy  sigma=1.862334
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale false
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1.00387
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.00     HN        1.00     KP        0.94     
!   LA        1.00     MK        1.01     NL        0.93     OV        1.04     
!   PT        0.99     SC        1.00     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.986407
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     HN        1.01     KP        0.97     
!   LA        1.04     MK        1.10     NL        0.89     OV        1.10     
!   PT        0.95     SC        1.05     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.0192
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.02     HN        1.03     KP        0.94     
!   LA        1.00     MK        0.99     NL        0.83     OV        1.11     
!   PT        0.97     SC        0.96     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00601
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.99     HN        1.01     KP        1.01     
!   LA        0.99     MK        1.00     NL        0.87     OV        1.07     
!   PT        0.95     SC        1.00     
! 
! 
! Fit before self-cal, rms=0.259213Jy  sigma=1.862334
! Fit after  self-cal, rms=0.251194Jy  sigma=1.840178
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.1726 mas, bmaj=0.4916 mas, bpa=-6.53 degrees
! Estimated noise=1.30821 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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0047694 Jy
! Component: 100  -  total flux cleaned = 0.00610086 Jy
! Component: 150  -  total flux cleaned = 0.00716631 Jy
! Component: 200  -  total flux cleaned = 0.00779494 Jy
! Total flux subtracted in 200 components = 0.00779494 Jy
! Clean residual min=-0.017495 max=0.037734 Jy/beam
! Clean residual mean=0.000006 rms=0.005894 Jy/beam
! Combined flux in latest and established models = 0.651179 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 72 components and 0.651179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250974Jy  sigma=1.838111
! Fit after  self-cal, rms=0.251018Jy  sigma=1.837766
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
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 (0.76, -0.08).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0361579 Jy
! Component: 100  -  total flux cleaned = 0.0553124 Jy
! Component: 150  -  total flux cleaned = 0.0647051 Jy
! Component: 200  -  total flux cleaned = 0.0680175 Jy
! Total flux subtracted in 200 components = 0.0680175 Jy
! Clean residual min=-0.011595 max=0.015915 Jy/beam
! Clean residual mean=-0.000040 rms=0.003584 Jy/beam
! Combined flux in latest and established models = 0.719197 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 50 model components to the UV plane model.
! The established model now contains 121 components and 0.719197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245824Jy  sigma=1.801317
! Fit after  self-cal, rms=0.242184Jy  sigma=1.763037
! Inverting map and beam 
! Estimated beam: bmin=0.1726 mas, bmaj=0.4918 mas, bpa=-6.706 degrees
! Estimated noise=1.30148 mJy/beam.
doamp = false
solint = solint / (6.0/3.6)
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=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.012067 Jy
! Component: 100  -  total flux cleaned = 0.0195391 Jy
! Component: 150  -  total flux cleaned = 0.0235296 Jy
! Component: 200  -  total flux cleaned = 0.0251653 Jy
! Total flux subtracted in 200 components = 0.0251653 Jy
! Clean residual min=-0.009972 max=0.014356 Jy/beam
! Clean residual mean=-0.000026 rms=0.002895 Jy/beam
! Combined flux in latest and established models = 0.744362 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 139 components and 0.744362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241479Jy  sigma=1.757624
! Fit after  self-cal, rms=0.241436Jy  sigma=1.757063
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1511-100_Q
! Writing UV FITS file: 1511-100_Q.uvf
! Writing 139 model components to file: 1511-100_Q.mod
! wwins: Wrote 2 windows to 1511-100_Q.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.1726 x 0.4918 at -6.706 degrees (North through East)
! Clean map  min=-0.0094932  max=0.52215 Jy/beam
! Writing clean map to FITS file: 1511-100_Q.fits
! Writing difmap environment to: 1511-100_Q.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1511-100_Quv.ps/vps,1,2
! Attempting to open device: '1511-100_Quv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1511-100_Qim.ps/vps
! Attempting to open device: '1511-100_Qim.ps/vps'
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 -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=0.1726 mas, bmaj=0.4918 mas, bpa=-6.706 degrees
! Estimated noise=1.30148 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.1726 x 0.4918 at -6.706 degrees (North through East)
! Clean map  min=-0.0094932  max=0.52215 Jy/beam
quit
! Quitting program
! Log file 1511-100_Q.log closed on Tue Nov 12 11:30:36 2002