What actually comes out of a spectral decomposition
A spectral decomposition writes files with names like spec_mag_3d_cwt_survey_20.H and spec_voice_4d_cwt_survey.H. Three kinds of output come out of one calculation: magnitude, phase and voice. These five steps show what each one holds, which is worth loading, and what happens to a wedge when it is imaged one frequency at a time.
One trace, decomposed — time down, frequency across, magnitude in color
Set the decomposition — every step updates as you drag
The frequency you look at
The earth
Work through the five steps in order, then try the exercises. Steps 3 and 5
are marked as advanced: they concern the arithmetic of the decomposition rather than what is done
with it, and nothing later in the set depends on either.
Step 3 is optional on a first pass — nothing after it depends on phase.
Method and references are there when you want them.
1What a voice is
Change the component frequency and watch
Why this step is here. A directory holds a volume named spec_voice. It opens looking like seismic. What is different about it?
The gray trace below is the input data and the crimson trace is the voice at the chosen frequency. Moving the component frequency slider changes which part of the trace the voice follows and which part it discards.
What a voice is, as a piece of data. It has the same number of samples as the
input, the same time axis, and the same reflectors at the same times. Nothing has moved and
nothing has been added. What has been removed is every frequency except a narrow range, and with
them, the response of every bed whose thickness does not suit that range. A voice is therefore the
section with one bed thickness left in it and the rest suppressed, which is why a body that is
unremarkable on the full-bandwidth data can dominate a voice, and why a body that dominates the
full-bandwidth data can be almost absent from one.
The trace, and one voice from it
Gray: the trace. Crimson: the voice at the chosen frequency
Component frequency—
Filter bandwidth here—
Voice peak amplitude—
As a fraction of the trace—
A voice is the output of a narrow bandpass filter. There is no separable 30 Hz part of a trace: a filter has a width, and the voice contains everything that width passed. Two decompositions asked for the same center frequency will produce different voices if their filters differ in width, and that width is set by a parameter that is rarely reported alongside the volume.
2Magnitude, phase and voice
The same decomposition, written down three ways
Why this step is here. Three volumes came out of one run. Are they three measurements or three views of one?
Magnitude is the same quantity modules 01 and 02 called the amplitude
spectrum. Nothing new is being introduced here. AASPI and most interpretation software label
the file magnitude; textbooks and processing reports usually say amplitude spectrum.
Both names are in normal use and both turn up, sometimes on the same screen. This set uses
"amplitude spectrum" when it is talking about the shape of a spectrum and "magnitude" when it is
talking about the file or the attribute, which is roughly how the two words divide in practice.
Each panel below is the whole time-frequency plane for this trace: time down the side, frequency across, and the quantity in color. They are three views of one complex number at every point.
What separates the two panels. Magnitude is a size and carries no sign. It
states how much energy the trace holds at that frequency at that time and says nothing about
which way the wave was pointing. The voice keeps the sign. It is the waveform of that one
frequency: what would be left of the trace if every other frequency were filtered out of it, and
like any waveform it swings positive and negative as it passes.
Red and blue on the voice panel are the sign. Red is a positive value and
blue a negative one, the same convention a seismic section uses for a peak and a trough. Reading
down the panel at one frequency, the alternation from red to blue and back is that filtered
waveform oscillating in time. Where the magnitude panel shows a single smooth bright patch, the
voice panel shows several stripes inside the same patch, because one burst of energy is several
cycles long. Both panels are drawn from the same numbers.
Which one is used follows from that. A thickness map is made from magnitude, because
thickness sets how much energy returns at a frequency and not its sign. A voice volume is what is
used to look at the data as seismic at one frequency: it can be displayed as a section, picked
like any other section, and added back to the other voices to return the original trace, which is
what step 5 does. Magnitude cannot be added back into anything, because the sign that would be
needed has been discarded.
Magnitudehow much, always positive
Voicemagnitude × cos(phase)
Magnitude at the marker—
Phase there—
Voice there—
mag × cos(phase)—
Magnitude is smooth and the voice oscillates, which decides what each is used for. Magnitude answers how much energy sits at a frequency at a time, and every spectral attribute in the modules ahead is computed from it. A voice answers what the data look like through that filter, and is for display and for interpretation on a section. Loading a voice volume to compute an attribute from it reintroduces the oscillation that the magnitude had already removed.
3Advanced concept: correcting spectral phase
And the one correction that fixes it
This step is optional on a first pass. It is the hardest page in the set, and nothing
later depends on it: modules 04 through 09 are built entirely on magnitude. If phase is new to
you, read the first paragraph, skip to step 4, and come back to this once the rest of the set
makes sense. It is here because the third file in a project directory has to be explained by
somebody, and because a phase panel that has not been corrected is unreadable in a way that looks
like a software fault.
Why this step is here. A spectral phase volume opens as a field of stripes with no obvious relation to the geology. Is anything in it?
The correction is one line of arithmetic: subtract 2πft from the phase at every sample, removing the rotation that traveltime alone produces. What remains is the phase of the reflection.
Most of both panels is not a measurement. Phase is the angle of a complex
number, and the arithmetic returns an angle wherever that number is not exactly zero, including
the large parts of the plane where the magnitude panel in step 2 is almost black. In those
regions the angle is the angle of a very small number, it takes any value between −180° and
+180°, and it draws as fine stripes. Nothing there corresponds to anything in the trace. The
panels are drawn without that region masked because masking it is a display choice that the
reader should make knowingly, and because a phase volume opened in interpretation software
arrives in exactly this state.
So the two panels are read only where the magnitude is strong: the band
around the reflection, at the frequencies the wavelet carries. There the raw panel stripes
steadily downward, because a fixed frequency accumulates 2πft of rotation as time
increases, and the higher the frequency the faster it turns. That is the rotation the correction
removes, and the readouts count it: the raw wraps per 100 ms fall to near zero after correction,
and the corrected value at the top of the wedge settles on a number that describes the
reflection rather than its arrival time.
The behavior toward the edges of the corrected panel follows from the same thing.
At the low-frequency end the correction 2πft is small, so little changes; at the
high-frequency end it is large and turns rapidly with both frequency and time, so a region with
no signal in it goes from one pattern of stripes to another. Neither is a fault in the
correction. The stripes are the phase of noise before and after, rearranged.
Raw phasestripes from the clock
Corrected phase2πft removed
Component frequency—
Raw phase wraps per 100 ms—
Corrected wraps per 100 ms—
Corrected phase at the wedge top—
The correction makes phase comparable between frequencies. Uncorrected, a 60 Hz panel carries three times as many stripes as a 20 Hz panel, and the difference is entirely the clock rather than the rocks. After the correction the two panels can be laid against each other, and a phase that varies with frequency at one place is describing something about that place.
4One frequency, across a whole line
Where this stops being an exercise
Why this step is here. An iso-frequency section is bright over one part of a bed and dark over another. Did the rock change?
The top panel is the seismic line. Below it is the magnitude of a single frequency component across the same line — an iso-frequency section, which is the form an interpreter usually receives.
What a brightening along one bed means. The iso-frequency section brightens
and dims along a reflector that is continuous and unremarkable on the seismic above it. Nothing
about that pattern requires the rock to change. A prograding shoreface sand thickens seaward and
thins landward over a few kilometers, and one component brightens across the reach where the sand
is near the thickness that component responds to and dims on either side of it. The lithology, the
porosity and the pore fluid can be identical along the whole body.
A second cause produces the same pattern and is not thickness at all. The impedance
contrast at the top of the bed can change laterally while the thickness stays constant, and that
brightens the component too. The two are separated by looking at a second component rather than by
looking harder at the first. A thickness change puts the bright patch somewhere else at a
different frequency; a contrast change brightens the same place at every frequency. That test
needs only one more volume, and it is the reason iso-frequency volumes are delivered as a set.
The line, and one frequency of it
The wedge thins to the right
Component frequency—
Brightest at trace—
Bed thickness there—
1/(2 × frequency)—
Each frequency is brightest over a different part of the same wedge. Nothing about the model changes between one iso-frequency section and the next. What changes is the bed thickness that the filter responds to, so a bright zone marks where the bed suits the frequency rather than where the rock is different. Module 04 puts numbers on which thickness goes with which frequency.
5Advanced concept: adding the voices back together
Yes — but only on the right frequency grid
Why this step is here. If the voices are slices of the data, adding them all back should return the data. Does it?
The choice is how to space the requested frequencies. Equally spaced — every 2 Hz, say — is the default in most software. A fixed number per octave spaces them more closely at the low end and more widely at the high end. The two look interchangeable in a parameter dialog and are not.
The choice has a stratigraphic consequence as well as an arithmetic one. Equal
spacing in hertz samples thin beds finely and thick beds coarsely: components at 60 and 62 Hz
respond to thicknesses about a quarter of a millisecond apart, while components at 10 and 12 Hz
respond to thicknesses more than eight milliseconds apart. A section of stacked thin sands is well
described on that grid. A section of thick amalgamated channel fills, or a carbonate platform with
tens of milliseconds between its bounding surfaces, is described by only a handful of the
components requested. Per-octave spacing distributes the components evenly across thickness
instead, leaving fewer of them at the high end.
Original and reconstructiongray then crimson
Gain of the whole filter bankflat means it works
Frequency spacing—
Components used—
Bank gain ripple—
Match to the original—
Equally spaced frequencies do not reconstruct; per-octave frequencies do. Each filter in this family is proportionally wide, so its width grows with its center frequency. On an equally spaced grid the high frequencies are therefore sampled more densely relative to their own width than the low ones, the summed gain rises with frequency, and the reconstruction comes back tilted toward the high end. On a per-octave grid the summed gain is flat and one scalar restores the trace.
Why it matters
Where this shows up in real work
This module is what turns a directory of unfamiliar files into volumes that can be opened with an expectation of what is in them.
Choosing what to load. Magnitude for anything that will be interpreted as an attribute
or blend in color; voice when you want something that still reads as seismic and can be picked;
phase only if you have checked whether the traveltime correction was applied.
Not filling the disk. Asking for magnitude, phase and voice at every 1 Hz over a whole
survey is three volumes per frequency and will fill a drive. Deciding what you actually need
starts with knowing what each one is.
Reading someone else's iso-frequency section. A 20 Hz section and a 50 Hz section of the
same survey showing different features is normal and expected, not a sign that one is wrong.
Setting the frequency range and increment. Every program asks. Step 5 is the reason the
answer is not "as fine as I can afford."
Knowing when reconstruction is safe. Any workflow that decomposes, modifies and
recombines — spectral balancing in module 05, bandwidth extension later — depends on the
reconstruction actually working.
Where an iso-frequency section gets misread. The commonest error is treating it as the geology that exists at that frequency. It shows which parts of the section suit that filter, and a part that suits a different filter is not absent from the earth. The second error is comparing two iso-frequency sections without knowing the filter widths behind them, since a wider filter produces a smoother, brighter section for reasons that have nothing to do with the rocks.
Three things determine what a spectral volume can be used for: which quantity it holds, which frequencies were requested and how they were spaced, and whether the data were balanced first.
Exercises
Watch a voice lose its data.Why: a voice is a filter output, so what it drops is decided by a parameter rather than by the earth.
In step 1, take the component frequency from 8 Hz to 90 Hz
and watch the fraction readout.
Before you drag it: at a component frequency the trace barely contains, will the voice come back wrong, or come back small? They are different failures.HintThe voice is only ever a
fraction of the trace, and the fraction peaks where the component frequency matches what the
trace actually contains. Away from that the voice becomes small, which
faithfully reports that there is very little of that frequency present. This is worth
internalizing before module 06: a spectral attribute computed where the magnitude is tiny is
describing rounding error. Note that the filter bandwidth readout grows as you raise the
frequency — 5.3 Hz at 20 Hz, 10.6 at 40, 21.2 at 80 — so the high-frequency voices are
averaging over a wider slice of the spectrum than the low-frequency ones. On the default
wedge trace the voice peaks at about 46% of the trace amplitude near 35 Hz, which is the
frequency the section was made with, and falls to 1.5% at 10 Hz and 4.8% at 80 Hz.
Check that the three outputs really are one object.Why: three volumes on disk are one calculation, and knowing that decides which is worth loading.
In step 2, move the trace slider and
compare the last two readouts at several positions.
HintThey agree everywhere, to the
last digit shown, because the voice is not computed independently — it is magnitude times the
cosine of phase, by definition. Which means the three volumes the software wrote are
redundant: any one of them can be rebuilt from the other two, which matters when disk space
is the constraint, and it is also why the voice volumes are the ones most often skipped
in practice, even though they are the easiest to look at.
Show why phase needs correcting.Why: an uncorrected phase panel is mostly a picture of the clock, and it is often discarded on that basis.
In step 3, set the component frequency to 20 Hz and
read the wrap counts, then set it to 60 Hz and read them again.
HintThe raw phase wraps 2.2 times per
100 ms at 20 Hz, 4.2 times at 40 Hz and 5.1 times at 60 Hz — tracking the frequency itself,
because that is essentially all it is measuring. It runs slightly under at the top of the
band, and that is worth understanding rather than ignoring: the filter at 60 Hz is 16 Hz wide
and this trace has far more energy below 60 Hz than above it, so the energy that actually gets
through rotates a little slower than the label on the filter. The corrected panel drops to 0.0
wraps at 20 and 40 Hz and 1.0 at 60 Hz, and what is left is structure rather than clock. The
practical consequence: two raw phase panels at different frequencies cannot be compared at
all, and a raw phase volume corendered with seismic shows stripes that track two-way time
rather than geology. If a phase display looks like a barcode, this is why.
Make each frequency find its own bed.Why: this is the effect every later module rests on, seen here on a section rather than a map.
In step 4, step the component frequency through
15, 25, 40 and 60 Hz, reading which trace is brightest and how thick the bed is there.
HintThe bright zone marches from
the thick end of the wedge toward the thin end as the frequency rises, and the thickness where
it peaks tracks 1/(2f) closely: 31.5 ms against a predicted 33.3 at 15 Hz, 19.4 against 20.0
at 25 Hz, 12.9 against 12.5 at 40 Hz, and 9.3 against 8.3 at 60 Hz. The bright zone marches
from trace 21 to trace 76 as you go. That relationship is the whole of module 04, and it is
the basis of every thickness estimate ever made from a spectral volume. For now the point is narrower and more important: no single
iso-frequency section shows you the wedge. Each one shows you the part of the wedge that
happens to suit it, which is why software offers you fifty of them.
Break the reconstruction, then fix it.Why: the frequency spacing is a parameter that looks cosmetic in a dialog and decides whether the voices sum back to the data.
In step 5, switch between the two frequency
spacings and compare the ripple and match readouts.
HintOn the equally spaced grid the
bank gain climbs steadily with frequency — 106% variation across the middle of the band — so
the sum of the voices is the trace with its high frequencies exaggerated, and the match comes
out at 75.7%: recognizable, but not the data. On the per-octave grid the ripple falls to 4%
and the match reaches 99.2% after a single scale factor, using 33 components instead of 48. Both
grids are offered by the same programs with no guidance, and the answer depends on what you
are doing: if you only want to look at individual components, equal spacing is fine and easier
to think about, but the moment anything gets summed, balanced or reconstructed, the spacing
stops being cosmetic.
Give one dim patch on an iso-frequency section three explanations.Why: a dim patch has several possible causes, and an interpretation that names only one has not been tested.
In step 4,
find a place on the 40 Hz section where the magnitude is low, then change the component
frequency and the wedge maximum.
HintLow magnitude on a single
iso-frequency section means "there is little energy at this frequency here," and that has
several causes which the section itself cannot separate. The bed may be the wrong thickness,
so the interference notch for this bed sits at the frequency being displayed. There may
be no reflector at all, so there is nothing at any frequency. The reflection coefficients may
be small, so the event is weak across the whole band. Or the frequency you asked for may be
outside what the wavelet carried, in which case every trace on the section is dim for a
reason that has nothing to do with the earth. The first three are told apart by looking at
other frequencies; the fourth is told apart by looking at the wavelet spectrum in module 01.
This is why interpreters load several components rather than one.
Key points
Magnitude, phase and voice are one complex number written three ways. Voice equals
magnitude times the cosine of phase, so any one file can be rebuilt from the other two.
A voice is the data through a narrow bandpass filter, not "the 30 Hz that was in the
ground." The filter has to have width, and in a wavelet transform that width grows with
frequency.
Magnitude is what attributes are built from because it is smooth and single-signed.
Voices are what you display when the result should still read as a seismic section.
Raw spectral phase mostly measures the clock. Subtracting 2πft leaves the phase of the
reflection, and only the corrected version can be compared between frequencies.
An iso-frequency section shows which parts of the earth suit that filter, so different
frequencies light up different geology and none of them is the right one.
Voices only sum back to the data on a per-octave frequency grid. On an evenly spaced
grid the filter bank's gain climbs with frequency and the reconstruction comes back blued.
Words introduced here
voice
The data passed through one narrow filter. Looks like seismic, and is what a
spec_voice volume holds.
magnitude
How much energy sits at each frequency at each time. The amplitude spectrum of modules 01
and 02, computed everywhere. Every spectral attribute is built from it.
spectral phase
The angle of the same complex number. Unreadable until the traveltime rotation is removed.
iso-frequency section
Magnitude at one frequency, displayed across a line or a volume. The usual form an
interpreter receives.
continuous wavelet transform
The decomposition used here and by spec_cwt: a filter whose width is
proportional to its center frequency.
filter bandwidth
How wide each of those filters is. Rarely reported with the volume, and it decides how much
two decompositions of the same data will differ.
octave
A doubling of frequency. Spacing the requested frequencies per octave rather than evenly is
what lets the voices sum back to the data.
reconstruction
Adding the voices back together to recover the input trace.
Method
What is computed, and what is left out
The decomposition is a continuous wavelet transform from
assets/spectral.js, built the way AASPI's spec_cwt
builds it: a complex Morlet mother wavelet centered at 1 Hz inside a Gaussian window, scaled to
reach every other frequency. Because the whole family is scaled from one shape, every filter has the
same ratio of center frequency to bandwidth, which is why the bandwidth readout in step 1 grows in
proportion to the frequency. It is implemented as a multiplication in the frequency domain, which
the documentation notes is equivalent to convolving the trace with the scaled wavelet.
The earth model is a wedge: two reflection coefficients of opposite sign, the
upper one fixed and the lower one moving down linearly across a hundred traces, convolved with a
zero-phase Ricker. The model is built from reflection coefficients and a source wavelet; module 00 explains both, and the two-way time convention, if those are unfamiliar. Thicknesses throughout are in milliseconds of two-way time. Times are computed analytically rather than rounded to the sample grid, so the
thinning is smooth instead of stair-stepped.
The phase correction in step 3 subtracts 2πft from the phase at every sample
and wraps the result back into ±π. This is what AASPI's programs apply on output, and their
documentation states it explicitly. The wrap counts in the readout are counted rather than derived:
the code walks down the trace and tallies how many times the phase jumps by more than π.
The bandwidth quoted in step 1 is the full half-power width of the analysis
filter, computed in closed form as 0.2651 divided by the Gaussian width and scaled to the component
frequency. A note for anyone checking this against the AASPI documentation: the quantity that
documentation labels as a half-bandwidth is numerically the full half-power bandwidth, and its
Figures 4 and 5 pair their bandwidth values with the opposite variances. The arithmetic here follows
the numbers rather than the captions.
Two conventions for "bandwidth," and where each is used. There is more than
one place to measure the width of a spectrum, and the number you get depends on which you pick.
Modules 00, 01 and 04 measure between the half-amplitude points, the frequencies at which
the curve has fallen to half its peak height. This module and module 08 quote the analysis
filter's half-power width, the points at which the squared amplitude has halved, which is
the −3 dB width engineers normally mean and is the narrower of the two. Neither is more correct.
They are just different definitions, so a bandwidth quoted without one is incomplete — which is
also why the AASPI programs do not all agree with each other on the number.
Normalization, and why absolute numbers here do not match AASPI. Every filter
in this module has unit gain at its own center frequency, so a cosine of amplitude A at the
analysis frequency comes back with magnitude A. That makes the readouts mean something without a
scale factor. AASPI does not normalize this way. Shapes, ratios and the position of everything are
comparable; absolute magnitudes are not.
Simplifications, stated plainly. There is no noise, no attenuation, no
multiples and no propagation — the wedge response is a convolution, nothing more. The trace is
analysed on its own rather than as part of a 3D volume, so nothing here involves the spatial dimensions, which is where the storage and run time of a real spectral volume are set. Reconstruction in step 5 compares against a
single scale factor rather than performing the full inverse transform, which needs an admissibility
integral this module does not need to introduce. And the wedge is symmetric and zero phase, which
real wedges are not.
Where this departs from production software. AASPI writes magnitude, phase and
voice as separate volumes, either one per frequency or as a single 4D cube; here they are computed
on demand and never stored, so the disk-space problem that shapes so much real practice is invisible
in this module. The reconstruction test in step 5 is also a cleaner comparison than production ever
gets, because the input has no noise in it.
References
Grossmann, A., and J. Morlet, 1984, Decomposition of Hardy functions into square integrable
wavelets of constant shape: SIAM Journal on Mathematical Analysis, 15,
723–736.
Sinha, S., P. Routh, P. Anno, and J. Castagna, 2005, Spectral decomposition of seismic data
with continuous-wavelet transform: Geophysics, 70, P19–P25.
Partyka, G., J. Gridley, and J. Lopez, 1999, Interpretational applications of spectral
decomposition in reservoir characterization: The Leading Edge, 18,
353–360.
Mallat, S., 2009, A Wavelet Tour of Signal Processing, 3rd ed.: Academic Press.
AASPI, Spectral Attributes: Program spec_cwt, University of Oklahoma — for the Morlet
parameterization, the voice definition and the 2πft phase correction.
Next up
04 · Tuning, and what a thin bed does to amplitude
You have already seen it: the frequency that lights up a bed tracks its thickness. Time to find out
where that relationship comes from, how far it can be trusted, and how to read a thickness off a
spectrum.