Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

3D-Var: derivation, preconditioning and adjoint methods with lineax and optimistix

3D-Var for methane retrieval

Ported from plumax 0.1.2 (28f257e); module and link paths updated for radtrax.

This note derives the cost function used by radtrax.retrieval.var3d, walks through the three control-variable formulations we implement, and then maps each piece of the maths onto a concrete jax, lineax, optimistix or gaussx call. The aim is that you can read it side by side with solve.py and see which line implements which equation.

The derivation follows Bouttier & Courtier’s Data assimilation concepts and methods [1] and Rodgers’ Inverse methods for atmospheric sounding [2], although the letters are not theirs: we write the GeoStack notation, and the crosswalk table below maps their letters (and the code’s argument names) onto ours. The JAX-side implementation tricks are from the lineax docs [3] and the optimistix paper [4].

Symbols

SymbolMeaningShapeUnit
NNnumber of state pixels, N=HWN = H W for an H×WH \times W fieldscalardimensionless
MMnumber of observations, the flattened band-radiance cube (hwBh w B)scalardimensionless
x\vect{x}state: the per-pixel VMR field, flattenedRN\mathbb{R}^{N}VMR
y\vect{y}observations: the band-integrated radiance cube, flattenedRM\mathbb{R}^{M}radiance
μx\gvect{\mu}_xprior (background) mean of the stateRN\mathbb{R}^{N}VMR
Σx\gmat{\Sigma}_xprior covariance of the stateRN×N\mathbb{R}^{N \times N}VMR²
Σε\gmat{\Sigma}_\varepsilonobservation-error covarianceRM×M\mathbb{R}^{M \times M}radiance²
hhnonlinear observation operatorRN→RM\mathbb{R}^{N} \to \mathbb{R}^{M}VMR to radiance
H=Jh(μx)\mat{H} = \mat{J}_h(\gvect{\mu}_x)tangent-linear of hh at the prior meanRM×N\mathbb{R}^{M \times N}radiance / VMR
d\vect{d}innovation, y−h(μx)\vect{y} - h(\gvect{\mu}_x)RM\mathbb{R}^{M}radiance
δx\delta\vect{x}increment, x−μx\vect{x} - \gvect{\mu}_xRN\mathbb{R}^{N}VMR
J\mathcal{J}3D-Var cost over the statescalardimensionless
Λx∣y\gmat{\Lambda}_{x \mid y}posterior precision, the Hessian of J\mathcal{J}RN×N\mathbb{R}^{N \times N}VMR⁻²
Lx\mat{L}_xsquare root of the prior covariance, Σx=LxLx⊤\gmat{\Sigma}_x = \mat{L}_x \mat{L}_x^\topRN×N\mathbb{R}^{N \times N}VMR
ξ\gvect{\xi}whitened control variable, δx=Lxξ\delta\vect{x} = \mat{L}_x \gvect{\xi}RN\mathbb{R}^{N}dimensionless
y†\vect{y}^\daggerdual (PSAS) variableRM\mathbb{R}^{M}radiance⁻¹
θ\gvect{\theta}hyperparameters of the retrievalRDθ\mathbb{R}^{D_\theta}various

Crosswalk from the classic data-assimilation letters, and to the argument names in radtrax.retrieval.var3d:

Classic (Bouttier & Courtier)RodgersThis pageradtrax argument
xbx_bxax_aμx\gvect{\mu}_xbackground_state
BBSaS_aΣx\gmat{\Sigma}_xbackground_op, background
RRSϵS_\epsilonΣε\gmat{\Sigma}_\varepsilonobs_inv_variance (passes Σε−1\gmat{\Sigma}_\varepsilon^{-1}, scalar or diagonal)
H(x)H(x)F(x)F(x)h(x)h(\vect{x})forward_fn
H′H'KKH\mat{H}none (from jax.jvp / jax.vjp of forward_fn)
yyyyy\vect{y}observation
JJn/aJ\mathcal{J}Cost (build_cost_x, build_cost_xi)
UUn/aLx\mat{L}_xWhiteningTransform.cholesky_op
λ\lambdan/ay†\vect{y}^\daggerlam inside run_dual_psas

1. From Bayes to the 3D-Var cost

