! Started logfile: 1954-388_S.log on Tue Nov 26 16:48:01 2002
observe 1954-388_S.edt
! Reading UV FITS file: 1954-388_S.edt
! AN table 1: 18 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0643519 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1954-388
! 
! 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 6827 lines of history.
! 
! Reading 556 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 250 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 250 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 250 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 250 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.833878Jy  sigma=5.314475
! Fit after  self-cal, rms=0.833878Jy  sigma=5.314474
! 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=3.732 mas, bmaj=16.78 mas, bpa=-8.948 degrees
! Estimated noise=6.23094 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 = 1.40648 Jy
! Total flux subtracted in 50 components = 1.40648 Jy
! Clean residual min=-0.096311 max=0.392240 Jy/beam
! Clean residual mean=-0.003504 rms=0.045656 Jy/beam
! Combined flux in latest and established models = 1.40648 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 1.40648 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.453448Jy  sigma=2.840873
! Fit after  self-cal, rms=0.453448Jy  sigma=2.840873
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.306704 Jy
! Total flux subtracted in 50 components = 0.306704 Jy
! Clean residual min=-0.053098 max=0.097370 Jy/beam
! Clean residual mean=-0.001862 rms=0.019593 Jy/beam
! Combined flux in latest and established models = 1.71318 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 1.71318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234148Jy  sigma=1.418403
! Fit after  self-cal, rms=0.234148Jy  sigma=1.418403
! 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=4.12 mas, bmaj=17.33 mas, bpa=-9.03 degrees
! Estimated noise=4.97218 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.081013 Jy
! Component: 100  -  total flux cleaned = 0.118122 Jy
! Total flux subtracted in 100 components = 0.118122 Jy
! Clean residual min=-0.048984 max=0.069809 Jy/beam
! Clean residual mean=-0.002274 rms=0.015145 Jy/beam
! Combined flux in latest and established models = 1.8313 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 1.8313 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.206929Jy  sigma=1.251462
! Fit after  self-cal, rms=0.206911Jy  sigma=1.251419
! 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.00*    FD        0.95     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.09     LA        0.97     MC        1.00*    
!   MK        1.00*    NL        1.10     NY        1.00*    OV        1.00*    
!   PT        0.97     SC        0.95     WF        1.04     GN        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.08     LA        0.95     MC        1.00*    
!   MK        1.00*    NL        1.08     NY        1.00*    OV        1.00*    
!   PT        0.95     SC        0.99     WF        1.03     GN        0.97     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.93     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.02     LA        0.95     MC        1.00*    
!   MK        1.00*    NL        1.08     NY        1.00*    OV        1.00*    
!   PT        0.95     SC        0.95     WF        1.04     GN        0.99     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.93     GC        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.07     LA        0.93     MC        1.00*    
!   MK        1.00*    NL        1.08     NY        1.00*    OV        1.00*    
!   PT        0.96     SC        0.96     WF        1.01     GN        0.98     
! 
! 
! Fit before self-cal, rms=0.206911Jy  sigma=1.251419
! Fit after  self-cal, rms=0.161842Jy  sigma=0.926978
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.106 mas, bmaj=17.32 mas, bpa=-8.685 degrees
! Estimated noise=4.94084 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.00300529 Jy
! Component: 100  -  total flux cleaned = -0.00256382 Jy
! Total flux subtracted in 100 components = -0.00256382 Jy
! Clean residual min=-0.019850 max=0.015363 Jy/beam
! Clean residual mean=-0.000296 rms=0.004688 Jy/beam
! Combined flux in latest and established models = 1.82874 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 29 components and 1.82874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160089Jy  sigma=0.909754
! Fit after  self-cal, rms=0.160084Jy  sigma=0.909616
! 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.000650998 Jy
! Component: 100  -  total flux cleaned = -0.00178315 Jy
! Total flux subtracted in 100 components = -0.00178315 Jy
! Clean residual min=-0.019060 max=0.014605 Jy/beam
! Clean residual mean=-0.000314 rms=0.004399 Jy/beam
! Combined flux in latest and established models = 1.82696 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 44 components and 1.82696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.159639Jy  sigma=0.905388
! Fit after  self-cal, rms=0.158688Jy  sigma=0.896788
! Inverting map and beam 
! Estimated beam: bmin=4.103 mas, bmaj=17.31 mas, bpa=-8.648 degrees
! Estimated noise=4.94125 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.000524577 Jy
! Component: 100  -  total flux cleaned = -0.000747485 Jy
! Total flux subtracted in 100 components = -0.000747485 Jy
! Clean residual min=-0.018564 max=0.014129 Jy/beam
! Clean residual mean=-0.000208 rms=0.004109 Jy/beam
! Combined flux in latest and established models = 1.82621 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 62 components and 1.82621 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158392Jy  sigma=0.893724
! Fit after  self-cal, rms=0.158398Jy  sigma=0.893710
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1954-388_S
! Writing UV FITS file: 1954-388_S.uvf
! Writing 62 model components to file: 1954-388_S.mod
! wwins: Wrote 1 windows to 1954-388_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.103 x 17.31 at -8.648 degrees (North through East)
! Clean map  min=-0.018363  max=1.7891 Jy/beam
! Writing clean map to FITS file: 1954-388_S.fits
! Writing difmap environment to: 1954-388_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1954-388_Suv.ps/vps,1,2
! Attempting to open device: '1954-388_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1954-388_Sim.ps/vps
! Attempting to open device: '1954-388_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=4.103 mas, bmaj=17.31 mas, bpa=-8.648 degrees
! Estimated noise=4.94125 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.103 x 17.31 at -8.648 degrees (North through East)
! Clean map  min=-0.018363  max=1.7891 Jy/beam
quit
! Quitting program
! Log file 1954-388_S.log closed on Tue Nov 26 16:48:20 2002