Take the RMS amplitude you computed in module 03 and divide the trace by it. That is the
whole operation. Deep reflectors that were invisible come up to full strength, the section becomes
easy to look at from top to bottom, and every amplitude interpretation you were about to do becomes
impossible. This module is about that trade, and about why AGC applied upstream without being recorded is
the most common way an amplitude study goes wrong.
The seismic line — click it to pick a trace and a time
Change the data — every panel updates as you drag
The AGC
The data
Work through the five steps in order, then try the exercises.
Method and references are there when you want them.
1Divide the trace by its own RMS amplitude
Two steps, and the first one is module 03
AGC is defined in two lines. Compute the RMS amplitude in a running window, exactly as
in module 03. Then divide every sample by the RMS at that sample:
dAGC(t) = d(t) / σ(t)
That is all of it. Where the trace is strong, σ is large and the division reduces it.
Where the trace is weak, σ is small and the division raises it. The result is a trace whose
RMS amplitude is roughly constant all the way down, because it has been defined that way.
The middle panel is the divisor. Read it as the gain curve being applied, upside down:
wherever it is high the data is being turned down, and wherever it is low the data is being turned
up. At the cursor the trace is being multiplied by —.
Worth being clear about what is being divided, because the whole module turns on it.
Under the line is a set of layers: a thinning wedge, a gas-charged sand with the same sand
brine-filled along strike, thin interbeds, and a reflector that dims across the section. Each boundary
between two layers of different acoustic impedance returns a reflection coefficient, and the trace is
those coefficients convolved with the wavelet, then multiplied by a decay that falls with time.
Module 02 draws that chain panel by panel. Two things are therefore mixed together in the amplitudes
σ measures: how big the impedance contrasts are, which is geology, and how much the decay has
taken out of them, which is not. AGC cannot separate the two, and the rest of this module is what
follows from that.
0 The rock, and what it reflects
click the line above to change trace
Impedance at the cursor—
Nearest boundary—
Its reflection coefficient—
Impedance inside the sand—
The rock just above it—
AGC window—
Trace value at the cursor—
RMS there, the divisor—
Gain applied—
Result—
Notice that the gain is different at every sample and on every trace. Nothing coordinates them.
Two neighboring traces with different amounts of energy in their windows get different gains, so
after AGC the amplitude relationship between traces has been rewritten too — not just
the relationship down a trace. The AASPI documentation is blunt about this: trace-to-trace AGC is a
poor choice before any true amplitude analysis.
2What it fixes
The reason it is on by default nearly everywhere
Seismic amplitudes fall off with depth, badly. Energy spreads out as the wavefront
grows, and the earth absorbs the higher frequencies as it goes. By a second or two, reflections from
real, interpretable geology can be a hundredth the size of the shallow ones. Displayed honestly, the
bottom half of the section is a gray smear.
The decay slider in the header controls how severe that is here. At the default setting
the shallow marker on this trace is — times the size of the deep one. After AGC the
same two events are — apart. That is the case for the process: the deep section cannot be interpreted while it is invisible.
This is also why AGC is nearly always already on. Every display package applies some
form of gain by default, often without saying so in any obvious place. A display that has never had it
switched off has never shown the recorded amplitudes.
1 Before and after
the same line, the same clip
2 The selected trace
shallow and deep events marked
Shallow marker, before—
Deep marker, before—
Ratio before—
The same two, after—
Ratio after—
Both sections are drawn with the same color limits, so the comparison is fair. Turn the decay
slider to zero and the two displays become almost the same picture, which is worth doing once: AGC
has very little to do when there is no gain problem to fix, and the temptation to leave it on
anyway is exactly where the trouble starts.
3What it costs
The bright spot was the point, and it is gone
This line has a gas sand on the right and the same sand, brine-filled, on the left. On
the amplitude display that contrast is the most important thing in the picture: it is what a
direct hydrocarbon indicator is.
AGC is not sensitive to that. The gas sand is a stretch of trace with more energy in it than
its neighbors, and removing exactly that difference is what the process does. The gas sand is —
brighter than the brine sand before AGC and — after it. The anomaly has been divided
away by a process that was never told to preserve it.
Nothing in the display indicates this. The AGC section looks cleaner and more balanced than the
one it came from, and it carries less information. Handed the second section alone, there is no way
to tell from the screen that a bright spot ever existed.
One number to reconcile before you go on. Module 01 read the same two sands as
×3.29 apart and module 03 as ×3.3; here the contrast before AGC is a little lower. Nothing
about the rock changed. This module opens at 14 dB per second of amplitude decay rather than 6 or 8,
because AGC has nothing to do until there is a gain problem to fix, and a steeper decay costs the
deeper of the two sands a little more of its amplitude. Turn the decay slider down and the contrast
rises again. That is this module's subject arriving early: a contrast measured off a section is a
property of the rock and of what was done to the amplitudes.
1 The sand, before and after
gas on the right, brine on the left
2 Amplitude along the sand
one value per trace
Gas sand, before—
Brine sand, before—
Contrast before—
Gas and brine, after—
Contrast after—
The lower panel is the amplitude of the sand event trace by trace along the line, before and
after. Before AGC there is a step where the gas comes in. After AGC there is a much smaller one,
and its size depends entirely on the window length. An anomaly whose size depends on a processing
parameter is not a measurement of the rock.
4Long windows are gentler than short ones
The one setting that decides how much damage is done
The window length controls how local the gain is, and therefore how much of the real
amplitude variation gets removed along with the unwanted trend.
A long window — several hundred milliseconds — only sees the slow fall-off with
depth. It corrects that and leaves most of the local contrast alone. This is the safe setting, and
the reason AASPI's default is ±500 ms.
A short window follows the data so closely that it removes almost everything, including
the anomaly you were looking for. At the extreme it starts flattening within a single wavelet,
which distorts the waveform itself.
The panel below shows the same trace at three window lengths, with the sand marked. The
readouts measure two costs: how much of the gas-to-brine contrast survives, and how much the shape of
an individual wavelet has been altered, measured as a correlation against the original.
Header window—
Contrast kept, header window—
Contrast kept, comparison window—
Waveform preserved, header window—
Waveform preserved, comparison—
The waveform numbers are correlations between the shape of the shallow marker before and after
AGC. A long window leaves it almost untouched. A short one does not: dividing by a quantity
that changes across the wavelet stretches one side of it relative to the other, which shifts the
apparent peak and changes the phase. If you are picking horizons on AGC'd data with a short window,
your picks are being moved by the processing.
5Everything downstream inherits it
The reason this module exists at all
AGC is usually applied by someone other than the interpreter, earlier in the flow, for a display that was perfectly reasonable at the time. Then the volume
gets passed along, and attributes get computed from it.
Here is what that does. The panel below computes the envelope from module 01 two
ways: from the original trace, and from the AGC'd trace. On the original, the gas sand's envelope is
— times the brine sand's. On the AGC'd version it is —. The envelope calculation is
unchanged; only the amplitudes it was given have changed.
The same applies to everything else in this set that depends on amplitude: RMS, of
course, since AGC is defined as division by it; sweetness, which is envelope over a root frequency;
and relative acoustic impedance, whose whole output scales with the trace it integrated. Only the
attributes that already threw amplitude away survive — instantaneous phase and instantaneous
frequency come through unharmed, because they are ratios in which the gain cancels.
So before computing any amplitude attribute, ask what was done to the amplitudes before you got them.
Envelope contrast, original data—
Envelope contrast, after AGC—
Phase, before against after—
Frequency, before against after—
AGC window—
The last two readouts are correlations between the phase and the frequency computed before
and after AGC, taken over the samples that have enough energy to have a meaningful frequency at all
— module 01 spent a step on why that qualifier is needed. Both sit close to 1, because each of
those attributes already divides the trace by its own strength, so a gain applied beforehand
cancels. That is a genuinely useful property: on data whose processing history nobody can tell you,
the
phase-based attributes are the ones that remain reliable, which is why phase works well for
horizon tracking on old volumes.
?When to use it and when not to
A display tool that keeps being used as a processing step
AGC is a reasonable display process. The trouble comes when it is used on data that is about to be interpreted quantitatively.
Where it is the right tool
Looking at the data. Structural interpretation, fault picking, seeing whether the deep
section has anything in it at all. If the question is where things are rather than how bright they
are, AGC costs you nothing you needed.
Horizon tracking, with a long window. An autotracker works better when events are of
comparable strength across the survey.
Quality control. Balanced data makes acquisition footprint, noise bursts and processing
artifacts much easier to spot.
Correlating with something else where only shape matters — a synthetic tie, a
crossline comparison, a display for a talk.
Where it will cost you
Any amplitude interpretation. Bright spots, dim spots, AVO, impedance,
RMS maps, anything with the word amplitude in it. AGC is defined as removing amplitude variation, and
it does not distinguish an anomaly from the trend it was asked to flatten.
Anything that compares one place against another. The gain is computed
independently on every trace, so amplitudes are no longer comparable between traces, between lines or
between surveys.
Precise picking on a short window. A window short enough to vary across the
wavelet changes the waveform, which moves the peak and the zero crossings by a small but real
amount.
Anything computed from the volume afterwards. This is the one that actually
happens. Nobody sets out to interpret AGC'd amplitudes; they inherit a volume, compute an attribute
and never ask. Step 5 measures what that costs.
The practical habit: when a volume arrives, find out whether gain was applied, what kind and
over what window, and write it down where the interpretation will be read. If nobody knows, treat
every amplitude number from that volume as a relative comparison within a single trace and nothing
more.
Exercises
Measure what AGC recovers. In step 2, read the shallow-to-deep ratio before and after,
then set the decay to 24 dB/s and read both again.
HintAt the default 14 dB per second the shallow marker reads 0.772 and the deep one
0.097 — a factor of eight. After AGC they are 4.011 and 3.279, a factor of 1.2. Push the
decay to 24 dB/s and the difference before AGC becomes nineteenfold, with the deep event down at
0.034, and after AGC it is still 1.3. That is the process doing what it was designed to do.
Now set the decay to zero. The two events still differ by a factor of 2.4, because they are
genuinely different reflectors, and AGC still flattens them to 1.2. It does not distinguish a gain problem from geology, because within a single trace the two look
the same.
Measure what it destroys. In step 3, read the gas-to-brine contrast before and after,
then take the AGC window from ±300 ms down to ±10 ms.
HintBefore AGC the gas sand is ×3.2 brighter than the brine sand at every window,
since the window has nothing to do with the recorded data. After AGC: ×2.4 at
±300 ms, ×2.0 at ±200, ×1.2 at ±120, ×0.9 at
±30 and ×0.8 at ±10. Read the last two again. Below about ±60 ms the
ratio drops under 1, which means the gas sand has become dimmer than the brine sand.
The anomaly has not merely been removed, it has been turned upside down, because a short window
sitting inside the bright event divides it by its own brightness while the quiet brine sand
gets multiplied up. A short-window AGC display can show you a dim spot where the gas is.
Find the window that damages the waveform. In step 4, watch the waveform correlation as
you shorten the comparison window from ±300 to ±10 ms.
HintAt ±300, ±120 and ±60 ms the correlation is 1.0000 to four
decimals: the waveform is untouched, and only its size has changed. At ±30 it is 0.9999.
At ±20 it is 0.9937, and at ±10 it is 0.9773. The damage starts when the window
gets short enough for the divisor to change appreciably across the wavelet itself, which for a
25 Hz wavelet means somewhere around 20 ms. Below that, one side of the wavelet is being divided
by a different number than the other, which shifts the peak and moves your pick. The rule that
falls out of this is the same one the AASPI documentation gives: keep the window long compared
with the wavelet, and much longer than that if you care about amplitudes.
Ruin an envelope map. In step 5, compare the envelope contrast computed before and after
AGC, at a long window and a short one.
HintThe envelope contrast between the two sands is ×3.2 on the original data. Computed
from the AGC'd version it is ×2.4 at a ±300 ms window, ×1.2 at
±120, ×0.8 at ±30 and ×1.0 at ±10. Nothing was done to the
envelope calculation. It is the same code from module 01, run on data that had already been
through a process nobody told it about, and it now reports somewhere between a much weaker
anomaly and no anomaly at all. This is the whole reason this module sits where it does in the
set: the attribute you compute is only as trustworthy as the amplitudes you were given.
Find the attributes that survive. In step 5, read the phase and frequency correlations,
then change the AGC window and read them again.
HintAt the default ±120 ms window the phase correlates at 0.9999 before against
after, and the frequency at 0.9990. Both are almost untouched, because each already divides the trace by its own strength: multiply the trace by anything positive and the ratio is
unchanged. But shorten the window and even they start to go. At ±30 ms the frequency is
0.9880, and at ±10 ms it is 0.9006 with the phase down to 0.9932. The immunity is not
absolute, it holds while the gain is roughly constant across a wavelet. So the useful version of
the rule is this: on data of unknown history, phase and frequency are the attributes you can
still work with, provided nobody applied a short-window AGC.
Two flat amplitude sections, two very different reasons. Someone hands you a section
on which every event is about equally bright. Give at least two explanations, and say how you
would tell which one you are looking at.
HintEither the earth really is
uniform through that interval — a monotonous shale section with small, similar
reflection coefficients does look like this — or a gain has been applied that removed the
differences. The second is far more common, and this module is about why: AGC is defined as
removing exactly the amplitude variation an interpreter is looking for, and step 3 showed it
turning a ×3.2 contrast between gas and brine sand into ×1.2. Nothing on the
display announces which you have. Three things to try. Look at the deep section: real data
loses amplitude with depth and AGC'd data does not, so a section that is as bright at 2 s as at
0.5 s has almost certainly been gained. Compute an RMS amplitude in a running window, as in
module 03, and see whether it is close to constant — if it is, that is AGC, because AGC
is division by exactly that quantity. And ask for the processing report. If nobody can tell
you, treat every amplitude in the volume as a comparison within one trace and nothing
more.
The main points
AGC is division by the RMS amplitude. Module 03 computed the divisor; this module
divides by it. There is nothing else in the process.
It makes the deep section visible, and that is a real and often necessary gain. On this
line it turns an eightfold difference between shallow and deep into a fifth of that, and a nineteenfold
difference at the steepest decay setting into much the same small number.
It removes exactly the differences an amplitude interpretation is looking for. A bright
spot is a stretch of trace with more energy than its neighbors, which is the definition of what
AGC is built to flatten.
Long windows are gentler. They correct the slow trend and leave local contrast alone.
Short windows remove almost everything and distort the waveform as well.
Every trace is gained independently. After AGC, amplitudes are not comparable between
traces, lines or surveys.
Attributes computed afterwards inherit all of it. Envelope, RMS, sweetness and impedance
are all changed. Instantaneous phase and frequency are not, because the gain cancels in a
ratio.
Method, sources, and what has been simplified
The impedance log in step 1. The model is written as reflection coefficients, so the
impedance is not stored anywhere — it is recovered from them. A boundary with coefficient r
has Zbelow = Zabove (1 + r) / (1 − r) exactly,
the inverse of r = (Z₂ − Z₁) / (Z₂ + Z₁), so
integrating down the spike list returns the log with no modeling choices beyond where to start.
That starting value is 6.71 × 10⁶ kg m⁻² s⁻¹, which is a
reasonable shallow clastic impedance and nothing more; every statement these modules make about the
log is a comparison between two depths on it, and a comparison does not care where the log begins.
Note also what is not there: this synthetic has no compaction trend, because the amplitude decay is
applied as a gain function rather than modeled as rock, so the log is blocky with no background
rise. Module 02 uses a different model that does have a trend, and spends a step on why seismic
cannot recover it.
The data is the same synthetic line as modules 01 and 03: 96 traces of 500 samples at
2 ms, reflection coefficients convolved with a Ricker wavelet, over a low-relief anticline,
with a wedge, a gas sand and its brine equivalent, interbeds and a laterally dimming reflector. The
default amplitude decay is higher again here, at 14 dB per second, because AGC has nothing to do
until there is a gain problem to fix. The identical model code runs in all three modules and the
test harness compares their output sample by sample, so the line cannot drift between them.
The attribute is AASPI's agc as its documentation gives it: the RMS
amplitude in a running window of 2K+1 samples, then every sample divided by it. One addition, which
AASPI does not need on real data and this module does: a floor under the divisor, set at 2% of the
largest RMS on the trace. A synthetic can contain a genuinely silent stretch where σ goes to
zero and the division goes to infinity; real data always has noise in it. Where the floor takes
over, the module says so rather than drawing the result as though it meant something.
Window lengths. The AASPI default is ±500 ms, which on a one-second synthetic would
be the entire trace, so the slider here runs from ±10 to ±300 ms with a default of
±120. The documentation's own advice is the important part and it is stated plainly there:
long-window AGC is safer than short-window AGC for preserving relative amplitudes, and trace-to-trace
AGC is a poor choice before true amplitude analysis.
The measurements. Contrast between the gas and brine sands is the peak absolute amplitude of
the sand event on trace 66 against trace 20, read within a window around the sand that
follows the structure. Waveform preservation is the correlation between the shallow marker's
waveform before and after AGC, over a window of ±40 ms centered on it, with each version
scaled to its own peak so that the correlation measures shape rather than size. The step 5
comparisons recompute the envelope, instantaneous phase and instantaneous frequency from scratch on
both versions of the trace, using the same library module 01 uses.
Simplifications. One dimension, normal incidence, acoustic, no multiples and no
transmission losses. The decay is a gain function in dB per second rather than a model of spherical
divergence and absorption, so the shape of the fall-off is a stand-in. Real AGC implementations
differ in details this module does not cover: some use a mean absolute value rather than an RMS,
some taper the window, some apply the gain in overlapping blocks rather than sample by sample, and
some clip the gain. All of them share the property this module is about.
Yilmaz, Ö., 2001, Seismic Data Analysis: SEG Investigations in Geophysics 10.
Sheriff, R. E., and L. P. Geldart, 1995, Exploration Seismology, 2nd edition: Cambridge
University Press.
Chopra, S., and K. J. Marfurt, 2007, Seismic Attributes for Prospect Identification and
Reservoir Characterization: SEG Geophysical Developments Series 11.
AASPI, Single Trace Attributes: Program agc, University of Oklahoma.
Next up
05 · Amplitude volume transform
Envelope, then the RMS of the envelope in a window, then a Hilbert transform back. Three steps that
turn a wiggle into something that images stratigraphy, and lower the frequency doing it.