Fourier and wavelets on the sphere
Why a flat FFT breaks at the poles, how spherical harmonics fix it, what Bochner's theorem becomes on a globe, and how needlets give a wavelet transform for the Earth. A from-scratch tutorial with proofs.
Contents
The previous post went from Fourier features to wavelets on flat space. Weather and climate live on a sphere, and most of that story has to be rebuilt there. This post does it from scratch: Fourier analysis on , then Gaussian processes, then wavelets. Each step comes with the short argument for why it is true.
1. Why a flat FFT fails on a globe
Use colatitude (angle from the north pole) and longitude :
It is tempting to treat the latitude–longitude grid as a rectangle and run a 2-D FFT. Three things go wrong.
- The chart is singular. At a whole row of the grid is one point. A smooth function must take the same value along it, and a longitudinal wave must vanish at the pole like . A 2-D Fourier series knows neither fact, so truncating it leaves fields that jump at the pole.
- Latitude is not periodic. lives on an interval, not a circle, so periodic extension puts a kink at each pole and Gibbs ringing follows.
- Resolution is not uniform. Meridians converge. A stationary kernel in latitude–longitude coordinates is not isotropic on the sphere, and an unweighted grid average is biased. The cap north of is only of the Earth’s area, but on an equiangular grid it holds about 17% of the points. Every honest score on a global grid is area-weighted.
The fix is to use the sphere’s own “pure frequencies”.
2. Spherical harmonics, from the Laplacian
On the line, is an eigenfunction of . On the sphere the analogue is the Laplace–Beltrami operator,
Two properties do all the work. It is symmetric and non-positive (integrate by parts on a surface without boundary: ), so eigenvalues are real and eigenfunctions with different eigenvalues are orthogonal. And it is rotation invariant, because rotations are isometries.
Why the eigenvalues are . Separate variables, with , and set . The equation becomes the associated Legendre equation, which is singular at the poles . For try a power series . The recursion is
so . Unless the series stops, it behaves like and blows up logarithmically at a pole. It stops exactly when for an integer , and then the solution is the Legendre polynomial . Boundedness at the poles quantises the frequencies.
The spherical harmonics are
an orthonormal basis of . Degree has harmonics, so the band-limited space has dimension .
Degree is scale, order is direction. has nodal meridians and nodal circles of latitude, so counts how fine the pattern is and how it is oriented: zonal bands (), “orange slices” (), checkerboards in between. Try it:
Wavelength. Matching on a sphere of radius gives the Jeans relation . On Earth ( km):
| 1 | 8 | 30 | 64 | 120 | |
|---|---|---|---|---|---|
| (km) | 28 300 | 4 700 | 1 310 | 620 | 330 |
3. Two theorems that make everything easy
The addition theorem. For all points ,
Why. The left side is the reproducing kernel of , so it does not depend on the choice of basis. Rotations map to itself, so the kernel is rotation invariant. Fix at the north pole: a function on invariant under rotations about the axis is zonal, so it is . Integrating the diagonal gives . A corollary: at every point. The poles are not special.
Funk–Hecke: convolution is multiplication per degree. For a zonal kernel ,
The operator commutes with rotations, so by Schur’s lemma it is a scalar on each degree. Averaging over a spherical cap of radius , for example, multiplies degree by
a multiplier that decays with . This is the spherical version of “smoothing is a low-pass filter”. Spectral neural operators on the sphere learn exactly such a .
Rotations mix orders, never degrees. Rotating a field acts on each by a unitary Wigner matrix, so the angular power spectrum is rotation invariant.
4. Sampling, aliasing and the cost of a transform
When does a grid compute the coefficients exactly? Gauss–Legendre nodes in latitude integrate polynomials of degree exactly, and equispaced longitudes integrate for . The analysis integrand has degree , so:
a Gauss grid with and reads every band-limited field in exactly.
A product of two fields in lives in , so projecting it back exactly needs exactness at degree . That is the “3/2 rule” of spectral weather models. Break the rule and you get aliasing: in longitude an exact fold ( looks like ), in latitude a quadrature error without a simple fold.
A spherical harmonic transform is an FFT per latitude ring plus a Legendre sum per : in its plain matrix form, which is what GPU libraries use at .
5. Gaussian processes on the sphere
Schoenberg is Bochner for the sphere. On , Bochner says a stationary kernel is valid exactly when its Fourier transform is non-negative. On , Schoenberg (1942) says: a continuous is a valid covariance if and only if
The “if” direction is one line: by the addition theorem each is a sum of rank-one kernels. The “only if” direction is Funk–Hecke: the integral operator has eigenvalue on , and a valid covariance has non-negative eigenvalues. In words, an isotropic kernel is a non-negative spectrum , with
A trap. Kernels of the chordal distance are always valid on , since they are restrictions of kernels on . Kernels of the geodesic distance need not be: the squared exponential in great-circle distance is not positive definite for every length scale (Gneiting 2013). Defining kernels through avoids the problem entirely.
Sampling is a filter on white noise. Draw independently and set
(Karhunen–Loève). Samples are square-integrable iff . White noise () is not a random function on the sphere, only a random distribution; on a band-limited it is perfectly fine.
Matérn on the sphere comes from the Laplacian, exactly as on flat space. Replace by in the SPDE . The operator is diagonal in , so
where is the length scale. As , : the heat kernel at time , exactly as the RBF is on flat space. (The Laplacian post tells this part as a story.)
The limit of all of this is stationarity. An isotropic GP must use the same variance and the same correlation length everywhere: storm tracks and calm tropical oceans get one compromise. That is the same problem random Fourier features have on flat space, and it has the same cure: wavelets.
6. Wavelets on the sphere: needlets
Spherical harmonics are perfectly localised in scale and not at all in space. We want both, approximately.
Step 1: split the spectrum into octaves. Take a smooth cutoff equal to 1 on and 0 on , and define windows by , . Window covers , and the squares form a partition of unity:
Proof by telescoping: .

