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¶
| Name | Kind | What it does |
|---|---|---|
BRIGGS_DISPERSION_PARAMS | constant | {'A': Array([ 2.2e-01, 1.0e-04, -5.0e-01, 2.0e-01, 0.0... |
BriggsPlumeRise | class | Briggs plume rise Δh(x) of a stack plume, from its buoyancy and momentum. |
CentrelinePrior | class | Prior covariance of the centreline knots. |
ColumnObservation | class | Averaging-kernel-weighted column at a set of receptors. |
ColumnPlume | class | Column of a steady Gaussian plume per unit line density. |
ColumnPlumeSource | class | A column plume as a controlled coupled transport backend. |
EmissionRateSamples | class | NUTS draws by site name, with the per-event payload Tier V reads. |
GaussianNoise | class | Homoscedastic Gaussian noise, ε ~ 𝒩(0, σ²). |
GolderDispersion | class | PG σ_y, σ_z with the class chosen from Monin–Obukhov scales (Golder 1972). |
HeteroscedasticNoise | class | Per-observation Gaussian noise, ε_i ~ 𝒩(0, σ_i²), from a retrieval-error map. |
MIN_WIND_SPEED | constant | 0.5 |
MaskedSources | class | K_max source slots with emission rates, locations and activity indicators. |
MultiSourcePosterior | class | Posterior draws of a masked-K source model. |
Noise | class | Observation-noise model p(y | ŷ) for a Tier I likelihood. |
PlumeGeometry | class | The fitted variables of a column plume: where it starts, heads and widens. |
STABILITY_CLASSES | constant | ('A', 'B', 'C', 'D', 'E', 'F') |
SourceSummary | class | Posterior summary of one slot, conditioned on the slot being active. |
StudentTNoise | class | Heavy-tailed Student-t noise, ε ~ t_ν(0, s), for outliers near the detection floor. |
briggs_plume_rise | function | Briggs plume rise Δh(x) [m]; see :class:BriggsPlumeRise. |
calculate_briggs_dispersion | function | Evaluate σ_y(x), σ_z(x) from Briggs parameters. |
centreline_offset | function | Crosswind offset of the centreline at each downwind distance. |
effective_height | function | Effective release height H_eff(x) = H_stack + Δh(x) [m]. |
gaussian_plume_model | function | NumPyro model for the steady-state Gaussian plume. |
get_dispersion_params | function | Return the Briggs parameter vector for a stability class. |
golder_class_boundaries | function | Inverse Obukhov lengths at Golder’s five PG class boundaries. |
golder_stability_class | function | Golder’s (1972) PG class for 1/L and z₀, as an index 0 (A) … 5 (F). |
golder_stability_index | function | Continuous PG class index from 1/L and z₀, piecewise linear in 1/L. |
infer_emission_rate | function | Infer the plume emission rate via NUTS. |
infer_multi_source | function | Infer up to K_max sources and their on/off indicators. |
multi_source_plume_model | function | Masked-K NumPyro model: up to K_max plumes, each switched on or off. |
plume_concentration | function | Evaluate the steady-state Gaussian plume concentration. |
plume_concentration_vmap | function | Vectorized version of plume_concentration. |
plume_frame | function | Downwind and crosswind distance of each receptor from the source. |
power_law_width | function | Crosswind standard deviation of the plume at each downwind distance. |
rotate_to_wind_frame | function | Rotate fixed-frame coordinates into the wind-aligned frame. |
simulate_plume | function | Simulate a steady-state Gaussian plume on a 3-D grid. |
unit_column | function | Column per unit line density, the Gaussian ridge across the plume. |
plumax.gauss_puff¶
| Name | Kind | What it does |
|---|---|---|
DISPERSION_SCHEMES | constant | {'pg': ({'A': Array([-1.104 , 0.9878, -0.0076, 4.679 , ... |
OUTurbulence | class | Ornstein-Uhlenbeck turbulence for puff-release position disturbances. |
PG_DISPERSION_PARAMS | constant | {'A': Array([-1.104 , 0.9878, -0.0076, 4.679 , -1.7172,... |
PuffState | class | Container for the Lagrangian state of a puff ensemble at a single time. |
WindSchedule | class | Piecewise-linear time-varying wind field. |
calculate_briggs_dispersion_xyz | function | Evaluate σ_x(s), σ_y(s), σ_z(s) from Briggs parameters. |
calculate_pg_dispersion | function | Evaluate σ_x(s), σ_y(s), σ_z(s) from Pasquill-Gifford parameters. |
cumulative_wind_integrals | function | Running integrals of the wind and of its speed from the first knot. |
evolve_puffs | function | Advance a puff ensemble to current_time under a time-varying wind. |
frequency_to_release_interval | function | Convert a release frequency f [Hz] into a release interval Δt [s]. |
gaussian_puff_model | function | NumPyro model for the Gaussian puff forward with a constant Q prior. |
gaussian_puff_rw_model | function | Random-walk state-space model for a time-varying emission rate Q_i. |
get_dispersion_scheme | function | Return (params_dict, calculator_fn) for a named dispersion scheme. |
get_pg_params | function | Return the Pasquill-Gifford parameter vector for a stability class. |
infer_emission_rate | function | NUTS inference of a constant emission rate from puff observations. |
infer_emission_timeseries | function | NUTS inference of a time-varying emission rate series Q_i. |
make_release_times | function | Evenly spaced puff release times in [t_start, t_end). |
puff_concentration | function | Evaluate the concentration from a single Gaussian puff (JIT). |
puff_concentration_vmap | function | Vectorized version of puff_concentration. |
release_durations | function | Per-puff emission-interval durations [s] for a continuous source. |
release_interval_to_frequency | function | Convert a release interval Δt [s] into a release frequency f [Hz]. |
sample_ou_offsets | function | Draw per-puff (Δx, Δy) offsets from a 2-D OU process at release times. |
simulate_puff | function | Simulate a time-resolved Gaussian-puff dispersion field on a 3-D grid. |
simulate_puff_field | function | Sum the contributions of all puffs at each receptor. |
plumax.lagrangian¶
| Name | Kind | What it does |
|---|---|---|
EmulatedFootprint | class | The emulator at fixed receptors, as the per-case map u ↦ F_emu(u). |
FootprintEmulator | class | Per-receptor network from met context and receptor to a footprint row. |
FootprintSimulator | class | The particle model as a forward model from met context to footprint. |
GaussianPosterior | class | Closed-form Gaussian posterior over the source vector. |
HannaTurbulence | class | Height-dependent Hanna (1982) turbulence as a TurbulenceModel. |
HomogeneousTurbulence | class | Spatially uniform, well-mixed-exact turbulence statistics. |
LognormalPosterior | class | Linearised lognormal posterior over a non-negative source vector. |
MetContextPrior | class | The operational met distribution p(u) as pipekit-train’s prior operator. |
assert_emulator_calibrated | function | Check the emulated source–receptor maps against the particle model’s. |
compute_footprint | function | Compute a single receptor’s surface footprint by backward integration. |
emulated_footprint | function | The emulated footprint matrix F_emu of one met context. |
emulator_relative_error | function | Relative Frobenius error ‖F_emu − F‖_F / ‖F‖_F over every case. |
ensemble_footprints | function | Footprint matrix F_e of every ensemble member. |
ensemble_inversion | function | Gaussian inversion that marginalises the footprint over a met ensemble. |
footprint_dataset | function | Simulated (met context, footprint) pairs, cached once on disk. |
footprint_operator | function | The Tier II source–receptor map 𝒢(q) = F q as a vardax operator. |
gridded_wind_from_met | function | The wind of a :class:~plumax.met.MetField, for particles. |
gridded_wind_from_prescribed | function | Sample a les_fvm :class:~plumax.les_fvm.wind.PrescribedWindField. |
hanna_profiles | function | Hanna (1982) Monin–Obukhov-similarity turbulence profiles. |
init_footprint_emulator | function | An untrained emulator, standardised to the training set. |
linear_gaussian_inversion | function | Closed-form Gaussian–Gaussian (BLUE) inversion of the source vector. |
lognormal_inversion | function | Sign-constrained inversion via a lognormal prior linearised in log-space. |
matern32_covariance | function | Build a Matérn-3/2 prior covariance over grid-cell coordinates. |
observation_covariance | function | Assemble the diagonal observation-error covariance R. |
simulate_lagrangian | function | Simulate a steady Lagrangian concentration field on a 3-D grid. |
train_footprint_emulator | function | Fit the network weights θ with pipekit-train’s Equinox backend. |
transport_covariance | function | Mean footprint F̄ and linearised transport-error covariance at q_a. |
wind_from_speed_direction | function | Constant wind from speed + meteorological direction (degrees from North). |
plumax.les_fvm¶
| Name | Kind | What it does |
|---|---|---|
BackgroundAnalysis | class | The MAP of the :class:BackgroundControl part of a 4D-Var control. |
BackgroundControl | class | Initial concentration and per-face inflow scaling in the control. |
ColumnObservationOperator | class | Sample the column-integrated field at fixed receptor cells. |
EddyDiffusivity | class | Scalar or field-valued (K_h, K_z) eddy diffusivity. |
EulerianDispersionRHS | class | Full tracer-transport tendency for diffrax. |
EulerianForward4DVar | class | Differentiable map from an emission time series to column observations. |
FourDVarProblem | class | A strong-constraint 4D-Var problem over a flat source control. |
FourDVarResult | class | Outcome of a 4D-Var minimisation. |
GaussianSource | class | Gaussian point source with constant or time-varying emission rate. |
HorizontalBC | class | Fill the lateral ghosts of every z-slice of a 3-D field. |
PlumeGrid3D | class | Arakawa C-grid + cached interior coordinate arrays. |
PosteriorCovariance | class | Laplace (Gauss-Newton) posterior covariance of a 4D-Var solution. |
PrescribedWindField | class | Wind velocity evaluator on the full [Nz, Ny, Nx] field layout. |
SpatialControl | class | Per-cell surface flux control with a Matérn-3/2 prior. |
SurfaceFluxSource | class | Per-cell surface flux injected into the lowest interior layer. |
TemporalControl | class | Prior of the scalar emission time series at a known source. |
VerticalBC | class | Top/bottom ghost-slice update for a 3-D field. |
advection_tendency | function | Flux-form advective tendency -∇·(u C) at interior T-points. |
apply_boundary_conditions | function | Apply horizontal then vertical BCs to a 3-D tracer field. |
build_default_concentration_bc | function | Build (HorizontalBC, VerticalBC) from user-facing BC specs. |
build_forward | function | Assemble a differentiable :class:EulerianForward4DVar. |
build_problem | function | Assemble a :class:FourDVarProblem, factorising the prior covariance. |
diffusion_tendency | function | Full 3-D eddy diffusion tendency ∇·(K ∇C) at interior T-points. |
laplace_sample | function | Draw source-space samples from the Laplace posterior N(S*, P_S). |
make_gaussian_source | function | Build a :class:GaussianSource on plume_grid. |
make_grid | function | Build a :class:PlumeGrid3D from (x_min, x_max, nx_interior) triples. |
mo_eddy_diffusivity | function | Monin–Obukhov K-profile for K_z, with a caller-supplied K_h. |
pg_eddy_diffusivity | function | Rough K-theory calibration from Pasquill-Gifford σ curves. |
posterior_covariance | function | Gauss-Newton Laplace posterior covariance around a 4D-Var MAP. |
simulate_eulerian_dispersion | function | Simulate 3-D Eulerian tracer transport under a prescribed wind. |
smagorinsky_k_h | function | Smagorinsky horizontal diffusivity from the resolved deformation. |
solve_4dvar | function | Minimise the 4D-Var cost in whitened space, via vardax. |
stable_step_bound | function | Maximum stable step for an explicit fixed-step transport solve. |
uniform_wind_field | function | Space- and time-constant wind field. |
wind_field_from_callable | function | General-purpose wind field from a user-supplied (t, X, Y, Z) function. |
wind_field_from_schedule | function | Time-varying but spatially uniform wind field. |
plumax.met¶
| Name | Kind | What it does |
|---|---|---|
LocalFrame | class | UTM metres relative to an origin, as the analysis grid’s frame. |
MetField | class | Meteorological forcing on an analysis grid with a time axis. |
MoninObukhov | class | Diagnose u*, 1/L and w* from a MetField’s lowest level (dry air). |
SurfaceLayer | class | Surface-layer scales on the analysis grid’s horizontal T-points. |
TimeAxis | class | Seconds since t0 for a set of UTC sample times. |
hanna_turbulence_from | function | Hanna (1982) turbulence at one analysis column and met time. |
load_era5 | function | Load ERA5 pressure- and single-level files onto an analysis grid. |
load_wrf | function | Load a wrfout file onto an analysis grid. |
pbl_height_bulk_richardson | function | PBL height h from the bulk Richardson number of the analysis profiles. |
to_prescribed_wind | function | Expose a :class:MetField as the wind object the Eulerian solver takes. |
plumax.population¶
| Name | Kind | What it does |
|---|---|---|
AdditiveMultiCovariatePOD | class | Additive GLM with separate coefficients for each covariate. |
CloglogPOD | class | Complementary log-log GLM for asymmetric detection tails. |
CoalMineVentilationIntensity | class | Multi-scale operational intensity for underground coal mines. |
ConcentrationProxyPOD | class | GLM on the log-concentration proxy ln(Q/(U·p)). |
ConstantIntensity | class | Constant intensity for passive, continuously leaking infrastructure. |
DiurnalSeasonalIntensity | class | Additive diurnal + seasonal intensity for thermally active biogenic sources. |
DiurnalSinusoidalIntensity | class | Diurnal sinusoidal intensity for thermally driven infrastructure. |
EmissionCatalog | class | A population of detected emission events. |
EmissionEvent | class | A single detected emission event with its per-event posterior summary. |
EventEvidence | class | Nodes and log-weights of one event’s (or a stack of events’) mark integral. |
FacilityConfig | class | Immutable physical configuration of a single leaking facility. |
FullVaryingCoefficientPOD | class | Full varying-coefficient GLM with spectral and radiometric controls. |
INTENSITY_REGISTRY | constant | {'constant': <class 'plumax.population._src.intensity.Con... |
InhomogeneousIntensityPosterior | class | Posterior over a log-linear inhomogeneous intensity model. |
InstrumentPOD | class | One instrument’s detection curve with its published calibration. |
LandfillIntensity | class | Multi-component intensity for municipal solid waste landfills. |
LivestockFeedlotIntensity | class | Bimodal diurnal + seasonal intensity for concentrated livestock operations. |
LogIntensity | class | A registry intensity as a pyrox-xtreme log-intensity on window time. |
LogLogisticPOD | class | Logistic POD on log-flux: the lognormal CDF approximation. |
LogisticPOD | class | Single-covariate logistic POD: the classic S-curve. |
LognormalMark | class | Lognormal f(q) = LN(q; μ, σ²). |
LognormalParetoMark | class | Lognormal body spliced to a Pareto tail at Q_break, continuous there. |
MARKS | constant | {'powerlaw': <class 'plumax.population._src.marks.PowerLa... |
Mark | class | A mark family f(Q | θ), with θ passed by keyword. |
MarkPosterior | class | Posterior over a mark family’s parameters, with importance diagnostics. |
MixtureLognormalMark | class | Mixture of K lognormals f(q) = Σₖ wₖ LN(q; μₖ, σₖ²). |
OffshorePlatformIntensity | class | Combined tidal and operational intensity for offshore oil & gas platforms. |
OperationalScheduleIntensity | class | Step-function intensity for facilities with fixed shift schedules. |
PODRetention | class | A probability-of-detection curve as a pyrox-xtreme retention callable. |
POD_REGISTRY | constant | {'logistic': <class 'plumax.population._src.pod.LogisticP... |
ParadoxResult | class | Container for a single Monte Carlo paradox simulation. |
PerEventPosterior | class | Structural type for a per-event Q posterior (payload v2). |
PeriodicBatchIntensity | class | Periodic narrow-pulse intensity for scheduled batch venting. |
PoissonRatePosterior | class | Gamma posterior over a homogeneous Poisson rate lambda. |
PowerLawMark | class | Pareto power law f(q) = (α − 1)/q_min · (q/q_min)^(−α) on q ≥ q_min. |
ProbitPOD | class | Probit GLM on the concentration proxy. |
Regime | class | How an event’s per-event posterior enters the mark integral. |
SNRBasedPOD | class | GLM on log-SNR: radiometric first-principles detection model. |
SeasonalSinusoidalIntensity | class | Annual sinusoidal intensity for biogenic / climate-driven sources. |
SeasonallyModulatedDiurnalIntensity | class | Diurnal intensity whose amplitude is seasonally modulated. |
SizeDistributionPosterior | class | Posterior over the lognormal population size-distribution parameters. |
SpectralAwarePOD | class | GLM with spectral band count and resolution as covariates. |
TMTPPPosterior | class | Posterior draws of the full TMTPP, by the site names of its model. |
TotalEmission | class | Posterior samples of a total emission, split into detected and missing mass. |
VaryingCoefficientPOD | class | Varying coefficient GLM: sensitivity β₁ depends on environment. |
WeibullRenewalIntensity | class | Weibull hazard function for pressure-driven, recharging sources. |
WetlandPermafrostIntensity | class | Sigmoid-gated seasonal intensity for high-latitude wetland/permafrost. |
X_MAX_DEFAULT | constant | 1000000.0 |
X_MIN_DEFAULT | constant | 10.0 |
build_canonical_scenarios | function | Six canonical test scenarios spanning the paradox regime. |
calibration_prior | function | Sample each instrument’s (Q₅₀, k) under its published calibration. |
catalog_evidence | function | :func:event_evidence for every event, stacked along a leading axis. |
compute_E_Pd | function | Compute E[P_d] = ∫₀^∞ P_d(Q) · f(Q) dQ by log-space quadrature. |
detection_process | function | The detected-event process: POD-thinned, marked ground process. |
effective_sample_size | function | Deprecated alias of integrix.expect.effective_sample_size (plumax#253). |
ess_report | function | Per-event ESS of the importance weights at one θ, with a collapse warning. |
event_evidence | function | Nodes and log-weights of one event’s importance-corrected mark integral. |
event_from_posterior | function | Build an :class:EmissionEvent from any Tier I-IV posterior. |
expected_count | function | Expected number of events in the horizon, E[N(t, t + h)] = Λ(t, t + h). |
expected_wait_time | function | Expected wait until the next event, E[Δt | t] = ∫₀^∞ exp(−Λ(t, t + s)) ds. |
fit_inhomogeneous_intensity | function | Log-linear inhomogeneous Poisson-process intensity fit via NUTS. |
fit_lognormal_size_distribution | function | Hierarchical-Bayes fit of the lognormal population size distribution. |
fit_poisson_rate | function | Closed-form Gamma-Poisson posterior for a homogeneous event rate. |
fit_size_distribution_iw | function | Importance-corrected NUTS fit of the population size distribution. |
load_pod_calibrations | function | Read per-instrument calibrations from a CSV or YAML table. |
log_gauss_hermite | function | Deprecated alias of integrix.expect.log_gauss_hermite. |
log_pod_union | function | log P_d^∪ as the callable the TMTPP model and total_emission take. |
log_simpson | function | Deprecated alias of integrix.expect.log_simpson. |
logistic_pod | function | Parametric probability of detection (logistic sigmoid). |
lognorm_cdf | function | Lognormal CDF used as the probability-of-detection curve. |
lognormal_pdf | function | Evaluate the Lognormal probability density function. |
make_mark | function | Build a registry mark family by name. |
make_process | function | A pyrox-xtreme inhomogeneous Poisson process for a registry intensity. |
mark_iw_model | function | NumPyro model of the marks given the detections, importance-corrected. |
occurrence_probability | function | Probability of at least one event, P(N(t, t + h) ≥ 1) = 1 − exp(−Λ(t, t + h)). |
padded_event_buffer | function | Detection times as pyrox-xtreme’s padded buffer on window time. |
pareto_smoothed_log_weights | function | Deprecated alias of integrix.expect.pareto_smoothed_log_weights. |
pod_powerlaw_model | function | NumPyro model for a POD-modified power law on observed fluxes. |
pod_union | function | Probability that any covering instrument detects a rate Q, at published values. |
posterior_metric | function | Posterior samples of a persistency metric, and their quantiles. |
power_law | function | Un-normalised power-law PDF: x⁻ᵅ. |
run_mcmc | function | Run NumPyro NUTS on the POD-modified power-law model. |
run_scenario_grid | function | Run the paradox simulation across multiple scenarios. |
simulate_paradox | function | Run a single Monte Carlo realisation of the Missing Mass Paradox. |
tmtpp_iw_model | function | NumPyro model of the full importance-corrected TMTPP likelihood. |
tod_bin_index | function | The hour-of-day bin of each time. |
total_emission | function | Posterior samples of the basin total, with the inferred missing mass. |
plumax.coupled¶
| Name | Kind | What it does |
|---|---|---|
AbstractControlledSource | class | A transport backend whose response depends on fitted parameters. |
CoupledForward | class | Multi-instrument coupled forward: a list of per-instrument observations. |
CoupledPrior | class | Gaussian prior N(μ_θ, Σ_θ) on the stacked control, by named block. |
CoupledProblem | class | The coupled forward, its prior and every instrument’s observations. |
CoupledResult | class | MAP and Laplace posterior of the coupled inversion. |
EulerianSource | class | Tier III transport: the les_fvm finite-volume run through the shared column. |
FitDiagnostics | class | Information content and residual statistics of a coupled fit. |
FlagPolicy | class | What a rejected pixel becomes: dropped, or kept with an inflated variance. |
FusionPosterior | class | Closed-form joint posterior over (Q, bias₁ … bias_M). |
Instrument | class | Fixed observation geometry + error budget for one satellite instrument. |
LagrangianSource | class | Tier II transport: met-ensemble backward footprints through the shared column. |
LayeredRadianceOperator | class | Map a column-mass enhancement to band radiance through radtrax’s layered model. |
LinearisedRadianceOperator | class | Tangent-linear radiance operator — the linearised counterpart of the RTM. |
MaskedKPrior | class | The slot prior: how many slots, how likely each is on, and its Q_k. |
MultistartResult | class | Every start’s outcome, and the one that won. |
PlumeSource | class | Static source + meteorology for the Tier I coupled forward. |
QualityFlag | class | Per-pixel quality bits, 0 = clear. |
QualityPolicy | class | Which flags reject a pixel, and how a rejected pixel enters the fusion. |
RadianceObservationOperator | class | Map a per-receptor column-enhancement field to band radiances via the RTM. |
StackedObservations | class | Every instrument’s observations, mask and variance on one stacked axis. |
TransportBackend | class | A transport tier as the coupled forward sees it. |
apply_quality | function | The instrument with its flags and the policy’s mask or inflation set. |
build_coupled_forward | function | Assemble a :class:CoupledForward, precomputing unit-Q responses. |
build_masked_k_problem | function | The coupled problem of one active set, for the MAP and Laplace path. |
column_mass_to_delta_vmr | function | Convert a plume column mass enhancement [kg/m²] to a gas ΔVMR. |
column_response | function | Per-receptor column enhancement at unit emission for one instrument. |
contribution_report | function | Pixels each instrument contributes at full weight, by name. |
default_prior | function | Build a diagonal prior (θ_b, B) for (Q, bias₁ … bias_M). |
fit_diagnostics | function | Diagnostics of a solved coupled problem. |
fuse_observations | function | Closed-form joint posterior over (Q, bias_inst) from fused observations. |
infer_masked_k_sources | function | Posterior over the active count and the per-slot Q_k, from every instrument. |
linearise | function | Build the :class:LinearisedRadianceOperator tangent to operator at 0. |
masked_k_coupled_model | function | NumPyro masked-K model over every instrument’s columns. |
predict_observation | function | Predict one instrument’s observation vector y_inst. |
radiance_response | function | Per-receptor band radiances for one instrument under the RTM operator. |
radiance_response_linear | function | Per-receptor linearised radiances for one instrument (differentiable). |
saturation_rate | function | Fraction of overpasses whose most probable active count is K_max. |
slot_responses | function | Unit-emission column of every slot, as one design matrix per instrument. |
solve_coupled | function | MAP and Laplace posterior of the coupled problem, on vardax. |
solve_coupled_multistart | function | The coupled solve from each start, keeping the lowest cost. |
stack_observations | function | Stack the instruments’ observations, masks and variances for vardax. |
plumax.operators¶
| Name | Kind | What it does |
|---|---|---|
EulerianDispersion | class | Eulerian finite-volume dispersion runner as a pipekit operator. |
GaussianPlume | class | Steady-state Gaussian plume forward model as a pipekit operator. |
GaussianPuff | class | Time-resolved Gaussian puff forward model as a pipekit operator. |
LagrangianDispersion | class | Markov-1 Lagrangian dispersion forward model as a pipekit operator. |
plumax.adapters¶
| Name | Kind | What it does |
|---|---|---|
EulerianForwardModel | class | Expose an Eulerian dispersion RHS as a pipekit_cycle.ForwardModel. |
RadtranObservationOperator | class | Expose the normalised Beer–Lambert forward as an ObservationOperator. |
Upstream: radtrax¶
Differentiable radiative transfer for methane remote sensing.
radtrax¶
| Name | Kind | What it does |
|---|---|---|
ArgumentTypeError | class | An argument is of a type the function does not accept. |
DegenerateInputError | class | Well-shaped input that cannot be used: too few samples, no data yet, or a zero norm. |
ForwardModel | class | State → opacity → solver → instrument: band values for one pixel. |
GridError | class | A grid is not strictly monotone, has too few points, or does not match another grid. |
MissingExtraError | class | An optional dependency is not installed; the message names the extra. |
MissingFileError | class | An input file or glob pattern matched nothing. |
MissingKeyError | class | A gas, band or variable is missing from a state, table or dataset. |
MissingTableError | class | A table (cross sections, a solar spectrum) is not in the cache; its message names the command that builds or fetches it. |
ParameterError | class | A scalar or option is outside its allowed range or set, or a required one is missing. |
RadtraxError | class | Base class for every exception raised by radtrax. |
ShapeError | class | An array has the wrong shape or rank, or two arrays disagree in shape. |
TableBuildError | class | Building a cross-section table failed: a HITRAN fetch or a line-by-line computation. |
unit_absorption_target | function | Matched-filter target t = ∂ ln y / ∂ΔX at ΔX = 0 [per mol/m²]. |
radtrax.atmosphere¶
| Name | Kind | What it does |
|---|---|---|
AFGL_GASES | constant | ('H2O', 'CO2', 'O3', 'N2O', 'CO', 'CH4') |
ATM_TO_PA | constant | 101325.0 |
AVOGADRO_PER_MOL | constant | 6.02214076e+23 |
AtmosphericState | class | Pressure, temperature, altitude, thickness and gases, per layer. |
BOLTZMANN_J_PER_K | constant | 1.380649e-23 |
CM2_PER_M2 | constant | 10000.0 |
CM3_PER_M3 | constant | 1000000.0 |
DRY_AIR_MOLAR_MASS_KG_PER_MOL | constant | 0.0289644 |
STANDARD_GRAVITY_M_PER_S2 | constant | 9.80665 |
ViewingGeometry | class | Sun and sensor directions as seen from the surface. |
afgl_us_standard | function | The AFGL US Standard atmosphere as layers between its levels. |
layers_from_levels | function | An :class:AtmosphericState of L layers from L + 1 levels. |
number_density | function | Total number density from the ideal-gas law [molecules / cm³]. |
radtrax.spectroscopy¶
| Name | Kind | What it does |
|---|---|---|
CrossSectionTable | class | One gas’s cross sections σ(ν; p, T) on a (ln p, T) grid. |
OpacityProvider | class | Protocol: an atmospheric state in, per-layer optical depth out. |
SumOpacity | class | Optical depth from several sources on one wavenumber grid. |
TableGrid | class | The (ν, p, T) grid a cross-section table is built on. |
TableOpacity | class | Optical depth from per-gas cross-section tables. |
V0_GRID | constant | TableGrid(name='v0', nu_min_cm=4000.0, nu_max_cm=6500.0, ... |
absorption_coefficient | function | α(ν) = σ(ν) · N_gas [1/cm]. |
beers_law_from_lut | function | End-to-end: σ-from-LUT → α → τ(ν) for a single homogeneous layer. |
fetch_solar_spectrum | function | Download a solar spectrum into the cache, once, and check its SHA-256. |
interpolate_cross_section | function | Return σ(ν) at a given (T, p) via bilinear LUT interpolation. |
load_opacity | function | A :class:~radtrax.spectroscopy.TableOpacity from cached tables. |
load_table | function | Open gas’s cached table (lazily, with xarray). |
plume_ratio_spectrum | function | Differential-Beer-Lambert ratio τ_total(ν) / τ_bg(ν). |
solar_irradiance | function | Solar irradiance at 1 AU, interpolated onto a wavenumber grid. |
table_cache_dir | function | Where tables are cached. |
transmittance | function | τ(ν) = exp(-α · L_vert · AMF). |
radtrax.solvers¶
| Name | Kind | What it does |
|---|---|---|
BeerLambert | class | Beer–Lambert along the two-way path; no scattering, no emission. |
RTSolver | class | Protocol: optical properties, a surface and a geometry in, radiance out. |
radtrax.surface¶
| Name | Kind | What it does |
|---|---|---|
Lambertian | class | A Lambertian surface: R = A in every direction. |
PolynomialAlbedo | class | A Lambertian surface whose albedo is a Legendre series in wavenumber. |
RossLi | class | The Ross–Li kernel BRDF: R = f_iso + f_vol K_vol + f_geo K_geo. |
Surface | class | Protocol: the surface’s bidirectional reflectance factor. |
radtrax.instrument¶
| Name | Kind | What it does |
|---|---|---|
BandInstrument | class | Band integration with a spectral shift, y_b = Σ_g f_bg L(ν_g + δ). |
DiagonalNoise | class | Independent noise with a fixed standard deviation per band, S_ε = diag(σ²). |
GaussianInstrument | class | Gaussian bands built in JAX, shifted analytically in cm⁻¹ or in nm. |
GroundSamplingDistance | class | Block-mean down-sampling operator for a fixed integer factor. |
Instrument | class | Protocol: radiance on a wavenumber grid in, one value per band out. |
NEdTNoise | class | Thermal-band noise from a noise-equivalent temperature difference. |
NoiseModel | class | Protocol: the measurement-noise covariance S_ε(y) and draws from it. |
PointSpreadFunction | class | 2D PSF blur applied independently per spectral channel. |
SNRNoise | class | Signal-dependent noise from a signal-to-noise ratio and a floor. |
SpectralResponseFunction | class | Band-integration operator for a multispectral / hyperspectral instrument. |
radtrax.slab¶
| Name | Kind | What it does |
|---|---|---|
ATM_TO_PA | constant | 101325.0 |
BOLTZMANN_J_PER_K | constant | 1.380649e-23 |
CM3_PER_M3 | constant | 1000000.0 |
ForwardResult | class | Bundle of (radiance, Jacobian, transmittance) returned by the forward models. |
InstrumentSpec | class | Multispectral instrument description. |
NBLookup | class | Pre-computed normalised-brightness table, indexed by band and ΔX. |
ObservationGeometry | class | Viewing geometry for a single pixel. |
build_nb_lut | function | Pre-tabulate band-integrated nB over a column-enhancement grid. |
forward_maclaurin | function | Maclaurin-series forward model: expand exp(-τ(VMR)) around VMR = 0. |
forward_maclaurin_normalized | function | Maclaurin expansion of exp(-Δτ) around ΔVMR = 0. |
forward_nonlinear | function | Exact Beer-Lambert forward model. |
forward_nonlinear_normalized | function | Exact Beer-Lambert normalised by the background radiance. |
forward_taylor | function | First-order Taylor expansion around vmr_background. |
forward_taylor_normalized | function | Taylor expansion of L_norm around ΔVMR = 0. |
inject_plume | function | Multiplicative plume injection: scene_plume = scene · nB(ΔX). |
lookup_nb | function | Look up per-band nB for every pixel of a 2-D column map. |
number_density_cm3 | function | Ideal-gas total number density [molecules / cm³]. |
radtrax.geo¶
| Name | Kind | What it does |
|---|---|---|
AdaptiveBackground | class | Local window statistics, in the layout of the cube they came from. |
AdaptiveWindowBackground | class | Per-pixel local mean and variance over a square window. |
ApplyAdaptiveMF | class | Matched filter against each pixel’s local diagonal background. |
ApplyClusterMF | class | Matched filter with each pixel’s own cluster background. |
ColumnEnhancement | class | Trace-gas enhancement map: mean, covariance, target and matched filter. |
DetectionThreshold | class | Score threshold with a given false-alarm rate under the Gaussian null. |
ECOSTRESS_3BAND | constant | ('B2', 'B4', 'B5') |
ECOSTRESS_3BAND_PERIOD | constant | (datetime.date(2019, 5, 15), datetime.date(2023, 4, 28)) |
ECOSTRESS_BANDS | constant | ('B1', 'B2', 'B3', 'B4', 'B5') |
ECOSTRESS_BAND_CENTRES_UM | constant | mappingproxy({'B1': 8.285, 'B2': 8.785, 'B3': 9.06, 'B4':... |
ECOSTRESS_NETD_K | constant | mappingproxy({'B1': 0.1, 'B2': 0.1, 'B3': 0.1, 'B4': 0.1,... |
EstimateCovEmpirical | class | Empirical (1/n) covariance operator of a cube’s valid pixels. |
EstimateCovLowRank | class | Low-rank plus Tikhonov covariance λI + V D Vᵀ of a cube’s valid pixels. |
EstimateCovShrunk | class | Ledoit–Wolf or OAS covariance operator of a cube’s valid pixels. |
EstimateMean | class | Background mean spectrum (B,) of a cube’s valid pixels. |
GMMClusterBackground | class | Per-cluster backgrounds from a Gaussian mixture over the valid pixels. |
LANDSAT_CALIBRATION_K | constant | mappingproxy({'L9': mappingproxy({'B10': 0.16, 'B11': 0.6... |
LANDSAT_NETD_K | constant | mappingproxy({'L8': mappingproxy({'B10': 0.048, 'B11': 0.... |
LinearTargetFromObs | class | Tangent-linear target signature (B,) from an observation model. |
MBMP | class | Sentinel-2 multi-band multi-pass methane signal, with or without scale factors. |
MBSP | class | Sentinel-2 multi-band single-pass signal, −ln(c R₁₂ / R₁₁). |
MatchedFilter | class | Per-pixel matched-filter score map. |
MatchedFilterPixel | class | Matched-filter score of one pixel spectrum, as a float. |
MatchedFilterSNR | class | Theoretical detection SNR amplitude · √(tᵀ Σ⁻¹ t). |
MatchedFilterSensitivity | class | Per-pixel sensitivity map on the input’s carrier. |
NonlinearTargetFromObs | class | Finite-amplitude target H(x_b + α δx) − H(x_b), (B,). |
SBMP | class | Sentinel-2 single-band multi-pass signal, −ln(c_s R₁₂ / R′₁₂). |
StreamingBackground | class | Mean and covariance accumulated over an iterable of cubes. |
StreamingBackgroundResult | class | Background from :class:StreamingBackground. |
UnitAbsorptionTarget | class | Target (B,) from v0’s layered :class:~radtrax.ForwardModel. |
ValidateMFInputs | class | Pass-through guard: fail early on a zero target or a singular covariance. |
ecostress_bands | function | The TIR bands with data in a granule. |
ecostress_geometry | function | Per-pixel viewing geometry from the L1B geolocation angles. |
ecostress_instrument | function | ECOSTRESS bands as a :class:~radtrax.instrument.BandInstrument. |
ecostress_noise | function | NEΔT as a noise model on instrument’s bands. |
ecostress_radiance | function | L1B radiance per band and pixel, fill values as NaN. |
ecostress_srf | function | Build the ECOSTRESS SRF from the bundled science-team responses. |
emit_geometry | function | Per-pixel viewing geometry of an EMIT image, on its grid (H, W). |
emit_instrument | function | EMIT bands as a :class:~radtrax.instrument.BandInstrument on a wavenumber grid. |
landsat_geometry | function | Per-pixel viewing geometry from the Collection 2 angle bands. |
landsat_instrument | function | Landsat 8/9 bands as a :class:~radtrax.instrument.BandInstrument. |
landsat_noise | function | The thermal bands’ NEΔT as a noise model on instrument’s bands. |
landsat_radiance | function | TOA radiance from Level-1 digital numbers, per band and pixel. |
landsat_srf | function | Build a Landsat 8/9 SRF from the bundled USGS band-average RSRs. |
sentinel2_band_responses | function | Sentinel-2 band 11 and 12 responses, interpolated onto a wavelength grid. |
sentinel2_geometry | function | Per-pixel viewing geometry of an L1C image, on its grid (H, W). |
sentinel2_instrument | function | Sentinel-2 bands as a :class:~radtrax.instrument.BandInstrument. |
sentinel2_radiance | function | TOA radiance from an L1C image’s reflectance, per band and pixel. |
sentinel2_srf | function | Build 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¶
| Name | Kind | What it does |
|---|---|---|
AbstractForcing | class | Base class for forcing operators. |
BasisForcing | class | Reduced-order forcing: a fixed space-time frame driven by a coefficient vector. |
Compose | class | Operator composition: Compose(outer, inner)(state) = outer(inner(state)). |
ConstantForcing | class | Time-independent forcing field. |
ConstantInTime | class | Time-independent gate: b(t) = ones(m) (the Phi_t = I case). |
Diagnostics | class | Base class for on-demand diagnostic quantities. |
ForcingProduct | class | Modulated forcing: F = alpha * F_inner. |
ForcingProtocol | class | Base class for forcing terms. |
ForcingSum | class | Additive composition of forcings: F = F_1 + F_2 + ... + F_n. |
ForcingTerm | class | Lift a :class:ForcingProtocol field into the term algebra as a tendency. |
FourierInTime | class | Cosine temporal gate b_a(t) = cos(omega_a t + phase_a). |
GaussianWindowsInTime | class | Localized temporal gate b_a(t) = exp(-(t - tau_a)^2 / (2 T_a^2)). |
HatInTime | class | Piecewise-linear gate on knots, so the coefficients are values at the knots. |
InterpolatedForcing | class | Forcing from samples (t_k, u_k), read between them as a diffrax path. |
LinearDrag2D | class | Linear drag on a 2-D Arakawa C-grid. |
LinearDrag3D | class | Linear bottom drag on a 3-D Arakawa C-grid. |
ModalTransform | class | Precomputed layer-to-mode and mode-to-layer transforms. |
Model | class | Abstract base class defining the sesmax model contract. |
NoForcing | class | Zero forcing (free evolution). |
OperatorTerm | class | Lift a pipekit operator into the :class:Term algebra. |
Params | class | Base class for differentiable model parameters. |
PhysConsts | class | Base class for frozen physical constants. |
QuadraticDrag2D | class | Quadratic bottom drag on a 2-D Arakawa C-grid. |
QuadraticDrag3D | class | Quadratic bottom drag on a 3-D Arakawa C-grid. |
RayleighDamping2D | class | Rayleigh damping of a T-point field on a 2-D Arakawa C-grid. |
RayleighDamping3D | class | Rayleigh damping of a T-point field on a 3-D Arakawa C-grid. |
Scaled | class | A term multiplied by a scalar coefficient. |
ScaledModel | class | Integrate inner in transformed coordinates. |
Scales | class | Characteristic scales of a run. |
SeasonalWindForcing | class | Sinusoidal wind forcing with learnable amplitude. |
SpatialBasis | class | A precomputed spatial dictionary plus the per-mode prior std. |
State | class | Base class for model state vectors. |
StateAffine | class | Per-leaf affine map on a State pytree: y = (x - loc) / scale. |
StratificationProfile | class | Discrete vertical stratification for a layered ocean model. |
Sum | class | Additive composition of terms: sum_i terms[i](t, state, args). |
TemporalBasis | class | Maps a scalar time to per-atom temporal weights b(t). |
Term | class | A single additive contribution to a model right-hand side. |
TermFn | class | Adapt a plain callable into a :class:Term. |
TermModel | class | A :class:Model whose RHS is an assembled :class:Term tree. |
TimeVaryingForcing | class | Bundle a time-agnostic forcing with time-dependent input fields. |
TransformedForcing | class | Apply a pointwise transform to a base forcing (e.g. log-space synthesis). |
VectorBasisForcing | class | Reduced-order vector forcing: a fixed vector frame driven by coeffs. |
VectorSpatialBasis | class | A precomputed vector dictionary plus the per-mode prior std. |
WindCurl2D | class | Wind-stress curl forcing of the vorticity / QG potential vorticity. |
WindStress2D | class | Surface wind-stress forcing on a 2-D Arakawa C-grid. |
WindStress3D | class | Surface wind-stress forcing on a 3-D Arakawa C-grid. |
add_to | function | Build a placement that adds a field onto one named state component. |
add_vector_to | function | Build a placement that adds a component-major field onto named components. |
append_to_dataset | function | Append a Dataset to an existing zarr store along a dimension. |
apply_scale_metadata | function | Attach scale / transform metadata to an exported Dataset. |
as_parameter | function | Coerce a factory argument into a Params leaf. |
build_diffrax_terms | function | Build the diffrax term object for term, IMEX-aware. |
control_filter | function | Boolean filter selecting only coeffs for gradient updates. |
dataset_to_state | function | Reconstruct a single State from an xarray Dataset. |
explicit | function | Tag term for the explicit stage of an IMEX integrator. |
frozen | function | Hide a parameter from gradients while keeping it a runtime value. |
implicit | function | Tag term for the implicit stage of an IMEX integrator. |
interval | function | Constrain a parameter to the open interval (lower, upper). |
linear_drag | function | Rayleigh (linear) bottom-drag tendency :math:-\text{coef}\cdot u. |
linear_drag_tendency | function | Linear (Rayleigh-type) drag tendency on one velocity component. |
load_dataset | function | Open a zarr store as an xarray Dataset. |
matern_spectral_density | function | Matérn power spectral density S(omega) at omega = sqrt_lambda. |
partition | function | Split term into (explicit, implicit) sub-terms by kind. |
positive | function | Constrain a parameter to be strictly positive. |
pressure_from_divergence | function | Solve for the pressure p at T points of a pressure projection. |
pv_inversion | function | QG potential-vorticity inversion for ψ_k at X points, layer by layer. |
quadratic_drag_tendency | function | Quadratic bottom-drag tendency on one velocity component. |
rayleigh_relaxation | function | Sponge / relaxation tendency :math:-\text{coef}\cdot W\cdot(x - x_\text{ref}). |
rayleigh_tendency | function | Rayleigh damping tendency toward a reference state. |
save_dataset | function | Persist a Dataset to a zarr store. |
scales_attrs | function | Flat Dataset attrs describing the scale set a run used. |
snapshots_to_dataset | function | Convert a time-stacked PyTree of states to an xarray Dataset. |
solve_pde | function | Integrate dy/dt = P(f(t, B(y))) with diffrax.diffeqsolve. |
spatial_from_divfree | function | Build a :class:VectorSpatialBasis of divergence-free velocity atoms. |
spatial_from_eof | function | Build a :class:SpatialBasis from empirical orthogonal functions (PCA). |
spatial_from_fourier | function | Build a :class:SpatialBasis from the box-Laplacian (HSGP) eigenbasis. |
spatial_from_gabor | function | Build a :class:SpatialBasis from a functax dyadic radial-Gabor frame. |
spatial_from_graph_laplacian | function | Build a :class:SpatialBasis from graph-Laplacian eigenvectors. |
spatial_from_rbf | function | Build a :class:SpatialBasis from a functax placeable radial basis. |
spatial_from_spherical_rbf | function | Build a :class:SpatialBasis from a geodesic (on-sphere) radial basis. |
spatial_from_wavelet | function | Build a :class:SpatialBasis from the orthonormal 2D wavelet basis. |
stable_step | function | Re-exported from integrix. |
state_to_dataset | function | Convert a single model State to an xarray Dataset. |
streamfunction_from_vorticity | function | Invert the vorticity-streamfunction relation for ψ at X points. |
tile_in_time | function | Lift a spatial dictionary into a separable space-time frame. |
trainable_mask | function | Boolean pytree marking which leaves an optimiser may update. |
transform_attrs | function | Per-variable loc / scale attrs for an affine transform. |
wind_stress_tendency | function | Momentum tendency from a surface wind stress. |
sesmax_core.component¶
| Name | Kind | What it does |
|---|---|---|
AssertionFailedError | class | A run fails a check its spec asks for. |
Builder | function | Re-exported from collections. |
BuiltRun | class | A model and the state it starts from. |
Check | function | Re-exported from collections. |
Component | class | What a component registers: its models, and what it knows about them. |
sesmax_core.da¶
| Name | Kind | What it does |
|---|---|---|
FilteraxDynamics | class | Adapt a sesmax forward model to filterax’s flat-vector dynamics. |
SubsampleObs | class | Linear sub-sampling observation operator H(x) = x[indices]. |
VardaxForwardModel | class | Adapt a sesmax model to vardax’s flat-vector ForwardModel. |
WindowOperator | class | A control through a whole model run to the stacked observations. |
make_ensemble | function | Build a Gaussian-perturbed flat ensemble around a base state. |
state_to_vector | function | Flatten a state pytree to a 1-D vector plus its inverse. |
sesmax_core.domain¶
| Name | Kind | What it does |
|---|---|---|
Domain | class | Domain class for a rectangular domain |
TimeDomain | class | TimeDomain(tmin, tmax, dt) |
sesmax_core.flows¶
| Name | Kind | What it does |
|---|---|---|
StateAffineBijection | class | A :class:StateAffine as a flat flowjax bijection. |
learned_prior | function | Compose a fixed physical scaling with a learned flow into a prior. |
to_flowjax | function | Adapt a :class:StateAffine to the flowjax bijection interface. |
sesmax_core.gfd¶
| Name | Kind | What it does |
|---|---|---|
burger_to_g_prime | function | Invert the per-interface Burger numbers into reduced gravities. |
resolve_burger | function | Settle the Burger number from burger or froude. |
resolve_burger_spherical | function | Settle the Burger number from burger, froude or lamb. |
sesmax_core.operators¶
| Name | Kind | What it does |
|---|---|---|
ModelOp | class | A pipekit Operator wrapping any built sesmax forward model. |
sesmax_core.solvers¶
| Name | Kind | What it does |
|---|---|---|
imex_solver | function | Re-exported from integrix. |
imex_stepsize_controller | function | Re-exported from integrix. |
sesmax_core.testing¶
| Name | Kind | What it does |
|---|---|---|
Burgers1D | class | 1D Burgers equation on an Arakawa C-grid. |
Burgers1DDiagnostics | class | Diagnostics for 1D Burgers equation. |
Burgers1DParams | class | Differentiable parameters for 1D Burgers equation. |
Burgers1DState | class | State for 1D Burgers equation. |
Burgers2D | class | 2D Burgers equation on an Arakawa C-grid. |
Burgers2DAdvection | class | Advective tendency kernel -(u·∂x + v·∂y) for both velocities. |
Burgers2DDiagnostics | class | Diagnostics for 2D Burgers equation. |
Burgers2DDiffusion | class | Diffusive tendency kernel laplacian(·) for both velocities. |
Burgers2DOp | class | Serializable pipekit Operator for the term-based 2D Burgers model. |
Burgers2DParams | class | Differentiable parameters for 2D Burgers equation. |
Burgers2DState | class | State for 2D Burgers equation. |
Burgers2DTermModel | class | 2D Burgers model assembled from composable term kernels. |
Diffusion1D | class | 1D diffusion equation on an Arakawa C-grid. |
Diffusion1DDiagnostics | class | Diagnostics for 1D diffusion. |
Diffusion1DParams | class | Differentiable parameters for 1D diffusion. |
Diffusion1DState | class | State for 1D diffusion. |
Diffusion2D | class | 2D diffusion equation on an Arakawa C-grid. |
Diffusion2DDiagnostics | class | Diagnostics for 2D diffusion. |
Diffusion2DParams | class | Differentiable parameters for 2D diffusion. |
Diffusion2DState | class | State for 2D diffusion. |
HelmholtzSolver2D | class | Solve the 2D Helmholtz equation: :math:(\nabla^2 - \lambda) \phi = f. |
IncompressibleNS2D | class | 2D incompressible Navier-Stokes (vorticity-streamfunction). |
L63Diagnostics | class | On-demand diagnostics for the Lorenz '63 system. |
L63Params | class | Differentiable parameters for the Lorenz '63 system. |
L63State | class | State vector for the Lorenz '63 system. |
L96Diagnostics | class | On-demand diagnostics for the Lorenz '96 system. |
L96Params | class | Differentiable parameters for the Lorenz '96 system. |
L96State | class | State vector for the Lorenz '96 system. |
L96TParams | class | Differentiable parameters for the two-tier Lorenz '96 system. |
L96TState | class | State vector for the two-tier Lorenz '96 system. |
LaplaceSolver2D | class | Solve the 2D Laplace equation: :math:\nabla^2 \phi = 0. |
LinearConvection1D | class | 1D linear convection equation on an Arakawa C-grid. |
LinearConvection1DDiagnostics | class | Diagnostics for 1D linear convection. |
LinearConvection1DParams | class | Differentiable parameters for 1D linear convection. |
LinearConvection1DState | class | State for 1D linear convection. |
LinearConvection2D | class | 2D linear convection on an Arakawa C-grid. |
LinearConvection2DDiagnostics | class | Diagnostics for 2D linear convection. |
LinearConvection2DParams | class | Differentiable parameters for 2D linear convection. |
LinearConvection2DState | class | State for 2D linear convection. |
LinearSW1DDiagnostics | class | Diagnostics for the 1D linear shallow water model. |
LinearSW1DParams | class | Differentiable parameters for the 1D linear shallow water model. |
LinearSW1DPhysConsts | class | Frozen physical constants for the 1D linear shallow water model. |
LinearSW1DState | class | State for the 1D linear shallow water model. |
LinearSW2DDiagnostics | class | Diagnostics for the 2D linear shallow water model. |
LinearSW2DParams | class | Differentiable parameters for the 2D linear shallow water model. |
LinearSW2DPhysConsts | class | Frozen physical constants for the 2D linear shallow water model. |
LinearSW2DState | class | State for the 2D linear shallow water model. |
LinearSWM2DTermModel | class | 2D linear shallow water assembled from composable term kernels. |
LinearSWMCoriolis | class | Coriolis kernel: du/dt += f*v, dv/dt -= f*u (no height term). |
LinearSWMDiffusion | class | Lateral diffusion kernel: laplacian(u), laplacian(v). |
LinearSWMDrag | class | Linear bottom-drag kernel returning (0, u, v). |
LinearSWMGravityWave | class | Gravity-wave / pressure kernel of the linear shallow water RHS. |
LinearShallowWater1D | class | 1D linear shallow water model on an Arakawa C-grid. |
LinearShallowWater2D | class | 2D linear shallow water model on an Arakawa C-grid. |
Lorenz63 | class | Lorenz '63 three-variable chaotic system. |
Lorenz96 | class | Lorenz '96 periodic 1D chaotic system. |
Lorenz96t | class | Lorenz '96 two-tier (slow-fast) coupled system. |
NSDiagnostics | class | Diagnostics for incompressible Navier-Stokes. |
NSParams | class | Differentiable parameters for incompressible Navier-Stokes. |
NSVorticityState | class | State for the vorticity-streamfunction NS formulation. |
NonlinearConvection1D | class | 1D nonlinear convection (inviscid Burgers) on an Arakawa C-grid. |
NonlinearConvection1DDiagnostics | class | Diagnostics for 1D nonlinear convection. |
NonlinearConvection1DState | class | State for 1D nonlinear convection. |
NonlinearConvection2D | class | 2D nonlinear convection on an Arakawa C-grid. |
NonlinearConvection2DDiagnostics | class | Diagnostics for 2D nonlinear convection. |
NonlinearConvection2DState | class | State for 2D nonlinear convection. |
NonlinearSW1DDiagnostics | class | Diagnostics for the 1D nonlinear shallow water model. |
NonlinearSW1DParams | class | Differentiable parameters for the 1D nonlinear shallow water model. |
NonlinearSW1DPhysConsts | class | Frozen physical constants for the 1D nonlinear shallow water model. |
NonlinearSW1DState | class | State for the 1D nonlinear shallow water model. |
NonlinearShallowWater1D | class | 1D nonlinear shallow water model on an Arakawa C-grid. |
PoissonSolver2D | class | Solve the 2D Poisson equation: :math:\nabla^2 \phi = f. |
geostrophic_adjustment_2d | function | 2D geostrophic adjustment: step-function height perturbation. |
gravity_wave_1d | function | 1D gravity wave: Gaussian height perturbation, no rotation. |
inertial_oscillation_1d | function | 1D inertial oscillation: uniform initial u, period = 2*pi/f0. |
sesmax_core.train¶
| Name | Kind | What it does |
|---|---|---|
ModelStep | class | One model step as a carrier-only operator: (t, s) ↦ (t + Δt, step(s)). |
rollout | function | Step model n_steps times in one jax.lax.scan. |
rollout_loss | function | Mean per-snapshot loss of a rollout against a reference trajectory. |
state_mse | function | l(s, sʳᵉᶠ) = ∑_fields mean((s - sʳᵉᶠ)²) over the array leaves. |
Upstream: sesmax-ocean¶
Simple ocean models: shallow water and quasi-geostrophic.
sesmax_ocean.eval¶
| Name | Kind | What it does |
|---|---|---|
compute_eval_metrics | function | Compute every applicable reference-free metric for (model, state). |
geostrophic_imbalance | function | Dimensionless ageostrophic fraction of a shallow-water-type state. |
kinetic_energy | function | Domain-integrated kinetic energy 0.5 ∫ (u² + v²) dA. |
qg_balance_residual | function | Dimensionless PV-inversion residual for a barotropic QG model. |
rms_divergence | function | Root-mean-square horizontal divergence sqrt(<(∇·u)²>). |
total_enstrophy | function | Domain-integrated enstrophy 0.5 ∫ ζ² dA with ζ = ∂v/∂x - ∂u/∂y. |
sesmax_ocean.forcing¶
| Name | Kind | What it does |
|---|---|---|
geostrophic_currents | function | Vector preset: incompressible (u, v) current-error forcing. |
ssh_geostrophic | function | SSH geostrophic preset: a radial-Gabor frame with a wavenumber-law prior. |
sss_coastal | function | Coastal SSS preset: placeable radial atoms with a prescribed prior. |
sst_frontal | function | SST preset: a smooth Matérn (HSGP) field over the box-Laplacian eigenbasis. |
sesmax_ocean.qg¶
| Name | Kind | What it does |
|---|---|---|
BaroclinicQG | class | Multilayer quasi-geostrophic model on an Arakawa C-grid. |
BaroclinicQGDiagnostics | class | Diagnostics for the multilayer QG model. |
BaroclinicQGParams | class | Differentiable parameters for the multilayer QG model. |
BaroclinicQGPhysConsts | class | Frozen physical constants for the multilayer QG model. |
BaroclinicQGState | class | State for the multilayer quasi-geostrophic model. |
BarotropicQG | class | Barotropic quasi-geostrophic model on an Arakawa C-grid. |
BarotropicQGDiagnostics | class | Diagnostics for the barotropic QG model. |
BarotropicQGParams | class | Differentiable parameters for the barotropic QG model. |
BarotropicQGPhysConsts | class | Frozen physical constants for the barotropic QG model. |
BarotropicQGState | class | State for the barotropic quasi-geostrophic model. |
ReparamQGDiagnostics | class | Diagnostics for the reparameterized QG model. |
ReparameterizedQG | class | Reparameterized QG model: multilayer SWM + geostrophic projection. |
sesmax_ocean.resolution¶
| Name | Kind | What it does |
|---|---|---|
check_deformation_radius | function | Pre-flight: the first baroclinic deformation radius is resolved. |
check_equatorial_deformation_radius | function | Pre-flight: the equatorial deformation radius is resolved. |
check_munk_width | function | Pre-flight: the Munk (viscous) western boundary layer is resolved. |
check_stommel_width | function | Pre-flight: the Stommel (frictional) western boundary layer is resolved. |
sesmax_ocean.spherical¶
| Name | Kind | What it does |
|---|---|---|
SphericalQG | class | Barotropic quasi-geostrophic flow on a sphere. |
SphericalQGDiagnostics | class | Diagnostics for the spherical QG model. |
SphericalQGParams | class | Differentiable parameters for the spherical QG model. |
SphericalQGPhysConsts | class | Frozen physical constants for the spherical QG model. |
SphericalQGState | class | State for the spherical barotropic QG model. |
SphericalSWM | class | Shallow water on a sphere, vector-invariant form. |
SphericalSWMDiagnostics | class | Diagnostics for the spherical shallow water model. |
SphericalSWMParams | class | Differentiable parameters for the spherical shallow water model. |
SphericalSWMPhysConsts | class | Frozen physical constants for the spherical shallow water model. |
SphericalSWMState | class | State for the spherical shallow water model. |
sesmax_ocean.swm¶
| Name | Kind | What it does |
|---|---|---|
MultilayerSW2DDiagnostics | class | Diagnostics for the multilayer 2D shallow water model. |
MultilayerSW2DParams | class | Differentiable parameters for the multilayer 2D shallow water model. |
MultilayerSW2DPhysConsts | class | Frozen physical constants for the multilayer 2D shallow water model. |
MultilayerSW2DState | class | State for the multilayer 2D nonlinear shallow water model. |
MultilayerShallowWater2D | class | Multilayer 2D nonlinear shallow water model (vector-invariant form). |
NonlinearSW2DDiagnostics | class | Diagnostics for the 2D nonlinear shallow water model. |
NonlinearSW2DParams | class | Differentiable parameters for the 2D nonlinear shallow water model. |
NonlinearSW2DPhysConsts | class | Frozen physical constants for the 2D nonlinear shallow water model. |
NonlinearSW2DState | class | State for the 2D nonlinear shallow water model. |
NonlinearShallowWater2D | class | 2D nonlinear shallow water model (vector-invariant form). |
Upstream: sesmax-experiment¶
What is done with a model: runs, monitors, checkpoints.
sesmax_experiment.checkpoint¶
| Name | Kind | What it does |
|---|---|---|
SimulationCheckpointer | class | Manages periodic checkpointing during long simulations. |
sesmax_experiment.monitor¶
| Name | Kind | What it does |
|---|---|---|
BaseMonitor | class | Inert base monitor — override only the hooks you care about. |
ChunkInfo | class | Context handed to a monitor at a diagnostic-chunk boundary. |
ConservationDriftMonitor | class | MONITOR (optionally FAIL-HARD): track drift of conserved invariants. |
EnergyGrowthMonitor | class | MONITOR (optionally FAIL-HARD): flag large energy jumps between chunks. |
Monitor | class | Structural protocol for a simulation monitor. |
MonitorVerdict | class | A monitor’s response to a chunk. |
NonFiniteMonitor | class | FAIL-HARD: terminate the run if any state field holds NaN/Inf. |
SolverHealthMonitor | class | MONITOR: surface diffrax per-chunk solver statistics. |
ThroughputMonitor | class | MONITOR: report simulated seconds per wallclock second per chunk. |
WatchdogMonitor | class | Stop the run, resumably, if cumulative wallclock exceeds a ceiling. |
default_monitors | function | The runner’s default monitor set — preserves legacy behavior. |
sesmax_experiment.run¶
| Name | Kind | What it does |
|---|---|---|
AdvanceChunk | class | Integrate a model from one edge of a timeline to the next. |
ChunkFrame | class | The state after a chunk, with what is known about the chunk. |
ChunkedRun | class | What a run returns. |
Due | class | A predicate on a :class:ChunkFrame that combines with | and &. |
RunMonitors | class | Ask every monitor about a frame, and stop the run if one wants to. |
RunStopped | class | A monitor stopped the run. |
Timeline | class | When the chunks of a run end, and which ends are snapshots. |
at_snapshots | function | Due at the snapshots of the run’s timeline. |
every_chunks | function | Due after every n-th chunk. |
every_sim_seconds | function | Due after the chunk in which a multiple of interval is reached. |
every_wall_seconds | function | Due after the first chunk that ends interval seconds of wall time later. |
run_chunks | function | Run a model in chunks, looking at the state between them. |