We have a state vector x∈RN\vect{x} \in \mathbb{R}^{N}, which for our methane retrieval is the per-pixel VMR field flattened to length N=HWN = H W, and an observation vector y∈RM\vect{y} \in \mathbb{R}^{M}, the band-integrated radiance cube. Both come with Gaussian uncertainty:

By Bayes’ rule the posterior p(x∣y)∝p(y∣x)p(x)p(\vect{x} \mid \vect{y}) \propto p(\vect{y} \mid \vect{x}) p(\vect{x}) is proportional to exp⁡(−J(x))\exp(-\mathcal{J}(\vect{x})), so we will have:

J(x)=12(x−μx)⊤Σx−1(x−μx)+12(y−h(x))⊤Σε−1(y−h(x))\mathcal{J}(\vect{x}) = \frac{1}{2} (\vect{x} - \gvect{\mu}_x)^\top \gmat{\Sigma}_x^{-1} (\vect{x} - \gvect{\mu}_x) + \frac{1}{2} (\vect{y} - h(\vect{x}))^\top \gmat{\Sigma}_\varepsilon^{-1} (\vect{y} - h(\vect{x}))

The MAP estimate x^=argminxJ(x)\hat{\vect{x}} = \mathrm{argmin}_{\vect{x}} \mathcal{J}(\vect{x}) is the 3D-Var analysis. The “3D” is historical: in weather prediction it refers to the three spatial dimensions of the state, and what it really says is that there is no time axis, which is what distinguishes 3D-Var from 4D-Var (our state is a 2-D field).

1.1 Incremental form

In practice we minimise over the increment δx=x−μx\delta\vect{x} = \vect{x} - \gvect{\mu}_x, for two reasons: 1) the background term then has a clean quadratic form, and 2) the observation operator is often linearised around μx\gvect{\mu}_x (the inner loop of incremental 3D-Var). Substituting x=μx+δx\vect{x} = \gvect{\mu}_x + \delta\vect{x} and writing d:=y−h(μx)\vect{d} := \vect{y} - h(\gvect{\mu}_x) for the innovation, we will have:

J(δx)=12δx⊤Σx−1δx+12(d−Hδx)⊤Σε−1(d−Hδx)\mathcal{J}(\delta\vect{x}) = \frac{1}{2} \delta\vect{x}^\top \gmat{\Sigma}_x^{-1} \delta\vect{x} + \frac{1}{2} (\vect{d} - \mat{H} \delta\vect{x})^\top \gmat{\Sigma}_\varepsilon^{-1} (\vect{d} - \mat{H} \delta\vect{x})

where H:=Jh(μx)=∂h/∂x\mat{H} := \mat{J}_h(\gvect{\mu}_x) = \partial h / \partial \vect{x} evaluated at μx\gvect{\mu}_x is the tangent-linear operator. Setting the gradient to zero gives the normal equations:

(Σx−1+H⊤Σε−1H)δx^=H⊤Σε−1d(\gmat{\Sigma}_x^{-1} + \mat{H}^\top \gmat{\Sigma}_\varepsilon^{-1} \mat{H}) \delta\hat{\vect{x}} = \mat{H}^\top \gmat{\Sigma}_\varepsilon^{-1} \vect{d}

The matrix on the left is the Hessian of (2), which is the posterior precision, Λx∣y=∇x2J=Σx−1+H⊤Σε−1H\gmat{\Lambda}_{x \mid y} = \nabla^2_{\vect{x}} \mathcal{J} = \gmat{\Sigma}_x^{-1} + \mat{H}^\top \gmat{\Sigma}_\varepsilon^{-1} \mat{H} (the prior precision plus the information the observations add). Its inverse Λx∣y−1\gmat{\Lambda}_{x \mid y}^{-1} is the textbook posterior covariance for the linear-Gaussian case.

In code. Equation (1) is built by build_cost_x. The prior term is gaussx_linalg.quadratic_form(background_op, δx_flat), one structurally dispatched solve, so any structured Σx\gmat{\Sigma}_x from background.py (diagonal, Kronecker, low-rank) is plugged in without being materialised. The observation term differentiates through the JAX forward_fn by reverse-mode AD, so we never write H⊤\mat{H}^\top by hand.

2. Why preconditioning matters

