! Started logfile: 0003-066_S.log on Wed Oct 31 17:21:20 2007
observe 0003-066_S.edt
! Reading UV FITS file: 0003-066_S.edt
! AN table 1: 41 integrations on 105 of 105 possible baselines.
! AN table 2: 18 integrations on 105 of 105 possible baselines.
! AN table 3: 42 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.190193 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0003-066
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 970 lines of history.
! 
! Reading 8068 visibilities.
![@gonzo9-0.4_south 0003-066_S]
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 = 9.0
float win_mult
win_mult = 1.0
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 615 telescope corrections were flagged in sub-array 1.
!  A total of 223 telescope corrections were flagged in sub-array 2.
!  A total of 221 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 615 telescope corrections were flagged in sub-array 1.
!  A total of 223 telescope corrections were flagged in sub-array 2.
!  A total of 221 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 615 telescope corrections were flagged in sub-array 1.
!  A total of 223 telescope corrections were flagged in sub-array 2.
!  A total of 221 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 615 telescope corrections were flagged in sub-array 1.
!  A total of 223 telescope corrections were flagged in sub-array 2.
!  A total of 221 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.761528Jy  sigma=0.006658
! Fit after  self-cal, rms=0.740324Jy  sigma=0.006539
! 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=1.779 mas, bmaj=3.528 mas, bpa=20.19 degrees
! Estimated noise=1905.86 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.07569 Jy
! Total flux subtracted in 50 components = 1.07569 Jy
! Clean residual min=-0.165129 max=0.362699 Jy/beam
! Clean residual mean=0.000801 rms=0.049502 Jy/beam
! Combined flux in latest and established models = 1.07569 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.07569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.700275Jy  sigma=0.006137
! Fit after  self-cal, rms=0.699634Jy  sigma=0.006135
! 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.833 mas, bmaj=3.465 mas, bpa=22.5 degrees
! Estimated noise=1058.31 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.324897 Jy
! Component: 100  -  total flux cleaned = 0.464313 Jy
! Total flux subtracted in 100 components = 0.464313 Jy
! Clean residual min=-0.135375 max=0.361620 Jy/beam
! Clean residual mean=0.001279 rms=0.043748 Jy/beam
! Combined flux in latest and established models = 1.54 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 14 components and 1.54 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599332Jy  sigma=0.004861
! Fit after  self-cal, rms=0.599428Jy  sigma=0.004859
! 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:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.79     HH        1.00*    KB        1.00*    KP        0.79     
!   LA        0.64     MK        0.79     NL        0.85     NY        1.00*    
!   OV        0.90     PT        0.64     SC        1.29     TC        1.00*    
!   WF        1.54     WZ        1.00*    BR        0.99     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.75     HH        1.26     KB        1.00*    KP        1.39     
!   LA        0.75     MK        1.00*    NL        0.94     NY        1.00*    
!   OV        1.00*    PT        0.99     SC        1.36     TC        1.22     
!   WF        1.30     WZ        1.51     BR        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.74     HH        1.00*    KB        1.00*    KP        0.78     
!   LA        0.66     MK        0.74     NL        0.85     NY        1.00*    
!   OV        0.88     PT        0.64     SC        1.26     TC        1.00*    
!   WF        1.57     WZ        1.00*    BR        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.76     HH        1.16     KB        1.00*    KP        1.18     
!   LA        0.75     MK        1.00*    NL        0.96     NY        1.00*    
!   OV        1.00*    PT        0.97     SC        1.32     TC        1.12     
!   WF        1.28     WZ        1.41     BR        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.76     HH        1.00*    KB        1.00*    KP        0.78     
!   LA        0.66     MK        0.74     NL        0.87     NY        1.00*    
!   OV        0.86     PT        0.65     SC        1.21     TC        1.00*    
!   WF        1.56     WZ        1.00*    BR        1.02     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.75     HH        0.97     KB        1.00*    KP        1.27     
!   LA        0.76     MK        1.00*    NL        0.95     NY        1.00*    
!   OV        1.00*    PT        0.98     SC        1.32     TC        1.14     
!   WF        1.45     WZ        1.27     BR        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.75     HH        1.00*    KB        1.00*    KP        0.79     
!   LA        0.67     MK        0.74     NL        0.86     NY        1.00*    
!   OV        0.87     PT        0.66     SC        1.17     TC        1.00*    
!   WF        1.58     WZ        1.00*    BR        1.01     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.76     HH        0.92     KB        1.00*    KP        1.25     
!   LA        0.76     MK        1.00*    NL        0.94     NY        1.00*    
!   OV        1.00*    PT        0.97     SC        1.37     TC        1.15     
!   WF        1.55     WZ        1.20     BR        1.00*    
! 
! 
! Fit before self-cal, rms=0.599428Jy  sigma=0.004859
! Fit after  self-cal, rms=0.639951Jy  sigma=0.002933
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.894 mas, bmaj=3.799 mas, bpa=23.97 degrees
! Estimated noise=1080.16 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 (-6.4, 1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.187845 Jy
! Component: 100  -  total flux cleaned = 0.188337 Jy
! Total flux subtracted in 100 components = 0.188337 Jy
! Clean residual min=-0.074135 max=0.087952 Jy/beam
! Clean residual mean=-0.000319 rms=0.019176 Jy/beam
! Combined flux in latest and established models = 1.72834 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 21 components and 1.72834 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.564018Jy  sigma=0.002423
! Fit after  self-cal, rms=0.555440Jy  sigma=0.002343
! 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.0167253 Jy
! Component: 100  -  total flux cleaned = 0.0130871 Jy
! Total flux subtracted in 100 components = 0.0130871 Jy
! Clean residual min=-0.081011 max=0.074377 Jy/beam
! Clean residual mean=-0.000330 rms=0.018102 Jy/beam
! Combined flux in latest and established models = 1.74142 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 26 components and 1.74142 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.541563Jy  sigma=0.002284
! Fit after  self-cal, rms=0.394522Jy  sigma=0.001828
! Inverting map and beam 
! Estimated beam: bmin=1.878 mas, bmaj=3.777 mas, bpa=24.33 degrees
! Estimated noise=1045.07 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.0733053 Jy
! Component: 100  -  total flux cleaned = 0.0764463 Jy
! Total flux subtracted in 100 components = 0.0764463 Jy
! Clean residual min=-0.037997 max=0.050395 Jy/beam
! Clean residual mean=-0.000079 rms=0.009615 Jy/beam
! Combined flux in latest and established models = 1.81787 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 36 components and 1.81787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376931Jy  sigma=0.001648
! Fit after  self-cal, rms=0.372716Jy  sigma=0.001604
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0003-066_S
! Writing UV FITS file: 0003-066_S.uvf
! Writing 36 model components to file: 0003-066_S.mod
! wwins: Wrote 2 windows to 0003-066_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.878 x 3.777 at 24.33 degrees (North through East)
! Clean map  min=-0.037172  max=1.2123 Jy/beam
! Writing clean map to FITS file: 0003-066_S.fits
! Writing difmap environment to: 0003-066_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0003-066_S]
device 0003-066_Suv.ps/vps,1,2
! Attempting to open device: '0003-066_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0003-066_Sim.ps/vps
! Attempting to open device: '0003-066_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=1.878 mas, bmaj=3.777 mas, bpa=24.33 degrees
! Estimated noise=1045.07 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.878 x 3.777 at 24.33 degrees (North through East)
! Clean map  min=-0.037172  max=1.2123 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo9-0.4_south]
quit
! Quitting program
! Log file 0003-066_S.log closed on Wed Oct 31 17:21:34 2007