Module 01 · Program sof3d
Averaging suppresses random noise. Averaging in the wrong direction also suppresses the reflectors. This module builds a noisy section, lets you run five different filters over it, and shows what each one keeps and what it throws away. It starts with the one decision that matters more than the choice of filter: which direction to average in.
The seismic line — drag anywhere on it to move the analysis point
Build the data, choose the filter
Work through the six steps in order, then try the exercises. Method and references are there when you want them.
A filter that averages neighboring traces has to decide where on those traces to read. Read at the same time sample on every trace and you are averaging horizontally, which is only correct where the reflector happens to be flat. Read at a time that shifts with the dip and you are averaging along the bed, which is correct everywhere.
Both panels below use exactly the same mean filter, on the clean version of the model. Three of the header controls are therefore inert in this step, on purpose. The noise sliders do nothing, because with no noise in the picture anything the filter removes is signal. The filter selector does nothing either, because both panels run the mean whatever it says, so that the only difference between them is which direction the window points. Every header control takes effect again from step 2 onward, and step 3 is where the choice of filter becomes the subject.
1 Averaged horizontally window stays flat
2 Averaged along dip window follows the bed
On the flat part of the section the two are almost identical. Wherever the beds dip, on the flanks of the fold and everywhere below the fault, the horizontal filter is averaging across the wavelet instead of along it, so it cancels part of the reflection. What is removed there is signal rather than noise, and the loss grows with the dip.
Signal loss is the drop in RMS amplitude against the same region of the clean model, quoted as a percentage of that model's RMS amplitude there. It is measured only where the beds dip by more than about half a sample per trace. A number near zero means the filter left the reflection alone. Raise the fault throw to give it something steep to work with.
Move the analysis point around the section and watch the list on the right. Those are the values the window collects, gathered along the local dip. A filter is nothing more than a rule for turning that list into one number to write back at the center.
Sorted, the list makes the differences between the filters obvious. Random noise spreads the values out evenly. A bad sample puts one value a long way from the rest, at one end of the sorted list, which is exactly where a rule that trims the ends will find it.
1 Zoom on the window the window leans with the bed
2 The values, sorted what each rule keeps
All four use the single dipping plane through the analysis point — one value per trace, nothing above or below. They differ only in how much of that list they are willing to discard.
1 Mean
2 Alpha-trimmed
3 Median
4 LUM
The model is built twice: once clean and once with the noise and the bad samples added. Since the clean version is known, the error of each filtered result can be measured rather than argued about. Lower is closer to the truth.
The four filters in step 3 look at one value per trace. This one looks at the whole window, every trace and every sample in the vertical half-window. It asks which single waveform, scaled differently on each trace, best explains all of them at once.
That waveform is the first eigenvector of the covariance matrix between the traces. Each trace is then rebuilt as its own projection onto it. Anything the traces share survives; anything only one trace has does not, because it cannot be written as a scaled copy of a shared waveform.
1 The window, trace by trace gray in, crimson out
2 How much of the window is one waveform eigenvalue spectrum
The bar chart is the energy explained by each successive eigenvector. Where the traces are coherent the first bar takes nearly everything, and keeping only it loses almost no signal. Where they are not — at the fault, or with the noise turned up — the energy is spread across the bars, and keeping only the first one is a much bigger intervention. The energy in that first bar as a fraction of the total is the energy-ratio coherence attribute, which is why this filter and that attribute keep appearing together.
A filtered section looks better whatever is done to it, because smoothing makes any picture calmer. The check that carries information is the difference between input and output: the part of the data the filter classified as noise. A reflector visible in that panel means the filter removed signal, and a calmer output is no evidence that it did not.
Turn the noise down and the window radius up, and reflectors appear in the rejected panel. AASPI outputs the rejected noise as a volume so that this check can be made on real data.
1 Input
2 Filtered
3 Rejected same color scale
Because the clean model is known, the rejected panel can be measured against it. The first figure is the correlation between what was thrown away and the clean model. The second is the share of the rejected energy that lies along it, which is the square of the first and is therefore always the smaller of the two. On real data neither number exists, which is why you have to look at the panel instead.
A 7-point filter can be built two ways: apply a 7-point operator once, or apply a 3-point operator three times. The two reach equally far across the data but apply different weights.
A single pass weights every sample in the window equally, so the sample at the far edge counts as much as the one at the center. Cascading small operators produces weights that taper toward the edges all by themselves, and a tapered filter follows a curving reflector better because it leans on the far samples less.
The panels below are one-dimensional, and in one dimension the two cost about the same: seven multiply-adds for the single pass against nine for the three short ones. The saving arrives in higher dimensions, where the count grows with the volume of the window rather than with its width. Three passes of a 3×3×3 operator cost 81 operations against 343 for a single 7×7×7, which is the form sof3d actually runs.
1 The effective weights single pass against cascaded
2 One wide pass, and three narrow ones on the section
One further point matters only on genuinely noisy data. If the dip estimate was made on the unfiltered volume then it is itself noisy, and a second pass steered by a bad dip field will smear along the wrong direction. AASPI's advice is to send the filtered volume back through dip3d before the next pass, so the dips improve along with the data.
Structure-oriented filtering is almost never the end product. It is the step that runs before everything else, and its effects propagate.
The model is a layered section with a fold, an optional normal fault, band-limited random noise and isolated bad samples. It is built twice from the same random seed: once clean and once contaminated. Every error figure quoted on the page is the root-mean-square difference between a filtered result and that clean version, measured on the running page rather than estimated.
Dip is estimated from the contaminated section by the semblance dip scan of the first module set, on a decimated grid, and interpolated back to full resolution. Gathering along that dip uses linear interpolation, because a dip of a fraction of a sample per trace almost never lands on a sample.
The filters follow the sof3d documentation directly. The alpha-trimmed mean discards α(J−1) values from each end of the sorted window and averages the rest, so α = 0 gives the mean and α = 0.5 gives the median. LUM replaces the center value only if it falls outside the trimmed range. The principal component filter builds the covariance matrix between traces, takes its first eigenvector, and reconstructs each trace as its projection onto that eigenvector. The Hilbert-transform term in the covariance is included, which is what makes the result insensitive to where the window sits on the wavelet.
Where this departs from AASPI, and why. This is a 2D section, so the window is a line of traces rather than a rectangle or ellipse of them, and there is no crossline dip. The first eigenvector is found by power iteration rather than by a full eigen-decomposition, which is enough when only the dominant one is needed. Three parameters make production structure-oriented filtering usable: the Kuwahara window search and the similarity thresholds slow, shigh and scenter. They are absent here so that module 02 can introduce them alongside the problem they address.
The cascading demonstration in step 6 uses the mean filter, because the effective-weight argument is exact for a linear filter and only approximate for the others.
Where the meters come from. The model is built in samples and traces; nothing in the filters uses a velocity or a bin size. The scale panel converts, using an interval velocity of 2800 m/s and a trace spacing of 12.5 m, so that a filter window can be quoted as a footprint on the ground. Both numbers are assumed rather than derived, and either can be read as a different survey by scaling everything the panel reports.
The panels are not the same kind of picture. The section is an amplitude, a signed number with a sign convention behind it. The difference panels are the part a filter removed, which is also an amplitude, so those two can be compared directly. The error numbers are not: they are a root-mean-square distance from the clean model, which exists only because this is a synthetic. No such number is available on real data, which is why the visual comparison matters more than the ranking.
What the model leaves out. The noise here is band-limited and laterally correlated, which resembles a migrated section, but the model has no multiples, no acquisition footprint, and no residual migration smile, three of the things structure-oriented filtering is most often deployed against. The fault is a clean rigid offset with no damage zone, no drag and no fault-plane reflection. Real faults come with a few traces of genuinely disturbed data around them, and that zone is harder for every filter here than the sharp discontinuity in this model.
Fault dip, and why the drawn one is steeper. The dip is specified in the ground and converted to a slope on the section through the velocity and the bin spacing, so the plane is at 65° in the rock rather than 65° on the screen. The section is vertically exaggerated, as nearly every seismic display is, and the scale panel reports the drawn dip alongside the true one so the difference can be seen rather than inferred. Fault dips measured off a section are routinely too steep for this reason alone.
Next up
Everything in this module smooths across a fault as readily as it smooths along a reflector. Two ideas fix that: choose a window that does not straddle the edge, and refuse to filter where coherence says an edge is there.
Open module 02 → All modules