The catch in (3) is that the conditioning of Λx∣y\gmat{\Lambda}_{x \mid y} tracks the spread of its eigenvalues. In a typical retrieval Σx−1\gmat{\Sigma}_x^{-1} has a large dynamic range (some pixels are tightly constrained by the prior, others very loosely), so a plain minimiser like L-BFGS can take hundreds of iterations to make progress along the floppy directions.

The control variable transform (CVT) removes this by changing variables to ξ:=Lx−1δx\gvect{\xi} := \mat{L}_x^{-1} \delta\vect{x}, where Lx\mat{L}_x is any square root of the prior covariance:

Σx=LxLx⊤\gmat{\Sigma}_x = \mat{L}_x \mat{L}_x^\top

We pick the Cholesky factor, but other choices (an eigendecomposition, balance operators) work the same way. Substituting δx=Lxξ\delta\vect{x} = \mat{L}_x \gvect{\xi} into (2) gives:

J(ξ)=12ξ⊤ξ+12(d−HLxξ)⊤Σε−1(d−HLxξ)\mathcal{J}(\gvect{\xi}) = \frac{1}{2} \gvect{\xi}^\top \gvect{\xi} + \frac{1}{2} (\vect{d} - \mat{H} \mat{L}_x \gvect{\xi})^\top \gmat{\Sigma}_\varepsilon^{-1} (\vect{d} - \mat{H} \mat{L}_x \gvect{\xi})

The prior term collapses to 12∥ξ∥22\frac{1}{2} \Vert \gvect{\xi} \Vert_2^2, a sphere, and the Hessian in ξ\gvect{\xi} becomes:

∇ξ2J=IN+(HLx)⊤Σε−1(HLx)\nabla^2_{\gvect{\xi}} \mathcal{J} = \mat{I}_N + (\mat{H} \mat{L}_x)^\top \gmat{\Sigma}_\varepsilon^{-1} (\mat{H} \mat{L}_x)

This is the identity plus a positive-semidefinite term of rank at most MM, so every eigenvalue is at least one and at most MM of them differ from one. So the badly conditioned prior has dropped out entirely: what is left is set by how informative the observations are (the largest eigenvalue is one plus the largest whitened signal-to-noise ratio squared), and in exact arithmetic conjugate gradients on this Hessian finishes in at most M+1M + 1 iterations. In practice this is the biggest lever we have in variational DA, and L-BFGS benefits from it the same way.

In code. Equation (5) is built by build_cost_xi; the operator Lx\mat{L}_x is constructed by WhiteningTransform.from_background, which calls gaussx_linalg.cholesky(background). gaussx returns a structured operator (a Cholesky of a Kronecker is itself a Kronecker of Cholesky factors), so all the matvecs and inverse solves that follow stay in the cheap regime.

3. Primal vs dual: PSAS

The normal equations (3) are an N×NN \times N system. When the observation count is small (M≪NM \ll N, typical for sparse plumes seen by an instrument with a few bands), the dual form is a lot cheaper. Applying the matrix-inversion lemma to (3), we will have:

δx^=ΣxH⊤(HΣxH⊤+Σε)−1d\delta\hat{\vect{x}} = \gmat{\Sigma}_x \mat{H}^\top (\mat{H} \gmat{\Sigma}_x \mat{H}^\top + \gmat{\Sigma}_\varepsilon)^{-1} \vect{d}

The middle factor is an M×MM \times M system. Defining the dual variable y†:=(HΣxH⊤+Σε)−1d∈RM\vect{y}^\dagger := (\mat{H} \gmat{\Sigma}_x \mat{H}^\top + \gmat{\Sigma}_\varepsilon)^{-1} \vect{d} \in \mathbb{R}^{M} (it is the Lagrange multiplier of the observation constraint, often written λ\lambda, a letter we keep for wavelength), the recipe is:

  1. Solve (HΣxH⊤+Σε)y†=d(\mat{H} \gmat{\Sigma}_x \mat{H}^\top + \gmat{\Sigma}_\varepsilon) \vect{y}^\dagger = \vect{d} for y†\vect{y}^\dagger (CG-friendly, since the matrix is symmetric positive definite).

  2. Set δx^=ΣxH⊤y†\delta\hat{\vect{x}} = \gmat{\Sigma}_x \mat{H}^\top \vect{y}^\dagger.

