! Started logfile: 2131-021_K.log on Fri Nov 22 14:27:41 2002
observe 2131-021_K.edt
! Reading UV FITS file: 2131-021_K.edt
! AN table 1: 43 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.942119 visibilities/baseline/integration-bin.
! Found source: 2131-021
! 
! 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  2.42542e+10      7.5e+06          1      7.5e+06
!  02        2  2.43342e+10      7.5e+06          1      7.5e+06
!  03        3  2.45142e+10      7.5e+06          1      7.5e+06
!  04        4  2.46542e+10      7.5e+06          1      7.5e+06
! 
! Polarization(s): RR
! 
! Read 1280 lines of history.
! 
! Reading 7292 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.03
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.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.0300x0.0300 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 19 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 19 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 19 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.526924Jy  sigma=3.539478
! Fit after  self-cal, rms=0.526209Jy  sigma=3.536245
! 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.2495 mas, bmaj=0.6177 mas, bpa=-0.491 degrees
! Estimated noise=2.14789 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.543152 Jy
! Component: 100  -  total flux cleaned = 0.739236 Jy
! Total flux subtracted in 100 components = 0.739236 Jy
! Clean residual min=-0.068069 max=0.166797 Jy/beam
! Clean residual mean=0.001404 rms=0.021701 Jy/beam
! Combined flux in latest and established models = 0.739236 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 0.739236 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.461931Jy  sigma=3.091479
! Fit after  self-cal, rms=0.460835Jy  sigma=3.084158
! Inverting map 
! Added new window around map position (0.39, -0.03).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.181908 Jy
! Component: 100  -  total flux cleaned = 0.294894 Jy
! Total flux subtracted in 100 components = 0.294894 Jy
! Clean residual min=-0.058147 max=0.101185 Jy/beam
! Clean residual mean=0.000946 rms=0.015115 Jy/beam
! Combined flux in latest and established models = 1.03413 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 43 components and 1.03413 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344723Jy  sigma=2.301068
! Fit after  self-cal, rms=0.336373Jy  sigma=2.244548
! Inverting map 
! Added new window around map position (0.72, -0.15).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.111845 Jy
! Component: 100  -  total flux cleaned = 0.181978 Jy
! Total flux subtracted in 100 components = 0.181978 Jy
! Clean residual min=-0.039912 max=0.060705 Jy/beam
! Clean residual mean=0.000648 rms=0.010234 Jy/beam
! Combined flux in latest and established models = 1.21611 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 68 components and 1.21611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276138Jy  sigma=1.835371
! Fit after  self-cal, rms=0.272968Jy  sigma=1.814608
! 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.2958 mas, bmaj=0.7175 mas, bpa=-3.435 degrees
! Estimated noise=1.26964 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.0936033 Jy
! Component: 100  -  total flux cleaned = 0.154964 Jy
! Component: 150  -  total flux cleaned = 0.199621 Jy
! Component: 200  -  total flux cleaned = 0.233924 Jy
! Total flux subtracted in 200 components = 0.233924 Jy
! Clean residual min=-0.041606 max=0.049062 Jy/beam
! Clean residual mean=0.000352 rms=0.009511 Jy/beam
! Combined flux in latest and established models = 1.45003 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 100 model components to the UV plane model.
! The established model now contains 159 components and 1.45003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231271Jy  sigma=1.530479
! Fit after  self-cal, rms=0.229377Jy  sigma=1.518354
! 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.00034
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        0.96     HN        1.21     KP        0.81     
!   LA        0.92     MK        0.91     NL        1.05     OV        1.05     
!   PT        0.96     SC        1.05     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00981
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     HN        1.17     KP        0.83     
!   LA        0.94     MK        0.97     NL        1.00     OV        1.01     
!   PT        0.99     SC        1.03     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.01387
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.03     HN        1.07     KP        0.94     
!   LA        0.96     MK        1.05     NL        1.05     OV        0.98     
!   PT        0.84     SC        0.96     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.964366
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.10     HN        1.03     KP        1.04     
!   LA        0.98     MK        1.12     NL        1.12     OV        1.03     
!   PT        1.01     SC        0.94     
! 
! 
! Fit before self-cal, rms=0.229377Jy  sigma=1.518354
! Fit after  self-cal, rms=0.199914Jy  sigma=1.329003
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.299 mas, bmaj=0.7218 mas, bpa=-2.951 degrees
! Estimated noise=1.25501 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.00321437 Jy
! Component: 100  -  total flux cleaned = 0.00401912 Jy
! Component: 150  -  total flux cleaned = 0.00435834 Jy
! Component: 200  -  total flux cleaned = 0.004369 Jy
! Total flux subtracted in 200 components = 0.004369 Jy
! Clean residual min=-0.018592 max=0.026570 Jy/beam
! Clean residual mean=0.000092 rms=0.005997 Jy/beam
! Combined flux in latest and established models = 1.4544 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 183 components and 1.4544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198458Jy  sigma=1.316890
! Fit after  self-cal, rms=0.198285Jy  sigma=1.315732
! 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)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000940303 Jy
! Component: 100  -  total flux cleaned = 0.00139011 Jy
! Component: 150  -  total flux cleaned = 0.00139166 Jy
! Component: 200  -  total flux cleaned = 0.00121148 Jy
! Total flux subtracted in 200 components = 0.00121148 Jy
! Clean residual min=-0.019196 max=0.026233 Jy/beam
! Clean residual mean=0.000089 rms=0.005929 Jy/beam
! Combined flux in latest and established models = 1.45561 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 200 components and 1.45561 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197907Jy  sigma=1.312530
! Fit after  self-cal, rms=0.186305Jy  sigma=1.176818
! Inverting map and beam 
! Estimated beam: bmin=0.2978 mas, bmaj=0.7227 mas, bpa=-2.755 degrees
! Estimated noise=1.25207 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)
! Added new window around map position (1.41, -0.18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0256219 Jy
! Component: 100  -  total flux cleaned = 0.038713 Jy
! Component: 150  -  total flux cleaned = 0.0454954 Jy
! Component: 200  -  total flux cleaned = 0.0482825 Jy
! Total flux subtracted in 200 components = 0.0482825 Jy
! Clean residual min=-0.012618 max=0.012425 Jy/beam
! Clean residual mean=-0.000020 rms=0.003046 Jy/beam
! Combined flux in latest and established models = 1.50389 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 232 components and 1.50389 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.182538Jy  sigma=1.146573
! Fit after  self-cal, rms=0.182266Jy  sigma=1.143972
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2131-021_K
! Writing UV FITS file: 2131-021_K.uvf
! Writing 232 model components to file: 2131-021_K.mod
! wwins: Wrote 4 windows to 2131-021_K.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2978 x 0.7227 at -2.755 degrees (North through East)
! Clean map  min=-0.013432  max=0.70205 Jy/beam
! Writing clean map to FITS file: 2131-021_K.fits
! Writing difmap environment to: 2131-021_K.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2131-021_Kuv.ps/vps,1,2
! Attempting to open device: '2131-021_Kuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2131-021_Kim.ps/vps
! Attempting to open device: '2131-021_Kim.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.2978 mas, bmaj=0.7227 mas, bpa=-2.755 degrees
! Estimated noise=1.25207 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.2978 x 0.7227 at -2.755 degrees (North through East)
! Clean map  min=-0.013432  max=0.70205 Jy/beam
quit
! Quitting program
! Log file 2131-021_K.log closed on Fri Nov 22 14:28:07 2002