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: GeoModels

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 GeoModels layer. It may import GeoML, GeoNumerics, GeoStack.

Listed at plumax 0.5.0, radtrax 0.2.1, sesmax 0.0.0, sesmax-core 0.3.1, sesmax-ocean 0.0.0, sesmax-experiment 0.0.0.

Upstream: plumax

Plume transport: Gaussian plume and puff, Lagrangian and LES.

plumax.gauss_plume

NameKindWhat it does
BRIGGS_DISPERSION_PARAMSconstant{'A': Array([ 2.2e-01, 1.0e-04, -5.0e-01, 2.0e-01, 0.0...
BriggsPlumeRiseclassBriggs plume rise Δh(x) of a stack plume, from its buoyancy and momentum.
CentrelinePriorclassPrior covariance of the centreline knots.
ColumnObservationclassAveraging-kernel-weighted column at a set of receptors.
ColumnPlumeclassColumn of a steady Gaussian plume per unit line density.
ColumnPlumeSourceclassA column plume as a controlled coupled transport backend.
EmissionRateSamplesclassNUTS draws by site name, with the per-event payload Tier V reads.
GaussianNoiseclassHomoscedastic Gaussian noise, ε ~ 𝒩(0, σ²).
GolderDispersionclassPG σ_y, σ_z with the class chosen from Monin–Obukhov scales (Golder 1972).
HeteroscedasticNoiseclassPer-observation Gaussian noise, ε_i ~ 𝒩(0, σ_i²), from a retrieval-error map.
MIN_WIND_SPEEDconstant0.5
MaskedSourcesclassK_max source slots with emission rates, locations and activity indicators.
MultiSourcePosteriorclassPosterior draws of a masked-K source model.
NoiseclassObservation-noise model p(y | ŷ) for a Tier I likelihood.
PlumeGeometryclassThe fitted variables of a column plume: where it starts, heads and widens.
STABILITY_CLASSESconstant('A', 'B', 'C', 'D', 'E', 'F')
SourceSummaryclassPosterior summary of one slot, conditioned on the slot being active.
StudentTNoiseclassHeavy-tailed Student-t noise, ε ~ t_ν(0, s), for outliers near the detection floor.
briggs_plume_risefunctionBriggs plume rise Δh(x) [m]; see :class:BriggsPlumeRise.
calculate_briggs_dispersionfunctionEvaluate σ_y(x), σ_z(x) from Briggs parameters.
centreline_offsetfunctionCrosswind offset of the centreline at each downwind distance.
effective_heightfunctionEffective release height H_eff(x) = H_stack + Δh(x) [m].
gaussian_plume_modelfunctionNumPyro model for the steady-state Gaussian plume.
get_dispersion_paramsfunctionReturn the Briggs parameter vector for a stability class.
golder_class_boundariesfunctionInverse Obukhov lengths at Golder’s five PG class boundaries.
golder_stability_classfunctionGolder’s (1972) PG class for 1/L and z₀, as an index 0 (A) … 5 (F).
golder_stability_indexfunctionContinuous PG class index from 1/L and z₀, piecewise linear in 1/L.
infer_emission_ratefunctionInfer the plume emission rate via NUTS.
infer_multi_sourcefunctionInfer up to K_max sources and their on/off indicators.
multi_source_plume_modelfunctionMasked-K NumPyro model: up to K_max plumes, each switched on or off.
plume_concentrationfunctionEvaluate the steady-state Gaussian plume concentration.
plume_concentration_vmapfunctionVectorized version of plume_concentration.
plume_framefunctionDownwind and crosswind distance of each receptor from the source.
power_law_widthfunctionCrosswind standard deviation of the plume at each downwind distance.
rotate_to_wind_framefunctionRotate fixed-frame coordinates into the wind-aligned frame.
simulate_plumefunctionSimulate a steady-state Gaussian plume on a 3-D grid.
unit_columnfunctionColumn per unit line density, the Gaussian ridge across the plume.

plumax.gauss_puff

NameKindWhat it does
DISPERSION_SCHEMESconstant{'pg': ({'A': Array([-1.104 , 0.9878, -0.0076, 4.679 , ...
OUTurbulenceclassOrnstein-Uhlenbeck turbulence for puff-release position disturbances.
PG_DISPERSION_PARAMSconstant{'A': Array([-1.104 , 0.9878, -0.0076, 4.679 , -1.7172,...
PuffStateclassContainer for the Lagrangian state of a puff ensemble at a single time.
WindScheduleclassPiecewise-linear time-varying wind field.
calculate_briggs_dispersion_xyzfunctionEvaluate σ_x(s), σ_y(s), σ_z(s) from Briggs parameters.
calculate_pg_dispersionfunctionEvaluate σ_x(s), σ_y(s), σ_z(s) from Pasquill-Gifford parameters.
cumulative_wind_integralsfunctionRunning integrals of the wind and of its speed from the first knot.
evolve_puffsfunctionAdvance a puff ensemble to current_time under a time-varying wind.
frequency_to_release_intervalfunctionConvert a release frequency f [Hz] into a release interval Δt [s].
gaussian_puff_modelfunctionNumPyro model for the Gaussian puff forward with a constant Q prior.
gaussian_puff_rw_modelfunctionRandom-walk state-space model for a time-varying emission rate Q_i.
get_dispersion_schemefunctionReturn (params_dict, calculator_fn) for a named dispersion scheme.
get_pg_paramsfunctionReturn the Pasquill-Gifford parameter vector for a stability class.
infer_emission_ratefunctionNUTS inference of a constant emission rate from puff observations.
infer_emission_timeseriesfunctionNUTS inference of a time-varying emission rate series Q_i.
make_release_timesfunctionEvenly spaced puff release times in [t_start, t_end).
puff_concentrationfunctionEvaluate the concentration from a single Gaussian puff (JIT).
puff_concentration_vmapfunctionVectorized version of puff_concentration.
release_durationsfunctionPer-puff emission-interval durations [s] for a continuous source.
release_interval_to_frequencyfunctionConvert a release interval Δt [s] into a release frequency f [Hz].
sample_ou_offsetsfunctionDraw per-puff (Δx, Δy) offsets from a 2-D OU process at release times.
simulate_pufffunctionSimulate a time-resolved Gaussian-puff dispersion field on a 3-D grid.
simulate_puff_fieldfunctionSum the contributions of all puffs at each receptor.

plumax.lagrangian

NameKindWhat it does
EmulatedFootprintclassThe emulator at fixed receptors, as the per-case map u ↦ F_emu(u).
FootprintEmulatorclassPer-receptor network from met context and receptor to a footprint row.
FootprintSimulatorclassThe particle model as a forward model from met context to footprint.
GaussianPosteriorclassClosed-form Gaussian posterior over the source vector.
HannaTurbulenceclassHeight-dependent Hanna (1982) turbulence as a TurbulenceModel.
HomogeneousTurbulenceclassSpatially uniform, well-mixed-exact turbulence statistics.
LognormalPosteriorclassLinearised lognormal posterior over a non-negative source vector.
MetContextPriorclassThe operational met distribution p(u) as pipekit-train’s prior operator.
assert_emulator_calibratedfunctionCheck the emulated source–receptor maps against the particle model’s.
compute_footprintfunctionCompute a single receptor’s surface footprint by backward integration.
emulated_footprintfunctionThe emulated footprint matrix F_emu of one met context.
emulator_relative_errorfunctionRelative Frobenius error ‖F_emu − F‖_F / ‖F‖_F over every case.
ensemble_footprintsfunctionFootprint matrix F_e of every ensemble member.
ensemble_inversionfunctionGaussian inversion that marginalises the footprint over a met ensemble.
footprint_datasetfunctionSimulated (met context, footprint) pairs, cached once on disk.
footprint_operatorfunctionThe Tier II source–receptor map 𝒢(q) = F q as a vardax operator.
gridded_wind_from_metfunctionThe wind of a :class:~plumax.met.MetField, for particles.
gridded_wind_from_prescribedfunctionSample a les_fvm :class:~plumax.les_fvm.wind.PrescribedWindField.
hanna_profilesfunctionHanna (1982) Monin–Obukhov-similarity turbulence profiles.
init_footprint_emulatorfunctionAn untrained emulator, standardised to the training set.
linear_gaussian_inversionfunctionClosed-form Gaussian–Gaussian (BLUE) inversion of the source vector.
lognormal_inversionfunctionSign-constrained inversion via a lognormal prior linearised in log-space.
matern32_covariancefunctionBuild a Matérn-3/2 prior covariance over grid-cell coordinates.
observation_covariancefunctionAssemble the diagonal observation-error covariance R.
simulate_lagrangianfunctionSimulate a steady Lagrangian concentration field on a 3-D grid.
train_footprint_emulatorfunctionFit the network weights θ with pipekit-train’s Equinox backend.
transport_covariancefunctionMean footprint F̄ and linearised transport-error covariance at q_a.
wind_from_speed_directionfunctionConstant wind from speed + meteorological direction (degrees from North).

plumax.les_fvm

NameKindWhat it does
BackgroundAnalysisclassThe MAP of the :class:BackgroundControl part of a 4D-Var control.
BackgroundControlclassInitial concentration and per-face inflow scaling in the control.
ColumnObservationOperatorclassSample the column-integrated field at fixed receptor cells.
EddyDiffusivityclassScalar or field-valued (K_h, K_z) eddy diffusivity.
EulerianDispersionRHSclassFull tracer-transport tendency for diffrax.
EulerianForward4DVarclassDifferentiable map from an emission time series to column observations.
FourDVarProblemclassA strong-constraint 4D-Var problem over a flat source control.
FourDVarResultclassOutcome of a 4D-Var minimisation.
GaussianSourceclassGaussian point source with constant or time-varying emission rate.
HorizontalBCclassFill the lateral ghosts of every z-slice of a 3-D field.
PlumeGrid3DclassArakawa C-grid + cached interior coordinate arrays.
PosteriorCovarianceclassLaplace (Gauss-Newton) posterior covariance of a 4D-Var solution.
PrescribedWindFieldclassWind velocity evaluator on the full [Nz, Ny, Nx] field layout.
SpatialControlclassPer-cell surface flux control with a Matérn-3/2 prior.
SurfaceFluxSourceclassPer-cell surface flux injected into the lowest interior layer.
TemporalControlclassPrior of the scalar emission time series at a known source.
VerticalBCclassTop/bottom ghost-slice update for a 3-D field.
advection_tendencyfunctionFlux-form advective tendency -∇·(u C) at interior T-points.
apply_boundary_conditionsfunctionApply horizontal then vertical BCs to a 3-D tracer field.
build_default_concentration_bcfunctionBuild (HorizontalBC, VerticalBC) from user-facing BC specs.
build_forwardfunctionAssemble a differentiable :class:EulerianForward4DVar.
build_problemfunctionAssemble a :class:FourDVarProblem, factorising the prior covariance.
diffusion_tendencyfunctionFull 3-D eddy diffusion tendency ∇·(K ∇C) at interior T-points.
laplace_samplefunctionDraw source-space samples from the Laplace posterior N(S*, P_S).
make_gaussian_sourcefunctionBuild a :class:GaussianSource on plume_grid.
make_gridfunctionBuild a :class:PlumeGrid3D from (x_min, x_max, nx_interior) triples.
mo_eddy_diffusivityfunctionMonin–Obukhov K-profile for K_z, with a caller-supplied K_h.
pg_eddy_diffusivityfunctionRough K-theory calibration from Pasquill-Gifford σ curves.
posterior_covariancefunctionGauss-Newton Laplace posterior covariance around a 4D-Var MAP.
simulate_eulerian_dispersionfunctionSimulate 3-D Eulerian tracer transport under a prescribed wind.
smagorinsky_k_hfunctionSmagorinsky horizontal diffusivity from the resolved deformation.
solve_4dvarfunctionMinimise the 4D-Var cost in whitened space, via vardax.
stable_step_boundfunctionMaximum stable step for an explicit fixed-step transport solve.
uniform_wind_fieldfunctionSpace- and time-constant wind field.
wind_field_from_callablefunctionGeneral-purpose wind field from a user-supplied (t, X, Y, Z) function.
wind_field_from_schedulefunctionTime-varying but spatially uniform wind field.

plumax.met

NameKindWhat it does
LocalFrameclassUTM metres relative to an origin, as the analysis grid’s frame.
MetFieldclassMeteorological forcing on an analysis grid with a time axis.
MoninObukhovclassDiagnose u*, 1/L and w* from a MetField’s lowest level (dry air).
SurfaceLayerclassSurface-layer scales on the analysis grid’s horizontal T-points.
TimeAxisclassSeconds since t0 for a set of UTC sample times.
hanna_turbulence_fromfunctionHanna (1982) turbulence at one analysis column and met time.
load_era5functionLoad ERA5 pressure- and single-level files onto an analysis grid.
load_wrffunctionLoad a wrfout file onto an analysis grid.
pbl_height_bulk_richardsonfunctionPBL height h from the bulk Richardson number of the analysis profiles.
to_prescribed_windfunctionExpose a :class:MetField as the wind object the Eulerian solver takes.

plumax.population

NameKindWhat it does
AdditiveMultiCovariatePODclassAdditive GLM with separate coefficients for each covariate.
CloglogPODclassComplementary log-log GLM for asymmetric detection tails.
CoalMineVentilationIntensityclassMulti-scale operational intensity for underground coal mines.
ConcentrationProxyPODclassGLM on the log-concentration proxy ln(Q/(U·p)).
ConstantIntensityclassConstant intensity for passive, continuously leaking infrastructure.
DiurnalSeasonalIntensityclassAdditive diurnal + seasonal intensity for thermally active biogenic sources.
DiurnalSinusoidalIntensityclassDiurnal sinusoidal intensity for thermally driven infrastructure.
EmissionCatalogclassA population of detected emission events.
EmissionEventclassA single detected emission event with its per-event posterior summary.
EventEvidenceclassNodes and log-weights of one event’s (or a stack of events’) mark integral.
FacilityConfigclassImmutable physical configuration of a single leaking facility.
FullVaryingCoefficientPODclassFull varying-coefficient GLM with spectral and radiometric controls.
INTENSITY_REGISTRYconstant{'constant': <class 'plumax.population._src.intensity.Con...
InhomogeneousIntensityPosteriorclassPosterior over a log-linear inhomogeneous intensity model.
InstrumentPODclassOne instrument’s detection curve with its published calibration.
LandfillIntensityclassMulti-component intensity for municipal solid waste landfills.
LivestockFeedlotIntensityclassBimodal diurnal + seasonal intensity for concentrated livestock operations.
LogIntensityclassA registry intensity as a pyrox-xtreme log-intensity on window time.
LogLogisticPODclassLogistic POD on log-flux: the lognormal CDF approximation.
LogisticPODclassSingle-covariate logistic POD: the classic S-curve.
LognormalMarkclassLognormal f(q) = LN(q; μ, σ²).
LognormalParetoMarkclassLognormal body spliced to a Pareto tail at Q_break, continuous there.
MARKSconstant{'powerlaw': <class 'plumax.population._src.marks.PowerLa...
MarkclassA mark family f(Q | θ), with θ passed by keyword.
MarkPosteriorclassPosterior over a mark family’s parameters, with importance diagnostics.
MixtureLognormalMarkclassMixture of K lognormals f(q) = Σₖ wₖ LN(q; μₖ, σₖ²).
OffshorePlatformIntensityclassCombined tidal and operational intensity for offshore oil & gas platforms.
OperationalScheduleIntensityclassStep-function intensity for facilities with fixed shift schedules.
PODRetentionclassA probability-of-detection curve as a pyrox-xtreme retention callable.
POD_REGISTRYconstant{'logistic': <class 'plumax.population._src.pod.LogisticP...
ParadoxResultclassContainer for a single Monte Carlo paradox simulation.
PerEventPosteriorclassStructural type for a per-event Q posterior (payload v2).
PeriodicBatchIntensityclassPeriodic narrow-pulse intensity for scheduled batch venting.
PoissonRatePosteriorclassGamma posterior over a homogeneous Poisson rate lambda.
PowerLawMarkclassPareto power law f(q) = (α − 1)/q_min · (q/q_min)^(−α) on q ≥ q_min.
ProbitPODclassProbit GLM on the concentration proxy.
RegimeclassHow an event’s per-event posterior enters the mark integral.
SNRBasedPODclassGLM on log-SNR: radiometric first-principles detection model.
SeasonalSinusoidalIntensityclassAnnual sinusoidal intensity for biogenic / climate-driven sources.
SeasonallyModulatedDiurnalIntensityclassDiurnal intensity whose amplitude is seasonally modulated.
SizeDistributionPosteriorclassPosterior over the lognormal population size-distribution parameters.
SpectralAwarePODclassGLM with spectral band count and resolution as covariates.
TMTPPPosteriorclassPosterior draws of the full TMTPP, by the site names of its model.
TotalEmissionclassPosterior samples of a total emission, split into detected and missing mass.
VaryingCoefficientPODclassVarying coefficient GLM: sensitivity β₁ depends on environment.
WeibullRenewalIntensityclassWeibull hazard function for pressure-driven, recharging sources.
WetlandPermafrostIntensityclassSigmoid-gated seasonal intensity for high-latitude wetland/permafrost.
X_MAX_DEFAULTconstant1000000.0
X_MIN_DEFAULTconstant10.0
build_canonical_scenariosfunctionSix canonical test scenarios spanning the paradox regime.
calibration_priorfunctionSample each instrument’s (Q₅₀, k) under its published calibration.
catalog_evidencefunction:func:event_evidence for every event, stacked along a leading axis.
compute_E_PdfunctionCompute E[P_d] = ∫₀^∞ P_d(Q) · f(Q) dQ by log-space quadrature.
detection_processfunctionThe detected-event process: POD-thinned, marked ground process.
effective_sample_sizefunctionDeprecated alias of integrix.expect.effective_sample_size (plumax#253).
ess_reportfunctionPer-event ESS of the importance weights at one θ, with a collapse warning.
event_evidencefunctionNodes and log-weights of one event’s importance-corrected mark integral.
event_from_posteriorfunctionBuild an :class:EmissionEvent from any Tier I-IV posterior.
expected_countfunctionExpected number of events in the horizon, E[N(t, t + h)] = Λ(t, t + h).
expected_wait_timefunctionExpected wait until the next event, E[Δt | t] = ∫₀^∞ exp(−Λ(t, t + s)) ds.
fit_inhomogeneous_intensityfunctionLog-linear inhomogeneous Poisson-process intensity fit via NUTS.
fit_lognormal_size_distributionfunctionHierarchical-Bayes fit of the lognormal population size distribution.
fit_poisson_ratefunctionClosed-form Gamma-Poisson posterior for a homogeneous event rate.
fit_size_distribution_iwfunctionImportance-corrected NUTS fit of the population size distribution.
load_pod_calibrationsfunctionRead per-instrument calibrations from a CSV or YAML table.
log_gauss_hermitefunctionDeprecated alias of integrix.expect.log_gauss_hermite.
log_pod_unionfunctionlog P_d^∪ as the callable the TMTPP model and total_emission take.
log_simpsonfunctionDeprecated alias of integrix.expect.log_simpson.
logistic_podfunctionParametric probability of detection (logistic sigmoid).
lognorm_cdffunctionLognormal CDF used as the probability-of-detection curve.
lognormal_pdffunctionEvaluate the Lognormal probability density function.
make_markfunctionBuild a registry mark family by name.
make_processfunctionA pyrox-xtreme inhomogeneous Poisson process for a registry intensity.
mark_iw_modelfunctionNumPyro model of the marks given the detections, importance-corrected.
occurrence_probabilityfunctionProbability of at least one event, P(N(t, t + h) ≥ 1) = 1 − exp(−Λ(t, t + h)).
padded_event_bufferfunctionDetection times as pyrox-xtreme’s padded buffer on window time.
pareto_smoothed_log_weightsfunctionDeprecated alias of integrix.expect.pareto_smoothed_log_weights.
pod_powerlaw_modelfunctionNumPyro model for a POD-modified power law on observed fluxes.
pod_unionfunctionProbability that any covering instrument detects a rate Q, at published values.
posterior_metricfunctionPosterior samples of a persistency metric, and their quantiles.
power_lawfunctionUn-normalised power-law PDF: x⁻ᵅ.
run_mcmcfunctionRun NumPyro NUTS on the POD-modified power-law model.
run_scenario_gridfunctionRun the paradox simulation across multiple scenarios.
simulate_paradoxfunctionRun a single Monte Carlo realisation of the Missing Mass Paradox.
tmtpp_iw_modelfunctionNumPyro model of the full importance-corrected TMTPP likelihood.
tod_bin_indexfunctionThe hour-of-day bin of each time.
total_emissionfunctionPosterior samples of the basin total, with the inferred missing mass.

plumax.coupled

NameKindWhat it does
AbstractControlledSourceclassA transport backend whose response depends on fitted parameters.
CoupledForwardclassMulti-instrument coupled forward: a list of per-instrument observations.
CoupledPriorclassGaussian prior N(μ_θ, Σ_θ) on the stacked control, by named block.
CoupledProblemclassThe coupled forward, its prior and every instrument’s observations.
CoupledResultclassMAP and Laplace posterior of the coupled inversion.
EulerianSourceclassTier III transport: the les_fvm finite-volume run through the shared column.
FitDiagnosticsclassInformation content and residual statistics of a coupled fit.
FlagPolicyclassWhat a rejected pixel becomes: dropped, or kept with an inflated variance.
FusionPosteriorclassClosed-form joint posterior over (Q, bias₁ … bias_M).
InstrumentclassFixed observation geometry + error budget for one satellite instrument.
LagrangianSourceclassTier II transport: met-ensemble backward footprints through the shared column.
LayeredRadianceOperatorclassMap a column-mass enhancement to band radiance through radtrax’s layered model.
LinearisedRadianceOperatorclassTangent-linear radiance operator — the linearised counterpart of the RTM.
MaskedKPriorclassThe slot prior: how many slots, how likely each is on, and its Q_k.
MultistartResultclassEvery start’s outcome, and the one that won.
PlumeSourceclassStatic source + meteorology for the Tier I coupled forward.
QualityFlagclassPer-pixel quality bits, 0 = clear.
QualityPolicyclassWhich flags reject a pixel, and how a rejected pixel enters the fusion.
RadianceObservationOperatorclassMap a per-receptor column-enhancement field to band radiances via the RTM.
StackedObservationsclassEvery instrument’s observations, mask and variance on one stacked axis.
TransportBackendclassA transport tier as the coupled forward sees it.
apply_qualityfunctionThe instrument with its flags and the policy’s mask or inflation set.
build_coupled_forwardfunctionAssemble a :class:CoupledForward, precomputing unit-Q responses.
build_masked_k_problemfunctionThe coupled problem of one active set, for the MAP and Laplace path.
column_mass_to_delta_vmrfunctionConvert a plume column mass enhancement [kg/m²] to a gas ΔVMR.
column_responsefunctionPer-receptor column enhancement at unit emission for one instrument.
contribution_reportfunctionPixels each instrument contributes at full weight, by name.
default_priorfunctionBuild a diagonal prior (θ_b, B) for (Q, bias₁ … bias_M).
fit_diagnosticsfunctionDiagnostics of a solved coupled problem.
fuse_observationsfunctionClosed-form joint posterior over (Q, bias_inst) from fused observations.
infer_masked_k_sourcesfunctionPosterior over the active count and the per-slot Q_k, from every instrument.
linearisefunctionBuild the :class:LinearisedRadianceOperator tangent to operator at 0.
masked_k_coupled_modelfunctionNumPyro masked-K model over every instrument’s columns.
predict_observationfunctionPredict one instrument’s observation vector y_inst.
radiance_responsefunctionPer-receptor band radiances for one instrument under the RTM operator.
radiance_response_linearfunctionPer-receptor linearised radiances for one instrument (differentiable).
saturation_ratefunctionFraction of overpasses whose most probable active count is K_max.
slot_responsesfunctionUnit-emission column of every slot, as one design matrix per instrument.
solve_coupledfunctionMAP and Laplace posterior of the coupled problem, on vardax.
solve_coupled_multistartfunctionThe coupled solve from each start, keeping the lowest cost.
stack_observationsfunctionStack the instruments’ observations, masks and variances for vardax.

plumax.operators

NameKindWhat it does
EulerianDispersionclassEulerian finite-volume dispersion runner as a pipekit operator.
GaussianPlumeclassSteady-state Gaussian plume forward model as a pipekit operator.
GaussianPuffclassTime-resolved Gaussian puff forward model as a pipekit operator.
LagrangianDispersionclassMarkov-1 Lagrangian dispersion forward model as a pipekit operator.

plumax.adapters

NameKindWhat it does
EulerianForwardModelclassExpose an Eulerian dispersion RHS as a pipekit_cycle.ForwardModel.
RadtranObservationOperatorclassExpose the normalised Beer–Lambert forward as an ObservationOperator.

Upstream: radtrax

Differentiable radiative transfer for methane remote sensing.

radtrax

NameKindWhat it does
ArgumentTypeErrorclassAn argument is of a type the function does not accept.
DegenerateInputErrorclassWell-shaped input that cannot be used: too few samples, no data yet, or a zero norm.
ForwardModelclassState → opacity → solver → instrument: band values for one pixel.
GridErrorclassA grid is not strictly monotone, has too few points, or does not match another grid.
MissingExtraErrorclassAn optional dependency is not installed; the message names the extra.
MissingFileErrorclassAn input file or glob pattern matched nothing.
MissingKeyErrorclassA gas, band or variable is missing from a state, table or dataset.
MissingTableErrorclassA table (cross sections, a solar spectrum) is not in the cache; its message names the command that builds or fetches it.
ParameterErrorclassA scalar or option is outside its allowed range or set, or a required one is missing.
RadtraxErrorclassBase class for every exception raised by radtrax.
ShapeErrorclassAn array has the wrong shape or rank, or two arrays disagree in shape.
TableBuildErrorclassBuilding a cross-section table failed: a HITRAN fetch or a line-by-line computation.
unit_absorption_targetfunctionMatched-filter target t = ∂ ln y / ∂ΔX at ΔX = 0 [per mol/m²].

radtrax.atmosphere

NameKindWhat it does
AFGL_GASESconstant('H2O', 'CO2', 'O3', 'N2O', 'CO', 'CH4')
ATM_TO_PAconstant101325.0
AVOGADRO_PER_MOLconstant6.02214076e+23
AtmosphericStateclassPressure, temperature, altitude, thickness and gases, per layer.
BOLTZMANN_J_PER_Kconstant1.380649e-23
CM2_PER_M2constant10000.0
CM3_PER_M3constant1000000.0
DRY_AIR_MOLAR_MASS_KG_PER_MOLconstant0.0289644
STANDARD_GRAVITY_M_PER_S2constant9.80665
ViewingGeometryclassSun and sensor directions as seen from the surface.
afgl_us_standardfunctionThe AFGL US Standard atmosphere as layers between its levels.
layers_from_levelsfunctionAn :class:AtmosphericState of L layers from L + 1 levels.
number_densityfunctionTotal number density from the ideal-gas law [molecules / cm³].

radtrax.spectroscopy

NameKindWhat it does
CrossSectionTableclassOne gas’s cross sections σ(ν; p, T) on a (ln p, T) grid.
OpacityProviderclassProtocol: an atmospheric state in, per-layer optical depth out.
SumOpacityclassOptical depth from several sources on one wavenumber grid.
TableGridclassThe (ν, p, T) grid a cross-section table is built on.
TableOpacityclassOptical depth from per-gas cross-section tables.
V0_GRIDconstantTableGrid(name='v0', nu_min_cm=4000.0, nu_max_cm=6500.0, ...
absorption_coefficientfunctionα(ν) = σ(ν) · N_gas [1/cm].
beers_law_from_lutfunctionEnd-to-end: σ-from-LUT → α → τ(ν) for a single homogeneous layer.
fetch_solar_spectrumfunctionDownload a solar spectrum into the cache, once, and check its SHA-256.
interpolate_cross_sectionfunctionReturn σ(ν) at a given (T, p) via bilinear LUT interpolation.
load_opacityfunctionA :class:~radtrax.spectroscopy.TableOpacity from cached tables.
load_tablefunctionOpen gas’s cached table (lazily, with xarray).
plume_ratio_spectrumfunctionDifferential-Beer-Lambert ratio τ_total(ν) / τ_bg(ν).
solar_irradiancefunctionSolar irradiance E0(ν)E_0(\nu) at 1 AU, interpolated onto a wavenumber grid.
table_cache_dirfunctionWhere tables are cached.
transmittancefunctionτ(ν) = exp(-α · L_vert · AMF).

radtrax.solvers

NameKindWhat it does
BeerLambertclassBeer–Lambert along the two-way path; no scattering, no emission.
RTSolverclassProtocol: optical properties, a surface and a geometry in, radiance out.

radtrax.surface

NameKindWhat it does
LambertianclassA Lambertian surface: R = A in every direction.
PolynomialAlbedoclassA Lambertian surface whose albedo is a Legendre series in wavenumber.
RossLiclassThe Ross–Li kernel BRDF: R = f_iso + f_vol K_vol + f_geo K_geo.
SurfaceclassProtocol: the surface’s bidirectional reflectance factor.

radtrax.instrument

NameKindWhat it does
BandInstrumentclassBand integration with a spectral shift, y_b = Σ_g f_bg L(ν_g + δ).
DiagonalNoiseclassIndependent noise with a fixed standard deviation per band, S_ε = diag(σ²).
GaussianInstrumentclassGaussian bands built in JAX, shifted analytically in cm⁻¹ or in nm.
GroundSamplingDistanceclassBlock-mean down-sampling operator for a fixed integer factor.
InstrumentclassProtocol: radiance on a wavenumber grid in, one value per band out.
NEdTNoiseclassThermal-band noise from a noise-equivalent temperature difference.
NoiseModelclassProtocol: the measurement-noise covariance S_ε(y) and draws from it.
PointSpreadFunctionclass2D PSF blur applied independently per spectral channel.
SNRNoiseclassSignal-dependent noise from a signal-to-noise ratio and a floor.
SpectralResponseFunctionclassBand-integration operator for a multispectral / hyperspectral instrument.

radtrax.slab

NameKindWhat it does
ATM_TO_PAconstant101325.0
BOLTZMANN_J_PER_Kconstant1.380649e-23
CM3_PER_M3constant1000000.0
ForwardResultclassBundle of (radiance, Jacobian, transmittance) returned by the forward models.
InstrumentSpecclassMultispectral instrument description.
NBLookupclassPre-computed normalised-brightness table, indexed by band and ΔX.
ObservationGeometryclassViewing geometry for a single pixel.
build_nb_lutfunctionPre-tabulate band-integrated nB over a column-enhancement grid.
forward_maclaurinfunctionMaclaurin-series forward model: expand exp(-τ(VMR)) around VMR = 0.
forward_maclaurin_normalizedfunctionMaclaurin expansion of exp(-Δτ) around ΔVMR = 0.
forward_nonlinearfunctionExact Beer-Lambert forward model.
forward_nonlinear_normalizedfunctionExact Beer-Lambert normalised by the background radiance.
forward_taylorfunctionFirst-order Taylor expansion around vmr_background.
forward_taylor_normalizedfunctionTaylor expansion of L_norm around ΔVMR = 0.
inject_plumefunctionMultiplicative plume injection: scene_plume = scene · nB(ΔX).
lookup_nbfunctionLook up per-band nB for every pixel of a 2-D column map.
number_density_cm3functionIdeal-gas total number density [molecules / cm³].

radtrax.geo

NameKindWhat it does
AdaptiveBackgroundclassLocal window statistics, in the layout of the cube they came from.
AdaptiveWindowBackgroundclassPer-pixel local mean and variance over a square window.
ApplyAdaptiveMFclassMatched filter against each pixel’s local diagonal background.
ApplyClusterMFclassMatched filter with each pixel’s own cluster background.
ColumnEnhancementclassTrace-gas enhancement map: mean, covariance, target and matched filter.
DetectionThresholdclassScore threshold with a given false-alarm rate under the Gaussian null.
ECOSTRESS_3BANDconstant('B2', 'B4', 'B5')
ECOSTRESS_3BAND_PERIODconstant(datetime.date(2019, 5, 15), datetime.date(2023, 4, 28))
ECOSTRESS_BANDSconstant('B1', 'B2', 'B3', 'B4', 'B5')
ECOSTRESS_BAND_CENTRES_UMconstantmappingproxy({'B1': 8.285, 'B2': 8.785, 'B3': 9.06, 'B4':...
ECOSTRESS_NETD_Kconstantmappingproxy({'B1': 0.1, 'B2': 0.1, 'B3': 0.1, 'B4': 0.1,...
EstimateCovEmpiricalclassEmpirical (1/n) covariance operator of a cube’s valid pixels.
EstimateCovLowRankclassLow-rank plus Tikhonov covariance λI + V D Vᵀ of a cube’s valid pixels.
EstimateCovShrunkclassLedoit–Wolf or OAS covariance operator of a cube’s valid pixels.
EstimateMeanclassBackground mean spectrum (B,) of a cube’s valid pixels.
GMMClusterBackgroundclassPer-cluster backgrounds from a Gaussian mixture over the valid pixels.
LANDSAT_CALIBRATION_Kconstantmappingproxy({'L9': mappingproxy({'B10': 0.16, 'B11': 0.6...
LANDSAT_NETD_Kconstantmappingproxy({'L8': mappingproxy({'B10': 0.048, 'B11': 0....
LinearTargetFromObsclassTangent-linear target signature (B,) from an observation model.
MBMPclassSentinel-2 multi-band multi-pass methane signal, with or without scale factors.
MBSPclassSentinel-2 multi-band single-pass signal, −ln(c R₁₂ / R₁₁).
MatchedFilterclassPer-pixel matched-filter score map.
MatchedFilterPixelclassMatched-filter score of one pixel spectrum, as a float.
MatchedFilterSNRclassTheoretical detection SNR amplitude · √(tᵀ Σ⁻¹ t).
MatchedFilterSensitivityclassPer-pixel sensitivity map on the input’s carrier.
NonlinearTargetFromObsclassFinite-amplitude target H(x_b + α δx) − H(x_b), (B,).
SBMPclassSentinel-2 single-band multi-pass signal, −ln(c_s R₁₂ / R′₁₂).
StreamingBackgroundclassMean and covariance accumulated over an iterable of cubes.
StreamingBackgroundResultclassBackground from :class:StreamingBackground.
UnitAbsorptionTargetclassTarget (B,) from v0’s layered :class:~radtrax.ForwardModel.
ValidateMFInputsclassPass-through guard: fail early on a zero target or a singular covariance.
ecostress_bandsfunctionThe TIR bands with data in a granule.
ecostress_geometryfunctionPer-pixel viewing geometry from the L1B geolocation angles.
ecostress_instrumentfunctionECOSTRESS bands as a :class:~radtrax.instrument.BandInstrument.
ecostress_noisefunctionNEΔT as a noise model on instrument’s bands.
ecostress_radiancefunctionL1B radiance per band and pixel, fill values as NaN.
ecostress_srffunctionBuild the ECOSTRESS SRF from the bundled science-team responses.
emit_geometryfunctionPer-pixel viewing geometry of an EMIT image, on its grid (H, W).
emit_instrumentfunctionEMIT bands as a :class:~radtrax.instrument.BandInstrument on a wavenumber grid.
landsat_geometryfunctionPer-pixel viewing geometry from the Collection 2 angle bands.
landsat_instrumentfunctionLandsat 8/9 bands as a :class:~radtrax.instrument.BandInstrument.
landsat_noisefunctionThe thermal bands’ NEΔT as a noise model on instrument’s bands.
landsat_radiancefunctionTOA radiance from Level-1 digital numbers, per band and pixel.
landsat_srffunctionBuild a Landsat 8/9 SRF from the bundled USGS band-average RSRs.
sentinel2_band_responsesfunctionSentinel-2 band 11 and 12 responses, interpolated onto a wavelength grid.
sentinel2_geometryfunctionPer-pixel viewing geometry of an L1C image, on its grid (H, W).
sentinel2_instrumentfunctionSentinel-2 bands as a :class:~radtrax.instrument.BandInstrument.
sentinel2_radiancefunctionTOA radiance from an L1C image’s reflectance, per band and pixel.
sentinel2_srffunctionBuild a Sentinel-2 SRF from the agency table georeader bundles.

Upstream: sesmax

The sesmax workspace in one install; an umbrella that holds no code.

Upstream: sesmax-core

Simple Earth-system models: state, terms, steppers, forcing.

sesmax_core

NameKindWhat it does
AbstractForcingclassBase class for forcing operators.
BasisForcingclassReduced-order forcing: a fixed space-time frame driven by a coefficient vector.
ComposeclassOperator composition: Compose(outer, inner)(state) = outer(inner(state)).
ConstantForcingclassTime-independent forcing field.
ConstantInTimeclassTime-independent gate: b(t) = ones(m) (the Phi_t = I case).
DiagnosticsclassBase class for on-demand diagnostic quantities.
ForcingProductclassModulated forcing: F = alpha * F_inner.
ForcingProtocolclassBase class for forcing terms.
ForcingSumclassAdditive composition of forcings: F = F_1 + F_2 + ... + F_n.
ForcingTermclassLift a :class:ForcingProtocol field into the term algebra as a tendency.
FourierInTimeclassCosine temporal gate b_a(t) = cos(omega_a t + phase_a).
GaussianWindowsInTimeclassLocalized temporal gate b_a(t) = exp(-(t - tau_a)^2 / (2 T_a^2)).
HatInTimeclassPiecewise-linear gate on knots, so the coefficients are values at the knots.
InterpolatedForcingclassForcing from samples (t_k, u_k), read between them as a diffrax path.
LinearDrag2DclassLinear drag on a 2-D Arakawa C-grid.
LinearDrag3DclassLinear bottom drag on a 3-D Arakawa C-grid.
ModalTransformclassPrecomputed layer-to-mode and mode-to-layer transforms.
ModelclassAbstract base class defining the sesmax model contract.
NoForcingclassZero forcing (free evolution).
OperatorTermclassLift a pipekit operator into the :class:Term algebra.
ParamsclassBase class for differentiable model parameters.
PhysConstsclassBase class for frozen physical constants.
QuadraticDrag2DclassQuadratic bottom drag on a 2-D Arakawa C-grid.
QuadraticDrag3DclassQuadratic bottom drag on a 3-D Arakawa C-grid.
RayleighDamping2DclassRayleigh damping of a T-point field on a 2-D Arakawa C-grid.
RayleighDamping3DclassRayleigh damping of a T-point field on a 3-D Arakawa C-grid.
ScaledclassA term multiplied by a scalar coefficient.
ScaledModelclassIntegrate inner in transformed coordinates.
ScalesclassCharacteristic scales of a run.
SeasonalWindForcingclassSinusoidal wind forcing with learnable amplitude.
SpatialBasisclassA precomputed spatial dictionary plus the per-mode prior std.
StateclassBase class for model state vectors.
StateAffineclassPer-leaf affine map on a State pytree: y = (x - loc) / scale.
StratificationProfileclassDiscrete vertical stratification for a layered ocean model.
SumclassAdditive composition of terms: sum_i terms[i](t, state, args).
TemporalBasisclassMaps a scalar time to per-atom temporal weights b(t).
TermclassA single additive contribution to a model right-hand side.
TermFnclassAdapt a plain callable into a :class:Term.
TermModelclassA :class:Model whose RHS is an assembled :class:Term tree.
TimeVaryingForcingclassBundle a time-agnostic forcing with time-dependent input fields.
TransformedForcingclassApply a pointwise transform to a base forcing (e.g. log-space synthesis).
VectorBasisForcingclassReduced-order vector forcing: a fixed vector frame driven by coeffs.
VectorSpatialBasisclassA precomputed vector dictionary plus the per-mode prior std.
WindCurl2DclassWind-stress curl forcing of the vorticity / QG potential vorticity.
WindStress2DclassSurface wind-stress forcing on a 2-D Arakawa C-grid.
WindStress3DclassSurface wind-stress forcing on a 3-D Arakawa C-grid.
add_tofunctionBuild a placement that adds a field onto one named state component.
add_vector_tofunctionBuild a placement that adds a component-major field onto named components.
append_to_datasetfunctionAppend a Dataset to an existing zarr store along a dimension.
apply_scale_metadatafunctionAttach scale / transform metadata to an exported Dataset.
as_parameterfunctionCoerce a factory argument into a Params leaf.
build_diffrax_termsfunctionBuild the diffrax term object for term, IMEX-aware.
control_filterfunctionBoolean filter selecting only coeffs for gradient updates.
dataset_to_statefunctionReconstruct a single State from an xarray Dataset.
explicitfunctionTag term for the explicit stage of an IMEX integrator.
frozenfunctionHide a parameter from gradients while keeping it a runtime value.
implicitfunctionTag term for the implicit stage of an IMEX integrator.
intervalfunctionConstrain a parameter to the open interval (lower, upper).
linear_dragfunctionRayleigh (linear) bottom-drag tendency :math:-\text{coef}\cdot u.
linear_drag_tendencyfunctionLinear (Rayleigh-type) drag tendency on one velocity component.
load_datasetfunctionOpen a zarr store as an xarray Dataset.
matern_spectral_densityfunctionMatérn power spectral density S(omega) at omega = sqrt_lambda.
partitionfunctionSplit term into (explicit, implicit) sub-terms by kind.
positivefunctionConstrain a parameter to be strictly positive.
pressure_from_divergencefunctionSolve for the pressure p at T points of a pressure projection.
pv_inversionfunctionQG potential-vorticity inversion for ψ_k at X points, layer by layer.
quadratic_drag_tendencyfunctionQuadratic bottom-drag tendency on one velocity component.
rayleigh_relaxationfunctionSponge / relaxation tendency :math:-\text{coef}\cdot W\cdot(x - x_\text{ref}).
rayleigh_tendencyfunctionRayleigh damping tendency toward a reference state.
save_datasetfunctionPersist a Dataset to a zarr store.
scales_attrsfunctionFlat Dataset attrs describing the scale set a run used.
snapshots_to_datasetfunctionConvert a time-stacked PyTree of states to an xarray Dataset.
solve_pdefunctionIntegrate dy/dt = P(f(t, B(y))) with diffrax.diffeqsolve.
spatial_from_divfreefunctionBuild a :class:VectorSpatialBasis of divergence-free velocity atoms.
spatial_from_eoffunctionBuild a :class:SpatialBasis from empirical orthogonal functions (PCA).
spatial_from_fourierfunctionBuild a :class:SpatialBasis from the box-Laplacian (HSGP) eigenbasis.
spatial_from_gaborfunctionBuild a :class:SpatialBasis from a functax dyadic radial-Gabor frame.
spatial_from_graph_laplacianfunctionBuild a :class:SpatialBasis from graph-Laplacian eigenvectors.
spatial_from_rbffunctionBuild a :class:SpatialBasis from a functax placeable radial basis.
spatial_from_spherical_rbffunctionBuild a :class:SpatialBasis from a geodesic (on-sphere) radial basis.
spatial_from_waveletfunctionBuild a :class:SpatialBasis from the orthonormal 2D wavelet basis.
stable_stepfunctionRe-exported from integrix.
state_to_datasetfunctionConvert a single model State to an xarray Dataset.
streamfunction_from_vorticityfunctionInvert the vorticity-streamfunction relation for ψ at X points.
tile_in_timefunctionLift a spatial dictionary into a separable space-time frame.
trainable_maskfunctionBoolean pytree marking which leaves an optimiser may update.
transform_attrsfunctionPer-variable loc / scale attrs for an affine transform.
wind_stress_tendencyfunctionMomentum tendency from a surface wind stress.

sesmax_core.component

NameKindWhat it does
AssertionFailedErrorclassA run fails a check its spec asks for.
BuilderfunctionRe-exported from collections.
BuiltRunclassA model and the state it starts from.
CheckfunctionRe-exported from collections.
ComponentclassWhat a component registers: its models, and what it knows about them.

sesmax_core.da

NameKindWhat it does
FilteraxDynamicsclassAdapt a sesmax forward model to filterax’s flat-vector dynamics.
SubsampleObsclassLinear sub-sampling observation operator H(x) = x[indices].
VardaxForwardModelclassAdapt a sesmax model to vardax’s flat-vector ForwardModel.
WindowOperatorclassA control through a whole model run to the stacked observations.
make_ensemblefunctionBuild a Gaussian-perturbed flat ensemble around a base state.
state_to_vectorfunctionFlatten a state pytree to a 1-D vector plus its inverse.

sesmax_core.domain

NameKindWhat it does
DomainclassDomain class for a rectangular domain
TimeDomainclassTimeDomain(tmin, tmax, dt)

sesmax_core.flows

NameKindWhat it does
StateAffineBijectionclassA :class:StateAffine as a flat flowjax bijection.
learned_priorfunctionCompose a fixed physical scaling with a learned flow into a prior.
to_flowjaxfunctionAdapt a :class:StateAffine to the flowjax bijection interface.

sesmax_core.gfd

NameKindWhat it does
burger_to_g_primefunctionInvert the per-interface Burger numbers into reduced gravities.
resolve_burgerfunctionSettle the Burger number from burger or froude.
resolve_burger_sphericalfunctionSettle the Burger number from burger, froude or lamb.

sesmax_core.operators

NameKindWhat it does
ModelOpclassA pipekit Operator wrapping any built sesmax forward model.

sesmax_core.solvers

NameKindWhat it does
imex_solverfunctionRe-exported from integrix.
imex_stepsize_controllerfunctionRe-exported from integrix.

sesmax_core.testing

NameKindWhat it does
Burgers1Dclass1D Burgers equation on an Arakawa C-grid.
Burgers1DDiagnosticsclassDiagnostics for 1D Burgers equation.
Burgers1DParamsclassDifferentiable parameters for 1D Burgers equation.
Burgers1DStateclassState for 1D Burgers equation.
Burgers2Dclass2D Burgers equation on an Arakawa C-grid.
Burgers2DAdvectionclassAdvective tendency kernel -(u·∂x + v·∂y) for both velocities.
Burgers2DDiagnosticsclassDiagnostics for 2D Burgers equation.
Burgers2DDiffusionclassDiffusive tendency kernel laplacian(·) for both velocities.
Burgers2DOpclassSerializable pipekit Operator for the term-based 2D Burgers model.
Burgers2DParamsclassDifferentiable parameters for 2D Burgers equation.
Burgers2DStateclassState for 2D Burgers equation.
Burgers2DTermModelclass2D Burgers model assembled from composable term kernels.
Diffusion1Dclass1D diffusion equation on an Arakawa C-grid.
Diffusion1DDiagnosticsclassDiagnostics for 1D diffusion.
Diffusion1DParamsclassDifferentiable parameters for 1D diffusion.
Diffusion1DStateclassState for 1D diffusion.
Diffusion2Dclass2D diffusion equation on an Arakawa C-grid.
Diffusion2DDiagnosticsclassDiagnostics for 2D diffusion.
Diffusion2DParamsclassDifferentiable parameters for 2D diffusion.
Diffusion2DStateclassState for 2D diffusion.
HelmholtzSolver2DclassSolve the 2D Helmholtz equation: :math:(\nabla^2 - \lambda) \phi = f.
IncompressibleNS2Dclass2D incompressible Navier-Stokes (vorticity-streamfunction).
L63DiagnosticsclassOn-demand diagnostics for the Lorenz '63 system.
L63ParamsclassDifferentiable parameters for the Lorenz '63 system.
L63StateclassState vector for the Lorenz '63 system.
L96DiagnosticsclassOn-demand diagnostics for the Lorenz '96 system.
L96ParamsclassDifferentiable parameters for the Lorenz '96 system.
L96StateclassState vector for the Lorenz '96 system.
L96TParamsclassDifferentiable parameters for the two-tier Lorenz '96 system.
L96TStateclassState vector for the two-tier Lorenz '96 system.
LaplaceSolver2DclassSolve the 2D Laplace equation: :math:\nabla^2 \phi = 0.
LinearConvection1Dclass1D linear convection equation on an Arakawa C-grid.
LinearConvection1DDiagnosticsclassDiagnostics for 1D linear convection.
LinearConvection1DParamsclassDifferentiable parameters for 1D linear convection.
LinearConvection1DStateclassState for 1D linear convection.
LinearConvection2Dclass2D linear convection on an Arakawa C-grid.
LinearConvection2DDiagnosticsclassDiagnostics for 2D linear convection.
LinearConvection2DParamsclassDifferentiable parameters for 2D linear convection.
LinearConvection2DStateclassState for 2D linear convection.
LinearSW1DDiagnosticsclassDiagnostics for the 1D linear shallow water model.
LinearSW1DParamsclassDifferentiable parameters for the 1D linear shallow water model.
LinearSW1DPhysConstsclassFrozen physical constants for the 1D linear shallow water model.
LinearSW1DStateclassState for the 1D linear shallow water model.
LinearSW2DDiagnosticsclassDiagnostics for the 2D linear shallow water model.
LinearSW2DParamsclassDifferentiable parameters for the 2D linear shallow water model.
LinearSW2DPhysConstsclassFrozen physical constants for the 2D linear shallow water model.
LinearSW2DStateclassState for the 2D linear shallow water model.
LinearSWM2DTermModelclass2D linear shallow water assembled from composable term kernels.
LinearSWMCoriolisclassCoriolis kernel: du/dt += f*v, dv/dt -= f*u (no height term).
LinearSWMDiffusionclassLateral diffusion kernel: laplacian(u), laplacian(v).
LinearSWMDragclassLinear bottom-drag kernel returning (0, u, v).
LinearSWMGravityWaveclassGravity-wave / pressure kernel of the linear shallow water RHS.
LinearShallowWater1Dclass1D linear shallow water model on an Arakawa C-grid.
LinearShallowWater2Dclass2D linear shallow water model on an Arakawa C-grid.
Lorenz63classLorenz '63 three-variable chaotic system.
Lorenz96classLorenz '96 periodic 1D chaotic system.
Lorenz96tclassLorenz '96 two-tier (slow-fast) coupled system.
NSDiagnosticsclassDiagnostics for incompressible Navier-Stokes.
NSParamsclassDifferentiable parameters for incompressible Navier-Stokes.
NSVorticityStateclassState for the vorticity-streamfunction NS formulation.
NonlinearConvection1Dclass1D nonlinear convection (inviscid Burgers) on an Arakawa C-grid.
NonlinearConvection1DDiagnosticsclassDiagnostics for 1D nonlinear convection.
NonlinearConvection1DStateclassState for 1D nonlinear convection.
NonlinearConvection2Dclass2D nonlinear convection on an Arakawa C-grid.
NonlinearConvection2DDiagnosticsclassDiagnostics for 2D nonlinear convection.
NonlinearConvection2DStateclassState for 2D nonlinear convection.
NonlinearSW1DDiagnosticsclassDiagnostics for the 1D nonlinear shallow water model.
NonlinearSW1DParamsclassDifferentiable parameters for the 1D nonlinear shallow water model.
NonlinearSW1DPhysConstsclassFrozen physical constants for the 1D nonlinear shallow water model.
NonlinearSW1DStateclassState for the 1D nonlinear shallow water model.
NonlinearShallowWater1Dclass1D nonlinear shallow water model on an Arakawa C-grid.
PoissonSolver2DclassSolve the 2D Poisson equation: :math:\nabla^2 \phi = f.
geostrophic_adjustment_2dfunction2D geostrophic adjustment: step-function height perturbation.
gravity_wave_1dfunction1D gravity wave: Gaussian height perturbation, no rotation.
inertial_oscillation_1dfunction1D inertial oscillation: uniform initial u, period = 2*pi/f0.

sesmax_core.train

NameKindWhat it does
ModelStepclassOne model step as a carrier-only operator: (t, s) ↦ (t + Δt, step(s)).
rolloutfunctionStep model n_steps times in one jax.lax.scan.
rollout_lossfunctionMean per-snapshot loss of a rollout against a reference trajectory.
state_msefunctionl(s, sʳᵉᶠ) = ∑_fields mean((s - sʳᵉᶠ)²) over the array leaves.

Upstream: sesmax-ocean

Simple ocean models: shallow water and quasi-geostrophic.

sesmax_ocean.eval

NameKindWhat it does
compute_eval_metricsfunctionCompute every applicable reference-free metric for (model, state).
geostrophic_imbalancefunctionDimensionless ageostrophic fraction of a shallow-water-type state.
kinetic_energyfunctionDomain-integrated kinetic energy 0.5 ∫ (u² + v²) dA.
qg_balance_residualfunctionDimensionless PV-inversion residual for a barotropic QG model.
rms_divergencefunctionRoot-mean-square horizontal divergence sqrt(<(∇·u)²>).
total_enstrophyfunctionDomain-integrated enstrophy 0.5 ∫ ζ² dA with ζ = ∂v/∂x - ∂u/∂y.

sesmax_ocean.forcing

NameKindWhat it does
geostrophic_currentsfunctionVector preset: incompressible (u, v) current-error forcing.
ssh_geostrophicfunctionSSH geostrophic preset: a radial-Gabor frame with a wavenumber-law prior.
sss_coastalfunctionCoastal SSS preset: placeable radial atoms with a prescribed prior.
sst_frontalfunctionSST preset: a smooth Matérn (HSGP) field over the box-Laplacian eigenbasis.

sesmax_ocean.qg

NameKindWhat it does
BaroclinicQGclassMultilayer quasi-geostrophic model on an Arakawa C-grid.
BaroclinicQGDiagnosticsclassDiagnostics for the multilayer QG model.
BaroclinicQGParamsclassDifferentiable parameters for the multilayer QG model.
BaroclinicQGPhysConstsclassFrozen physical constants for the multilayer QG model.
BaroclinicQGStateclassState for the multilayer quasi-geostrophic model.
BarotropicQGclassBarotropic quasi-geostrophic model on an Arakawa C-grid.
BarotropicQGDiagnosticsclassDiagnostics for the barotropic QG model.
BarotropicQGParamsclassDifferentiable parameters for the barotropic QG model.
BarotropicQGPhysConstsclassFrozen physical constants for the barotropic QG model.
BarotropicQGStateclassState for the barotropic quasi-geostrophic model.
ReparamQGDiagnosticsclassDiagnostics for the reparameterized QG model.
ReparameterizedQGclassReparameterized QG model: multilayer SWM + geostrophic projection.

sesmax_ocean.resolution

NameKindWhat it does
check_deformation_radiusfunctionPre-flight: the first baroclinic deformation radius is resolved.
check_equatorial_deformation_radiusfunctionPre-flight: the equatorial deformation radius is resolved.
check_munk_widthfunctionPre-flight: the Munk (viscous) western boundary layer is resolved.
check_stommel_widthfunctionPre-flight: the Stommel (frictional) western boundary layer is resolved.

sesmax_ocean.spherical

NameKindWhat it does
SphericalQGclassBarotropic quasi-geostrophic flow on a sphere.
SphericalQGDiagnosticsclassDiagnostics for the spherical QG model.
SphericalQGParamsclassDifferentiable parameters for the spherical QG model.
SphericalQGPhysConstsclassFrozen physical constants for the spherical QG model.
SphericalQGStateclassState for the spherical barotropic QG model.
SphericalSWMclassShallow water on a sphere, vector-invariant form.
SphericalSWMDiagnosticsclassDiagnostics for the spherical shallow water model.
SphericalSWMParamsclassDifferentiable parameters for the spherical shallow water model.
SphericalSWMPhysConstsclassFrozen physical constants for the spherical shallow water model.
SphericalSWMStateclassState for the spherical shallow water model.

sesmax_ocean.swm

NameKindWhat it does
MultilayerSW2DDiagnosticsclassDiagnostics for the multilayer 2D shallow water model.
MultilayerSW2DParamsclassDifferentiable parameters for the multilayer 2D shallow water model.
MultilayerSW2DPhysConstsclassFrozen physical constants for the multilayer 2D shallow water model.
MultilayerSW2DStateclassState for the multilayer 2D nonlinear shallow water model.
MultilayerShallowWater2DclassMultilayer 2D nonlinear shallow water model (vector-invariant form).
NonlinearSW2DDiagnosticsclassDiagnostics for the 2D nonlinear shallow water model.
NonlinearSW2DParamsclassDifferentiable parameters for the 2D nonlinear shallow water model.
NonlinearSW2DPhysConstsclassFrozen physical constants for the 2D nonlinear shallow water model.
NonlinearSW2DStateclassState for the 2D nonlinear shallow water model.
NonlinearShallowWater2Dclass2D nonlinear shallow water model (vector-invariant form).

Upstream: sesmax-experiment

What is done with a model: runs, monitors, checkpoints.

sesmax_experiment.checkpoint

NameKindWhat it does
SimulationCheckpointerclassManages periodic checkpointing during long simulations.

sesmax_experiment.monitor

NameKindWhat it does
BaseMonitorclassInert base monitor — override only the hooks you care about.
ChunkInfoclassContext handed to a monitor at a diagnostic-chunk boundary.
ConservationDriftMonitorclassMONITOR (optionally FAIL-HARD): track drift of conserved invariants.
EnergyGrowthMonitorclassMONITOR (optionally FAIL-HARD): flag large energy jumps between chunks.
MonitorclassStructural protocol for a simulation monitor.
MonitorVerdictclassA monitor’s response to a chunk.
NonFiniteMonitorclassFAIL-HARD: terminate the run if any state field holds NaN/Inf.
SolverHealthMonitorclassMONITOR: surface diffrax per-chunk solver statistics.
ThroughputMonitorclassMONITOR: report simulated seconds per wallclock second per chunk.
WatchdogMonitorclassStop the run, resumably, if cumulative wallclock exceeds a ceiling.
default_monitorsfunctionThe runner’s default monitor set — preserves legacy behavior.

sesmax_experiment.run

NameKindWhat it does
AdvanceChunkclassIntegrate a model from one edge of a timeline to the next.
ChunkFrameclassThe state after a chunk, with what is known about the chunk.
ChunkedRunclassWhat a run returns.
DueclassA predicate on a :class:ChunkFrame that combines with | and &.
RunMonitorsclassAsk every monitor about a frame, and stop the run if one wants to.
RunStoppedclassA monitor stopped the run.
TimelineclassWhen the chunks of a run end, and which ends are snapshots.
at_snapshotsfunctionDue at the snapshots of the run’s timeline.
every_chunksfunctionDue after every n-th chunk.
every_sim_secondsfunctionDue after the chunk in which a multiple of interval is reached.
every_wall_secondsfunctionDue after the first chunk that ends interval seconds of wall time later.
run_chunksfunctionRun a model in chunks, looking at the state between them.