This is the Physical-Space Statistical Analysis System (PSAS) [5]. For a linear hh, the dual and primal give the same analysis. For a nonlinear hh, both solve the same linearised problem, the inner loop of each outer iteration of incremental 3D-Var or 4D-Var, so the choice between them is about cost (NN against MM) and not about the answer.

In code. run_dual_psas wraps the dual matrix as a lineax.FunctionLinearOperator, tags it symmetric and PSD, and feeds it to lineax.linear_solve(..., solver=lineax.CG(...)). Inside the matvec, Hδx\mat{H} \delta\vect{x} is h(μx+δx)−h(μx)h(\gvect{\mu}_x + \delta\vect{x}) - h(\gvect{\mu}_x), which is exact because the solver expects a forward that is linear in δx\delta\vect{x} (callers pass model.make_forward(linear=True)), and H⊤u\mat{H}^\top \vect{u} comes from a single jax.vjp pullback hoisted out of the CG loop. There is no hand-written adjoint of the observation operator anywhere in the code.

3.1 The matched filter as the flat-prior limit of PSAS

Now take a single pixel and restrict the increment to one direction, a uniform enhancement of strength α\alpha, so that Hδx=αt\mat{H} \delta\vect{x} = \alpha \vect{t} with t\vect{t} the target signature (H\mat{H} applied to a unit enhancement). In addition, let the prior on α\alpha be flat (its variance σx2→∞\sigma_x^2 \to \infty) and let Σε\gmat{\Sigma}_\varepsilon be the per-pixel clutter covariance Σy\gmat{\Sigma}_y, with d=y−μy\vect{d} = \vect{y} - \gvect{\mu}_y the departure of the pixel spectrum y\vect{y} from the background mean. Then the dual system is (σx2tt⊤+Σy)y†=d(\sigma_x^2 \vect{t} \vect{t}^\top + \gmat{\Sigma}_y) \vect{y}^\dagger = \vect{d}, and in the limit (7) becomes the pixel-wise matched filter:

α^=(y−μy)⊤Σy−1tt⊤Σy−1t\hat{\alpha} = \frac{(\vect{y} - \gvect{\mu}_y)^\top \gmat{\Sigma}_y^{-1} \vect{t}}{\vect{t}^\top \gmat{\Sigma}_y^{-1} \vect{t}}

The full limit, with the Sherman–Morrison step, is on the matched filter page (§4). So the matched filter, a narrow-band retrieval and full 3D-Var are the same estimator with progressively richer prior assumptions, and the matched filter in radtrax.retrieval.matched_filter is the simplest case of the framework here. Note that it is the exact, closed-form solution of the restricted one-parameter problem (a single scalar solve); it is not what one CG iteration on the full M×MM \times M dual system returns, since the first CG step moves along d\vect{d} rather than along Σy−1t\gmat{\Sigma}_y^{-1} \vect{t}.

4. Adjoint methods: four flavours

Computing the gradient ∇δxJ\nabla_{\delta\vect{x}} \mathcal{J} needs the adjoint (transpose) of the tangent-linear H\mat{H}. Historically this was the part of variational DA you wrote and maintained by hand. With JAX we get four options out of the box, each with a different cost and memory profile:

MethodWhen it appliesCostMemoryJAX call
Discrete adjoint (reverse-mode AD)hh is a JAX program; one forward passone VJP is O(forward)\mathcal{O}(\text{forward}); a full Jacobian is MM of themO(forward tape)\mathcal{O}(\text{forward tape})jax.grad(loss)
Tangent-linear (forward-mode AD)sensitivities, ensemble propagationone JVP is O(forward)\mathcal{O}(\text{forward}); a full Jacobian is NN of themO(forward)\mathcal{O}(\text{forward})jax.jvp(h, (x,), (v,))
Implicit-function adjointdifferentiating through a converged inner solveone linear solveO(linear solve)\mathcal{O}(\text{linear solve})optimistix.ImplicitAdjoint(linear_solver=...)
Checkpointed adjointmemory-bounded long unrolls (ODE, iterative)O(forwardlog⁡n)\mathcal{O}(\text{forward} \log n) with O(log⁡n)\mathcal{O}(\log n) checkpoints, about two forwards with O(n)\mathcal{O}(\sqrt{n})O(k)\mathcal{O}(k) for kk checkpointsoptimistix.RecursiveCheckpointAdjoint(...)

