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.

Capability index: GeoNumerics

Layers: GeoStack · GeoNumerics · GeoML · GeoModels.

Every public name in the libraries geostack builds on, each listed once under the shortest module path that exports it, with the first sentence of its docstring. Search this page before writing a loader, a model, a training step or a helper in a script or a notebook: if what you need is here, use it; if it is almost here, extend it where it lives. Regenerate with make capabilities after changing a public API (tests/test_capabilities.py checks it is current).

This page is the GeoNumerics layer. It imports no other layer.

Listed at gaussx 0.8.4, gridax 0.4.0, spectraldiffx 0.1.2, functax 0.0.15, argminax 0.0.11, integrix 0.0.13, geophysix 0.0.11, radiomax 0.0.14, tracerax 0.2.0.

Upstream: gaussx

Structured linear algebra and Gaussian primitives on lineax.

gaussx

NameKindWhat it does
AbstractIntegratorclassProtocol for Gaussian integral approximation.
AbstractLikelihoodclassBase class for likelihood functions with optional analytical ELL.
AbstractLogdetStrategyclassProtocol for a log-determinant strategy.
AbstractPreconditionerclassProtocol for preconditioners that produce an approximate inverse.
AbstractSketchclassA random sketching matrix S ∈ ℝ^(d × M), sampled once.
AbstractSmootherclassA smoother u ← S(u, b) for A u = b on one level.
AbstractSolveStrategyclassProtocol for a linear-solve strategy.
AbstractSolverStrategyclassProtocol for a solver strategy that pairs a solve and a log-determinant.
AnalyticalPsiStatisticsclassProtocol for kernels with closed-form Ψ statistics.
AssumedDensityFilterclassKL-optimal Gaussian projection of g(x) via moment matching.
AutoSolverclassAutomatic solver selection from the operator’s type, size and tags.
BBMMSolverclassCG solve and SLQ logdet with BBMM’s defaults (Gardner et al. 2018).
BYM2GMRFclassThe BYM2 pair (b, u*) (Riebler et al., 2016), with its exact density.
BernoulliLikelihoodclassBernoulli likelihood with logit link.
BinomialLikelihoodclassBinomial likelihood with logit link.
BlockDiagclassBlock-diagonal operator A = blockdiag(A_1, …, A_D), one block per slice.
BlockTriDiagclassBlock-tridiagonal operator A with a symmetric off-diagonal band.
CGSolverclassConjugate-gradient solve with a stochastic log-determinant.
CURclassCUR decomposition A ≈ C U R, with C = A_:,J and R = A_I,:.
CallableLikelihoodclassA factorised likelihood from a per-site log density.
CapacitanceSolverclassSolve a base system subject to homogeneous point constraints.
ChandrupatlaclassChandrupatla’s hybrid inverse-quadratic / bisection root finder.
ColumnIDclassColumn interpolative decomposition A ≈ A_:,J X.
ComposedSolverclassMix-and-match a solve and a log-determinant from different strategies.
ConstantSDEclassState-space form of the constant kernel k(τ) = σ_k².
ConstrainedGMRFclassA GaussianMRF conditioned on hard linear constraints A_c x = e.
CosineSDEclassState-space form of the cosine kernel k(τ) = σ_k² cos(ω₀ τ).
CubatureIntegratorclassThird-order spherical-radial cubature on 2 D_x equally weighted points.
DAREResultclassOutput of dare: the steady-state covariance Σ_x,∞ and gain G_∞.
DenseFallbackWarningclassWarning emitted when a structured primitive materialises an operator.
DenseLogdetclassExact log-determinant by gaussx’s structural dispatch.
DenseSolverclassExact solver strategy through gaussx structural dispatch.
DiagonalSplitclassA system A = base + diag(diagonal), read back into its two parts.
DiagonalizedOperatorclassLinear operator A = W⁻¹ diag(γ) W given by a transform pair.
EigenDecompositionclassPrecomputed eigendecomposition A = V diag(γ) V⁻¹ of a square matrix.
EmissionModelclassLinear observation (emission) model with a dense observation operator H.
FITCPreconditionerclassNyström-plus-diagonal (“FITC”) preconditioner of A = K_XX + Λ.
FifthOrderCubatureIntegratorclassFifth-order fully symmetric cubature on 2 D_x² + 1 points.
FilterStateclassOutput of kalman_filter: the filtered and predicted moments of x_t.
GaussHermiteIntegratorclassGauss-Hermite integrator: a tensor-product rule on order^D_x points.
GaussianExpFamclassGaussian 𝒩(μ, Σ) held by its natural parameters (Λ μ, −½ Λ).
GaussianLikelihoodclassGaussian likelihood with isotropic noise, with a closed-form ELL.
GaussianMRFclassGaussian Markov random field x ~ 𝒩(μ, Λ⁻¹) with a structured precision Λ.
GaussianSitesclassTime-varying Gaussian likelihood sites in natural parameterization.
GaussianSketchclassGaussian sketch: i.i.d. entries S_ij ~ 𝒩(0, 1/d).
GaussianStateclassGaussian belief as a pair of mean and covariance operator.
HeteroscedasticGaussianLikelihoodclassHeteroscedastic Gaussian likelihood with input-dependent noise.
IndefiniteSLQLogdetclassStochastic log |det(A + σ I)| for symmetric, possibly indefinite, A.
InformationDiagnosticsclassOutput of information_diagnostics.
IntegratedWienerSDEclassState-space form of the p-times integrated Wiener process.
InterpolatedOperatorclassStructured kernel interpolation A = W_interp K_ℐℐ W_interpᵀ ≈ K_XX.
IntrinsicGMRFclassImproper Gaussian field x ~ 𝒩(μ, (τ R)⁺) on the complement of ker R.
JacobiPreconditionerclassDiagonal preconditioner M⁻¹ = diag(1 / |diag(A)|).
KeyedSolverclassBind a PRNG key to a strategy’s stochastic log-determinant (gh-384).
KroneckerclassKronecker product A = A_1 ⊗ … ⊗ A_D, applied one factor at a time.
KroneckerSumclassKronecker sum A_1 ⊕ A_2 = A_1 ⊗ I + I ⊗ A_2 of two square operators.
KroneckerSumSqrtclassSymmetric square root S of A_1 ⊕ A_2 from the factor eigenvectors.
LOOResultclassResult of leave_one_out_cv: the LOO log-likelihood and predictives.
LOVECacheclassCached rank-k Lanczos approximation Q diag(θ)⁻¹ Qᵀ of Σ_y⁻¹.
LSMRSolverclassLSMR iterative least-squares solver (Fong & Saunders 2011).
LaplaceModelclassThe latent Gaussian model of a Laplace fit, with the maps one Newton step needs.
LaplaceResultclassThe Gaussian approximation 𝒩(x̂, Λ_x|y⁻¹) at the mode.
LinearGaussianPosteriorclassPosterior 𝒩(x_a, P_a) of linear_gaussian_update.
LinearizedSDEclassLinear surrogate dx(t) = (F_c,t x(t) + c_t) dt + L_c db(t) of an SDE.
LineaxSolverclassA lineax solver as a gaussx solve strategy.
LowRankUpdateclassLow-rank update A = A₀ + U D Vᵀ of a base operator, with D = diag(d).
LowerBlockTriDiagclassLower block-bidiagonal operator L, the block Cholesky factor of A.
MINRESSolverclassMINRES solver for symmetric, possibly indefinite, systems.
MaskedOperatorclassMasked view A = A₀[m_r, m_c] of a square base operator A₀.
MaternSDEclassState-space form of the Matérn kernel of order p, smoothness p + ½.
MomentMatchResultclassTilted log-normaliser and its derivatives with respect to the cavity mean.
MonteCarloIntegratorclassMonte Carlo moment matching: sample, propagate, take empirical moments.
MultigridLevelclassOne level of a hierarchy: A_ℓ, its transfers and its smoother.
MultigridPreconditionerclassOne V-cycle as the preconditioner M⁻¹ ≈ A⁻¹.
MultigridSolverclassCG preconditioned by a V-cycle over the caller’s levels.
NegativeBinomialLikelihoodclassNegative-binomial likelihood with log link (NB2, a gamma-Poisson mixture).
NystromLogdetclassNyström-preconditioned SLQ log-determinant of K + σ² I (Wenger et al., 2022).
NystromPreconditionerclassRandomized Nyström preconditioner for K + σ² I.
OperatorPreconditionerclassUse an externally supplied approximate inverse as a preconditioner.
OrthonormalSketchclassGaussian sketch with orthonormal rows, S Sᵀ = I_d.
PartialCholeskyPreconditionerclassPreconditioner from a pivoted partial Cholesky factor.
PeriodicSDEclassState-space form of the periodic (MacKay) kernel, as J + 1 harmonics.
PoissonLikelihoodclassPoisson likelihood with log link.
PreconditionedCGSolverclassCG with a pivoted partial Cholesky preconditioner.
PredictionCacheclassCached training solve α = Σ_y⁻¹ y (and factor L_y) for amortized predictions.
ProductSDEclassProduct of two SDE kernels, by Kronecker composition.
PropagationResultclassOutput moments of a Gaussian pushed through a nonlinear map g.
QuasiPeriodicSDEclassQuasi-periodic kernel: a Matérn factor times a periodic factor.
RootDecompositionclassTall factor R of a root decomposition, A ≈ R Rᵀ.
RowSamplingSketchclassWeighted row-sampling sketch.
SDEKernelclassAbstract state-space form of a kernel k(τ): a linear SDE.
SDEParamsclassContinuous-time matrices (F_c, L_c, H, Q_c, Σ_x,∞) of a linear SDE.
SLQLogdetclassStochastic log-determinant by stochastic Lanczos quadrature (SLQ).
SLRResultclassLinear-Gaussian surrogate produced by statistical linear regression.
SRHTSketchclassSubsampled randomized Hadamard transform sketch.
SitePosteriorclass𝒩(μ_f|y, Σ_f|y) for a covariance-form prior and diagonal sites.
SketchAndPrecondLSMRclassSketch-and-precondition LSMR for tall least squares (Rokhlin & Tygert, 2008).
SoftmaxLikelihoodclassSoftmax (categorical) likelihood for multi-class classification.
SolveInfoclassHow a solve ended, from linear_solve_with_info.
SparseCholeskyFactorclassSparse Cholesky factor on a static symbolic pattern.
SparseCholeskySolverclassExact solve / logdet / diag_inv through a sparse Cholesky factor.
SparseOperatorclassSparse matrix A with a static SparsityPattern and traced values.
SparseSignSketchclassSparse sign sketch (sparse Johnson-Lindenstrauss transform).
SparsityPatternclassStatic, hashable sparsity pattern of an M × N matrix A.
SpectralFunctionclassf(A) = W⁻¹ diag(f(γ)) W for a symmetric A with a factored eigenbasis.
StudentTLikelihoodclassStudent-t likelihood for robust regression.
SumOfKroneckersclassSum of Kronecker products ∑_j A_j ⊗ B_j, applied term by term.
SumOfKroneckersSqrtclassLazy Lanczos square root A^½ of a SumOfKroneckers covariance.
SumSDEclassSum of independent SDE kernels, stacked block-diagonally.
SymbolicCholeskyclassSymbolic Cholesky factor of a symmetric sparsity pattern.
TaylorIntegratorclassFirst- or second-order Taylor expansion of g about the mean.
ToeplitzclassSymmetric Toeplitz matrix A = toeplitz(t) from its first column t.
ToeplitzCholeskyclassCirculant-embedding sample factor L, N × M, with L Lᵀ = toeplitz(t).
UDLDecompositionclassBanded factorisation Λ_x = U D Uᵀ of a block-tridiagonal precision.
UnscentedIntegratorclassUnscented transform: 2 D_x + 1 deterministic sigma points.
UpperBlockTriDiagclassUpper block-bidiagonal operator U, the transpose of a LowerBlockTriDiag.
WeightedJacobiclassWeighted Jacobi: u ← u + ω D⁻¹ (b − A u), sweeps times.
add_jitterfunctionDiagonal jitter A + β I for numerical stability.
ar1_precisionfunctionPrecision of a stationary AR(1) process with marginal precision τ.
as_diagonalizedfunctionExpress an operator as one DiagonalizedOperator, if possible.
as_linear_operatorfunctionWrap a raw matvec callable as a tagged lineax operator.
besag_structurefunctionValidate a graph Laplacian as a Besag (ICAR) structure matrix.
block_diagonal_tagconstantblock_diagonal_tag
block_tridiagonal_tagconstantblock_tridiagonal_tag
blr_diag_updatefunctionDamped BLR step on the natural parameters of a diagonal Gaussian.
blr_full_updatefunctionDamped BLR step on the natural parameters of a full-rank Gaussian.
build_prediction_cachefunctionSolve Σ_y α = y and cache the result.
bym2_precisionfunctionJoint precision Λ of the BYM2 pair (b, u*) (Riebler et al., 2016).
cavity_distributionfunctionEP cavity distribution: remove a fraction α of a site from the marginal.
cavity_from_marginalfunctionCavity distribution: the marginal with one site divided out.
choleskyfunctionLower Cholesky factor L of an operator, structured where A is.
cholesky_logdetfunctionLog-determinant log det A from a Cholesky factor L of A = L Lᵀ.
circulantfunction(Block-)circulant operator C from its first column c.
circulant_from_symbolfunction(Block-)circulant operator C = DFT⁻¹ diag(γ) DFT from its symbol γ.
collapsed_elbofunctionCollapsed ELBO (Titsias bound) for sparse GP regression.
column_idfunctionRandomized column interpolative decomposition (Voronin & Martinsson, 2017).
compose_solverfunctionOne strategy from a solver, a preconditioner and a log-determinant.
compute_psi_statisticsfunctionCompute Ψ statistics, dispatching to analytical or numerical.
conditionalfunctionConditional p(x_A ∣ x_B = b) of a joint Gaussian 𝒩(μ, Σ) from observed entries.
conditional_interpolatefunctionTwo-filter fusion at t from a filtered state and a backward message.
conditional_variancefunctionPredictive variance: the Schur-complement diagonal plus a variational term.
cost_expectationfunctionExpected cost of a prediction under an uncertain state.
cov_transformfunctionCovariance propagation through a linear map, J Σ Jᵀ.
create_gridfunctionRegular grid axes g_d = linspace(lo_d, hi_d, N_d), one per dimension.
cubature_pointsfunctionSpherical-radial cubature points and weights, 2 D_x of them.
curfunctionRandomized CUR decomposition (Voronin & Martinsson, 2017, §4).
cvi_update_sitesfunctionDamped natural-gradient update of CVI sites.
damped_natural_updatefunctionDamped update in natural-parameter space.
darefunctionSteady-state Kalman filter covariance and gain (the filtering DARE).
diagfunctionDiagonal diag(A) of an operator, with structural dispatch.
diag_conditional_variancefunctionDiagonal of the Schur complement, max([K_XX]_nn − [A_X K_ZX]_nn, 0).
diag_invfunctionDiagonal of the inverse, diag(A⁻¹), without forming A⁻¹.
diagonal_tagconstantdiagonal_tag
discrepancy_step_sizefunctionAdaptive EKI tempering step: the data misfit controller.
discrete_lyapunov_solvefunctionSolve the discrete Lyapunov equation X − A X Aᵀ = B by diagonalising A.
discretize_mfdfunctionDiscretise a linear SDE by matrix-fraction decomposition.
discretize_mfd_sequencefunctionVectorised gaussx.discretize_mfd over a stack of steps Δt_1:T.
eigfunctionEigenvalues and eigenvectors of A, with structural dispatch.
eigh_generalizedfunctionGeneralised eigenproblem A v = γ B v, A symmetric and B symmetric PSD.
eigvalsfunctionEigenvalues of A only, with structural dispatch.
eki_stepfunctionOne ensemble Kalman inversion (EKI) update.
elbofunctionEvidence lower bound (ELBO) from a likelihood and a precomputed KL.
enkf_analysisfunctionStochastic (perturbed-observation) ensemble Kalman analysis step.
ensemble_covariancefunctionEmpirical covariance from an ensemble as a low-rank operator.
ensemble_cross_covariancefunctionCross-covariance between two ensembles with the same members.
ensemble_kalman_gainfunctionKalman gain from an ensemble and its image in observation space.
ensemble_rts_stepfunctionOne backward step of the ensemble Rauch-Tung-Striebel smoother.
ep_tilted_momentsfunctionMoments of the scalar EP tilted distribution, elementwise over a batch.
estimate_spectral_boundsfunctionEstimate the extreme eigenvalues (γ_min, γ_max) of a symmetric operator.
etkf_analysisfunctionETKF analysis ensemble, without forming the (|ℰ|, |ℰ|) transform.
etkf_transformfunctionEnsemble Transform Kalman Filter (ETKF) analysis weights.
euclidean_distancefunctionPairwise Euclidean distances ‖aₙ − bₘ‖₂.
expectation_to_mean_cholfunctionMean μ and Cholesky factor of Σ from the expectation parameters.
expectation_to_naturalfunctionNatural parameters (Λ μ, −½ Λ) from the expectation parameters.
expectations_to_ssmfunctionMarginals of a chain from its expectation parameters (𝔼[x], 𝔼[x xᵀ]).
expected_log_likelihoodfunctionUnified expected log-likelihood with analytical dispatch.
fem_matricesfunctionLumped mass C̃ and stiffness G of P1 elements on a triangle mesh.
fem_projectorfunctionObservation matrix A of P1 interpolation: (A w)_k = ∑_i ψ_i(s_k) w_i.
fifth_order_cubature_pointsfunctionFifth-order fully symmetric cubature points and weights.
fisher_infofunctionFisher information of the mean μ, which is the precision Λ = Σ⁻¹.
frobenius_normfunctionFrobenius norm ‖A‖_F of an operator, with structural dispatch.
galerkin_levelsfunctionA hierarchy with Galerkin coarse operators A_ℓ₊₁ = R_ℓ A_ℓ P_ℓ.
gaspari_cohnfunctionGaspari-Cohn (1999) fifth-order compactly supported taper.
gauss_hermite_pointsfunctionTensor-product Gauss-Hermite points and weights for a standard Gaussian.
gauss_klfunctionKL(first ‖ second): KL[q(f_ℐ) ‖ p(f_ℐ)] with p(f_ℐ) = 𝒩(0, K_ℐℐ).
gauss_newton_operatorfunctionMatrix-free Gauss-Newton precision of a residual function.
gauss_newton_precisionfunctionGauss-Newton precision J_rᵀ J_r, optionally plus a prior precision.
gaussian_entropyfunctionEntropy of a multivariate normal 𝒩(μ, Σ), independent of the mean.
gaussian_expected_log_likfunctionExpected Gaussian log-likelihood under q(x), the data term of an ELBO.
gaussian_klfunctionKL(first ‖ second): KL[p ‖ q] between two multivariate normals.
gaussian_log_probfunctionMultivariate normal log-density log 𝒩(x; μ, Σ) of a structured covariance.
gaussian_taperfunctionGaussian localization taper ρ(r) = exp(−r² / (2 L²)).
generalized_variance_scalefunctionGeneralized variance of an intrinsic GMRF (Sørbye & Rue, 2014).
ggn_diagonalfunctionDiagonal of the generalized Gauss-Newton matrix J_hᵀ J_h.
gradient_expectationfunctionExpected gradient of a scalar map under a Gaussian, via Stein’s lemma.
grid_coupling_indicesfunctionFlat indices of masked-out grid cells adjacent to the masked-in region.
grid_datafunctionInducing inputs X_ℐ, the Cartesian product of the grid axes.
hadamard_transformfunctionUnnormalized Walsh-Hadamard transform along the last axis.
haversine_distancefunctionPairwise great-circle (haversine) distances on a sphere.
hutchinson_hessian_diagfunctionStochastic Hessian diagonal by Hutchinson with Rademacher probes.
iid_precisionfunctionPrecision Λ = τ I of n independent effects with variance 1 / τ.
infinite_horizon_filterfunctionInfinite-horizon Kalman filter with the fixed steady-state gain G_∞.
infinite_horizon_smootherfunctionInfinite-horizon RTS smoother with the fixed steady-state gain G_smooth,∞.
inflate_multiplicativefunctionMultiplicative ensemble inflation about the sample mean.
inflate_rtppfunctionRelaxation to prior perturbations (RTPP).
inflate_rtpsfunctionRelaxation to prior spread (RTPS).
information_diagnosticsfunctionAveraging kernel, DOFS and information content of a linear retrieval.
interpolation_operatorfunctionThe interpolation matrix W as a matrix-free operator, B × G.
invfunctionLazy inverse A⁻¹ of an operator, structured where A is.
inv_quad_logdetfunctionJoint inverse-quadratic and log-determinant via shared BBMM CG.
is_block_diagonalfunctionCheck whether operator carries the block-diagonal tag.
is_block_tridiagonalfunctionCheck whether operator carries the block-tridiagonal tag.
is_diagonalfunctionRe-exported from lineax.
is_eigen_reduciblefunctionWhether a sum of Kronecker products has the exact two-term reduction.
is_kroneckerfunctionCheck whether operator carries the Kronecker tag.
is_kronecker_sumfunctionCheck whether operator carries the Kronecker sum tag.
is_low_rankfunctionCheck whether operator carries the low-rank tag.
is_lower_triangularfunctionRe-exported from lineax.
is_negative_semidefinitefunctionRe-exported from lineax.
is_positive_semidefinitefunctionRe-exported from lineax.
is_symmetricfunctionRe-exported from lineax.
is_upper_triangularfunctionRe-exported from lineax.
joseph_updatefunctionJoseph-form posterior covariance of a Kalman update, stable for any gain.
kalman_filterfunctionKalman filter forward pass for a linear-Gaussian state-space model.
kalman_gainfunctionKalman gain of a linear-Gaussian observation of the state x.
kernel_expectationsfunctionKernel expectations Ψ₀, Ψ₁ and Ψ₂ for an uncertain input.
kl_divergencefunctionKL(first ‖ second): KL[q ‖ p] in the Bregman form on natural parameters.
kl_standard_normalfunctionKL(first ‖ second): KL[𝒩(μ, Σ) ‖ 𝒩(0, I)] from the standard normal.
kronecker_mllfunctionExact marginal log-likelihood log p(y) of a Kronecker-structured GP.
kronecker_posterior_predictivefunctionPosterior mean and variance of a Kronecker GP at grid test inputs.
kronecker_sum_samplefunctionSample from 𝒩(0, A_1 ⊕ A_2) through the factor eigendecompositions.
kronecker_sum_solvefunctionSolve a shifted Kronecker-sum system in tensor (unvectorised) form.
kronecker_sum_tagconstantkronecker_sum_tag
kronecker_tagconstantkronecker_tag
laplace_modelfunctionCollect and check the pieces of the latent Gaussian model of a Laplace fit.
laplace_resultfunctionThe Gaussian approximation and the Laplace log-marginal at a mode.
leave_one_out_cvfunctionLOO-CV via the bordered-system identity, without refitting N times.
ledoit_wolf_shrinkagefunctionLedoit-Wolf shrinkage of an ensemble covariance, without forming it.
lift_known_valuesfunctionLift prescribed values to the right-hand side of A x = b.
linear_gaussian_updatefunctionMatrix-free posterior of a linear-Gaussian observation.
linear_solvefunctionSolve A x = b through the unified front door.
linear_solve_with_infofunctionSolve A x = b as linear_solve does, and report how the solve ended.
linearize_sdefunctionOptimal linear drift of a nonlinear SDE along a Gaussian path.
localization_matrixfunctionPairwise Gaspari-Cohn taper ρ(d(aₙ, bₘ); c).
localized_kalman_gainfunctionEnsemble Kalman gain with Hadamard (Schur-product) localization.
log_likelihood_expectationfunctionExpected log-likelihood of a callable under a Gaussian, by integration.
log_marginal_likelihoodfunctionGP log marginal likelihood, by way of gaussx.gaussian_log_prob.
log_partitionfunctionLog-partition of a Gaussian in natural form, normaliser included.
logdetfunctionLog-determinant log ∣det A∣ with structural dispatch on the operator type.
love_cachefunctionPrecompute a Lanczos approximation of Σ_y⁻¹ for fast GP variances.
love_residualfunctionRelative solve residual of a LOVE cache for one cross-covariance.
love_variancefunctionApproximate the variance reduction k_X*ᵀ Σ_y⁻¹ k_X* from a LOVE cache.
love_variance_error_boundfunctionUpper bound on the variance over-estimate of a LOVE cache.
low_rank_plus_diagfunctionBuild A = diag(a) + U D Vᵀ, a low-rank update of a diagonal base.
low_rank_plus_identityfunctionBuild A = c I + U D Vᵀ, a low-rank update of a scaled identity.
low_rank_tagconstantlow_rank_tag
lower_triangular_tagconstantlower_triangular_tag
masked_moment_inputsfunctionMake masked observation channels inert in a moment-matched update.
masked_obs_covariancefunctionObservation-error covariance with masked entries marginalised out.
matern_spde_paramsfunctionSPDE parameters (κ, τ, α) of a Matérn field.
matheron_updatefunctionPosterior draws of x_A ∣ x_B = β from joint prior draws, by Matheron’s rule.
mean_chol_to_expectationfunctionExpectation parameters (𝔼[x], 𝔼[x xᵀ]) from the mean and Cholesky factor.
mean_chol_to_naturalfunctionNatural parameters (Λ μ, −½ Λ) from the mean and the Cholesky factor of Σ.
mean_cov_to_naturalfunctionNatural parameters (Λ μ, −½ Λ) from the mean and covariance, in operator form.
mean_expectationfunctionExpectation of a map under a Gaussian: 𝔼[g(x)], x ~ 𝒩(μ_x, Σ_x).
meanfield_kalman_filterfunctionMean-field Kalman filter over L = D_x / d independent state blocks.
meanfield_rts_smootherfunctionMean-field RTS smoother over L = D_x / d independent state blocks.
mixture_quantilefunctionInvert a CDF at one or more quantile levels by bracketed root finding.
mixture_quantile_gaussian_approxfunctionQuantiles of the Gaussian matched to an ensemble’s first two moments.
moment_matchfunctionEP moment matching: tilted log-normaliser and its first two derivatives.
moment_transformfunctionMoment triple of (x, g(x)) for a Gaussian x.
natural_to_expectationfunctionExpectation parameters (𝔼[x], 𝔼[x xᵀ]) from the natural parameters.
natural_to_mean_cholfunctionMean μ and Cholesky factor of Σ from the natural parameters (Λ μ, −½ Λ).
natural_to_mean_covfunctionMean μ and covariance Σ from the natural parameters, in operator form.
naturals_to_ssmfunctionGauss-Markov chain (F_t, Σ_η,t, μ_x,0, Σ_x,0) from its natural parameters.
negative_semidefinite_tagconstantnegative_semidefinite_tag
newton_updatefunctionConvert a Newton step into the natural parameters of a site.
nonlinear_kalman_filterfunctionMoment-matched nonlinear Kalman filter (EKF, UKF, CKF, GHKF, …).
nonlinear_kalman_predictfunctionOne moment-matched predict step through the dynamics f.
nonlinear_kalman_updatefunctionOne moment-matched update step through the observation map h.
nonlinear_rts_smootherfunctionMoment-matched nonlinear Rauch-Tung-Striebel smoother.
nonlinear_rts_stepfunctionOne moment-matched RTS backward step.
oilmm_back_projectfunctionBack-project latent GP predictions to the observation space.
oilmm_projectfunctionProject multi-output data to independent latent GPs via OILMM.
pairwise_marginalsfunctionJoint Gaussian p(x_t, x_t+1) of each pair of consecutive states.
parallel_kalman_filterfunctionParallel Kalman filter via jax.lax.associative_scan.
parallel_rts_smootherfunctionParallel RTS smoother via reverse jax.lax.associative_scan.
positive_semidefinite_tagconstantpositive_semidefinite_tag
predict_meanfunctionPredictive mean of a GP at the test inputs, from a prediction cache.
predict_variancefunctionPredictive variance of a GP at the test inputs, from a prediction cache.
predictive_variance_sbpvfunctionSimulation-based predictive variance (SBPV), unbiased and consistent.
predictive_variance_spvfunctionStochastic predictive variance (SPV) by Rademacher diagonal probes.
process_noise_covariancefunctionModel-noise covariance Σ_η,t of a step, from the stationary covariance.
product_operatorfunctionLazy product A B, applied right to left.
projectfunctionProjection A_X = K_Xℐ K_ℐℐ⁻¹ onto the inducing inputs via Cholesky solves.
pseudo_logdetfunctionLog pseudo-determinant: the log of the product of the non-zero eigenvalues.
qbfunctionRandomized QB factorisation A ≈ Q B with B = Qᵀ A.
quadratic_formfunctionQuadratic form xᵀ A⁻¹ x through a single solve.
randomized_eighfunctionPartial eigendecomposition of a symmetric operator by Rayleigh-Ritz.
randomized_nystromfunctionRandomized Nyström approximation  = U diag(γ̂) Uᵀ of a PSD A.
randomized_svdfunctionTruncated SVD A ≈ U diag(s) Vᵀ by randomized QB.
range_finderfunctionOrthonormal basis Q for the dominant range of A.
riemannian_psd_correctionfunctionRiemannian gradient correction for PSD precision updates.
root_decompositionfunctionRoot decomposition of an SPD operator: a tall factor R with A ≈ R Rᵀ.
root_inv_decompositionfunctionInverse-root decomposition: a tall factor R⁻ with A⁻¹ ≈ R⁻ (R⁻)ᵀ.
row_kronfunctionRow-wise Kronecker (face-splitting) product A • B of two sparse operators.
rp_choleskyfunctionRandomly pivoted partial Cholesky of a PSD matrix A.
rts_interpolatefunctionSmoothed marginal at an unobserved step t from filtered and smoothed states.
rts_samplefunctionJoint draws of the state path x_1:T from p(x_1:T | y_1:T).
rts_smootherfunctionRauch-Tung-Striebel backward smoother for kalman_filter output.
rw1_structurefunctionStructure matrix R = D₁ᵀ W D₁ of a first-order random walk.
rw2_structurefunctionStructure matrix R = D₂ᵀ D₂ of a second-order random walk.
safe_choleskyfunctionCholesky factor with adaptive diagonal jitter for near-singular matrices.
sample_joint_conditionalfunctionJoint draws of a partitioned Gaussian, and conditional draws from them.
sample_mvnfunctionDraw samples from 𝒩(μ, Σ), dispatching on the structure of Σ.
sandwichfunctionThe sandwich A Σ Aᵀ of two operators, keeping compatible structure.
scaled_operatorfunctionLazy scalar multiple c A, applied after the matvec.
schur_complementfunctionSchur complement K_XX − K_XZ K_ZZ⁻¹ K_ZX, kept as a low-rank update.
sde_autocovariancefunctionStationary autocovariance k(τ) of an SDE kernel at each lag τ.
sde_kl_divergencefunctionDrift path-KL between a linear and a nonlinear SDE along a Gaussian path.
selected_inversefunctionThe band of Σ = Λ⁻¹ for a symmetric positive-definite BlockTriDiag.
sigma_point_kalman_updatefunctionOne moment-matched update from evaluations the caller already has.
sigma_pointsfunctionScaled unscented sigma points and weights, 2 D_x + 1 of them.
site_evidence_correctionfunctionThe correction from the pseudo-observation marginal to the site evidence.
site_log_evidencefunctionlog Z of a Gaussian-site posterior, from its system A = K_XX + diag(d).
site_mean_var_from_naturalfunctionMean and variance of a site from its natural parameters.
site_natural_from_tiltedfunctionSite natural parameters that turn the cavity into the tilted moments.
site_posteriorfunctionThe Gaussian posterior of diagonal sites under a covariance-form prior.
sites_to_precisionfunctionBlock-diagonal precision of the sites, as a BlockTriDiag.
sketch_and_solvefunctionApproximate least squares from a sketch.
soar_taperfunctionSecond-order auto-regressive (SOAR) taper ρ(r) = (1 + |r| / L) exp(−|r| / L).
solvefunctionSolve A x = b with structural dispatch on the operator type.
solve_columnsfunctionSolve A X = B column by column, with structured dispatch per column.
solve_matrixfunctionSolve A X = B with one factorisation for the whole matrix right-hand side.
solve_rowsfunctionSolve A xᵢ = bᵢ for each row bᵢ of a matrix B, with one solve per row.
solve_with_known_valuesfunctionSolve A x = b on the unknowns, with x prescribed on the known set.
sparse_choleskyfunctionSparse Cholesky factorisation of a symmetric positive-definite operator.
sparse_conditionalfunctionSparse-GP conditional q(f_X) = ∫ p(f_X ∣ f_ℐ) q(f_ℐ) df_ℐ, per output r.
spde_precisionfunctionSPDE precision Λ_α = τ² K (C̃⁻¹ K)^(α−1) with K = κ² C̃ + G.
spde_precision_gridfunctionSPDE precision on a regular grid: a function of a Kronecker sum.
spingp_log_likelihoodfunctionLog marginal likelihood log p(y_1:T) of a zero-mean SpInGP prior.
spingp_posteriorfunctionPosterior mean μ_x|y and precision Λ_x|y of x_1:T under SpInGP.
split_diagonalfunctionRead A = K + diag(d) back into its kernel part K and its diagonal d.
sqrtfunctionPrincipal matrix square root A^½ with structural dispatch, lazy where possible.
sqrt_inv_matmulfunctionInverse square root times a matrix, A^−½ B, by contour quadrature.
sqrt_matmulfunctionSquare root times a matrix, A^½ B, by contour quadrature.
ssm_to_expectationsfunctionExpectation parameters (𝔼[x], 𝔼[x xᵀ]) of a chain from its marginals.
ssm_to_naturalsfunctionNatural parameters (Λ_x μ_x, −½ Λ_x) of a Gauss-Markov chain.
stable_squared_distancesfunctionSquared Euclidean distances between two point sets, centred and widened.
statistical_linear_regressionfunctionMoment-match a nonlinear conditional to a linear-Gaussian surrogate.
submatrixfunctionSub-matrix A[I, J] of an operator, without forming the full matrix.
sufficient_statsfunctionSufficient statistics (x, x xᵀ) of a Gaussian, over any batch axes.
sum_of_kroneckers_samplefunctionSample from 𝒩(0, K) with a matrix-free Lanczos square root.
sum_operatorfunctionLazy sum A = A_1 + … + A_D, applied one summand at a time.
svdfunctionSingular value decomposition of A, with structural dispatch.
svd_low_rank_plus_diagfunctionBuild A = diag(a) + U diag(s) Vᵀ from a truncated SVD.
svgp_variance_adjustmentfunctionSVGP variance adjustment operator Q = K_ℐℐ⁻¹ Σ_ℐ K_ℐℐ⁻¹ − K_ℐℐ⁻¹.
symbolic_choleskyfunctionSymbolic analysis of a sparse Cholesky factorisation (host, cached).
symmetric_tagconstantsymmetric_tag
symmetrizefunctionSymmetric part of the trailing two axes, removing round-off asymmetry.
theta_designfunctionIntegration points and log-weights over hyperparameters θ.
tikhonov_augmentfunctionObservation augmentation for Tikhonov-regularised EKI (TEKI).
to_mean_covfunctionMean μ and covariance Σ of a Gaussian in natural form.
toeplitz_samplefunctionDraw from 𝒩(0, toeplitz(t)) by circulant embedding and the FFT.
tracefunctionTrace tr(A) of an operator, with structural dispatch.
trace_and_diagfunctionJoint stochastic estimate of tr(A) and diag(A) from one probe pass.
trace_correctionfunctionTrace term of the Titsias collapsed ELBO, the Nyström approximation error.
trace_productfunctionTrace of a product of two operators, tr(A B), with structural dispatch.
tridiagonal_solvefunctionSolve a tridiagonal system A x = b from its three bands.
tridiagonal_solve_batchedfunctionSolve independent tridiagonal systems over leading batch axes.
tridiagonal_tagconstanttridiagonal_tag
udl_decompositionfunctionFactorise a symmetric block-tridiagonal precision as Λ_x = U D Uᵀ.
udl_from_ssm_paramsfunctionBuild the UDLDecomposition of a Gauss-Markov chain’s precision.
udl_to_ssm_paramsfunctionRead the equivalent Gauss-Markov chain off a UDLDecomposition.
uncertain_bgplvm_predictfunctionMulti-output uncertain GP prediction for a Bayesian GP-LVM.
uncertain_gp_predictfunctionPredictive mean and variance of a GP at an uncertain input.
uncertain_gp_predict_mcfunctionMonte Carlo GP prediction at an uncertain input, by total variance.
uncertain_svgp_predictfunctionPredictive mean and variance of an SVGP at an uncertain input.
uncertain_vgp_predictfunctionPredictive mean and variance of a dense VGP at an uncertain input.
unit_diagonal_tagconstantunit_diagonal_tag
unwhitenfunctionUnwhiten a variational mean: μ_ℐ = L_ℐℐ μ_z.
unwhiten_covariancefunctionUnwhiten a variational covariance: Σ_ℐ = L_ℐℐ Σ_z L_ℐℐᵀ.
upper_triangular_tagconstantupper_triangular_tag
variational_elbo_gaussianfunctionUncollapsed (SVGP) ELBO for a Gaussian likelihood.
variational_elbo_mcfunctionMonte Carlo ELBO for non-conjugate likelihoods.
vb_mean_correctionfunctionLow-rank VB correction of the Laplace mean (Van Niekerk & Rue, 2024).
whitened_svgp_predictfunctionWhitened SVGP prediction: per-input means μ_n and variances σ²_n.
woodbury_solvefunctionSolve (A + U D Uᵀ) x = b by the Woodbury identity, without the operator.

