! Started logfile: 0727-115_X.log on Tue Mar 27 20:49:57 2007
observe 0727-115_X.edt
! Reading UV FITS file: 0727-115_X.edt
! AN table 1: 73 integrations on 105 of 105 possible baselines.
! AN table 2: 8 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.106173 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0727-115
! 
! 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 1241 lines of history.
! 
! Reading 3612 visibilities.
![@gonzo7-0.1 0727-115_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 923 telescope corrections were flagged in sub-array 1.
!  A total of 65 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 923 telescope corrections were flagged in sub-array 1.
!  A total of 65 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 923 telescope corrections were flagged in sub-array 1.
!  A total of 65 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 923 telescope corrections were flagged in sub-array 1.
!  A total of 65 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=2.772331Jy  sigma=0.043540
! Fit after  self-cal, rms=2.777177Jy  sigma=0.043689
! 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.7378 mas, bmaj=3.05 mas, bpa=-1.088 degrees
! Estimated noise=1282.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 (0, 0).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.53589 Jy
! Total flux subtracted in 50 components = 2.53589 Jy
! Clean residual min=-0.206177 max=0.707241 Jy/beam
! Clean residual mean=0.003262 rms=0.080802 Jy/beam
! Combined flux in latest and established models = 2.53589 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 2.53589 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.388283Jy  sigma=0.021351
! Fit after  self-cal, rms=1.388283Jy  sigma=0.021351
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.605085 Jy
! Total flux subtracted in 50 components = 0.605085 Jy
! Clean residual min=-0.222249 max=0.293411 Jy/beam
! Clean residual mean=0.001433 rms=0.065264 Jy/beam
! Combined flux in latest and established models = 3.14098 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 3.14098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.986091Jy  sigma=0.016051
! Fit after  self-cal, rms=0.986092Jy  sigma=0.016051
! 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.082 mas, bmaj=3.646 mas, bpa=-5.041 degrees
! Estimated noise=838.963 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.400294 Jy
! Component: 100  -  total flux cleaned = 0.567718 Jy
! Total flux subtracted in 100 components = 0.567718 Jy
! Clean residual min=-0.229897 max=0.205486 Jy/beam
! Clean residual mean=-0.000425 rms=0.068659 Jy/beam
! Combined flux in latest and established models = 3.70869 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 47 components and 3.70869 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.784193Jy  sigma=0.014522
! Fit after  self-cal, rms=0.784186Jy  sigma=0.014521
! 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        0.83     FD        1.05     HN        1.05     KB        1.00*    
!   KP        1.47     LA        0.86     MK        1.00*    NL        1.03     
!   NY        1.00*    OV        1.00     PT        0.86     SV        1.00*    
!   WF        1.09     WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.73     HN        1.00*    KB        0.76     
!   KP        0.70     LA        1.15     MK        0.91     NL        1.00*    
!   NY        1.00*    OV        1.16     PT        1.10     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.84     FD        1.05     HN        1.05     KB        1.00*    
!   KP        1.08     LA        0.85     MK        1.00*    NL        1.03     
!   NY        1.00*    OV        0.94     PT        0.86     SV        1.00*    
!   WF        1.10     WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.80     HN        1.00*    KB        0.78     
!   KP        0.81     LA        1.05     MK        0.97     NL        1.00*    
!   NY        1.00*    OV        1.16     PT        1.03     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.79     FD        1.05     HN        1.03     KB        1.00*    
!   KP        1.20     LA        0.84     MK        1.00*    NL        1.03     
!   NY        1.00*    OV        0.99     PT        0.87     SV        1.00*    
!   WF        1.06     WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.15     FD        1.92     HN        1.00*    KB        0.86     
!   KP        0.81     LA        0.92     MK        1.07     NL        1.00*    
!   NY        1.00*    OV        1.24     PT        1.13     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.73     FD        1.05     HN        1.04     KB        1.00*    
!   KP        1.11     LA        0.85     MK        1.00*    NL        1.02     
!   NY        1.00*    OV        1.00     PT        0.87     SV        1.00*    
!   WF        1.10     WZ        1.00*    TC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        1.84     HN        1.00*    KB        0.97     
!   KP        0.78     LA        0.76     MK        1.17     NL        1.00*    
!   NY        1.00*    OV        1.07     PT        1.06     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.00*    
! 
! 
! Fit before self-cal, rms=0.784186Jy  sigma=0.014521
! Fit after  self-cal, rms=0.191042Jy  sigma=0.002886
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.091 mas, bmaj=3.783 mas, bpa=-5.306 degrees
! Estimated noise=831.653 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.0126581 Jy
! Component: 100  -  total flux cleaned = -0.0169677 Jy
! Total flux subtracted in 100 components = -0.0169677 Jy
! Clean residual min=-0.032384 max=0.032598 Jy/beam
! Clean residual mean=0.001581 rms=0.008692 Jy/beam
! Combined flux in latest and established models = 3.69173 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 55 components and 3.69173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.185884Jy  sigma=0.002808
! Fit after  self-cal, rms=0.185792Jy  sigma=0.002804
! 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.00115885 Jy
! Component: 100  -  total flux cleaned = -0.00407676 Jy
! Total flux subtracted in 100 components = -0.00407676 Jy
! Clean residual min=-0.030196 max=0.031312 Jy/beam
! Clean residual mean=0.001597 rms=0.008493 Jy/beam
! Combined flux in latest and established models = 3.68765 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 60 components and 3.68765 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.183336Jy  sigma=0.002772
! Fit after  self-cal, rms=0.143203Jy  sigma=0.001892
! Inverting map and beam 
! Estimated beam: bmin=1.09 mas, bmaj=3.788 mas, bpa=-5.338 degrees
! Estimated noise=831.353 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 (-1.9, 2.3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0177405 Jy
! Component: 100  -  total flux cleaned = 0.0162245 Jy
! Total flux subtracted in 100 components = 0.0162245 Jy
! Clean residual min=-0.018534 max=0.021746 Jy/beam
! Clean residual mean=0.001540 rms=0.005144 Jy/beam
! Combined flux in latest and established models = 3.70387 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 71 components and 3.70387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136551Jy  sigma=0.001791
! Fit after  self-cal, rms=0.135693Jy  sigma=0.001785
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0727-115_X
! Writing UV FITS file: 0727-115_X.uvf
! Writing 71 model components to file: 0727-115_X.mod
! wwins: Wrote 2 windows to 0727-115_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.09 x 3.788 at -5.338 degrees (North through East)
! Clean map  min=-0.018422  max=3.3794 Jy/beam
! Writing clean map to FITS file: 0727-115_X.fits
! Writing difmap environment to: 0727-115_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0727-115_X]
device 0727-115_Xuv.ps/vps,1,2
! Attempting to open device: '0727-115_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0727-115_Xim.ps/vps
! Attempting to open device: '0727-115_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.09 mas, bmaj=3.788 mas, bpa=-5.338 degrees
! Estimated noise=831.353 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.09 x 3.788 at -5.338 degrees (North through East)
! Clean map  min=-0.018422  max=3.3794 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 0727-115_X.log closed on Tue Mar 27 20:50:12 2007