bagc - BSU program applies Automatic Gain Control (AGC) (C-Language Version)
bagc [ -h | infile | twide | itype ]
Basic Seismic Utilities (BSU) performs Automatic Gain recovery (both in space and time). One may choose to smooth the energy envelope with either a zero phase box car operator (which then gives an anticipatory component to the gain recovery), or one may choose to use the minimum phase (single pole on the real axis in the z-plane) filter. Output can be either the gain recovered data, or the smoothed gain recovery envelopes, sqrt(smoothed energy). First sample set to zero to avoid noise spike. C-Language Version.
Options
-h |
Online help giving details on command line arguments | ||
infile |
First argument is usually the input file name |
twide (float)
Width of energy envelope smoother in seconds (box car duration if itype=1 or 3), or exponential time decay factor (seconds) if itype=0 or 2). That is, exp(-time/twide).
itype (int)
Switch to select type of bsegy output.
0=gain recovered data, single pole (exponential, min. phase smoother).
1=gain recovered data, zero phase box car smoother
2=smoothed amplitude envelope, single pole case.
3=smoothed amplitude envelope, zero phase box car case.
NOTE:
If invoked with no options, will prompt user for input
parameters.
EXAMPLE:
bagc w001.seg .05 0
File w001.seg is processed by bagc. The time constant is .05 seconds, and the single pole smoother is invoked. Output will be the gain recovered data.
bagcxxxx.seg
named according to convention (first 4char bagc, the next 4char are the first 4char of the input file name, suffix .seg)
standard output
produces a progress bar
bagcxxxx.lst
Echo check of input parameters in listing file.
bhelp(1), onepole(3), c_boxit(3), fnorm(3), fmax_min(3)
no known bugs
Copyright © 2024 by Paul Michaels
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
P. Michaels, PE. <paulmichaels@.boisestate.edu>