Upstream: gridax

Structured grids, masks and the finite-volume operators on them.

gridax

NameKindWhat it does
ArakawaCGrid1Dclass1-D Arakawa C-grid topology (no metric).
ArakawaCGrid2Dclass2-D Arakawa C-grid topology (no metric).
ArakawaCGrid3Dclass3-D Arakawa C-grid topology (no metric).
BCclassThe boundary condition of each face of a grid.
CFieldclassAn array with named dims, static labels and a stagger per axis.
CartesianAGrid1Dclass1-D Cartesian collocated grid.
CartesianAGrid2Dclass2-D Cartesian collocated grid.
CartesianAGrid3Dclass3-D Cartesian collocated grid.
CartesianCGrid1Dclass1-D Cartesian Arakawa C-grid (uniform spacing).
CartesianCGrid2Dclass2-D Cartesian Arakawa C-grid (uniform spacing).
CartesianCGrid3Dclass3-D Cartesian Arakawa C-grid (uniform spacing).
CoastGhostsclassThe dry points one side of a coast, and where the water is from them.
CollocatedGrid1Dclass1-D collocated topology: Nx points, no ghost ring.
CollocatedGrid2Dclass2-D collocated topology: [Ny, Nx] points, no ghost ring.
CollocatedGrid3Dclass3-D collocated topology: [Nz, Ny, Nx] points, no ghost ring.
CurvilinearGrid1Dclass1-D curvilinear C-grid with a uniform metric.
CurvilinearGrid2Dclass2-D curvilinear C-grid with a uniform metric.
CurvilinearGrid3Dclass3-D curvilinear C-grid with a uniform metric.
DirichletclassA value at the wall.
ExtrapolationclassExtrapolate the polynomial through the first interior nodes.
GridOpsclassThe canonical functions with a grid and a mask filled in.
LossyConversionWarningclassA conversion that averages, so the way back does not give the field again.
Mask1DclassUnified Arakawa C-grid mask for a 1-D Cartesian domain.
Mask2DclassUnified Arakawa C-grid mask for a 2-D Cartesian domain.
Mask3DclassUnified Arakawa C-grid mask for a 3-D Cartesian domain.
NeumannclassA gradient ∂φ/∂n along the outward normal.
OutflowclassZero gradient by copy: every layer holds the nearest interior node.
PeriodicclassWrap around: φ(−k) = φ(N+1−k), the node one period away.
ReflectiveclassEven symmetry about the wall: φ(−k) = φₖ.
RobinclassA mixed condition at the wall, a φ + b ∂φ/∂n = c.
SlipclassThe tangential velocity at a solid wall, from no-slip to free-slip.
SphericalAGrid2Dclass2-D collocated grid on a sphere.
SphericalCGrid2Dclass2-D Arakawa C-grid on a sphere.
SphericalCGrid3Dclass3-D Arakawa C-grid on a sphere.
SpongeclassRelax the ghost layers towards a background value.
StaggerMismatchErrorclassFields on different points of the grid met in one operation.
StencilCapability1DclassDirectional count of contiguous wet neighbours for each 1-D grid cell.
StencilCapability2DclassDirectional count of contiguous wet neighbours for each 2-D grid cell.
StencilCapability3DclassDirectional count of contiguous wet neighbours for each 3-D grid cell.
StretchedCGrid1Dclass1-D Cartesian C-grid with irregular axes.
StretchedCGrid2Dclass2-D Cartesian C-grid with irregular axes.
StretchedCGrid3Dclass3-D Cartesian C-grid with irregular axes.
WallclassA solid wall: one condition for the normal component, one for the others.
advectfunctionThe finite-volume tendency of a tracer, -∇·(q u), at T.
advect_momentumfunctionThe advection of momentum in vector-invariant form, at U and V.
advect_verticalfunctionThe vertical part of the tendency of a tracer, -∂(w q)/∂z, at T.
agrid_fromfunctionThe collocated grid of a georeferenced raster.
apply_maskfunctionA field with fill on the dry points of its point.
arakawa_jacobianfunctionThe Arakawa (1966) Jacobian J(a, b) = ∂ₓa ∂_y b - ∂_y a ∂ₓb, at T.
area_meanfunctionArea-weighted mean over the interior T cells.
area_sumfunctionArea-weighted sum over the interior T cells.
area_weightsfunctionThe T-cell areas of a 2-D grid: grid.area() in a chosen namespace.
available_potential_energyfunctionAvailable potential energy at T-points.
avg_x_bwd_1dfunctionBackward average in x, 1-D: U (or X) → T (or V) points.
avg_x_bwd_2dfunctionBackward average in x, 2-D: U (or X) → T (or V) points.
avg_x_bwd_3dfunctionBackward average in x, 3-D: U (or X) → T (or V) points.
avg_x_fwd_1dfunctionForward average in x, 1-D: T (or V) → U (or X) points.
avg_x_fwd_2dfunctionForward average in x, 2-D: T (or V) → U (or X) points.
avg_x_fwd_3dfunctionForward average in x, 3-D: T (or V) → U (or X) points.
avg_xbwd_ybwd_2dfunctionFour-point average, bwd in x and bwd in y, 2-D: X → T points.
avg_xbwd_ybwd_3dfunctionFour-point average, bwd in x and bwd in y, 3-D: X → T points on every z-level.
avg_xbwd_yfwd_2dfunctionFour-point average, bwd in x and fwd in y, 2-D: U → V points.
avg_xbwd_yfwd_3dfunctionFour-point average, bwd in x and fwd in y, 3-D: U → V points on every z-level.
avg_xfwd_ybwd_2dfunctionFour-point average, fwd in x and bwd in y, 2-D: V → U points.
avg_xfwd_ybwd_3dfunctionFour-point average, fwd in x and bwd in y, 3-D: V → U points on every z-level.
avg_xfwd_yfwd_2dfunctionFour-point average, fwd in x and fwd in y, 2-D: T → X points.
avg_xfwd_yfwd_3dfunctionFour-point average, fwd in x and fwd in y, 3-D: T → X points on every z-level.
avg_y_bwd_2dfunctionBackward average in y, 2-D: V (or X) → T (or U) points.
avg_y_bwd_3dfunctionBackward average in y, 3-D: V (or X) → T (or U) points.
avg_y_fwd_2dfunctionForward average in y, 2-D: T (or U) → V (or X) points.
avg_y_fwd_3dfunctionForward average in y, 3-D: T (or U) → V (or X) points.
avg_z_bwd_3dfunctionBackward average in z, 3-D: W → T points.
avg_z_fwd_3dfunctionForward average in z, 3-D: T → W points.
bernoulli_potentialfunctionThe Bernoulli potential K + g h, at T.
biharmonicfunctionThe biharmonic diffusion of a tracer, -κ₄ ∇²(∇²f), at T.
collocatefunctionA field of a C-grid, on its collocated grid (grid.collocated()).
combinefunctionApply an element-wise function to fields on the same point.
coriolisfunctionThe Coriolis tendencies (+f v, -f u), at U and V.
count_contiguousfunctionCount contiguous wet cells from each point along one axis (n-D).
curlfunctionThe vertical curl of a horizontal vector (the relative vorticity), at X.
diff_x_bwd_1dfunctionBackward difference in x, 1-D: U (or X) → T (or V) points.
diff_x_bwd_2dfunctionBackward difference in x, 2-D: U (or X) → T (or V) points.
diff_x_bwd_3dfunctionBackward difference in x, 3-D: U (or X) → T (or V) points.
diff_x_fwd_1dfunctionForward difference in x, 1-D: T (or V) → U (or X) points.
diff_x_fwd_2dfunctionForward difference in x, 2-D: T (or V) → U (or X) points.
diff_x_fwd_3dfunctionForward difference in x, 3-D: T (or V) → U (or X) points.
diff_y_bwd_2dfunctionBackward difference in y, 2-D: V (or X) → T (or U) points.
diff_y_bwd_3dfunctionBackward difference in y, 3-D: V (or X) → T (or U) points.
diff_y_fwd_2dfunctionForward difference in y, 2-D: T (or U) → V (or X) points.
diff_y_fwd_3dfunctionForward difference in y, 3-D: T (or U) → V (or X) points.
diff_z_bwd_3dfunctionBackward difference in z, 3-D: W → T points.
diff_z_fwd_3dfunctionForward difference in z, 3-D: T → W points.
differencefunctionThe difference of a field along an axis, at dst.
diffusefunctionThe harmonic diffusion of a tracer, ∇·(κ∇f), at T.
diffuse_verticalfunctionThe vertical diffusion of a tracer, ∂(κ ∂f/∂z)/∂z, at T.
diffusive_fluxesfunctionThe fluxes whose divergence is :func:diffuse, κ δₓf and κ δ_y f.
dilate_maskfunctionBinary dilation by 1 cell with an n-D cross structuring element.
divergencefunctionThe horizontal divergence of a vector, at T.
embedfunctionA field from its interior, with fill on the ghost ring.
enstrophyfunctionEnstrophy (pointwise).
fill_ghostsfunctionFill the ghost ring of a field, or of every field of a state.
geostrophic_velocityfunctionThe geostrophic velocity of a free surface, at U and V.
grad_perpfunctionThe rotated gradient of a streamfunction, (u, v) = (−∂_yψ, ∂ₓψ).
gradientfunctionThe horizontal gradient of a scalar: (∂ₓf, ∂_yf).
h_from_pooledfunctionInverse of :func:pool_bool for binary inputs.
interiorfunctionA field without its ghost ring.
interpolatefunctionThe value at each point of dst, from the points of src around it.
kinetic_energyfunctionThe kinetic energy per unit mass, at T.
laplacianfunctionThe horizontal Laplacian of a scalar, at its own points.
make_spongefunctionn-D linear sponge ramp: 0 at every wall, 1 in the interior.
masked_meanfunctionMean over axis, excluding dry cells.
masked_momentsfunction(mean, std) in one call — see :func:masked_mean, :func:masked_std.
masked_stdfunctionStandard deviation over axis, excluding dry cells, floored at eps.
mcfunctionMonotonized Central (MC) flux limiter.
minmodfunctionMinmod flux limiter.
okubo_weissfunctionOkubo-Weiss parameter (pointwise).
okubo_weiss_parameterfunctionThe Okubo–Weiss parameter σₙ² + σₛ² - ζ² of a flow, at T.
pool_boolfunctionn-D average-pool of a binary mask with one-sided zero padding.
potential_enstrophyfunctionPotential enstrophy (pointwise).
potential_vorticityfunctionPotential vorticity (pointwise).
pv_fluxfunctionThe flux of a vorticity by a velocity, (q u, q v), at U and V.
qg_potential_vorticityfunctionThe quasi-geostrophic potential vorticity, at T.
reconstructfunctionThe advective flux q̂ u on the faces along axis.
rusanov_fluxfunctionLocal Lax--Friedrichs (Rusanov) numerical flux at faces along axis.
selectfunctionOne region of a field, by name, read-only.
shear_strainfunctionThe shear strain δₓv + δ_y u, at X.
smooth_absfunctionSmooth approximation of |x| with a nonzero gradient at the origin.
smooth_clampfunctionSmooth approximation of max(x, x_min) (a soft lower clamp).
smooth_maxfunctionSmooth approximation of the elementwise max(x, y).
ssh_to_streamfnfunctionConvert sea surface height to streamfunction.
staggerfunctionA field of a collocated grid, on its C-grid (grid.staggered()).
strain_magnitude_squaredfunctionSquared strain magnitude (pointwise).
strain_rate_squaredfunctionThe squared strain rate σₙ² + σₛ², at T.
streamfn_to_sshfunctionConvert streamfunction to sea surface height.
stretching_termfunctionCross-layer stretching term for multi-layer QG models.
superbeefunctionSuperbee flux limiter.
sw_potential_vorticityfunctionThe shallow-water potential vorticity (ζ + f) / h, at X.
t_point_coordinatesfunctionCoordinates of every T point of a Cartesian grid, one row per point.
tensor_strainfunctionThe normal (tensor) strain δₓu - δ_y v, at T.
to_dimarrayfunctionThe data, dims and labels of a field as a pipekit_array.DimArray.
to_rightfunctionA field on left faces (MITgcm’s U, on the west one) as one on right faces.
upwind_fluxfunctionCompute upwind flux with automatic stencil fallback near boundaries.
van_leerfunctionVan Leer flux limiter.
vertical_velocityfunctionThe vertical velocity of a non-divergent flow, at W.
volume_meanfunctionVolume-weighted mean over the interior T cells, (∑ V x) / (∑ V).
volume_sumfunctionVolume-weighted sum over the interior T cells.
volume_weightsfunctionThe T-cell volumes of a 3-D grid, area times Δz (xp as in :func:area_weights).
vortex_forcefunctionThe vortex force, (+q v, -q u), at U and V.
vorticity_flux_upwindfunctionDissipative upwind vortex-force fluxes on a C-grid.