Step 2: centre a filtered addition-theorem kernel at each point. With a cubature rule exact up to degree , the needlets (Narcowich, Petrushev and Ward, 2006) are

They have the two properties we wanted.
- A tight frame. For every zero-mean , and . Cubature exactness turns into , and the partition of unity sums those to the identity.
- Localised in space. For every , . As on the line, a smooth, compactly supported window in frequency buys fast decay in space.
A tight frame is redundant: it has more atoms than dimensions. That redundancy is what lets it be both tight and localised, something no orthonormal basis on the sphere can do as cleanly.
One field, two pictures. A random needlet expansion with white , and band-pass-filtered white noise , have the same covariance , so they are the same Gaussian law. In practice the second picture is cheaper: one transform and no cubature points. For isotropic fields, needlet coefficients at the same scale and well-separated centres also become asymptotically uncorrelated (Baldi, Kerkyacharian, Marinucci and Picard, 2009).
Self-check
- Why must with integer ? Otherwise the Legendre series does not terminate and blows up at a pole.
- A Gauss grid has 64 latitudes. What band limit does it read exactly? And for exact products? ; for products, gives .
- Is a valid kernel on ? , non-negative coefficients: yes. And ? : no.
- Is rotation invariant? Is ? Yes; no, because is tied to the chosen axis.
- What fraction of the Earth lies within of the equator? .
References
- I. J. Schoenberg. Positive definite functions on spheres. Duke Math. J., 1942.
- F. Narcowich, P. Petrushev, J. Ward. Localized tight frames on spheres. SIAM J. Math. Anal., 2006.
- P. Baldi, G. Kerkyacharian, D. Marinucci, D. Picard. Asymptotics for spherical needlets. Ann. Statist., 2009.
- D. Marinucci, G. Peccati. Random Fields on the Sphere. Cambridge University Press, 2011.
- T. Gneiting. Strictly and non-strictly positive definite functions on spheres. Bernoulli, 2013.
- A. Lang, C. Schwab. Isotropic Gaussian random fields on the sphere: regularity, fast simulation and stochastic PDEs. Ann. Appl. Probab., 2015.
- V. Borovitskiy, A. Terenin, P. Mostowsky, M. P. Deisenroth. Matérn Gaussian processes on Riemannian manifolds. NeurIPS, 2020.
- K. Atkinson, W. Han. Spherical Harmonics and Approximations on the Unit Sphere. Springer, 2012.
Was this useful?
Thanks, that helps me decide what to write next.