! Started logfile: 2351-154_S.log on Thu Dec 19 11:21:11 2002
observe 2351-154_S.edt
! Reading UV FITS file: 2351-154_S.edt
! AN table 1: 97 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.204553 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2351-154
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 6831 lines of history.
! 
! Reading 9524 visibilities.
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
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.400x0.400 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 1070 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 1070 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 1070 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 1070 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.275654Jy  sigma=1.956842
! Fit after  self-cal, rms=0.275589Jy  sigma=1.956379
! 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=2.245 mas, bmaj=6.771 mas, bpa=-6.671 degrees
! Estimated noise=1.6643 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.572908 Jy
! Total flux subtracted in 50 components = 0.572908 Jy
! Clean residual min=-0.032473 max=0.159809 Jy/beam
! Clean residual mean=-0.000141 rms=0.008575 Jy/beam
! Combined flux in latest and established models = 0.572908 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.572908 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221352Jy  sigma=1.572312
! Fit after  self-cal, rms=0.221352Jy  sigma=1.572312
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.125956 Jy
! Total flux subtracted in 50 components = 0.125956 Jy
! Clean residual min=-0.012235 max=0.039305 Jy/beam
! Clean residual mean=-0.000089 rms=0.003926 Jy/beam
! Combined flux in latest and established models = 0.698864 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.698864 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137906Jy  sigma=0.976675
! Fit after  self-cal, rms=0.137857Jy  sigma=0.976342
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0414655 Jy
! Total flux subtracted in 50 components = 0.0414655 Jy
! Clean residual min=-0.010729 max=0.033312 Jy/beam
! Clean residual mean=-0.000072 rms=0.003160 Jy/beam
! Combined flux in latest and established models = 0.74033 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 17 components and 0.74033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.123376Jy  sigma=0.872650
! Fit after  self-cal, rms=0.123223Jy  sigma=0.871553
! Inverting map 
! Added new window around map position (-4.8, 9.2).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0316244 Jy
! Total flux subtracted in 50 components = 0.0316244 Jy
! Clean residual min=-0.009746 max=0.015294 Jy/beam
! Clean residual mean=-0.000057 rms=0.002583 Jy/beam
! Combined flux in latest and established models = 0.771954 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 28 components and 0.771954 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.114017Jy  sigma=0.805612
! Fit after  self-cal, rms=0.113769Jy  sigma=0.803861
! 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=2.65 mas, bmaj=8.229 mas, bpa=-8.54 degrees
! Estimated noise=1.07555 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.0325987 Jy
! Component: 100  -  total flux cleaned = 0.0533336 Jy
! Total flux subtracted in 100 components = 0.0533336 Jy
! Clean residual min=-0.008540 max=0.011369 Jy/beam
! Clean residual mean=-0.000060 rms=0.002817 Jy/beam
! Combined flux in latest and established models = 0.825288 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 65 model components to the UV plane model.
! The established model now contains 84 components and 0.825288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104614Jy  sigma=0.738104
! Fit after  self-cal, rms=0.104407Jy  sigma=0.736631
! 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 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     GC        1.00*    HN        1.03     
!   KK        1.01     KP        1.08     LA        0.97     MC        1.00*    
!   MK        1.04     NL        0.96     NY        1.00*    OV        0.99     
!   PT        0.97     SC        1.02     WF        0.96     GN        0.95     
! 
! 
! Correcting IF 2.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.00*    HN        1.05     
!   KK        0.99     KP        1.10     LA        0.96     MC        1.00*    
!   MK        1.00     NL        0.96     NY        1.00*    OV        1.00     
!   PT        0.96     SC        1.01     WF        0.98     GN        0.94     
! 
! 
! Correcting IF 3.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.96     GC        1.00*    HN        1.00     
!   KK        1.00     KP        1.04     LA        0.97     MC        1.00*    
!   MK        1.01     NL        0.97     NY        1.00*    OV        0.98     
!   PT        0.97     SC        1.02     WF        0.98     GN        0.96     
! 
! 
! Correcting IF 4.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GC        1.00*    HN        1.02     
!   KK        1.00     KP        1.10     LA        0.96     MC        1.00*    
!   MK        1.02     NL        0.97     NY        1.00*    OV        0.98     
!   PT        0.99     SC        1.01     WF        0.97     GN        0.95     
! 
! 
! Fit before self-cal, rms=0.104407Jy  sigma=0.736631
! Fit after  self-cal, rms=0.096347Jy  sigma=0.687312
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.703 mas, bmaj=8.2 mas, bpa=-8.543 degrees
! Estimated noise=1.07193 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.0117071 Jy
! Component: 100  -  total flux cleaned = 0.0174816 Jy
! Total flux subtracted in 100 components = 0.0174816 Jy
! Clean residual min=-0.004985 max=0.004254 Jy/beam
! Clean residual mean=-0.000020 rms=0.001214 Jy/beam
! Combined flux in latest and established models = 0.842769 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 119 components and 0.842769 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.095130Jy  sigma=0.678293
! Fit after  self-cal, rms=0.095059Jy  sigma=0.677724
! 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.00422272 Jy
! Component: 100  -  total flux cleaned = 0.00600045 Jy
! Total flux subtracted in 100 components = 0.00600045 Jy
! Clean residual min=-0.004847 max=0.003978 Jy/beam
! Clean residual mean=-0.000016 rms=0.001128 Jy/beam
! Combined flux in latest and established models = 0.848769 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 139 components and 0.848769 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.094886Jy  sigma=0.676484
! Fit after  self-cal, rms=0.092830Jy  sigma=0.660000
! Inverting map and beam 
! Estimated beam: bmin=2.701 mas, bmaj=8.201 mas, bpa=-8.518 degrees
! Estimated noise=1.07336 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=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00349915 Jy
! Component: 100  -  total flux cleaned = 0.00444387 Jy
! Total flux subtracted in 100 components = 0.00444387 Jy
! Clean residual min=-0.002993 max=0.002682 Jy/beam
! Clean residual mean=-0.000004 rms=0.000775 Jy/beam
! Combined flux in latest and established models = 0.853213 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 145 components and 0.853213 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092709Jy  sigma=0.659171
! Fit after  self-cal, rms=0.092696Jy  sigma=0.659061
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2351-154_S
! Writing UV FITS file: 2351-154_S.uvf
! Writing 145 model components to file: 2351-154_S.mod
! wwins: Wrote 2 windows to 2351-154_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.701 x 8.201 at -8.518 degrees (North through East)
! Clean map  min=-0.0029678  max=0.73759 Jy/beam
! Writing clean map to FITS file: 2351-154_S.fits
! Writing difmap environment to: 2351-154_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 2351-154_Suv.ps/vps,1,2
! Attempting to open device: '2351-154_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2351-154_Sim.ps/vps
! Attempting to open device: '2351-154_Sim.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=2.701 mas, bmaj=8.201 mas, bpa=-8.518 degrees
! Estimated noise=1.07336 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.701 x 8.201 at -8.518 degrees (North through East)
! Clean map  min=-0.0029678  max=0.73759 Jy/beam
quit
! Quitting program
! Log file 2351-154_S.log closed on Thu Dec 19 11:21:40 2002