gridax.analysis

NameKindWhat it does
ExtrapolatefunctionRe-exported from typing.
differencefunctionFinite-difference derivative along one axis; a NaN propagates.
remap_axisfunctionInterpolate values along axis from source_coords to target_coords.
remap_axis_columnsfunctionInterpolate every column of values onto target_coords.

gridax.fields

NameKindWhat it does
absfunctionabs of the array namespace, element by element (gridax.combine).
clipfunctionclip of the array namespace, element by element (gridax.combine).
cosfunctioncos of the array namespace, element by element (gridax.combine).
expfunctionexp of the array namespace, element by element (gridax.combine).
logfunctionlog of the array namespace, element by element (gridax.combine).
maximumfunctionmaximum of the array namespace, element by element (gridax.combine).
minimumfunctionminimum of the array namespace, element by element (gridax.combine).
signfunctionsign of the array namespace, element by element (gridax.combine).
sinfunctionsin of the array namespace, element by element (gridax.combine).
sqrtfunctionsqrt of the array namespace, element by element (gridax.combine).
tanhfunctiontanh of the array namespace, element by element (gridax.combine).
wherefunctionwhere of the array namespace, element by element (gridax.combine).

gridax.pipekit

NameKindWhat it does
ApplyMaskclassZero a field on the dry points of its stagger (jnp.where, NaN-safe).
AvailablePEclass½ g′ (h − H)² at T-points. T → T.
CoriolisclassCoriolis tendencies on a β-plane, (U, V) → (U, V).
CurlclassRelative vorticity ζ = δₓv / Δx − δ_y u / Δy at X-points. (U, V) → X.
DIFFERENCESconstant(('x', 'T', 'U'), ('x', 'U', 'T'), ('x', 'V', 'X'), ('x',...
DifferenceclassDifference between staggered points, δ / Δ.
Divergenceclass∇·(u, v) at T-points: δₓu / Δx + δ_y v / Δy. (U, V) → T.
DomainIntegralclass∑_interior x ΔA over the T-cells (area_sum). T → [*batch].
DomainMeanclassArea-weighted interior mean ⟨x⟩ (area_mean). T → [*batch].
Enstrophyclass½ ζ² at X-points. (U, V) → X.
ExplicitStepclassOne explicit step s ↦ s + Δt Φ(s) of ∂ₜs = F(s), for a dict state.
FVXOperatorclassBase for finitevolX pipekit operators.
FillGhostsclassFill the ghost ring with a boundary condition. x → x.
GHOST_FILLERSconstant{'periodic': BC(faces={'x': (Periodic(), Periodic()), 'y'...
GradPerpclassRotated gradient (u, v) = (−∂_y ψ, ∂ₓψ) of a streamfunction. T → (U, V).
GridOperatorclassAn FVXOperator on a 2-D Cartesian C-grid.
INTERPOLATIONSconstant(('T', 'U'), ('T', 'V'), ('T', 'X'), ('U', 'T'), ('U', 'V...
InterpclassInterpolation between staggered points (a two- or four-point mean).
KineticEnergyclass½ (ū² + v̄²) at T-points (velocities averaged to T). (U, V) → T.
LaplacianclassFive-point Laplacian ∇²h at T-points. T → T.
LinCombclassLinear combination y = ∑ᵢ cᵢ xᵢ (coefficients are learnable leaves).
MASK_KINDSconstant{'T': 'default', 'U': 'default', 'V': 'default', 'X': 'st...
OkuboWeissclassW = σₙ² + σ_s² − ζ² at T-points (W < 0: vortex cores). (U, V) → T.
PickclassSelect one output of a tuple-valued node: (a, b, …) → [index].
PotentialVorticityclassShallow-water PV q = (ζ + f) / h at X-points. (U, V, T, T) → X.
QGPotentialVorticityclassSingle-layer QG PV q = (∇²ψ + β (y − y₀)) / f₀ at T-points. T → T.
RelativeVorticityclassζ = δₓv / Δx − δ_y u / Δy at X-points. (U, V) → X.
SCHEMESconstant{'euler': <function euler_step>, 'heun': <function heun_s...
STRAIN_COMPONENTSconstant{'shear': <function shear_strain>, 'tensor': <function te...
StrainclassA strain component: shear σ_s (X), tensor σₙ (T) or σ_s² + σₙ² (T).
TotalEnergyclassE = ∑_interior (KE + APE) ΔA (area_sum), one value per leading index.
graph_halofunctionThe halo of a graph: how many cells around a point its result reads.
over_leadingfunctionLift fn on [*core] arrays to [*batch, *core] arrays.

gridax.schemes

NameKindWhat it does
AdaptiveclassA scheme, and what it does at the edges of the array and at a coast.
BiasedclassStencils that lean to one side, whatever the velocity.
CentredclassSymmetric stencils, of any even order.
SchemeclassWhich values an operation reads around its output, and how it weighs them.
TVDclassSecond-order TVD: first-order upwind plus a limited anti-diffusive correction.
TierclassOne stencil width of a scheme, as a face-value reconstruction.
UpwindclassLinear upwind-biased face values of cell averages, of any odd order.
WENOclassWENO face values of cell averages, of any odd order from 3 on.

gridax.solvers

NameKindWhat it does
BoundaryConditionfunctionRe-exported from typing.
CapacitanceSolverclassRe-exported from spectraldiffx.
DirichletHelmholtzSolver2DclassRe-exported from spectraldiffx.
KnownValueLiftingclassPre/post-processing wrapper for the lifting trick.
MixedBCHelmholtzSolver2DclassRe-exported from spectraldiffx.
MixedBCHelmholtzSolver3DclassRe-exported from spectraldiffx.
MultigridSolverclassGeometric multigrid V-cycle solver for the variable-coefficient Helmholtz equation::
NeumannHelmholtzSolver2DclassRe-exported from spectraldiffx.
RegularNeumannHelmholtzSolver2DclassRe-exported from spectraldiffx.
SolveDomainclassDerived masks for the lifting trick.
SpectralHelmholtzSolver1DclassRe-exported from spectraldiffx.
SpectralHelmholtzSolver2DclassRe-exported from spectraldiffx.
SpectralHelmholtzSolver3DclassRe-exported from spectraldiffx.
StaggeredDirichletHelmholtzSolver2DclassRe-exported from spectraldiffx.
boundary_ringfunctionWet cells adjacent to at least one dry cell (the inner ring).
build_capacitance_solverfunctionPre-compute the capacitance matrix and return a ready-to-use solver.
build_multigrid_solverfunctionBuild a multigrid solver with precomputed level hierarchies.
check_dtypefunctionRaise if JAX would silently downcast x from float64 to float32.
coast_ringfunctionDry cells adjacent to at least one wet cell (the coast ring).
dctfunctionRe-exported from spectraldiffx.
dct1_eigenvaluesfunctionRe-exported from spectraldiffx.
dct1_eigenvalues_psfunctionRe-exported from spectraldiffx.
dct2_eigenvaluesfunctionRe-exported from spectraldiffx.
dct2_eigenvalues_psfunctionRe-exported from spectraldiffx.
dct3_eigenvaluesfunctionRe-exported from spectraldiffx.
dct3_eigenvalues_psfunctionRe-exported from spectraldiffx.
dct4_eigenvaluesfunctionRe-exported from spectraldiffx.
dct4_eigenvalues_psfunctionRe-exported from spectraldiffx.
dctnfunctionRe-exported from spectraldiffx.
dstfunctionRe-exported from spectraldiffx.
dst1_eigenvaluesfunctionRe-exported from spectraldiffx.
dst1_eigenvalues_psfunctionRe-exported from spectraldiffx.
dst2_eigenvaluesfunctionRe-exported from spectraldiffx.
dst2_eigenvalues_psfunctionRe-exported from spectraldiffx.
dst3_eigenvaluesfunctionRe-exported from spectraldiffx.
dst3_eigenvalues_psfunctionRe-exported from spectraldiffx.
dst4_eigenvaluesfunctionRe-exported from spectraldiffx.
dst4_eigenvalues_psfunctionRe-exported from spectraldiffx.
dstnfunctionRe-exported from spectraldiffx.
fft_eigenvaluesfunctionRe-exported from spectraldiffx.
fft_eigenvalues_psfunctionRe-exported from spectraldiffx.
helmholtz_operatorfunctionThe rectangular Helmholtz operator (∇² − λ) as a gaussx operator.
idctfunctionRe-exported from spectraldiffx.
idctnfunctionRe-exported from spectraldiffx.
idstfunctionRe-exported from spectraldiffx.
idstnfunctionRe-exported from spectraldiffx.
make_spectral_preconditionerfunctionReturn a spectral-solve preconditioner for PCG.
masked_face_dirichlet_laplacianfunctionMasked Helmholtz operator (∇² − λ)·p with p = 0 on every coast face.
masked_helmholtz_operatorfunctionThe masked Helmholtz operator of :func:masked_laplacian as a gaussx operator.
masked_laplacianfunctionApply the masked discrete Helmholtz operator (∇² − λ)·ψ.
masked_neumann_laplacianfunctionMasked Helmholtz operator (∇² − λ)·p with zero flux through every coast face.
modify_rhs_1dfunctionRe-exported from spectraldiffx.
modify_rhs_2dfunctionRe-exported from spectraldiffx.
modify_rhs_3dfunctionRe-exported from spectraldiffx.
multigrid_levelsfunctionThe C-grid multigrid hierarchy of a mask, as gaussx.MultigridLevel\ s.
project_zero_meanfunctionRemove the wet mean of u on each connected wet component.
solve_helmholtz_2dfunctionRe-exported from spectraldiffx.
solve_helmholtz_3dfunctionRe-exported from spectraldiffx.
solve_helmholtz_dctfunctionRe-exported from spectraldiffx.
solve_helmholtz_dct1functionRe-exported from spectraldiffx.
solve_helmholtz_dct1_1dfunctionRe-exported from spectraldiffx.
solve_helmholtz_dct1_3dfunctionRe-exported from spectraldiffx.
solve_helmholtz_dct2_1dfunctionRe-exported from spectraldiffx.
solve_helmholtz_dct2_3dfunctionRe-exported from spectraldiffx.
solve_helmholtz_dstfunctionRe-exported from spectraldiffx.
solve_helmholtz_dst1_1dfunctionRe-exported from spectraldiffx.
solve_helmholtz_dst1_3dfunctionRe-exported from spectraldiffx.
solve_helmholtz_dst2functionRe-exported from spectraldiffx.
solve_helmholtz_dst2_1dfunctionRe-exported from spectraldiffx.
solve_helmholtz_dst2_3dfunctionRe-exported from spectraldiffx.
solve_helmholtz_fftfunctionRe-exported from spectraldiffx.
solve_helmholtz_fft_1dfunctionRe-exported from spectraldiffx.
solve_helmholtz_fft_3dfunctionRe-exported from spectraldiffx.
solve_poisson_2dfunctionRe-exported from spectraldiffx.
solve_poisson_3dfunctionRe-exported from spectraldiffx.
solve_poisson_dctfunctionRe-exported from spectraldiffx.
solve_poisson_dct1functionRe-exported from spectraldiffx.
solve_poisson_dct1_1dfunctionRe-exported from spectraldiffx.
solve_poisson_dct1_3dfunctionRe-exported from spectraldiffx.
solve_poisson_dct2_1dfunctionRe-exported from spectraldiffx.
solve_poisson_dct2_3dfunctionRe-exported from spectraldiffx.
solve_poisson_dstfunctionRe-exported from spectraldiffx.
solve_poisson_dst1_1dfunctionRe-exported from spectraldiffx.
solve_poisson_dst1_3dfunctionRe-exported from spectraldiffx.
solve_poisson_dst2functionRe-exported from spectraldiffx.
solve_poisson_dst2_1dfunctionRe-exported from spectraldiffx.
solve_poisson_dst2_3dfunctionRe-exported from spectraldiffx.
solve_poisson_fftfunctionRe-exported from spectraldiffx.
solve_poisson_fft_1dfunctionRe-exported from spectraldiffx.
solve_poisson_fft_3dfunctionRe-exported from spectraldiffx.
wet_componentsfunctionLabel the 4-connected wet components of a concrete mask (construction time).

gridax.stencils

NameKindWhat it does
BiasfunctionRe-exported from typing.
DatafunctionRe-exported from typing.
METHODSconstant('central', 'forward', 'backward')
MethodfunctionRe-exported from typing.
difference_coeffsfunctionThe coefficients of a stencil on offsets, exact, from the Taylor conditions.
difference_offsetsfunctionThe offsets of one stencil, in units of the grid step.
interiorfunctionCreate an array shaped like like, zero everywhere except the interior.
nonuniform_coeffsfunctionStencil coefficients for points at arbitrary distances, on any backend.
optimal_weightsfunctionThe linear (optimal) weights that blend sub-stencils into the full one.
smoothness_matrixfunctionThe Jiang–Shu smoothness indicator of one sub-stencil, as a matrix.
staggered_averagefunctionThe staggered average (point-value interpolation) of h along axis.
staggered_differencefunctionThe staggered first difference of h along axis, no metric applied.
weno_stencilsfunctionThe full stencil of WENO of order and its sub-stencils, as offsets.

Upstream: spectraldiffx

Pseudospectral differentiation, filters and PDE solvers.

spectraldiffx

NameKindWhat it does
ChebyshevDerivative1Dclass1D Chebyshev derivative operator using the precomputed differentiation matrix.
ChebyshevDerivative2Dclass2D Chebyshev derivative operators on [−Lx, Lx] × [−Ly, Ly].
ChebyshevDerivative3Dclass3D Chebyshev derivative operators on [−Lz, Lz] × [−Ly, Ly] × [−Lx, Lx].
ChebyshevFilter1Dclass1D Chebyshev spectral filter for smoothing and numerical stabilisation.
ChebyshevFilter2Dclass2D Chebyshev spectral filter on [−Lx, Lx] × [−Ly, Ly].
ChebyshevGrid1Dclass1D Chebyshev grid on the domain [-L, L].
ChebyshevGrid2Dclass2D Chebyshev grid on [-Lx, Lx] × [-Ly, Ly].
ChebyshevGrid3Dclass3D Chebyshev grid on [-Lz, Lz] × [-Ly, Ly] × [-Lx, Lx].
ChebyshevHelmholtzSolver1Dclass1D Chebyshev-collocation Helmholtz/Poisson solver with Dirichlet or Neumann BCs.
ChebyshevHelmholtzSolver2Dclass2D Chebyshev-collocation Helmholtz/Poisson solver with Dirichlet BCs.
ChebyshevPoissonSolver1Dclass1D Chebyshev Poisson solver: d²u/dx² = f on [−L, L].
ChebyshevPoissonSolver2Dclass2D Chebyshev Poisson solver: ∇²u = f with Dirichlet BCs.
ChebyshevTransform1DclassForward/inverse 1D Chebyshev transform.
ChebyshevTransform2DclassForward/inverse 2D Chebyshev transform (tensor product of 1D).
FourierGrid1DclassFourier grid setup for periodic domain.
FourierGrid2Dclass2D Fourier grid for doubly periodic domain.
FourierGrid3Dclass3D Fourier grid for triply periodic domain.
SpectralDerivative1Dclass1D Spectral derivative operator using the Fast Fourier Transform (FFT).
SpectralDerivative2Dclass2D Spectral derivative operators for doubly periodic rectangular domains.
SpectralDerivative3Dclass3D Spectral derivative operators for triply periodic domains.
SpectralFilter1Dclass1D Spectral filter for smoothing and numerical stabilization.
SpectralFilter2Dclass2D Spectral filter for doubly periodic domains.
SpectralFilter3Dclass3D Spectral filter for triply periodic domains.
SphericalDerivative1Dclass1D spectral derivative operator on Gauss-Legendre latitude grid.
SphericalDerivative2Dclass2D pseudo-spectral derivative operators on the sphere.
SphericalDivergenceInversionSolverclassDivergence-inversion solver on the sphere.
SphericalFilter1Dclass1D spectral filter on the Gauss–Legendre latitude grid.
SphericalFilter2Dclass2D spectral filter on the full sphere lat-lon grid.
SphericalGrid1DclassGauss-Legendre grid for the latitude (colatitude) direction.
SphericalGrid2DclassFull sphere latitude-longitude pseudo-spectral grid.
SphericalHarmonicTransformclassFull 2D Spherical Harmonic Transform (SHT).
SphericalHelmholtzDecompositionclassHelmholtz decomposition of a horizontal vector field on the sphere.
SphericalHelmholtzSolverclassSpectral Helmholtz solver on the sphere: (∇² − α) φ = f.
SphericalPoissonSolverclassSpectral Poisson solver on the sphere: ∇²φ = f.
SphericalVorticityInversionSolverclassVorticity-inversion solver on the sphere.
build_capacitance_solverfunctionPre-compute the capacitance factorisation and return a solver.
cheb_dealias_productfunctionCompute the dealiased pointwise product a·b on a Chebyshev grid.
chebyshev_antiderivative_coeffsfunctionIndefinite integral of a Chebyshev series, vanishing at x = −L.
chebyshev_derivative_coeffsfunctionDifferentiate a Chebyshev series in coefficient space (last axis).
chebyshev_integral_coeffsfunctionDefinite integral ∫_{−L}^{L} u(x) dx from Chebyshev coefficients.
clenshaw_curtis_integrate_1dfunctionIntegrate a 1D nodal field over [−L, L] using Clenshaw–Curtis.
clenshaw_curtis_integrate_2dfunctionIntegrate a 2D nodal field over [−Lx, Lx] × [−Ly, Ly].
clenshaw_curtis_weightsfunctionClenshaw–Curtis quadrature weights on Gauss–Lobatto nodes of [−L, L].

Upstream: functax

Function approximation: bases, quadrature rules, interpolation.

functax

NameKindWhat it does
FunctaxErrorclassBase class for every exception raised by functax.
GeometryErrorclassRaised when an axis, grid or point set is malformed.
MissingExtraErrorclassRaised when a module or a plan needs an optional extra that is missing.
NonlinearSchemeErrorclassRaised when a linear-only operation meets a plan whose fit is nonlinear in y.
OutsideDomainErrorclassRaised under outside="raise" when a target lies outside the domain.
PolicyErrorclassRaised when an interpolation policy names an option that does not exist.
ValidationErrorclassRaised when an argument fails validation.

functax.diffops

NameKindWhat it does
curl2dfunctionThe scalar curl (vorticity) ∂u₁/∂x₀ − ∂u₀/∂x₁ of a planar field.
divergencefunctionThe divergence ∇ · u = ∑_d ∂u_d/∂x_d of a vector field.
gradientfunctionThe gradient ∇f of a scalar field.
jacobian_fieldfunctionThe Jacobian [J_u]_kd = ∂u_k/∂x_d of a vector field.
laplace_beltramifunctionThe Laplace–Beltrami operator ∇²_S f of a field on the unit sphere.
laplacianfunctionThe Laplacian ∇²f = ∑_d ∂²f/∂x_d² of a scalar field.
surface_gradfunctionThe surface gradient ∇_S f of a field on the unit sphere.
surface_grad_enufunctionThe east and north components of the surface gradient, at a (λ, φ).

functax.filter

NameKindWhat it does
BOUNDARIESconstant('reflect', 'mirror', 'nearest', 'wrap', 'constant')
bilateral_filterfunctionSmooth x with weights that fall with distance and with value difference.
box_filterfunctionThe moving average of x over a centred box window.
box_kernelfunctionThe size equal weights 1/size of a centred moving average.
correlate1dfunctionCorrelate x with 1-D weights along one axis.
fft_filterfunctionCorrelate x with a full kernel through the FFT.
gaussian_filterfunctionSmooth x with a separable Gaussian, one 1-D pass per filtered axis.
gaussian_kernelfunctionThe 2r + 1 weights of a sampled Gaussian, normalised to sum to 1.
local_momentsfunctionThe windowed mean μ and variance σ² of x over a box window.
median_filterfunctionThe median of the valid values in every centred window.
percentile_filterfunctionThe q-th percentile of the valid values in every centred window.
sliding_windowsfunctionEvery window centred on every cell, flattened along a new last axis.
window_mapfunctionReduce every window of x to one value per cell.

functax.geometry

NameKindWhat it does
AffineGridclassA regular 2-D grid given by an affine transform and a shape.
AxisclassOne strictly monotone coordinate axis, optionally periodic or in time.
CurvilinearGridclassA 2-D grid whose node coordinates are given per node, such as a swath.
MetricconstantMetric
PointsclassScattered sites, with the metric their distances use.
RectilinearGridclassA tensor-product grid with one Axis per dimension.
cartesian_to_tangentfunction3-D vectors w to their east and north components (w · e_east, w · e_north).
chebyshev_nodesfunctionThe Chebyshev nodes of degree N on [a, b], from b down to a.
chord_distancefunctionThe straight-line distance through the sphere between every pair.
ecef_to_lonlatfunctionEarth-centred, Earth-fixed coordinates to geodetic (λ, φ) and height.
enu_basisfunctionThe local east, north and up unit vectors at each point.
fibonacci_spherefunctionThe Fibonacci lattice: n near-uniform points on the unit sphere.
from_pixelfunctionMap fractional pixel (row, col) to coordinates (x, y): the inverse of to_pixel.
gauss_legendre_gridfunctionThe Gauss–Legendre grid on the sphere, with its quadrature weights.
geodesic_distancefunctionThe great-circle distance between every pair.
healpix_gridfunctionHEALPix pixel centres, each weighted by the equal pixel area.
icospherefunctionThe subdivided icosahedron, a quasi-uniform triangle mesh of the sphere.
latlon_gridfunctionThe regular cell-centred lon/lat grid, weighted by exact cell areas.
local_tangent_planefunctionProject points onto the tangent plane at origin, as (east, north).
lonlat_to_eceffunctionGeodetic (λ, φ) and height to Earth-centred, Earth-fixed coordinates.
lonlat_to_unitfunctionLift longitude and latitude onto the unit sphere.
mesh_vertex_areasfunctionThe lumped (barycentric) vertex areas of a triangle mesh.
pairwise_distancefunctionThe distance from every source to every target, in their shared metric.
pixel_centresfunctionThe x and y of every pixel centre of a grid, each of shape (rows, cols).
rotation_to_polefunctionThe rotation Q with Q e_up(centre) = (0, 0, 1).
slice_transformfunctionThe transform of the slice [row0::row_step, col0::col_step] of a raster.
spherical_polygon_areafunctionThe signed area of a spherical polygon with great-circle edges.
tangent_to_cartesianfunctionEast and north components (u, v) to the tangent vector u e_east + v e_north.
to_pixelfunctionMap coordinates (x, y) to fractional pixel (row, col), centres at integers.
unit_to_lonlatfunctionLongitude and latitude of vectors on (or off) the unit sphere.
windowfunctionThe row and column slices of the pixels that cover bounds.

functax.interp

NameKindWhat it does
AkimaclassAkima’s local cubic, as SciPy’s Akima1DInterpolator(method="akima").
BSplineclassA B-spline of order k on every axis: (k + 1)ᴰ taps, after the prefilter.
BSplineBasisclassThe centred B-spline of order k (degree k): k + 1 taps per axis.
BandedPrefilterclassc = B⁻¹ y per axis: the B-spline prefilter, separable on a grid.
BasisclassA local basis on one axis: S relative taps, and weights from the offsets.
BinningclassAggregate scattered samples into grid cells: Hᵀ y, normalised for the mean.
BinningPlanclassA plan from N samples to M cells: the sums, means or counts per cell.
BrownianBridgeclassThe Brownian bridge between the knots of one axis, cell by cell.
ChebyshevclassThe Chebyshev series of samples on Chebyshev nodes, read at arbitrary points.
ChebyshevFitclassc = Π C y: the first D_c Chebyshev coefficients of samples on Chebyshev nodes.
ChebyshevInterpolantclassA fitted Chebyshev series f̂(x) = ∑ₖ cₖ Tₖ(ξ(x)), read at targets by clenshaw.
ComposedPlanclassouter @ inner: H_outer H_inner 𝒮_inner, one plan with the product stencil.
ConservativeclassFirst-order conservative remapping: each target cell’s area-weighted mean.
CubicclassKeys cubic convolution on every axis: 4ᴰ taps per target, no prefilter.
CubicBasisclassKeys cubic convolution: taps i − 1 … i + 2, weights W(1 + t) … W(2 − t).
CubicSplineclassThe interpolating C² cubic spline, as scipy.interpolate.CubicSpline.
DelaunayclassLinear interpolation on a triangulation of the sources: D + 1 taps per target.
DerivativePlanclassA plan whose read-out holds basis derivatives: ∂ᵐf̂/∂x_dᵐ at the targets.
Fitclassc = 𝒮(y), applied once per field before the read-out.
FourierclassBand-limited Fourier resampling from N to M nodes of one periodic axis.
FourierReadoutclassH y = (M/N) Re(F_M⁻¹ S F_N y), band-limited resampling by two FFTs.
GaussianPlanclassA plan read as a Gaussian posterior: f(X_*) ∣ y ~ 𝒩(H 𝒮(y), Σ_{*∣y}).
HermiteFitclass[y; d] from y: the values in increasing-knot order and their slopes.
HermiteGeometryclassWhat a 1-D series plan’s Hermite read-out was built from.
IdentityclassThe fit of every local scheme: c = y.
InterpolantclassA fitted field f̂(x) = ∑ₛ wₛ(t(x)) c_{iₛ(x)}, read at any targets.
InverseDistanceclassInverse-distance weighting of the Q nearest scattered sources.
Kernelclassk(x, x′): the (M, N) cross-kernel of M targets and N sources.
KernelCovarianceclassΣ_{∣y} = K_* − H A⁻¹ Hᵀ, the posterior covariance of a kernel fit.
KernelReadoutclassThe dense read-out of a kernel scheme: f̂(X_*) = K_X c + P_ b.
KernelSolveclass[c; b] = A⁻¹ [y; 0], the saddle-point system of a kernel and a tail.
KrigingclassKriging: the best linear unbiased predictor under a covariance k and a drift.
LinearclassLinear on every axis: 2ᴰ taps per target, weights ∏_d (1 − t_d or t_d).
LinearBasisclassLinear: taps i and i + 1, with weights 1 − t and t.
LocalGeometryclassWhat a local plan was built from: the source, the target coordinates, the bases.
LocalSchemeclassA scheme with one local basis per axis and the identity fit.
NearestclassNearest neighbour on every axis: one tap per target, weight 1.
NearestBasisclassNearest neighbour: one tap, the closer of i and i + 1, with weight 1.
NonlinearDerivativePlanclass∂ᵐf̂/∂xᵐ of a nonlinear series plan: it reads, but has no fixed operator.
NonlinearPlanclassA plan whose fit depends on y: no fixed operator or adjoint, but linearize.
PchipclassMonotone piecewise cubic Hermite (Fritsch-Carlson), as SciPy’s PCHIP.
Planclassf̂(X_*) = H 𝒮(y), fitted once, applied to many fields.
PoliciesclassOutside the domain, at missing samples, and at the edges.
PolyharmonicclassThe polyharmonic spline φ(r) = ±rᵖ for odd p, ±rᵖ log r for even p.
PosteriorCovarianceclassΣ_{*∣y}, the (M, M) posterior covariance of the field at M targets.
RBFclassRadial basis function interpolation: f̂(x) = ∑ⱼ cⱼ k(x, xⱼ) + ∑ₚ bₚ pₚ(x).
RadialKernelclassk(x, x′) = φ(‖x − x′‖), Euclidean in the coordinates as given.
ReadGeometryclassWhat a plan’s stencil was built from, so Plan.derivative can rebuild it.
Readoutclassc ↦ f̂(X_*): the read-out of a plan, from coefficients to target values.
SchemeclassAn interpolation scheme: configuration, frozen into a Plan by plan.
SeriesInterpolantclassA 1-D series field f̂ read at targets chosen inside the trace.
SeriesSchemeclassA scheme on one axis with a cubic Hermite read-out and its own slopes.
SteffenclassSteffen’s monotone cubic: no overshoot between knots, by construction.
StencilclassA sparse read-out H: row k reads S source values at flat indices.
TensorclassOne local scheme per source axis, as one tensor stencil.
TransposedStencilclassf̂ = diag(w) Hᵀ y: a sampling stencil H used backwards, scaled per cell.
WendlandclassThe compact Wendland kernel φ(r) = ψ(r/ρ), zero for r ≥ ρ.
WindowedPlanclassplan[window]: the rows of a grid target inside a window, sources unchanged.
bsplinefunctionThe centred B-spline βᵏ of degree k at x.
check_outsidefunctionEnforce outside="raise" on the host; no-op for every other policy.
clenshawfunctionThe Chebyshev series f(x) = ∑ₖ cₖ Tₖ(ξ(x)) by Clenshaw’s recurrence.
composefunctionH = H_outer H_inner: apply inner first, then outer, as one stencil.
index_positionsfunctionThe fractional index position u of each target, so node j sits at u = j.
locatefunctionThe cell index i, the offset t ∈ [0, 1) and the inside flag of each target.
locate_curvilinearfunctionThe cell (i, j), the offset (s, t) and the inside flag of targets on a swath.
overlap_weights_1dfunctionThe (M, N) overlap lengths |cⱼ ∩ Cᵢ| of every target and source cell.
plan_keyfunctionsha256 hex of the scheme, the policies and both geometries’ bytes.
remap_tapsfunctionBring tap indices back onto [0, N − 1] by a boundary rule.
spline_polesfunctionThe poles zₚ of the order-k B-spline prefilter, as in scipy.ndimage.
tensor_stencilfunctionH = H₁ ⊗ … ⊗ H_D: one local basis per source axis, read at the targets.

functax.project

NameKindWhat it does
Variationalclassc = argmin_c (Hc − y)ᵀΛ_ε(Hc − y) + β‖Lc‖₂², the variational smoothing fit.
fill_gapsfunctionThe image with its holes filled: ∇²x = 0 (Laplace) or ∇⁴x = 0 (biharmonic).
galerkinfunctionc = (ΦᵀWΦ)⁻¹ ΦᵀW y, the Galerkin projection with quadrature weights W.
least_squaresfunctionc = argmin_c ‖Φc − y‖₂² + β‖c‖₂², the ridge least-squares coefficients.

functax.quad

NameKindWhat it does
CurveRuleclassA rule on a curve L: ∫_L g ds ≈ ∑ₖ Δsₖ g(xₖ), with the unit normal nₖ.
RuleclassA quadrature rule as data: nodes xₙ and weights wₙ, ∫ g dx ≈ ∑ₙ wₙ g(xₙ).
SphereRuleclassA rule on a sphere of radius R: ∫_{S²} g dA ≈ ∑_q w_q g(u_q).
cell_areafunctionThe cell-area rule of a grid: ∫ g dA ≈ ∑ₖ |Cₖ| g(xₖ) over its cells Cₖ.
clenshaw_curtisfunctionThe n-point Clenshaw–Curtis rule on [a, b], at the Chebyshev extreme points.
gauss_legendrefunctionThe n-point Gauss–Legendre rule on an interval [a, b].
polylinefunctionA rule along a polyline: n nodes per segment, arc-length weights and normals.
simpsonfunctionThe composite Simpson rule on given nodes, as scipy.integrate.simpson.
sphere_fibonaccifunctionThe Fibonacci rule: n near-uniform points of equal weight 4πR²/n.
sphere_gauss_legendrefunctionThe Gauss–Legendre × uniform-longitude rule on the sphere, exact to a degree.
sphere_healpixfunctionThe HEALPix rule: 12 N_side² pixel centres of equal weight 4πR²/Q.
sphere_latlonfunctionThe cell-centred lon/lat rule: equiangular cells weighted by their exact areas.
trapezoidfunctionThe composite trapezoid rule on given nodes, uniform or not.

functax.transform

NameKindWhat it does
ChebyshevTransform1DclassThe forward and inverse Chebyshev transform on N Chebyshev nodes.
ChebyshevTransform2DclassThe tensor-product Chebyshev transform on an (N_y, N_x) grid of nodes.
SphericalHarmonicTransformclassDense, differentiable spherical-harmonic analysis and synthesis on a grid.
SphericalWaveletTransformclassScale-discretised (needlet) wavelet analysis and synthesis on the sphere.
nonuniform_irfftfunctionA truncated real Fourier series evaluated at points of [0, 1)^d.
nonuniform_rfftfunctionThe truncated Fourier coefficients of a field sampled at points of [0, 1)^d.

Upstream: argminax

Optimisation with uncertainty at the minimum: solvers, curvature.

argminax

NameKindWhat it does
ArgminaxErrorclassBase class for every exception raised by argminax.
MissingExtraErrorclassRaised when a function needs an optional extra that is not installed.
ValidationErrorclassRaised when an argument fails validation.

argminax.adjoint

NameKindWhat it does
KStepclassDifferentiate a minimiser through its last k iterate updates only.
OneStepclassDifferentiate a minimiser through its last iterate update only.
safe_implicit_adjointfunctionoptx.ImplicitAdjoint whose linear solve never raises; safe inside NUTS.
to_optimistix_adjointfunctionReturn the optimistix adjoint that implements an adjoint spec.

argminax.curvature

NameKindWhat it does
LaplaceclassThe Gaussian 𝒩(x̂, Σ_x∣y) at a minimum, with Σ_x∣y = Λ_x∣y⁻¹ never formed.
VarianceEstimateclassA probed estimate of the marginal variances, with its standard error.
gauss_newtonfunctionBuild the Laplace posterior at a minimum from whitened residuals.
low_rankfunctionReturn a low-rank form of the covariance of a whitened posterior.
marginal_variancefunctionReturn the marginal variances diag(Σ_x∣y) of a Laplace posterior.
push_forwardfunctionMap a posterior in whitened coordinates back to physical ones.
sample_by_perturbationfunctionDraw from a Gauss–Newton posterior by perturbing its residuals.

argminax.diagnose

NameKindWhat it does
TraceEstimateclassA scalar diagnostic and its standard error.
averaging_kernelfunctionReturn the averaging kernel J_x̂ = ∂x̂/∂x of a Laplace posterior, lazily.
degrees_of_freedomfunctionReturn the degrees of freedom for signal, the trace of the averaging kernel.
evidencefunctionReturn the Laplace evidence log p(y) at a minimum.
information_contentfunctionReturn the information content of the measurement, in nats.
optimize_prior_precisionfunctionReturn the isotropic prior precision δ that maximises the Laplace evidence.

argminax.solve

NameKindWhat it does
CovarianceLaplaceResultclassThe Gaussian at the mode of a GP with prior covariance K_XX.
DualSolutionclassThe result of an observation-space solve.
GaussNewtonCGclassGauss–Newton or Levenberg–Marquardt, each step by a matrix-free inner CG.
LaplaceModeResultclassThe Gaussian 𝒩(x̂, Λ_x∣y⁻¹) at the mode, with gaussx’s LaplaceResult fields.
ReparametrisedclassA bound on the state, imposed by solving in an unconstrained variable u.
SiteFixedPointclassThe fixed point s* = T(s*, args) of a site update, and how the loop ended.
SiteLaplaceResultclassThe mode of a latent GP and the Newton site naturals there.
TolerantLinearSolverclassWrap a lineax solver so a capped, stagnant or non-finite solve returns a value.
dual_solvefunctionSolve the 3D-Var increment in observation space.
incremental_dual_solvefunctionIncremental 3D-Var in observation space, for a nonlinear forward model.
laplace_modefunctionMode and Gaussian approximation of a latent Gaussian model, in precision form.
laplace_mode_covariancefunctionLaplace approximation of a GP with prior covariance K_XX, by damped Newton.
laplace_mode_sitesfunctionLaplace approximation by damping the site naturals, given a posterior-mean map.
site_fixed_pointfunctionIterate s ← T(s, args) over Gaussian sites to a fixed point, differentiably.

Upstream: integrix

Integration: rules, cumulative scans, time marching, expectations.

integrix

NameKindWhat it does
IntegrixErrorclassBase class for every exception raised by integrix.
ValidationErrorclassRaised when an argument fails validation.

integrix.adapt

NameKindWhat it does
GaussKronrodclassAdaptive Gauss–Kronrod quadrature to a tolerance, with an error estimate.
RombergclassRomberg integration of a smooth integrand on a finite interval.
TanhSinhclassTanh–sinh (double-exponential) quadrature, for singular ends and infinite limits.
cumulative_adaptivefunction∫ from x₀ to each node xₖ of f, each interval integrated adaptively.

integrix.adjoint

NameKindWhat it does
CheckpointedclassThe checkpointed adjoint: store every k-th state, recompute between them.
TruncatedclassThe truncated adjoint: gradients flow through the carry of the last k steps.
checkpointed_scanfunctionjax.lax.scan that stores the carry only every k steps for reverse mode.
scan_forfunctionThe scan that runs a loop under an adjoint.
to_diffrax_adjointfunctionMap an adjoint spec onto a diffrax.AbstractAdjoint.
truncated_scanfunctionjax.lax.scan with gradients truncated to the trailing k steps.

integrix.expect

NameKindWhat it does
ExpectationclassAn estimate of 𝔼[f] with its standard error.
effective_sample_sizefunctionESS = (∑ₛ wₛ)² / ∑ₛ wₛ² from log weights, along the last axis.
importancefunctionSelf-normalised importance sampling: Î = ∑ₛ wₛ f(xₛ) / ∑ₛ wₛ, xₛ ~ q.
log_gauss_hermitefunctionlog 𝔼[f(Q)] for a lognormal Q, by Gauss–Hermite quadrature in log Q.
log_simpsonfunctionlog ∫ₐᵇ f(q) dq by composite Simpson on a uniform grid in u = log q.
monte_carlofunctionPlain Monte Carlo: Î = (1/S) ∑ₛ f(xₛ), with standard error σ̂/√S.
pareto_smoothed_log_weightsfunctionPareto-smoothed log importance weights and the tail shape k̂.
qmcfunctionRandomised quasi-Monte Carlo over [0, 1)^D, with an error from random shifts.

integrix.march

NameKindWhat it does
AB2SolverclassSecond-order Adams–Bashforth, run by integrix.march.run.
AB3SolverclassThird-order Adams–Bashforth as a diffrax solver, with an SSP-RK3 start.
AbstractStepperclassA fixed-step scheme whose history lives in the loop carry.
DiffraxForwardModelclassA forward model M: x(t₀) ↦ x(t₁) that one diffrax.diffeqsolve computes.
ForwardEulerDfxclassForward Euler as a diffrax solver: yₙ₊₁ = yₙ + h F(tₙ, yₙ).
IMEX_SSP2classIMEX-SSP2(2,2,2) for a diffrax.MultiTerm of an explicit and an implicit term.
LeapfrogRAFSolverclassLeapfrog with a Robert–Asselin filter, run by integrix.march.run.
RK2HeunclassHeun’s method (RK2), with an embedded forward-Euler error estimate.
RK3SSPclassThird-order strong-stability-preserving Runge–Kutta (Shu–Osher).
RK4ClassicclassThe classical fourth-order Runge–Kutta method, fixed steps only.
SSP_RK104classKetcheson’s ten-stage, fourth-order SSP Runge–Kutta, fixed steps only.
SSP_RK2classSecond-order SSP Runge–Kutta, the same scheme as RK2Heun.
SampledPathclassû(t), a functax fit of samples (t_k, u_k), read as a diffrax path.
SemiLagrangianSolverclassSemi-Lagrangian advection as a diffrax solver.
SemiLagrangianTermclassThe characteristic equation Ẋ = u(t, X), as a diffrax term.
SplitExplicitRKSolverclassSplit-explicit stepping as an AbstractStepper, for integrix.march.run.
SplitExplicitTermsclassThe vector fields of a split-explicit model, passed to run as rhs.
ab2_stepfunctionOne second-order Adams–Bashforth step.
ab3_stepfunctionOne third-order Adams–Bashforth step.
count_stepsfunctionK = ⌈T/Δt⌉, with a quotient within 10⁻⁹ K of a whole number taken as it.
departure_pointsfunctionThe points x_d that the flow carries to the nodes x over one step.
erk_stepfunctionOne step of an explicit Runge–Kutta solver, unrolled from its tableau.
euler_stepfunctionOne forward-Euler step: yₙ₊₁ = yₙ + h f(yₙ).
heun_stepfunctionOne Heun (RK2) step, order 2, SSP with C = 1.
imex_solverfunctionA KenCarp3 IMEX solver whose implicit stage is matrix-free.
imex_ssp2_stepfunctionOne IMEX-SSP2(2,2,2) step, with the caller’s implicit solve.
imex_stepsize_controllerfunctionAn adaptive PID step-size controller for an IMEX solve.
leapfrog_raf_stepfunctionOne leapfrog step with a Robert–Asselin filter on the middle level.
rk3_ssp_stepfunctionOne third-order SSP Runge–Kutta step in Shu–Osher form, C = 1.
rk4_stepfunctionOne classical fourth-order Runge–Kutta step.
runfunctionMarch y₀ through n_steps constant steps of h from t₀.
semi_lagrangian_stepfunctionOne semi-Lagrangian step: the old field read at the departure points.
split_explicit_stepfunctionOne split-explicit barotropic/baroclinic step.
stable_stepfunctionThe largest stable forward-Euler step for advection and diffusion together.
step_lengthsfunctionThe K step lengths: Δt, and T − (K − 1) Δt for the last, on the host.

integrix.rule

NameKindWhat it does
IntegralclassThe result of an integral: its value, an error estimate and diagnostics.
integratefunctionIntegrate values, or an integrand, against a rule’s weights.
log_integratefunctionlog I from log f: the log-sum-exp twin of integrate.
weighted_meanfunctionThe mean of the values under a weight function, with one rule for both sums.

integrix.scan

NameKindWhat it does
cumulativefunctionThe running trapezoid integral of samples along one axis.

Upstream: geophysix

Physical constants, the Earth’s shape, its air and its sea water.

geophysix

NameKindWhat it does
BackendErrorclassRe-exported from pipekit_ops.
EarthErrorclassRaised for a bad body, such as an unknown ellipsoid or sphere name.
GeophysixErrorclassBase class for every exception raised by geophysix.
RangeErrorclassRaised for a latitude out of range.
UnitErrorclassRaised for an unknown unit.

geophysix.columns

NameKindWhat it does
COLUMN_UNITSconstant('kg_m2', 'mol_m2', 'molecules_m2', 'ppm_m')
column_from_mixing_ratiofunctionThe column of a gas from its dry-air mole fraction.
convertfunctionA gas column converted between ppm·m, mol m⁻², kg m⁻² and molecules m⁻².
dry_air_columnfunctionThe column of dry air above a point, from hydrostatic balance.
mixing_ratio_from_columnfunctionThe dry-air mole fraction of a gas from its column.

geophysix.constants

NameKindWhat it does
CH4constantGas(name='CH4', molar_mass=0.0160425)
COconstantGas(name='CO', molar_mass=0.0280101)
CO2constantGas(name='CO2', molar_mass=0.0440095)
ConstantsclassOne convention’s physical constants, SI throughout.
GasclassA trace gas: its name and its molar mass M, kg mol⁻¹.
H2OconstantGas(name='H2O', molar_mass=0.01801528)
N2OconstantGas(name='N2O', molar_mass=0.0440128)
STANDARDconstantConstants(boltzmann=1.380649e-23, avogadro=6.02214076e+23...

geophysix.earth

NameKindWhat it does
EllipsoidclassAn ellipsoid of revolution: semi-major axis a, flattening f, rotation Ω.
GRS80constantEllipsoid(semi_major=6378137.0, flattening=0.003352810681...
SPHEREconstantEllipsoid(semi_major=6371008.771415059, flattening=0.0, r...
WGS84constantEllipsoid(semi_major=6378137.0, flattening=0.003352810664...
cell_areafunctionThe area of each cell of a latitude-longitude grid on the ellipsoid.
ecef_to_geodeticfunctionGeodetic position of an Earth-centred, Earth-fixed point.
geodetic_to_eceffunctionEarth-centred, Earth-fixed coordinates of a geodetic position.
great_circle_distancefunctionThe great-circle distance between two points on a sphere of radius R.
initial_azimuthfunctionThe initial bearing of the great circle from the first point to the second.
meridian_degree_lengthfunctionThe length of one degree of latitude along the meridian at φ.
meridional_radiusfunctionThe meridional radius of curvature M(φ).
parallel_degree_lengthfunctionThe length of one degree of longitude along the parallel at φ.
parallel_radiusfunctionThe radius of the parallel (the circle of latitude) at φ.
prime_vertical_radiusfunctionThe prime-vertical radius of curvature N(φ).
spherefunctionA sphere of radius R: the ellipsoid with f = 0.

geophysix.rotation

NameKindWhat it does
betafunctionThe meridional gradient of the Coriolis parameter.
beta_planefunctionThe Coriolis parameter on a β-plane.
coriolisfunctionThe Coriolis parameter at each latitude.

geophysix.seawater

NameKindWhat it does
LINEAR_EOSconstantLinearEOS(reference_density=1025.0, thermal_expansion=0.0...
LinearEOSclassThe parameters of the linear equation of state of sea water.
buoyancyfunctionBuoyancy relative to the reference density.
linear_densityfunctionSea-water density from the linear equation of state.
linear_density_anomalyfunctionThe density anomaly ρ − ρ₀ from the linear equation of state.
linear_drho_dSfunctionThe haline derivative of the linear equation of state.
linear_drho_dTfunctionThe thermal derivative of the linear equation of state.
reduced_gravityfunctionThe reduced gravity across the interface of two layers.

geophysix.thermo

NameKindWhat it does
dry_air_densityfunctionThe density of dry air from the ideal gas law.
exnerfunctionThe Exner function, the dimensionless pressure of dry air.
hypsometric_thicknessfunctionThe thickness of each layer between consecutive pressure levels.
number_densityfunctionThe number of molecules per unit volume of an ideal gas.
potential_temperaturefunctionThe potential temperature of dry air.
pressure_velocityfunctionPressure velocity from vertical velocity, in hydrostatic balance.
temperature_from_potential_temperaturefunctionTemperature from the potential temperature of dry air.
vertical_velocityfunctionVertical velocity from pressure velocity, in hydrostatic balance.
virtual_temperaturefunctionThe virtual temperature of moist air.

geophysix.wind

NameKindWhat it does
wind_componentsfunctionThe eastward and northward wind from a speed and a bearing.
wind_directionfunctionThe wind’s bearing, clockwise from north.
wind_speedfunctionThe horizontal wind speed.

Upstream: radiomax

Observation geometry and radiometry, on any array library.

radiomax

NameKindWhat it does
RadiomaxErrorclassBase class for every exception raised by radiomax.
ValidationErrorclassRaised for a bad argument: its shape, a dimension name or its value.

radiomax.altimetry

NameKindWhat it does
dry_troposphere_correctionfunctionRange correction for the dry gases of the troposphere, after Saastamoinen.
dual_frequency_ionosphere_correctionfunctionRange correction for the ionosphere from two ranges at two frequencies.
inverse_barometerfunctionHeight of the sea surface above its mean, under the air’s pressure.
ionosphere_correctionfunctionRange correction for the ionosphere from its electron content.
sea_surface_heightfunctionSea surface height above the ellipsoid from an altimeter’s range.
wet_troposphere_correctionfunctionRange correction for the water vapour of the troposphere.

radiomax.geometry

NameKindWhat it does
air_mass_factorfunctionThe plane-parallel two-way air mass, Sun to surface to sensor.
apparent_positionfunctionWhere a target at a height above a pixel appears on the ellipsoid.
bowtie_detector_positionsfunctionThe detector that sees each row of a scan once its overlap is removed.
earth_intersectionfunctionThe point where a ray from outside the Earth first meets the ellipsoid.
earth_sun_distancefunctionThe distance from the Earth to the Sun.
geostationary_lonlatfunctionLongitude and latitude of a geostationary imager’s scan angles.
geostationary_on_earthfunctionWhether a geostationary imager’s line of sight meets the Earth.
geostationary_scan_anglesfunctionScan angles at which a geostationary imager sees a position.
phase_anglefunctionThe angle at the pixel between the directions to the Sun and the sensor.
relative_azimuthfunctionThe azimuth between the sensor and the Sun, folded to [0°, 180°].
scan_anglesfunctionThe scan angle of every column of a whiskbroom swath.
scan_pixel_growthfunctionHow much a whiskbroom’s pixel grows from nadir, over a spherical Earth.
scattering_anglefunctionThe angle by which a photon from the Sun turns to reach the sensor.
shell_air_massfunctionThe one-way air mass of a spherical shell, for a ray from the surface.
solar_anglesfunctionThe Sun’s zenith and azimuth angles at each pixel.
solar_declinationfunctionThe Sun’s declination, its latitude on the celestial sphere.
solar_zenithfunctionThe Sun’s zenith angle at each pixel.
utc_day_secondsfunctionUTC midnights since 2000-01-01, and the second of the UTC day.
view_anglesfunctionThe view zenith and azimuth of a satellite at each pixel.

radiomax.radiometry

NameKindWhat it does
apply_responsefunctionBand values of a spectrum, through a response matrix.
apply_response_adjointfunctionThe adjoint of apply_response, from bands back to the grid.
band_averagefunctionThe response-weighted average of a spectrum, per band.
band_centrefunctionThe response-weighted mean wavelength of each band.
band_irradiancefunctionThe solar irradiance of each band at 1 AU.
box_responsefunctionBox responses: 1 within half a width of the centre, 0 outside.
counts_to_radiancefunctionRadiance at the sensor from digital counts.
counts_to_reflectancefunctionReflectance from the counts of a product that stores scaled reflectance.
equivalent_widthfunctionThe width of a box as high as each band’s peak, with the same integral.
gaussian_responsefunctionGaussian responses with a peak of 1.
per_cm_to_per_nmfunctionA spectral density per cm⁻¹ as one per nm.
per_nm_to_per_cmfunctionA spectral density per nm as one per cm⁻¹.
radiance_from_reflectancefunctionRadiance from top-of-atmosphere reflectance, the inverse of reflectance.
radiance_to_countsfunctionDigital counts from radiance, the inverse of counts_to_radiance.
reflectancefunctionTop-of-atmosphere reflectance from radiance.
response_coveragefunctionThe share of each band’s response that a grid covers.
response_matrixfunctionThe matrix of tabulated responses on any grid, as an exact integral.
sampled_response_matrixfunctionThe response matrix on the responses’ own grid, by a quadrature rule.
trapezoid_weightsfunctionThe weights of the composite trapezoid rule on a grid, uniform or not.
triangle_responsefunctionTriangular responses, 1 at the centre and 0 half a width from it.

radiomax.retrievals

NameKindWhat it does
BandRatioTableclassPublished coefficients of a band ratio, for one sensor and one version.
OCX_R2022constantmappingproxy({'SeaWiFS': BandRatioTable(sensor='SeaWiFS',...
band_ratio_chlorophyllfunctionChlorophyll-a from the largest of several blue reflectances over a green one.
brdf_reflectancefunctionReflectance of a surface from its kernel weights.
li_sparse_reciprocalfunctionThe LiSparse-Reciprocal kernel, shadows cast by sparse crowns.
li_sparse_reciprocal_from_cosinesfunctionThe LiSparse-Reciprocal kernel of the cosines of the zeniths.
nadir_adjustmentfunctionThe factor that takes an observed reflectance to nadir view.
ross_thickfunctionThe RossThick kernel, volume scattering by a dense canopy of small leaves.
ross_thick_from_cosinesfunctionThe RossThick kernel of the cosines of the zeniths.
split_window_featuresfunctionThe features whose weighted sum is a split-window land temperature.
split_window_lstfunctionLand-surface temperature from two thermal bands and their emissivities.
split_window_sstfunctionSea-surface temperature from two thermal bands and the view angle.

radiomax.sar

NameKindWhat it does
beta0_to_sigma0functionBackscatter coefficient σ⁰ from the radar brightness β⁰.
dn_to_backscatterfunctionBackscatter from a SAR image’s digital numbers.
gamma0_to_sigma0functionBackscatter coefficient σ⁰ from γ⁰.
sigma0_to_beta0functionRadar brightness β⁰ from the backscatter coefficient σ⁰.
sigma0_to_gamma0functionBackscatter γ⁰ from the backscatter coefficient σ⁰.

radiomax.thermal

NameKindWhat it does
PlanckLinearclassA band’s inverse Planck function, with a linear correction.
PlanckQuadraticclassA band’s inverse Planck function, with a quadratic correction.
brightness_temperaturefunctionThe temperature of the black body that emits a given radiance.
brightness_temperature_bandfunctionA band’s brightness temperature from its published coefficients.
from_per_ghzfunctionRadiance per cm⁻¹ of wavenumber from radiance per GHz of frequency.
from_per_umfunctionRadiance per cm⁻¹ of wavenumber from radiance per µm of wavelength.
log_planck_radiancefunctionThe logarithm of Planck’s law, where the radiance itself underflows.
planck_radiancefunctionPlanck’s law: the radiance of a black body per wavenumber.
to_per_ghzfunctionRadiance per GHz of frequency from radiance per cm⁻¹ of wavenumber.
to_per_umfunctionRadiance per µm of wavelength from radiance per cm⁻¹ of wavenumber.

Upstream: tracerax

Lagrangian particles: advection, deposits, footprints, analysis.

tracerax

NameKindWhat it does
TraceraxErrorclassBase class for every exception raised by tracerax.
ValidationErrorclassRaised when an argument fails validation.

tracerax.advect

NameKindWhat it does
AccumulatorclassWhat a run sums: a run of many steps then stores sums and no trajectory.
BoxclassA box [lower, upper), one interval per position column.
ConstantDiffusivityclassA diffusivity that is the same everywhere: K_i(t, x) = K_i.
DeterministicclassA deterministic step: one explicit Runge–Kutta step per particle.
DeterministicSphereclassA deterministic step on the sphere, as a ParticleStep.
DiffusivityclassA diagonal diffusivity K(t, x), one value per particle and axis.
GriddedDiffusivityclassA diffusivity read from fields, as GriddedVelocity reads a velocity.
InertialclassAn inertial step: a buoyant object at the sea surface, with a memory.
LangevinclassThe Langevin step as a ParticleStep, with noise of shape (N, 3).
RandomDisplacementclassThe random-displacement step as a ParticleStep, with noise (N, D).
ResultclassWhat integrate returns.
SlowManifoldclassThe velocity of a small buoyant object at the sea surface, a Velocity.
TurbulenceModelclassA turbulence closure: σ(z) and τ_L(z) of the velocity fluctuation.
WallsclassTwo reflecting walls in height, or a ground alone.
displacement_stepfunctionOne random-displacement step over each particle’s own duration.
integratefunctionRun a particle step over a duration, forward or backward in time.
langevin_stepfunctionOne Markov-1 Langevin step over each particle’s own duration.

tracerax.analysis

NameKindWhat it does
RegionTimeclassThe time each particle of a run spends in each region, an Accumulator.
RegionsclassRegions as a label per cell.
connectivityfunctionThe fraction of the particles of each region that end in each region.
ftlefunctionThe finite-time Lyapunov exponent at each seed.
visited_connectivityfunctionThe fraction of the particles of each region that ever visit each region.

tracerax.bin

NameKindWhat it does
CellsclassCells between edges, along one, two or three axes.
ResidenceclassThe time the particles of a run spend in each cell, an Accumulator.
columnfunctionThe vertical column of a concentration.
concentrationfunctionThe concentration at one time, from the masses the particles carry.
depositfunctionDeposit one weight per particle in the cells, losing none inside the edges.
steady_concentrationfunctionThe steady concentration of a continuous source, from one puff’s residence.

tracerax.particles

NameKindWhat it does
ParticleStateclassN particles in D = 2 or 3 dimensions.
ParticleStepclassA step: it moves every particle over its own duration.
along_linefunctionN particles at the middles of N equal pieces of a line.
at_pointfunctionN particles at one point.
in_boxfunctionN particles drawn uniformly in a box.
release_timesfunctionN release times at the middles of N equal pieces of an interval.
with_turbulent_velocityfunctionThe state with its velocity drawn from the turbulence at its heights.

tracerax.velocity

NameKindWhat it does
GriddedVelocityclassA velocity on a grid, each component on its own staggered nodes.
VelocityconstantVelocity
WeightedSumclassA weighted sum of velocities, each on its own grid.
cgrid_gridsfunctionThe grids of the components of a C-grid, each on its own points.
uniformfunctionA velocity that is the same everywhere and at every time.
uniform_in_spacefunctionA velocity that varies in time and not in space.