4.1 Discrete adjoint (jax.grad)

This is what we use for the observation-term gradient in (1). Concretely, build_cost_xi wraps the cost in jax.value_and_grad(value), and reverse-mode AD walks back through forward_fn applying each elementary VJP, including the kernel-flipped convolution adjoint inside PointSpreadFunction and the spread-with-1/f21/f^2 adjoint inside GroundSamplingDistance. The unit tests in test_psf.py verify the inner-product identity ⟨Ax,u⟩=⟨x,A⊤u⟩\langle \mat{A} \vect{x}, \vect{u} \rangle = \langle \vect{x}, \mat{A}^\top \vect{u} \rangle for both operators, so the autodiff gradient is the one a hand-rolled adjoint would give.

4.2 Tangent-linear (jax.jvp)

jax.jvp(h, (x,), (v,)) computes Jh(x)v\mat{J}_h(\vect{x}) \vect{v} in one forward pass without ever forming the Jacobian. It is useful for:

4.3 Implicit-function adjoint

Suppose we want ∂x⋆/∂θ\partial \vect{x}^\star / \partial \gvect{\theta}, the derivative of the converged 3D-Var solution with respect to a hyperparameter θ\gvect{\theta} (e.g. a regularisation weight, an observation-error variance, a prior length scale). Differentiating through the L-BFGS unroll would be both expensive and numerically suspect.

The implicit-function theorem gives a closed form instead. The optimum x⋆(θ)\vect{x}^\star(\gvect{\theta}) satisfies ∇xJ(x⋆;θ)=0\nabla_{\vect{x}} \mathcal{J}(\vect{x}^\star; \gvect{\theta}) = \mathbf{0}, and differentiating that identity in θ\gvect{\theta} gives:

∂x⋆∂θ=−(∇x2J)−1∇xθ2J\frac{\partial \vect{x}^\star}{\partial \gvect{\theta}} = -\left(\nabla^2_{\vect{x}} \mathcal{J}\right)^{-1} \nabla^2_{\vect{x}\gvect{\theta}} \mathcal{J}

where ∇xθ2J∈RN×Dθ\nabla^2_{\vect{x}\gvect{\theta}} \mathcal{J} \in \mathbb{R}^{N \times D_\theta} is the mixed second derivative. So we only need one linear solve with the Hessian ∇x2J\nabla^2_{\vect{x}} \mathcal{J} (the posterior precision again). For a loss L(θ)\mathcal{L}(\gvect{\theta}) evaluated at the analysis, the total derivative then follows from the chain rule:

dLdθ=∇θL+(∂x⋆∂θ)⊤∇xL\frac{\mathrm{d}\mathcal{L}}{\mathrm{d}\gvect{\theta}} = \nabla_{\gvect{\theta}} \mathcal{L} + \left(\frac{\partial \vect{x}^\star}{\partial \gvect{\theta}}\right)^\top \nabla_{\vect{x}} \mathcal{L}

This is what optimistix.ImplicitAdjoint(linear_solver=lineax.CG(...)) does internally: you write a normal optimistix.minimise(...) call, and gradients with respect to anything captured by the cost flow back through this single adjoint solve, with no tape and no checkpoints.

In code. The solvers in solve.py run optimistix with its default adjoint, ImplicitAdjoint(), but the wrappers do not expose an adjoint argument. To differentiate the analysis with respect to its inputs, call optimistix.minimise directly with a custom linear_solver (e.g. lineax.CG(rtol=...) for matrix-free Hessians, or lineax.Cholesky() for small dense ones).

4.4 Checkpointed adjoint

When the forward map is itself an iterative procedure (e.g. a chemistry solver inside the observation operator, or a Kalman-smoother prior), the reverse-mode tape can blow up memory. optimistix.RecursiveCheckpointAdjoint(checkpoints=k) does binomial (treeverse) checkpointing: only kk forward states are stored, and the rest are recomputed on the backward pass, so memory is traded for recomputation as in the table above. We don’t currently need this, since the methane forward map is a single fused convolution chain, but it is the right tool the moment we couple the retrieval to a dynamical model.

5. Mapping maths to libraries

