! Started logfile: 2126-158_X.log on Mon Mar  5 12:51:39 2001
observe 2126-158_X.edt
! Reading UV FITS file: 2126-158_X.edt
! AN table 1: 55 integrations on 64 of 78 possible baselines.
! Apparent sampling: 0.358239 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2126-158
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 5578 lines of history.
! 
! Reading 5044 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
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 = 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.100x0.100 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 461 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 471 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 471 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 486 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.423247Jy  sigma=3.008348
! Fit after  self-cal, rms=0.423184Jy  sigma=3.007906
! 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.845 mas, bmaj=2.344 mas, bpa=-0.9854 degrees
! Estimated noise=2.36895 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.446579 Jy
! Total flux subtracted in 50 components = 0.446579 Jy
! Clean residual min=-0.030542 max=0.126409 Jy/beam
! Clean residual mean=0.001050 rms=0.012094 Jy/beam
! Combined flux in latest and established models = 0.446579 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.446579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257035Jy  sigma=1.838588
! Fit after  self-cal, rms=0.257035Jy  sigma=1.838589
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.123739 Jy
! Total flux subtracted in 50 components = 0.123739 Jy
! Clean residual min=-0.020512 max=0.050925 Jy/beam
! Clean residual mean=0.000690 rms=0.006991 Jy/beam
! Combined flux in latest and established models = 0.570319 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 14 components and 0.570319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190953Jy  sigma=1.364320
! Fit after  self-cal, rms=0.190921Jy  sigma=1.364106
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0531153 Jy
! Total flux subtracted in 50 components = 0.0531153 Jy
! Clean residual min=-0.018638 max=0.027201 Jy/beam
! Clean residual mean=0.000540 rms=0.005563 Jy/beam
! Combined flux in latest and established models = 0.623434 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 26 components and 0.623434 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172576Jy  sigma=1.231759
! Fit after  self-cal, rms=0.172526Jy  sigma=1.231400
! 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.052 mas, bmaj=2.816 mas, bpa=-0.8532 degrees
! Estimated noise=1.60591 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.0555351 Jy
! Component: 100  -  total flux cleaned = 0.0866306 Jy
! Total flux subtracted in 100 components = 0.0866306 Jy
! Clean residual min=-0.021410 max=0.024525 Jy/beam
! Clean residual mean=0.000728 rms=0.006967 Jy/beam
! Combined flux in latest and established models = 0.710065 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 48 model components to the UV plane model.
! The established model now contains 70 components and 0.710065 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.155976Jy  sigma=1.110669
! Fit after  self-cal, rms=0.155817Jy  sigma=1.109518
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.99     HN        1.00     KK        1.05     
!   KP        1.05     LA        0.99     MK        1.07     NL        1.07     
!   OV        1.00     PT        0.81     SC        1.06     WF        0.99     
!   GN        1.32     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.00     HN        1.01     KK        1.08     
!   KP        1.05     LA        0.99     MK        0.96     NL        1.06     
!   OV        1.01     PT        0.82     SC        1.04     WF        1.00     
!   GN        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     HN        0.98     KK        1.06     
!   KP        1.04     LA        0.97     MK        1.01     NL        1.04     
!   OV        1.00     PT        0.79     SC        1.02     WF        0.95     
!   GN        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.97     HN        0.97     KK        1.07     
!   KP        1.04     LA        0.96     MK        1.01     NL        1.01     
!   OV        1.00     PT        0.79     SC        1.01     WF        0.93     
!   GN        1.00*    
! 
! 
! Fit before self-cal, rms=0.155817Jy  sigma=1.109518
! Fit after  self-cal, rms=0.133581Jy  sigma=0.967082
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.059 mas, bmaj=2.861 mas, bpa=-1.067 degrees
! Estimated noise=1.57442 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.3, -3.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0126093 Jy
! Component: 100  -  total flux cleaned = 0.0140494 Jy
! Total flux subtracted in 100 components = 0.0140494 Jy
! Clean residual min=-0.006931 max=0.009423 Jy/beam
! Clean residual mean=0.000321 rms=0.002308 Jy/beam
! Combined flux in latest and established models = 0.724114 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 82 components and 0.724114 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132533Jy  sigma=0.958775
! Fit after  self-cal, rms=0.132525Jy  sigma=0.958306
! 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00154898 Jy
! Component: 100  -  total flux cleaned = 0.00166724 Jy
! Total flux subtracted in 100 components = 0.00166724 Jy
! Clean residual min=-0.006825 max=0.009120 Jy/beam
! Clean residual mean=0.000312 rms=0.002273 Jy/beam
! Combined flux in latest and established models = 0.725781 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 93 components and 0.725781 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132394Jy  sigma=0.957333
! Fit after  self-cal, rms=0.128771Jy  sigma=0.912704
! Inverting map and beam 
! Estimated beam: bmin=1.061 mas, bmaj=2.872 mas, bpa=-0.9487 degrees
! Estimated noise=1.58326 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 (-5.5, 7.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00885803 Jy
! Component: 100  -  total flux cleaned = 0.0138103 Jy
! Total flux subtracted in 100 components = 0.0138103 Jy
! Clean residual min=-0.005021 max=0.006583 Jy/beam
! Clean residual mean=0.000249 rms=0.001569 Jy/beam
! Combined flux in latest and established models = 0.739592 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 119 components and 0.739592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.128233Jy  sigma=0.908375
! Fit after  self-cal, rms=0.128212Jy  sigma=0.908238
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2126-158_X
! Writing UV FITS file: 2126-158_X.uvf
! Writing 119 model components to file: 2126-158_X.mod
! wwins: Wrote 3 windows to 2126-158_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.061 x 2.872 at -0.9487 degrees (North through East)
! Clean map  min=-0.0049722  max=0.60558 Jy/beam
! Writing clean map to FITS file: 2126-158_X.fits
! Writing difmap environment to: 2126-158_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2126-158_Xuv.ps/vps,1,2
! Attempting to open device: '2126-158_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
device 2126-158_Xim.ps/vps
! Attempting to open device: '2126-158_Xim.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=1.061 mas, bmaj=2.872 mas, bpa=-0.9487 degrees
! Estimated noise=1.58326 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.061 x 2.872 at -0.9487 degrees (North through East)
! Clean map  min=-0.0049722  max=0.60558 Jy/beam
quit
! Quitting program
! Log file 2126-158_X.log closed on Mon Mar  5 12:51:56 2001