! Started logfile: 0138-097_X.log on Thu Apr 17 13:44:17 2008
observe 0138-097_X.edt
! Reading UV FITS file: 0138-097_X.edt
! AN table 1: 32 integrations on 136 of 136 possible baselines.
! AN table 2: 61 integrations on 136 of 136 possible baselines.
! AN table 3: 22 integrations on 136 of 136 possible baselines.
! AN table 4: 14 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0816803 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0138-097
! 
! 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 1142 lines of history.
! 
! Reading 5732 visibilities.
![@gonzo7-0.1 0138-097_X]
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 407 telescope corrections were flagged in sub-array 1.
!  A total of 967 telescope corrections were flagged in sub-array 2.
!  A total of 191 telescope corrections were flagged in sub-array 3.
!  A total of 161 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 407 telescope corrections were flagged in sub-array 1.
!  A total of 970 telescope corrections were flagged in sub-array 2.
!  A total of 191 telescope corrections were flagged in sub-array 3.
!  A total of 161 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 407 telescope corrections were flagged in sub-array 1.
!  A total of 997 telescope corrections were flagged in sub-array 2.
!  A total of 191 telescope corrections were flagged in sub-array 3.
!  A total of 161 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 407 telescope corrections were flagged in sub-array 1.
!  A total of 997 telescope corrections were flagged in sub-array 2.
!  A total of 191 telescope corrections were flagged in sub-array 3.
!  A total of 161 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.323654Jy  sigma=0.004289
! Fit after  self-cal, rms=0.266666Jy  sigma=0.003194
! 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.9297 mas, bmaj=2.762 mas, bpa=9.975 degrees
! Estimated noise=1185.95 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.654835 Jy
! Total flux subtracted in 50 components = 0.654835 Jy
! Clean residual min=-0.052771 max=0.182645 Jy/beam
! Clean residual mean=0.000127 rms=0.017896 Jy/beam
! Combined flux in latest and established models = 0.654835 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.654835 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346171Jy  sigma=0.003903
! Fit after  self-cal, rms=0.346172Jy  sigma=0.003903
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.161654 Jy
! Total flux subtracted in 50 components = 0.161654 Jy
! Clean residual min=-0.037675 max=0.063099 Jy/beam
! Clean residual mean=-0.000377 rms=0.011074 Jy/beam
! Combined flux in latest and established models = 0.816489 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 11 components and 0.816489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258376Jy  sigma=0.002864
! Fit after  self-cal, rms=0.258359Jy  sigma=0.002863
! 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.182 mas, bmaj=2.852 mas, bpa=4.426 degrees
! Estimated noise=837.416 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.0916599 Jy
! Component: 100  -  total flux cleaned = 0.132349 Jy
! Total flux subtracted in 100 components = 0.132349 Jy
! Clean residual min=-0.044381 max=0.029705 Jy/beam
! Clean residual mean=-0.004373 rms=0.010287 Jy/beam
! Combined flux in latest and established models = 0.948838 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 35 components and 0.948838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225269Jy  sigma=0.002536
! Fit after  self-cal, rms=0.224786Jy  sigma=0.002531
! 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.00*    FD        0.72     HN        1.02     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.05     MK        1.00*    
!   NL        1.04     NY        1.00*    OV        1.00*    PT        1.10     
!   SC        0.99     TS        1.00*    WF        1.01     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB       15.20     
!   KK        0.98     KP        1.00*    LA        1.00*    MK        0.82     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.78     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.99     HN        1.03     KB        1.00*    
!   KK        1.00*    KP        1.01     LA        1.01     MK        1.00*    
!   NL        1.09     NY        1.00*    OV        0.77     PT        1.04     
!   SC        1.00     TS        1.00*    WF        0.94     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.17     FD        0.97     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.94     LA        1.03     MK        1.00*    
!   NL        1.27     NY        1.00*    OV        0.98     PT        0.98     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.74     HN        1.01     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.05     MK        1.00*    
!   NL        1.04     NY        1.00*    OV        1.00*    PT        1.12     
!   SC        0.98     TS        1.00*    WF        1.03     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB       13.36     
!   KK        1.02     KP        1.00*    LA        1.00*    MK        0.77     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.78     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.02     HN        1.03     KB        1.00*    
!   KK        1.00*    KP        0.99     LA        1.01     MK        1.00*    
!   NL        1.07     NY        1.00*    OV        0.73     PT        1.04     
!   SC        0.99     TS        1.00*    WF        0.96     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.19     FD        0.97     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.90     LA        0.99     MK        1.00*    
!   NL        1.24     NY        1.00*    OV        0.96     PT        1.04     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        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.00*    FD        0.73     HN        1.00     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.06     MK        1.00*    
!   NL        1.07     NY        1.00*    OV        1.00*    PT        1.11     
!   SC        0.97     TS        1.00*    WF        0.98     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB       15.15     
!   KK        1.18     KP        1.00*    LA        1.00*    MK        0.53     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.77     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.02     HN        1.05     KB        1.00*    
!   KK        1.00*    KP        0.98     LA        1.01     MK        1.00*    
!   NL        1.04     NY        1.00*    OV        0.72     PT        1.01     
!   SC        0.96     TS        1.00*    WF        1.01     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.23     FD        0.97     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.82     LA        1.03     MK        1.00*    
!   NL        1.27     NY        1.00*    OV        1.01     PT        1.02     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        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.00*    FD        0.73     HN        0.97     KB        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.05     MK        1.00*    
!   NL        1.05     NY        1.00*    OV        1.00*    PT        1.13     
!   SC        1.01     TS        1.00*    WF        0.94     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB       14.05     
!   KK        1.04     KP        1.00*    LA        1.00*    MK        0.56     
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.75     WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.99     HN        1.04     KB        1.00*    
!   KK        1.00*    KP        1.00     LA        1.00     MK        1.00*    
!   NL        1.03     NY        1.00*    OV        0.72     PT        1.00     
!   SC        0.96     TS        1.00*    WF        1.21     WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.19     FD        0.97     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.88     LA        1.02     MK        1.00*    
!   NL        1.23     NY        1.00*    OV        0.98     PT        1.03     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Fit before self-cal, rms=0.224786Jy  sigma=0.002531
! Fit after  self-cal, rms=0.168137Jy  sigma=0.001126
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.269 mas, bmaj=2.842 mas, bpa=3.57 degrees
! Estimated noise=831.514 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 (-1.3, -0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0111876 Jy
! Component: 100  -  total flux cleaned = 0.0112526 Jy
! Total flux subtracted in 100 components = 0.0112526 Jy
! Clean residual min=-0.004954 max=0.007707 Jy/beam
! Clean residual mean=0.000486 rms=0.001484 Jy/beam
! Combined flux in latest and established models = 0.96009 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 44 components and 0.96009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167026Jy  sigma=0.001109
! Fit after  self-cal, rms=0.167380Jy  sigma=0.001106
! 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)
! Added new window around map position (-4.1, -18.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0061855 Jy
! Component: 100  -  total flux cleaned = 0.0059736 Jy
! Total flux subtracted in 100 components = 0.0059736 Jy
! Clean residual min=-0.004902 max=0.005686 Jy/beam
! Clean residual mean=0.000414 rms=0.001302 Jy/beam
! Combined flux in latest and established models = 0.966064 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 56 components and 0.966064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167025Jy  sigma=0.001100
! Fit after  self-cal, rms=0.168707Jy  sigma=0.001076
! Inverting map and beam 
! Estimated beam: bmin=1.267 mas, bmaj=2.836 mas, bpa=3.509 degrees
! Estimated noise=832.52 mJy/beam.
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00524196 Jy
! Component: 100  -  total flux cleaned = 0.00472903 Jy
! Total flux subtracted in 100 components = 0.00472903 Jy
! Clean residual min=-0.003626 max=0.003760 Jy/beam
! Clean residual mean=0.000205 rms=0.000994 Jy/beam
! Combined flux in latest and established models = 0.970793 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 69 components and 0.970793 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.168355Jy  sigma=0.001072
! Fit after  self-cal, rms=0.169566Jy  sigma=0.001069
! Inverting map and beam 
! Estimated beam: bmin=1.266 mas, bmaj=2.834 mas, bpa=3.482 degrees
! Estimated noise=833.299 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.00300402 Jy
! Component: 100  -  total flux cleaned = 0.00290514 Jy
! Total flux subtracted in 100 components = 0.00290514 Jy
! Clean residual min=-0.003441 max=0.003188 Jy/beam
! Clean residual mean=0.000114 rms=0.000892 Jy/beam
! Combined flux in latest and established models = 0.973698 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 82 components and 0.973698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.169371Jy  sigma=0.001067
! Fit after  self-cal, rms=0.169401Jy  sigma=0.001067
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0138-097_X
! Writing UV FITS file: 0138-097_X.uvf
! Writing 82 model components to file: 0138-097_X.mod
! wwins: Wrote 3 windows to 0138-097_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.266 x 2.834 at 3.482 degrees (North through East)
! Clean map  min=-0.0034996  max=0.85857 Jy/beam
! Writing clean map to FITS file: 0138-097_X.fits
! Writing difmap environment to: 0138-097_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0138-097_X]
device 0138-097_Xuv.ps/vps,1,2
! Attempting to open device: '0138-097_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0138-097_Xim.ps/vps
! Attempting to open device: '0138-097_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.266 mas, bmaj=2.834 mas, bpa=3.482 degrees
! Estimated noise=833.299 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.266 x 2.834 at 3.482 degrees (North through East)
! Clean map  min=-0.0034996  max=0.85857 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0138-097_X.log closed on Thu Apr 17 13:44:36 2008