Sampling & aliasing
Learning objectives
- State and justify the Nyquist sampling theorem: to avoid aliasing
- Compute the apparent (aliased) frequency of a signal that violates Nyquist
- Explain why every acquisition system uses an analog anti-alias filter before the A/D
- Recognize spatial aliasing in seismic data and its connection to bin size and wavelength
Continuous signals live on a continuum. Digital recorders do not. Somewhere between the geophone and the disk, a sampler says: “not every time, just these moments.” If the signal wiggles faster than the sampler can keep up, the record does not merely lose detail; it actively lies about what happened. That lie has a name: aliasing.
1. What sampling is
A continuous signal becomes a discrete sequence x\[n\] by evaluating it at regular instants , where is the sampling interval and is the sampling rate. A trace sampled every 2 ms has = 500 Hz; one sampled every 4 ms, 250 Hz.
2. The Nyquist theorem
To record a signal whose highest frequency is faithfully, you must sample faster than twice that frequency:
The threshold is called the Nyquist frequency: 250 Hz for 2 ms data, 125 Hz for 4 ms data. Frequencies below it are recoverable. Frequencies above it are not: they fold back down and impersonate lower frequencies, and that folding is aliasing. A sinusoid exactly at is not safe either, because what the samples keep of it depends on where they fall on its cycle. The inequality is strict.
3. See it, then believe it
Below, you sample a sinusoid every 4 ms and compare it with what the samples say. Drag its frequency up past the 125 Hz Nyquist frequency and watch the dashed curve, which is rebuilt from the samples alone: below Nyquist it lies on the input, above it the same dots describe a different, slower signal. Then switch on the anti-alias filter, and try a broadband Ricker wavelet in place of the sinusoid.
The figure opens on the case that matters: a 200 Hz signal sampled every 4 ms. Its samples are exactly the samples of a 50 Hz sinusoid running backwards, because Hz, and the reconstruction in (a) passes through every dot while looking nothing like the input. From the samples alone there is no way to tell 200 Hz from 50 Hz. Information has been destroyed, and plate (c) shows where every other frequency lands.
4. The folding formula
For a sinusoid at frequency , the apparent (aliased) frequency in \[0, f\_{\\mathrm N}\] is
Practical recipe: take . If , replace it with . The result is . The sign carries information too: when is negative, the samples trace a sinusoid whose phase runs backwards. The check under the figure asks for 170 Hz at 4 ms: Hz, so 80 Hz, running backwards.
5. Anti-alias filtering
Since you cannot un-fold aliased frequencies after sampling, you must prevent them from being sampled in the first place. Every digital recorder has an analog anti-alias filter right before the A/D converter: a steep low-pass that removes content above . Switch it on in the figure at 200 Hz and the record goes silent instead of showing a false 50 Hz. Then drag down to 110 Hz: the figure’s filter ramps from to zero at , so it passes only 0.60 of that signal’s amplitude. Protection costs the top of the band.
This has a cost. The filter must be sharp (close to brick-wall) or high frequencies leak through; but sharper filters have worse time-domain behavior (ringing, phase nonlinearity). Modern seismic recorders use delta-sigma oversampling A/Ds that sample far above the final , apply a digital brick-wall filter, then decimate, shifting most of the pain to digital logic where it is easier.
6. Aliasing in seismic processing
Time-domain aliasing is rarely an issue in practice because acquisition vendors have solved it. The two places aliasing still bites processors every day are:
- Spatial aliasing. Traces are sampled in space at intervals (bin size or group interval). The spatial Nyquist wavenumber is cycles per metre, or radians per metre. An event crossing the spread with apparent velocity has wavenumber at frequency , so it aliases above . A plane wave arriving at angle from the vertical in rock of velocity has , so steep events alias first. You see this as “stair-stepping” on steep events and as f-k fans that wrap. Every migration algorithm has spatial-aliasing limits built in.
- Processing-step downsampling. If you decimate a trace without first anti-alias filtering, you alias the high-frequency content into the new baseband. Keeping every fourth sample of 2 ms data is sampling at 8 ms: in the figure, 8.3 % of a 40 Hz Ricker wavelet’s energy lies above the new 62.5 Hz Nyquist frequency, and the reconstruction misses the wavelet by 35 %. Always low-pass before you downsample. The rule is symmetric: always anti-alias before reducing the sample rate, in time or in space.
7. Stroboscopes and helicopter blades
Aliasing is what makes a helicopter rotor or a wagon wheel appear to spin backwards on film: the camera’s frames cannot follow the rotation, so the wheel aliases to a low, sometimes negative, apparent rate. Try the last exercise under the figure: a 240 Hz signal sampled every 4 ms lands at Hz, a slow 10 Hz sinusoid running backwards, and 260 Hz lands at +10 Hz, the same wheel turning forwards.
Sample above twice the highest frequency, or prevent higher frequencies from reaching the sampler. Without one of those, the record tells you lies about the signal, and there is no way to recover the truth after the fact.
Where this goes next
Section 0.6 introduces the Z-transform, the discrete-time counterpart of the Fourier transform that gives us a clean way to talk about digital filters, including the anti-alias filters we just said every recorder needs. Poles, zeros, causality, and stability all live in the Z-plane.
References
- Oppenheim, A. V., Schafer, R. W. (2009). Discrete-Time Signal Processing (3rd ed.). Prentice Hall.
- Bracewell, R. N. (1999). The Fourier Transform and Its Applications (3rd ed.). McGraw-Hill.
- Yilmaz, Ö. (2001). Seismic Data Analysis (2 vols.). SEG.
- Claerbout, J. F. (1976). Fundamentals of Geophysical Data Processing. McGraw-Hill.