! Started logfile: 1334-127_X.log on Fri Aug 10 10:03:03 2007
observe 1334-127_X.edt
! Reading UV FITS file: 1334-127_X.edt
! AN table 1: 23 integrations on 105 of 105 possible baselines.
! AN table 2: 10 integrations on 105 of 105 possible baselines.
! AN table 3: 4 integrations on 105 of 105 possible baselines.
! AN table 4: 11 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.078373 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1334-127
! 
! 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 1066 lines of history.
! 
! Reading 1580 visibilities.
![@gonzo7-0.1 1334-127_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 275 telescope corrections were flagged in sub-array 1.
!  A total of 103 telescope corrections were flagged in sub-array 2.
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  A total of 147 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 275 telescope corrections were flagged in sub-array 1.
!  A total of 103 telescope corrections were flagged in sub-array 2.
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  A total of 147 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 275 telescope corrections were flagged in sub-array 1.
!  A total of 103 telescope corrections were flagged in sub-array 2.
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  A total of 150 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 275 telescope corrections were flagged in sub-array 1.
!  A total of 103 telescope corrections were flagged in sub-array 2.
!  A total of 60 telescope corrections were flagged in sub-array 3.
!  A total of 150 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=4.304843Jy  sigma=0.055927
! Fit after  self-cal, rms=4.306541Jy  sigma=0.055977
! 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.5962 mas, bmaj=2.843 mas, bpa=1.746 degrees
! Estimated noise=1829.48 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 = 3.86592 Jy
! Total flux subtracted in 50 components = 3.86592 Jy
! Clean residual min=-0.410598 max=1.121672 Jy/beam
! Clean residual mean=0.005848 rms=0.107870 Jy/beam
! Combined flux in latest and established models = 3.86592 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 3.86592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.642493Jy  sigma=0.020463
! Fit after  self-cal, rms=1.642555Jy  sigma=0.020461
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.09925 Jy
! Total flux subtracted in 50 components = 1.09925 Jy
! Clean residual min=-0.243581 max=0.446671 Jy/beam
! Clean residual mean=0.001783 rms=0.052673 Jy/beam
! Combined flux in latest and established models = 4.96517 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 10 components and 4.96517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.852579Jy  sigma=0.009647
! Fit after  self-cal, rms=0.850797Jy  sigma=0.009631
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.447713 Jy
! Total flux subtracted in 50 components = 0.447713 Jy
! Clean residual min=-0.230946 max=0.237361 Jy/beam
! Clean residual mean=0.000131 rms=0.037773 Jy/beam
! Combined flux in latest and established models = 5.41288 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 11 components and 5.41288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.643150Jy  sigma=0.007208
! Fit after  self-cal, rms=0.642943Jy  sigma=0.007204
! 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=0.7597 mas, bmaj=3.205 mas, bpa=1.026 degrees
! Estimated noise=1434.87 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.0775658 Jy
! Component: 100  -  total flux cleaned = 0.0694417 Jy
! Total flux subtracted in 100 components = 0.0694417 Jy
! Clean residual min=-0.149074 max=0.166497 Jy/beam
! Clean residual mean=-0.000349 rms=0.033794 Jy/beam
! Combined flux in latest and established models = 5.48233 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 20 components and 5.48232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.597049Jy  sigma=0.006858
! Fit after  self-cal, rms=0.596487Jy  sigma=0.006851
! 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.03     FD        1.00*    HH        1.00*    HN        1.00*    
!   KB        1.07     KK        0.89     KP        1.02     LA        1.02     
!   MK        0.95     NL        1.00*    NY        1.00*    OV        0.96     
!   PT        1.01     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.01     HH        1.00*    HN        0.87     
!   KB        1.00*    KK        1.00*    KP        1.02     LA        1.01     
!   MK        1.00*    NL        1.08     NY        1.00*    OV        1.09     
!   PT        0.99     SC        0.85     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        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*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        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*    WZ        0.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.01     FD        1.00*    HH        1.00*    HN        1.00*    
!   KB        1.08     KK        0.92     KP        1.02     LA        1.02     
!   MK        0.97     NL        1.00*    NY        1.00*    OV        0.95     
!   PT        1.01     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.06     HH        1.00*    HN        0.83     
!   KB        1.00*    KK        1.00*    KP        1.02     LA        0.99     
!   MK        1.00*    NL        1.10     NY        1.00*    OV        1.10     
!   PT        0.98     SC        0.86     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        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*    WZ        0.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        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*    WZ        0.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.05     FD        1.00*    HH        1.00*    HN        1.00*    
!   KB        1.12     KK        0.91     KP        1.01     LA        1.01     
!   MK        0.93     NL        1.00*    NY        1.00*    OV        0.97     
!   PT        1.01     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.93     HH        1.00*    HN        0.87     
!   KB        1.00*    KK        1.00*    KP        1.00     LA        0.94     
!   MK        1.00*    NL        1.06     NY        1.00*    OV        1.07     
!   PT        0.98     SC        0.96     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        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*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        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*    WZ        0.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.03     FD        1.00*    HH        1.00*    HN        1.00*    
!   KB        1.15     KK        0.90     KP        1.00     LA        1.02     
!   MK        0.97     NL        1.00*    NY        1.00*    OV        0.97     
!   PT        1.01     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.92     HH        1.00*    HN        0.80     
!   KB        1.00*    KK        1.00*    KP        1.00     LA        0.94     
!   MK        1.00*    NL        1.04     NY        1.00*    OV        1.10     
!   PT        1.00     SC        0.94     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        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*    WZ        0.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HH        0.00*    HN        0.00*    
!   KB        0.00*    KK        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*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.596487Jy  sigma=0.006851
! Fit after  self-cal, rms=0.219168Jy  sigma=0.002422
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7679 mas, bmaj=3.144 mas, bpa=1.045 degrees
! Estimated noise=1446.26 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.4, -3.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0543353 Jy
! Component: 100  -  total flux cleaned = 0.0624794 Jy
! Total flux subtracted in 100 components = 0.0624794 Jy
! Clean residual min=-0.029241 max=0.042926 Jy/beam
! Clean residual mean=-0.000157 rms=0.008603 Jy/beam
! Combined flux in latest and established models = 5.5448 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 37 components and 5.5448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204349Jy  sigma=0.002228
! Fit after  self-cal, rms=0.202911Jy  sigma=0.002219
! 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.00508336 Jy
! Component: 100  -  total flux cleaned = 0.00727311 Jy
! Total flux subtracted in 100 components = 0.00727311 Jy
! Clean residual min=-0.027186 max=0.038958 Jy/beam
! Clean residual mean=-0.000218 rms=0.008174 Jy/beam
! Combined flux in latest and established models = 5.55208 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 46 components and 5.55208 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196304Jy  sigma=0.002139
! Fit after  self-cal, rms=0.154290Jy  sigma=0.001742
! Inverting map and beam 
! Estimated beam: bmin=0.7693 mas, bmaj=3.136 mas, bpa=1.103 degrees
! Estimated noise=1446.43 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.4, -2.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.019425 Jy
! Component: 100  -  total flux cleaned = 0.0165039 Jy
! Total flux subtracted in 100 components = 0.0165039 Jy
! Clean residual min=-0.017767 max=0.023562 Jy/beam
! Clean residual mean=0.000321 rms=0.004710 Jy/beam
! Combined flux in latest and established models = 5.56858 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 56 components and 5.56858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.144355Jy  sigma=0.001624
! Fit after  self-cal, rms=0.143243Jy  sigma=0.001614
! Inverting map 
! Added new window around map position (5.7, 5.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0132179 Jy
! Component: 100  -  total flux cleaned = 0.013185 Jy
! Total flux subtracted in 100 components = 0.013185 Jy
! Clean residual min=-0.018183 max=0.020091 Jy/beam
! Clean residual mean=0.000191 rms=0.004263 Jy/beam
! Combined flux in latest and established models = 5.58177 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 67 components and 5.58177 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137946Jy  sigma=0.001554
! Fit after  self-cal, rms=0.137357Jy  sigma=0.001549
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1334-127_X
! Writing UV FITS file: 1334-127_X.uvf
! Writing 67 model components to file: 1334-127_X.mod
! wwins: Wrote 4 windows to 1334-127_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7693 x 3.136 at 1.103 degrees (North through East)
! Clean map  min=-0.028466  max=5.0379 Jy/beam
! Writing clean map to FITS file: 1334-127_X.fits
! Writing difmap environment to: 1334-127_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1334-127_X]
device 1334-127_Xuv.ps/vps,1,2
! Attempting to open device: '1334-127_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1334-127_Xim.ps/vps
! Attempting to open device: '1334-127_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=0.7693 mas, bmaj=3.136 mas, bpa=1.103 degrees
! Estimated noise=1446.43 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7693 x 3.136 at 1.103 degrees (North through East)
! Clean map  min=-0.028466  max=5.0379 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 1334-127_X.log closed on Fri Aug 10 10:03:22 2007