Module 01 took the spectrum of a single wavelet, which contained one event. A real trace contains hundreds of events at different depths, and their frequency content varies from one to the next. A spectrum of the whole trace reports which frequencies are present and reports nothing about where they are. These five steps put a window on the trace, measure what the window does to the answer, and put numbers on the trade.
Two events, five traces — and the spectrum of the middle one
Build the trace — every step updates as you drag
The events
The window
Steps 2, 3 and 4 all use this window.
Work through the five steps in order, then try the exercises.
Method and references are there when you want them. Steps 4 and 5 are marked as advanced: they
put numbers on the limit that steps 1 to 3 establish, and nothing later in the set depends on
them.
1One spectrum, two different traces
Swap the events over and nothing changes
Why this step is here. A spectrum of a trace shows energy at 20 Hz and at 60 Hz. Which part of the section did each come from?
Each panel below is a short section: five traces side by side, two-way time down the
left, positive lobes shaded, which is how a seismic display is normally read. The two events are
given a gentle dip so the panel reads as a section. Every number on this page is measured on the
middle trace.
The right-hand panel is the same section with the two events swapped: low frequency
on top, high frequency underneath. The two describe different geology. Their whole-trace spectra
are identical.
What the two events stand for. An interval of thin interbedded sands and
shales returns reflections spaced closely in time, and the energy it sends back is concentrated at
high frequencies. A thicker, more massive unit returns reflections spaced further apart and sends
back lower frequencies. Which of the two lies above the other is a stratigraphic fact about the
section, and the whole-trace amplitude spectrum does not contain it. A survey described as
"30 Hz data" is being described by one number taken over an entire record, which belongs to no
interval in it.
As builthigh above low
Events swappedlow above high
Largest spectral difference—
Peak frequency, as built—
Peak frequency, swapped—
Mean frequency, both—
A Fourier transform of a whole trace does not record when anything happened. The timing is still present in the phase spectrum, which is how the trace can be reconstructed exactly, but the amplitude spectrum on its own carries none of it. Every spectral attribute is built on amplitude, so every one of them needs the timing supplied some other way.
2The analysis window
Slide it down the section and watch the spectrum change
Why this step is here. A decomposition asks for a window length. What is the window for?
The gray band across the section is the analysis window. Everything outside it is excluded, and the spectrum beside it is of the middle trace within that band. Moving it over the shallow event raises the spectral peak; moving it over the deep event lowers the peak; placing it between them produces both humps at once, which is the whole-trace answer measured over a shorter interval.
The section, with the window across itfixed axes
Spectrum of what is inside the windowfixed axes
Peak frequency in window—
Window center—
Window length—
Energy in window—
That is spectral decomposition, carried out one window at a time. The result is a spectrum that belongs to a time rather than to the trace. Everything in the modules that follow refines it: doing it at every sample, choosing the window automatically, and handling what the window does to the answer.
The window is the interval the answer describes, so it is a stratigraphic choice
before it is a processing one. A window of 40 ms centered on a reservoir 20 ms thick contains
the reservoir and 10 ms of whatever lies above and below it, and the spectrum that comes back
describes all three. Lengthening the window to resolve frequency better draws in more of the
overburden and the underburden; shortening it to isolate the reservoir gives a spectrum too
coarse to locate a notch in. The interval that is geologically meaningful and the interval that
gives a well-resolved spectrum are usually not the same interval, and the size of the gap
between them is what step 4 measures.
3Every window at once: the spectrogram
Time across, frequency up, amplitude in color
Why this step is here. A time-frequency image shows a bright blob. How much of its size is the geology and how much is the window?
The image reads as a map: two bright regions, one high-frequency and early, one low-frequency and late. Taking the window length slider in the header from one end to the other changes their shapes. Neither region is a point, and no window length makes both of them small at once.
Time-frequency plot of the whole trace
Change the window length in the header
Window length—
Lowest frequency the window holds—
Shallow blob, time spread—
Shallow blob, frequency spread—
Neither region is a point, and no setting makes both of them small. At a 20 ms window
the shallow blob measures 18 ms by 108 Hz: tight in time, hopeless in frequency. At 300 ms it is
151 ms by 58 Hz. There is no setting where it is tight in both directions, and that is not a
shortcoming of the software. Note that the frequency width stops improving. It barely moves between
80 ms and 300 ms, because past that point the window is no longer what limits it. The event has a
bandwidth of its own, and nothing can be measured as narrower than the thing being measured. That is why the next step measures the window on its own. The readout for the
lowest frequency the window can hold makes the other half of the point: 40 ms cannot fit one cycle
of anything below 25 Hz, so whatever the picture shows below that is not a measurement.
A spectrogram of a real trace is read the same way. A downward drift of the bright
region toward lower frequencies over hundreds of milliseconds is absorption, and is a property
of everything the wave has passed through rather than of the interval it is drawn at. An abrupt
local shift confined to a few tens of milliseconds is a property of that interval, and is the
kind of feature module 09 examines. Separating the two requires knowing how much of the vertical
extent of a bright region came from the window, which is what the readouts above measure.
4Advanced concept: measuring the trade
Sharpen one and the other blurs, every time
Why this step is here. Halving the window length doubles the frequency smear. Is that an exact relationship or a rule of thumb?
Moving the window length through its range moves the two widths in opposite directions. The third readout is their product.
A spike, through the windowfixed axes, ±160 ms
A pure tone, through the windowfixed axes
Window length—
Time resolution—
Frequency resolution—
Their product (s·Hz)—
The product does not move. Frequency resolution is measured here as the full width at
half maximum of the window's frequency response, which for a Hann window is about 2/T. Two
tones can usually be told apart once they are separated by roughly half that, about 1/T, and
module 08 uses that separation figure. Both describe the same limit.
Put in stratigraphic terms: a window long enough to separate two notches 8 Hz apart, which is what
distinguishing a 60 ms bed from a 65 ms bed requires, is about 250 ms long, and 250 ms of section
at 2500 m/s is some 300 m of rock. The thickness is measured over an interval far larger than the
bed being measured. This is the reason a spectral thickness estimate is a property of a package
rather than of a single bed, and the reason two beds within one window cannot be told apart. Across the whole slider the
time resolution changes by a factor of fifteen, from 10 ms to 150 ms, and the frequency resolution
changes by a factor of fourteen and a half, from 97.4 Hz down to 6.7 Hz. Their product reads 1.00 at every single setting.
The two numbers are not independent quantities that happen to be related; they are one quantity,
seen from two sides. Time resolution comes out at exactly half the window length and frequency
resolution at almost exactly two divided by it, so the product is fixed before any parameter is set.
That is the uncertainty principle — the same one physics students meet attached to Heisenberg — and
it is a property of the Fourier transform rather than of seismic data or of software. No amount of
cleverness in a processing shop gets around it. What can get around it is refusing to use a
fixed window at all and assuming something about the signal instead, which is what the
matching pursuit and maximum entropy methods in module 08 do, and exactly why they can fail in ways
a window never can.
5Advanced concept: window shape and leakage
One pure tone, three windows
Why this step is here. A spectrogram shows energy at a frequency the data cannot contain. Where did it come from?
Below is a single pure tone put through each window shape in turn. Its spectrum should be one spike. The readout measures how much of it appears elsewhere.
The window on the tonewhat actually gets transformed
The spectrum it produceslog scale, fixed axes
Window shape—
Worst leakage—
Main peak width—
Peak frequency found—
Leakage puts energy at frequencies that were never in the ground. The boxcar's worst
sidelobe reaches 0.223 of the peak, which is −13 dB: a fifth of the amplitude of a real event,
sitting at a frequency that was never there. Hann brings that to 0.027 (−31 dB) and the Gaussian to
0.0066 (−44 dB) — eight and thirty times better. Their main peaks are correspondingly wider, 25.4 and
24.2 Hz against the boxcar's 14.7 Hz, which is the same trade as everywhere else in this module, in
miniature.
Every spectral decomposition program applies a taper for this reason, and the AASPI programs apply
one at the top and bottom of the input as well, to stop the ends of the record behaving like two
enormous artificial steps.
Leakage matters for interpretation because it fills in the notches. A thin bed announces itself by
a minimum in the spectrum at a frequency set by its thickness, and leakage from the strong energy
on either side of that minimum partly fills it. A bed present in the ground can therefore leave a
notch too shallow to pick, and the thickness that would have followed from its position is
unavailable.
Why it matters
Where this shows up in real work
Window length is a parameter every spectral decomposition requires, usually with no guidance offered. These five steps are what the choice rests on.
Choosing a window for a target. A thin reservoir needs time resolution, so it needs a
short window and will be measured coarsely in frequency. A gradual attenuation trend needs
frequency resolution and can afford a long one. You cannot have a setting that suits both, so
decide which of the two questions the analysis is asking before running it.
Knowing when a low-frequency reading is fictional. If the window cannot hold one cycle of
the frequency you asked for, the number that comes back is an extrapolation. The readout in step 3
tells you where that line falls.
Reading someone else's spectral volume. Two decompositions of the same survey with
different window lengths will disagree, and neither is wrong. If the parameter is not recorded,
the volume is much harder to argue with.
Understanding why there are several programs. Every method in module 08 is a different
answer to the trade you measured in step 4 — a fixed window, a window that scales with frequency,
or no window and a model instead.
Explaining a strange edge effect. Ringing at the top and bottom of a spectral volume is
usually the taper in step 5 — or the absence of one.
Two mistakes worth naming. The first is reading a spectrogram as though its bright regions were measurements of real objects. They are the true signal convolved with the smear the window choice imposed, and the smear is often the larger of the two. The second is comparing two time-frequency images made with different window lengths. Their blobs differ in size for reasons that have nothing to do with the rocks.
The window length is part of what a time-frequency image reports. An image presented without it is an instrument reading with no scale on the dial.
Exercises
Show that a whole-trace spectrum carries no timing.Why: "the spectrum of this survey" describes what is present and not where any of it is.
In step 1, move the deep event time
across its whole range and watch the difference readout.
Before moving it: the two traces hold the same two events at different depths. Should their amplitude spectra differ, and if so where?HintIt stays at zero wherever you
put the event. The two spectra are identical no matter how the events are arranged, because
an amplitude spectrum records how much of each frequency is present and nothing whatever about
when. Try changing the event frequencies too: now the spectrum changes, because the
content changed. Timing does not affect it, content does. That is the exact
distinction spectral decomposition exists to repair, and it is why "the spectrum of this
survey" is a much less useful object than people assume when they quote it in a
report.
Measure each event's frequency by moving the window.Why: this is spectral decomposition done one window at a time, and the numbers come back out of the data rather than being assumed.
In step 2, park the window on the shallow
event, read the peak frequency, then park it on the deep one.
HintOver the shallow event at 160 ms
the readout is close to 50 Hz, and over the deep one at 400 ms close to 20 Hz — the numbers
the events were built with, recovered from the data rather than assumed. Now park the window
between them, around 280 ms. The energy readout collapses to zero, and the peak frequency
readout goes on producing a number anyway: it pins to 2 Hz, the bottom of the axis, because
there is no peak to find and something has to be reported. On real data, where there is always
a noise floor rather than true silence, that number would not look obviously broken — it would
look like a low-frequency anomaly. Remember this for module 06: a peak frequency map means
nothing wherever the magnitude is small, which is why AASPI displays peak frequency modulated
by peak magnitude rather than on its own.
Set a window too short for the frequency being measured.Why: a window that is too short does not fail visibly. It returns a confident number that is wrong.
In step 3, set the window length to its shortest and read
the lowest frequency the window can hold, then compare it with where the deep event sits.
HintAt a 20 ms window the floor reads
50 Hz, so a 20 Hz event is being described by a window that cannot contain a single cycle of
it. The blob does not disappear — that is the trap — it smears into a broad, weak, badly
placed stain, and a peak frequency picked from it is wrong rather than absent. At 40 ms the
floor is 25 Hz, still above the event. At 80 ms it is 12.5 Hz, comfortably below, and the blob
firms up. The rule to carry: a window has to be several times longer than the period of the
lowest frequency being measured, and a period is 1/f — 50 ms for a 20 Hz event.
Measure the time-frequency trade.Why: the limit belongs to the Fourier transform, not to this trace or this code, so every fixed-window method meets it.
In step 4, take the window length from 20 ms to
300 ms, recording the time resolution, the frequency resolution and their product.
HintTime resolution runs 10, 20, 30,
40, 60, 100, 150 ms — exactly half the window length each time. Frequency resolution runs
97.4, 51.0, 33.9, 25.3, 16.8, 10.1, 6.7 Hz, which is almost exactly 2 divided by the window
length. Each factor moves by about fifteen times across the slider. The product reads 1.00
throughout. That product is a property of the Fourier transform rather than of this trace or this code, so it is not measuring
a property of the Fourier transform, which is why every fixed-window method has the same
ceiling, and why the interesting methods in module 08 are the ones that stop using a fixed
window.
Compare the three window shapes for leakage.Why: leakage puts amplitude at frequencies the data never contained, and the window shape decides how much.
In step 5, switch between the three window
shapes and compare the leakage readouts.
HintThe boxcar's worst sidelobe is
0.223 of the peak, or −13 dB. Hann gives 0.027 (−31 dB) and the Gaussian 0.0066 (−44 dB) —
eight and thirty times cleaner. They pay in main-peak width: 25.4 Hz and 24.2 Hz against the
boxcar's 14.7 Hz, so the boxcar really does have the sharpest main peak, which is exactly the
trap. On one clean tone the boxcar looks tolerable because there is nothing for the leaked
energy to fall on. On real data there always is, and a fifth of a strong event's amplitude
landing at a completely different frequency is indistinguishable from geology.
Give one low-frequency blob on a spectrogram three explanations. In step 3, set a
long window, find a blob low on the frequency axis, then shorten the window and watch it.
HintA blob low on the frequency
axis of a spectrogram has at least three causes, and the picture does not separate them. The
event may genuinely be low frequency. The window may be too short to hold a cycle of what it
is reporting, in which case the value below that floor is an extrapolation rather than a
measurement — the readout in step 3 tells you where the floor sits. Or the blob may be
leakage from a strong event at another frequency, spread there by the window shape rather
than by anything in the ground, which is step 5. Changing the window length separates the
first from the second and third: a real feature stays where it is, while a window artifact
moves when the window does. That single test is the most useful habit in this module.
Key points
An amplitude spectrum of a whole trace has no sense of time. Rearrange the events and
it does not change. Any question of the form "is this interval lower frequency than that one"
is unanswerable from it.
The fix is a short analysis window, giving a spectrum that belongs to a place rather
than to the whole trace. Doing that at every sample produces a time-frequency plot, which is
what every spectral attribute is computed from.
Window length is the parameter that matters most, and there is no correct
value — only a value that suits the question. Short favors time, long favors frequency.
Sharpening one direction blurs the other, and the product is nearly fixed. That is the
uncertainty principle, a property of the transform rather than of the data or the software.
A window shorter than one cycle of your target frequency is not measuring it. The
picture still shows something, which is what makes it dangerous.
Window shape matters as much as window length. A sharp-edged window leaks energy across
the whole band, where it is indistinguishable from signal; a taper suppresses it and broadens
the main peak slightly in return.
Words introduced here
analysis window
The short piece of trace a spectrum is taken over. Everything outside it is excluded.
window length
How long that piece is. The parameter every spectral decomposition asks for.
spectrogram, or time-frequency plot
Spectral amplitude plotted with time along one axis and frequency along the other.
time resolution
How closely two events can sit in time and still be seen separately.
frequency resolution
How closely two frequencies can sit and still be seen separately. For a Hann window of
length T it is about 2/T.
window shape, or taper
How the window fades to zero at its ends. Boxcar, Hann and Gaussian are the common ones.
magnitude
The height of the amplitude spectrum at one frequency, in one
window.
leakage
Spectral amplitude appearing at frequencies that were not in the data, caused by the window
rather than by the rocks.
sidelobe
The largest of those false peaks, quoted as a fraction of the true peak.
Method
What is computed, and what is left out
The trace. Two zero-phase Ricker wavelets of the chosen peak frequencies,
placed at 120 ms and at the time you set, sampled at 1 ms over half a second. No noise, no
reflectivity series and no propagation — the point of this module is the analysis, so the input is
kept as simple as it can be while still having two different frequencies in two different places.
The time-frequency plot is a short-time Fourier transform from
assets/spectral.js. At every sample the trace is multiplied by the window,
and the result is transformed directly at each requested frequency rather than by an FFT, so the
frequency axis can be sampled as finely as we like instead of being tied to the window length. The
transform is normalized so that a cosine of amplitude A at the analysis frequency comes back with
magnitude A, which makes the readouts mean something without a scale factor. AASPI does not
normalize this way, so absolute magnitudes here are not comparable to AASPI output — shapes and
ratios are.
The resolution numbers in step 4 are measured, not derived. Time resolution is
the full width at half maximum of a horizontal cut through the shallow blob at its own frequency;
frequency resolution is the full width at half maximum of a vertical cut at its own time. Both are
found by walking outward from the maximum until the curve falls below half, and interpolating
linearly between the two samples that straddle it. The product is simply one times the other, in
units of milliseconds times hertz.
Why the product reads 1.00 and not the number in a physics textbook. The
uncertainty principle puts a floor under the product of a time width and a frequency width, but
the value of that floor depends on how "width" is measured and on the shape of the window.
Measured as full widths at half maximum through a Hann window, as they are here, the product works
out to 1. Measured as standard deviations, which is the usual convention in physics, the same
principle is written as a floor of 1/(4π). The constant changes with the convention. The fact that
the two widths trade against each other does not, and that is the part to carry forward.
Leakage in step 5 is the largest spectral amplitude found more than 15 Hz away
from the true tone frequency, as a fraction of the peak. The 15 Hz exclusion is arbitrary but fixed,
and it exists so the measurement describes energy that has genuinely escaped rather than the natural
width of the main peak.
Simplifications, stated plainly. The window here is centered on the output
sample and truncated at the ends of the record rather than padded, so the first and last half-window
of every spectrogram is computed on less data than the middle and should not be interpreted — real
software pads or tapers instead, and AASPI applies a taper to the top and bottom of the input for
exactly this reason. The spectrogram is computed at every sample, which no production code does for
a whole survey. And all three window shapes here are symmetric and zero phase; the phase of the
analysis is left entirely alone until module 03.
Where this departs from production software. The short-time Fourier transform
shown here is not what any of the AASPI spectral programs use — they use a wavelet transform,
matching pursuit or a sparse inversion, all of which module 08 compares. The STFT is here because it
is the one method where the trade can be seen directly, with a single slider that means exactly one
thing. Every other method makes the same trade less visibly.
References
Gabor, D., 1946, Theory of communication: Journal of the IEE, 93,
429–457.
Harris, F. J., 1978, On the use of windows for harmonic analysis with the discrete Fourier
transform: Proceedings of the IEEE, 66, 51–83.
Chakraborty, A., and D. Okaya, 1995, Frequency-time decomposition of seismic data using
wavelet-based methods: Geophysics, 60, 1906–1916.
Castagna, J. P., and S. Sun, 2006, Comparison of spectral decomposition methods:
First Break, 24, 75–79.
AASPI, Spectral Attributes: Program spec_max_entropy, University of Oklahoma — for
the window-length and frequency-sampling discussion.
Next up
03 · What actually comes out of a spectral decomposition
You have made a time-frequency plot. Real software hands you volumes with names like
spec_mag_3d_cwt_20 — magnitude, phase and voice, one set per frequency. Time to find out what each
of them actually is.