Math objectLibrary call
Σx\gmat{\Sigma}_x (Kronecker, low-rank, diagonal)gaussx_linalg.Kronecker, gaussx_linalg.LowRankUpdate, lineax.DiagonalLinearOperator
δx⊤Σx−1δx\delta\vect{x}^\top \gmat{\Sigma}_x^{-1} \delta\vect{x}gaussx_linalg.quadratic_form(background_op, δx) (structured dispatch)
Σx−1δx\gmat{\Sigma}_x^{-1} \delta\vect{x}gaussx_linalg.solve(background_op, δx) (structured dispatch)
Lx\mat{L}_x such that Σx=LxLx⊤\gmat{\Sigma}_x = \mat{L}_x \mat{L}_x^\topgaussx_linalg.cholesky(background)
hh (forward operator, JAX)RadianceObservationModel.forward(...), make_forward(...)
Hv\mat{H} \vect{v} (tangent-linear)jax.jvp(forward_fn, (x,), (v,))
H⊤u\mat{H}^\top \vect{u} (adjoint)jax.vjp(forward_fn, x)[1](u), no manual adjoint
∇J\nabla \mathcal{J} (discrete adjoint)jax.grad(J)
∇2Jv\nabla^2 \mathcal{J} \vect{v} (Hessian-vector)jax.jvp(jax.grad(J), (x,), (v,))
Outer minimiser (whitened L-BFGS)optimistix.LBFGS(...) via optimistix.minimise(...)
Gauss–Newton with a custom inner solveroptimistix.GaussNewton(...) with lineax.CG(...) for Jr⊤Jr\mat{J}_r^\top \mat{J}_r, rr the residual_fn
Dual (PSAS) solvelineax.linear_solve(dual_op, d, solver=lineax.CG(...))
Adjoint through the converged solveoptimistix.ImplicitAdjoint(linear_solver=lineax.CG(...))
χred2\chi^2_\text{red}reduced_chi_squared
Λx∣y≈Jr⊤Jr\gmat{\Lambda}_{x \mid y} \approx \mat{J}_r^\top \mat{J}_r (Gauss–Newton, whitened residuals) and its inverseargminax.curvature.gauss_newton(...) through gauss_newton_posterior, then Laplace.covariance()
Averaging kernel A=I−Λx∣y−1Σx−1\mat{A} = \mat{I} - \gmat{\Lambda}_{x \mid y}^{-1} \gmat{\Sigma}_x^{-1}argminax.diagnose.averaging_kernel(posterior, background_op), or averaging_kernel from a Cost.hvp
DFS ds=tr Ad_s = \mathrm{tr}\, \mat{A}, Rademacher probes from a JAX keyargminax.diagnose.degrees_of_freedom(kernel, key=key), through degrees_of_freedom_for_signal
Λx∣y−1v\gmat{\Lambda}_{x \mid y}^{-1} \vect{v} from a Cost.hvpposterior_covariance_proxy (argminax.curvature.Laplace.covariance() with a CG solve)

6. Worked example

The end-to-end demo lives in plumax’s 06_variational_methane_retrieval.ipynb. It builds a synthetic plume from the HAPI LUT, injects it through the JAX forward operator, and runs the retrieval three ways (naive primal, whitened L-BFGS and dual PSAS), comparing iteration counts, run times and posterior diagnostics. It lives in plumax because it simulates the plume with plumax’s Gaussian plume model; radtrax computes everything after the column. The same notebook also shows the matched filter (plumax PR #24) falling out of the dual recipe, as the flat-prior limit of §3.1.

Footnotes
  1. Bouttier, F. & Courtier, P. (1999). Data assimilation concepts and methods. Meteorological Training Course Lecture Series, ECMWF. https://www.ecmwf.int/sites/default/files/elibrary/2003/16928-data-assimilation-concepts-and-methods.pdf

  2. Rodgers, C. D. (2000). Inverse methods for atmospheric sounding: theory and practice. World Scientific.

  3. Rader, J., Lyons, T., & Kidger, P. (2024). Lineax: a library for linear solvers in JAX. https://docs.kidger.site/lineax/

  4. Rader, J., Lyons, T., & Kidger, P. (2024). Optimistix: modular optimisation in JAX and Equinox. arXiv:2402.09983.

  5. Cohn, S. E., et al. (1998). Assessing the effects of data selection with the DAO Physical-Space Statistical Analysis System. Mon. Wea. Rev. 126, 2913-2926.