! Started logfile: 3C418_X.log on Tue Sep 19 16:12:28 2006
observe 3C418_X.edt
! Reading UV FITS file: 3C418_X.edt
! AN table 1: 54 integrations on 105 of 105 possible baselines.
! AN table 2: 16 integrations on 105 of 105 possible baselines.
! AN table 3: 5 integrations on 105 of 105 possible baselines.
! AN table 4: 21 integrations on 105 of 105 possible baselines.
! AN table 5: 4 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.177905 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 3C418
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! 
! 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 1641 lines of history.
! 
! Reading 7472 visibilities.
![@gonzo7-0.1 3C418_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 476 telescope corrections were flagged in sub-array 1.
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  A total of 41 telescope corrections were flagged in sub-array 3.
!  A total of 286 telescope corrections were flagged in sub-array 4.
!  A total of 37 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 473 telescope corrections were flagged in sub-array 1.
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  A total of 41 telescope corrections were flagged in sub-array 3.
!  A total of 286 telescope corrections were flagged in sub-array 4.
!  A total of 37 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 473 telescope corrections were flagged in sub-array 1.
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  A total of 41 telescope corrections were flagged in sub-array 3.
!  A total of 286 telescope corrections were flagged in sub-array 4.
!  A total of 37 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 473 telescope corrections were flagged in sub-array 1.
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  A total of 41 telescope corrections were flagged in sub-array 3.
!  A total of 286 telescope corrections were flagged in sub-array 4.
!  A total of 37 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.713394Jy  sigma=0.008126
! Fit after  self-cal, rms=0.700832Jy  sigma=0.008016
! 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.5828 mas, bmaj=0.9005 mas, bpa=33.49 degrees
! Estimated noise=1044.28 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.82026 Jy
! Total flux subtracted in 50 components = 0.82026 Jy
! Clean residual min=-0.064297 max=0.228799 Jy/beam
! Clean residual mean=0.000582 rms=0.018463 Jy/beam
! Combined flux in latest and established models = 0.82026 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.82026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.793857Jy  sigma=0.009200
! Fit after  self-cal, rms=0.793856Jy  sigma=0.009200
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.209744 Jy
! Total flux subtracted in 50 components = 0.209744 Jy
! Clean residual min=-0.065853 max=0.090814 Jy/beam
! Clean residual mean=0.000202 rms=0.015995 Jy/beam
! Combined flux in latest and established models = 1.03 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 1.03 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.691149Jy  sigma=0.007845
! Fit after  self-cal, rms=0.691213Jy  sigma=0.007843
! 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.9333 mas, bmaj=1.318 mas, bpa=45.33 degrees
! Estimated noise=574.387 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.197428 Jy
! Component: 100  -  total flux cleaned = 0.281331 Jy
! Total flux subtracted in 100 components = 0.281331 Jy
! Clean residual min=-0.100376 max=0.166379 Jy/beam
! Clean residual mean=0.000248 rms=0.037518 Jy/beam
! Combined flux in latest and established models = 1.31133 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 41 model components to the UV plane model.
! The established model now contains 50 components and 1.31133 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.615547Jy  sigma=0.007232
! Fit after  self-cal, rms=0.615611Jy  sigma=0.007228
! 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 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.18     BR        1.22     FD        1.18     HN        0.84     
!   KP        0.45     LA        0.92     MC        1.14     MK        1.05     
!   NL        1.64     HO        1.00*    NY        1.07     OV        0.99     
!   PT        0.93     SC        1.10     WZ        1.08     
! 
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.00*    BR        1.32     FD        1.39     HN        1.00*    
!   KP        0.45     LA        0.89     MC        1.00*    MK        1.00*    
!   NL        1.62     HO        1.00*    NY        1.00*    OV        0.97     
!   PT        0.91     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.00*    FD        0.93     HN        1.27     
!   KP        0.74     LA        0.95     MC        1.00*    MK        1.00*    
!   NL        0.95     HO        1.00*    NY        1.00*    OV        1.12     
!   PT        0.97     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.05     BR        1.00*    FD        1.00*    HN        1.04     
!   KP        1.00*    LA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.92     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        0.83     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.00*    BR        1.22     FD        2.08     HN        1.00*    
!   KP        1.13     LA        1.09     MC        1.00*    MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        0.96     OV        1.00*    
!   PT        1.15     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.16     BR        1.17     FD        1.16     HN        0.86     
!   KP        0.71     LA        0.92     MC        1.14     MK        0.91     
!   NL        1.60     HO        1.00*    NY        1.05     OV        0.96     
!   PT        0.92     SC        1.11     WZ        1.05     
! 
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.00*    BR        1.20     FD        1.37     HN        1.00*    
!   KP        0.67     LA        0.89     MC        1.00*    MK        1.00*    
!   NL        1.62     HO        1.00*    NY        1.00*    OV        0.99     
!   PT        0.89     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.00*    FD        0.93     HN        1.14     
!   KP        0.57     LA        0.92     MC        1.00*    MK        1.00*    
!   NL        0.93     HO        1.00*    NY        1.00*    OV        1.02     
!   PT        0.94     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.04     BR        1.00*    FD        1.00*    HN        1.21     
!   KP        1.00*    LA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.78     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        0.86     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.00*    BR        1.26     FD        2.12     HN        1.00*    
!   KP        1.30     LA        1.10     MC        1.00*    MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        0.96     OV        1.00*    
!   PT        1.06     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.15     BR        1.17     FD        1.14     HN        0.90     
!   KP        0.60     LA        0.91     MC        1.13     MK        0.91     
!   NL        1.52     HO        1.00*    NY        1.05     OV        0.98     
!   PT        0.91     SC        1.07     WZ        1.06     
! 
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.00*    BR        1.14     FD        1.35     HN        1.00*    
!   KP        0.59     LA        0.87     MC        1.00*    MK        1.00*    
!   NL        1.53     HO        1.00*    NY        1.00*    OV        0.97     
!   PT        0.89     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.00*    FD        1.05     HN        1.08     
!   KP        0.50     LA        0.94     MC        1.00*    MK        1.00*    
!   NL        0.93     HO        1.00*    NY        1.00*    OV        1.04     
!   PT        0.95     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.04     BR        1.00*    FD        1.00*    HN        1.21     
!   KP        1.00*    LA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.79     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        0.84     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.00*    BR        1.45     FD        2.12     HN        1.00*    
!   KP        1.33     LA        0.86     MC        1.00*    MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        0.97     OV        1.00*    
!   PT        1.13     SC        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.16     BR        0.77     FD        1.14     HN        0.76     
!   KP        0.65     LA        0.89     MC        1.14     MK        0.93     
!   NL        1.46     HO        1.00*    NY        1.03     OV        0.95     
!   PT        0.91     SC        1.07     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   AP        1.00*    BR        1.22     FD        1.32     HN        1.00*    
!   KP        0.62     LA        0.86     MC        1.00*    MK        1.00*    
!   NL        1.48     HO        1.00*    NY        1.00*    OV        0.96     
!   PT        0.87     SC        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        1.00*    BR        1.00*    FD        1.02     HN        0.93     
!   KP        0.56     LA        0.94     MC        1.00*    MK        1.00*    
!   NL        0.90     HO        1.00*    NY        1.00*    OV        1.01     
!   PT        0.94     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        1.05     BR        1.00*    FD        1.00*    HN        1.10     
!   KP        1.00*    LA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.57     HO        1.00*    NY        1.00*    OV        1.00*    
!   PT        1.00*    SC        0.83     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.00*    BR        1.29     FD        2.01     HN        1.00*    
!   KP        1.23     LA        0.73     MC        1.00*    MK        1.00*    
!   NL        1.00*    HO        1.00*    NY        1.04     OV        1.00*    
!   PT        1.10     SC        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.615611Jy  sigma=0.007228
! Fit after  self-cal, rms=0.343636Jy  sigma=0.004262
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9674 mas, bmaj=1.369 mas, bpa=44.94 degrees
! Estimated noise=570.752 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 (-4.8, -4.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.11463 Jy
! Component: 100  -  total flux cleaned = 0.173585 Jy
! Total flux subtracted in 100 components = 0.173585 Jy
! Clean residual min=-0.048834 max=0.046509 Jy/beam
! Clean residual mean=-0.000481 rms=0.010353 Jy/beam
! Combined flux in latest and established models = 1.48492 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 86 components and 1.48492 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310174Jy  sigma=0.003519
! Fit after  self-cal, rms=0.307591Jy  sigma=0.003463
! 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.040695 Jy
! Component: 100  -  total flux cleaned = 0.051301 Jy
! Total flux subtracted in 100 components = 0.051301 Jy
! Clean residual min=-0.045731 max=0.039807 Jy/beam
! Clean residual mean=-0.000599 rms=0.009040 Jy/beam
! Combined flux in latest and established models = 1.53622 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 104 components and 1.53622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302098Jy  sigma=0.003351
! Fit after  self-cal, rms=0.175797Jy  sigma=0.002290
! Inverting map and beam 
! Estimated beam: bmin=0.9733 mas, bmaj=1.343 mas, bpa=43.17 degrees
! Estimated noise=563.001 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.0338084 Jy
! Component: 100  -  total flux cleaned = 0.0484588 Jy
! Total flux subtracted in 100 components = 0.0484588 Jy
! Clean residual min=-0.021668 max=0.025833 Jy/beam
! Clean residual mean=-0.000070 rms=0.005669 Jy/beam
! Combined flux in latest and established models = 1.58468 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 130 components and 1.58468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170586Jy  sigma=0.002165
! Fit after  self-cal, rms=0.170279Jy  sigma=0.002157
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 3C418_X
! Writing UV FITS file: 3C418_X.uvf
! Writing 130 model components to file: 3C418_X.mod
! wwins: Wrote 2 windows to 3C418_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9733 x 1.343 at 43.17 degrees (North through East)
! Clean map  min=-0.02132  max=1.1467 Jy/beam
! Writing clean map to FITS file: 3C418_X.fits
! Writing difmap environment to: 3C418_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 3C418_X]
device 3C418_Xuv.ps/vps,1,2
! Attempting to open device: '3C418_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 3C418_Xim.ps/vps
! Attempting to open device: '3C418_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.9733 mas, bmaj=1.343 mas, bpa=43.17 degrees
! Estimated noise=563.001 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9733 x 1.343 at 43.17 degrees (North through East)
! Clean map  min=-0.02132  max=1.1467 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 3C418_X.log closed on Tue Sep 19 16:12:45 2006