Capability index¶
Every public name in radtrax (243 of them), each listed once at
its public home and grouped by the module that defines it, with the
first sentence of its docstring; then the public API of gaussx-sketch, gaussx-linalg, gaussx-infer, lineax, optimistix. Search this page before
writing a helper: if what you need is here, compose 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).
radtrax¶
Exception hierarchy for radtrax. (radtrax.exceptions)¶
| 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. |
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. |
The layered forward model. (radtrax.forward_model)¶
| Name | Kind | What it does |
|---|---|---|
ForwardModel |
class | State → opacity → solver → instrument: band values for one pixel. |
Target signature construction from the radiance forward model. (radtrax.retrieval.matched_filter.target)¶
| Name | Kind | What it does |
|---|---|---|
unit_absorption_target |
function | Matched-filter target t = ∂ ln y / ∂ΔX at ΔX = 0 [per mol/m²]. |
radtrax.atmosphere¶
AFGL reference atmospheres (Anderson et al., 1986). (radtrax.atmosphere.afgl)¶
| Name | Kind | What it does |
|---|---|---|
afgl_us_standard |
function | The AFGL US Standard atmosphere as layers between its levels. |
Ideal-gas constants and the total number density. (radtrax.atmosphere.gas)¶
| Name | Kind | What it does |
|---|---|---|
number_density |
function | Total number density from the ideal-gas law [molecules / cm³]. |
Viewing geometry: the Sun and sensor directions a surface and a solver see. (radtrax.atmosphere.geometry)¶
| Name | Kind | What it does |
|---|---|---|
ViewingGeometry |
class | Sun and sensor directions as seen from the surface. |
Layers from levels by hydrostatic balance. (radtrax.atmosphere.hydrostatics)¶
| Name | Kind | What it does |
|---|---|---|
layers_from_levels |
function | An :class:AtmosphericState of L layers from L + 1 levels. |
The layered atmospheric state: the input of every forward model. (radtrax.atmosphere.state)¶
| Name | Kind | What it does |
|---|---|---|
AtmosphericState |
class | Pressure, temperature, altitude, thickness and gases, per layer. |
Re-exported from other libraries¶
| Name | Kind | What it does |
|---|---|---|
AFGL_GASES |
constant | Re-exported from builtins. |
ATM_TO_PA |
constant | Re-exported from builtins. |
AVOGADRO_PER_MOL |
constant | Re-exported from builtins. |
BOLTZMANN_J_PER_K |
constant | Re-exported from builtins. |
CM2_PER_M2 |
constant | Re-exported from builtins. |
CM3_PER_M3 |
constant | Re-exported from builtins. |
DRY_AIR_MOLAR_MASS_KG_PER_MOL |
constant | Re-exported from builtins. |
STANDARD_GRAVITY_M_PER_S2 |
constant | Re-exported from builtins. |
radtrax.atmosphere.gas¶
| Name | Kind | What it does |
|---|---|---|
ATM_TO_PA |
constant | Re-exported from builtins. |
AVOGADRO_PER_MOL |
constant | Re-exported from builtins. |
BOLTZMANN_J_PER_K |
constant | Re-exported from builtins. |
CM2_PER_M2 |
constant | Re-exported from builtins. |
CM3_PER_M3 |
constant | Re-exported from builtins. |
DRY_AIR_MOLAR_MASS_KG_PER_MOL |
constant | Re-exported from builtins. |
STANDARD_GRAVITY_M_PER_S2 |
constant | Re-exported from builtins. |
radtrax.geo¶
ECOSTRESS: band set, SRF, instrument, noise, radiance and geometry. (radtrax.geo.ecostress)¶
| Name | Kind | What it does |
|---|---|---|
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 L1B on radtrax's terms: instrument and per-pixel geometry. (radtrax.geo.emit)¶
| Name | Kind | What it does |
|---|---|---|
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 8/9 OLI and TIRS: SRF, instrument, noise, radiance and geometry. (radtrax.geo.landsat)¶
| Name | Kind | What it does |
|---|---|---|
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. |
GeoArray operators for the matched filter (behind the [geo] extra). (radtrax.geo.matched_filter)¶
| 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. |
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. |
LinearTargetFromObs |
class | Tangent-linear target signature (B,) from an observation model. |
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,). |
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. |
The multi-pass operators on GeoArrays (behind the [geo] extra). (radtrax.geo.mbmp)¶
| Name | Kind | What it does |
|---|---|---|
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₁₁). |
SBMP |
class | Sentinel-2 single-band multi-pass signal, −ln(c_s R₁₂ / R′₁₂). |
Sentinel-2 L1C on radtrax's terms: instrument, geometry and radiance. (radtrax.geo.sentinel2)¶
| Name | Kind | What it does |
|---|---|---|
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. |
Sentinel-2 spectral response functions from georeader's bundled table. (radtrax.geo.srf)¶
| Name | Kind | What it does |
|---|---|---|
sentinel2_band_responses |
function | Sentinel-2 band 11 and 12 responses, interpolated onto a wavelength grid. |
sentinel2_srf |
function | Build a Sentinel-2 SRF from the agency table georeader bundles. |
Re-exported from other libraries¶
| Name | Kind | What it does |
|---|---|---|
ECOSTRESS_3BAND |
constant | Re-exported from builtins. |
ECOSTRESS_3BAND_PERIOD |
constant | Re-exported from builtins. |
ECOSTRESS_BANDS |
constant | Re-exported from builtins. |
ECOSTRESS_BAND_CENTRES_UM |
constant | Re-exported from builtins. |
ECOSTRESS_NETD_K |
constant | Re-exported from builtins. |
LANDSAT_CALIBRATION_K |
constant | Re-exported from builtins. |
LANDSAT_NETD_K |
constant | Re-exported from builtins. |
radtrax.instrument¶
The NoiseModel protocol: the measurement-noise covariance S_ε. (radtrax.instrument.noise)¶
| Name | Kind | What it does |
|---|---|---|
DiagonalNoise |
class | Independent noise with a fixed standard deviation per band, S_ε = diag(σ²). |
NEdTNoise |
class | Thermal-band noise from a noise-equivalent temperature difference. |
NoiseModel |
class | Protocol: the measurement-noise covariance S_ε(y) and draws from it. |
SNRNoise |
class | Signal-dependent noise from a signal-to-noise ratio and a floor. |
JAX point-spread + ground-sampling instrument operators. (radtrax.instrument.psf)¶
| Name | Kind | What it does |
|---|---|---|
GroundSamplingDistance |
class | Block-mean down-sampling operator for a fixed integer factor. |
PointSpreadFunction |
class | 2D PSF blur applied independently per spectral channel. |
The Instrument protocol and a band instrument with a spectral shift. (radtrax.instrument.spectral)¶
| Name | Kind | What it does |
|---|---|---|
BandInstrument |
class | Band integration with a spectral shift, y_b = Σ_g f_bg L(ν_g + δ). |
GaussianInstrument |
class | Gaussian bands built in JAX, shifted analytically in cm⁻¹ or in nm. |
Instrument |
class | Protocol: radiance on a wavenumber grid in, one value per band out. |
Spectral Response Function — band integration of hyperspectral radiance. (radtrax.instrument.srf)¶
| Name | Kind | What it does |
|---|---|---|
SpectralResponseFunction |
class | Band-integration operator for a multispectral / hyperspectral instrument. |
radtrax.instrument.srf¶
Spectral Response Function — band integration of hyperspectral radiance. (radtrax.instrument.srf)¶
| Name | Kind | What it does |
|---|---|---|
check_srf_lut_coverage |
function | Warn when SRF bands respond outside the LUT's wavelength coverage. |
Re-exported from other libraries¶
| Name | Kind | What it does |
|---|---|---|
FWHM_PER_SIGMA |
constant | Re-exported from builtins. |
radtrax.optics¶
| Name | Kind | What it does |
|---|---|---|
OpticalProperties |
class | Per-layer optical depth on a wavenumber grid. |
radtrax.radiometry¶
| Name | Kind | What it does |
|---|---|---|
band_brightness_temperature |
function | Band brightness temperature: the \(T_b\) with \(\bar B_b(T_b) = y_b\) [K]. |
band_planck_radiance |
function | Band-integrated Planck radiance \(\bar B_b(T_b) = \sum_g A_{bg} B(\tilde\nu_g, T_b)\). |
radtrax.retrieval.absorption¶
The profile fit of the ratio spectrum and its score, D_norm. (radtrax.retrieval.absorption.fit)¶
| Name | Kind | What it does |
|---|---|---|
TransmittanceFit |
class | The profile fit of R ≈ P(λ; c) E(λ; ΔX). |
d_norm |
function | Xiang et al.'s eq. 11: the fit's misfit relative to the ratio's spread. |
fit_transmittance |
function | Fit a Legendre continuum times the transmittance, profiling over ΔX. |
One-to-one spectral pairs and the ratio of their mean radiances. (radtrax.retrieval.absorption.pairing)¶
| Name | Kind | What it does |
|---|---|---|
pair_pixels |
function | One-to-one pairs of in-pixels and out-pixels, the best-matched kept. |
ratio_spectrum |
function | The ratio of the pairs' mean in-pixel and mean out-pixel radiances. |
The gas's transmittance: a scene's band transmittance on a grid of columns. (radtrax.retrieval.absorption.transmittance)¶
| Name | Kind | What it does |
|---|---|---|
transmittance_table |
function | The band transmittance E_b(ΔX) of a column enhancement, on a grid. |
A gas's absorption window: its fitting bands, its pairing bands and its background cut. (radtrax.retrieval.absorption.window)¶
| Name | Kind | What it does |
|---|---|---|
AbsorptionWindow |
class | A gas's fitting bands, the bands kept out of pairing, and the background cut. |
radtrax.retrieval.band_table¶
| Name | Kind | What it does |
|---|---|---|
BandTable |
class | A band observable g(m[, h], ΔΩ), monotone in ΔΩ, and its inverse. |
band_table_from_model |
function | A :class:BandTable from the layered forward model. |
radtrax.retrieval.matched_filter¶
Noise of the matched-filter score under the global, cluster and local backgrounds. (radtrax._src.retrieval.score_noise)¶
| Name | Kind | What it does |
|---|---|---|
adaptive_score_std |
function | Score noise against each pixel's local diagonal background. |
cluster_score_std |
function | Score noise of each pixel's cluster. |
score_std |
function | Standard deviation of the matched-filter score under the background. |
Sensitivity of the matched-filter score: the share of an enhancement it recovers. (radtrax._src.retrieval.score_sensitivity)¶
| Name | Kind | What it does |
|---|---|---|
cluster_score_sensitivity |
function | score_sensitivity with each pixel's own cluster covariance. |
response_sensitivity |
function | Sensitivity for any radiance response per unit enhancement. |
score_sensitivity |
function | Matched-filter score recovered per unit of true enhancement. |
Background mean and covariance estimators for the matched filter. (radtrax.retrieval.matched_filter.background)¶
| Name | Kind | What it does |
|---|---|---|
estimate_cov_empirical |
function | Empirical covariance via :class:sklearn.covariance.EmpiricalCovariance. |
estimate_cov_lowrank |
function | Low-rank + Tikhonov covariance: Σ = λI + V D Vᵀ. |
estimate_cov_shrunk |
function | Shrinkage covariance estimator. |
estimate_mean |
function | Estimate the per-band background mean μ from a scene. |
shrink_covariance |
function | Shrink a 1/n empirical covariance toward a scaled identity. |
Cluster-based and spatially-adaptive background estimators. (radtrax.retrieval.matched_filter.cluster)¶
| Name | Kind | What it does |
|---|---|---|
ClusterBackground |
class | Per-cluster background model. |
adaptive_window_background |
function | Per-pixel local mean and per-band variance over a square window. |
apply_adaptive_mf |
function | Matched filter against a local diagonal-covariance background. |
apply_cluster_mf |
function | Matched-filter scores with each pixel's own cluster background. |
gmm_cluster_background |
function | Fit a Gaussian mixture and build per-cluster background models. |
Matched-filter kernel — one implementation for any covariance structure. (radtrax.retrieval.matched_filter.core)¶
| Name | Kind | What it does |
|---|---|---|
apply_image |
function | Matched-filter score map for a hyperspectral cube. |
apply_pixel |
function | Matched-filter score for a single pixel spectrum. |
detection_threshold |
function | Gaussian detection threshold on the MF score for a given FAR. |
matched_filter_snr |
function | Theoretical SNR of the matched filter at a given plume amplitude. |
validate_mf_inputs |
function | Public fail-fast check for (Σ, t) compatibility. |
xarray glue: apply the matched filter to DataArrays and multi-file stores. (radtrax.retrieval.matched_filter.io)¶
| Name | Kind | What it does |
|---|---|---|
apply_image_xarray |
function | Apply the matched filter to an xarray DataArray. |
open_multi_scene |
function | Yield (n_pixels, n_bands) batches from a sequence of scene files. |
Streaming background estimation via Welford's algorithm. (radtrax.retrieval.matched_filter.streaming)¶
| Name | Kind | What it does |
|---|---|---|
WelfordAccumulator |
class | Online mean, covariance and fourth moment for (n_samples, n_bands) streams. |
streaming_background |
function | Streamed (μ, Σ) from an iterable of batches. |
Target signature construction from the radiance forward model. (radtrax.retrieval.matched_filter.target)¶
| Name | Kind | What it does |
|---|---|---|
linear_target_from_obs |
function | Matched-filter target via the tangent-linear of the forward operator. |
nonlinear_target_from_obs |
function | Matched-filter target via a finite-amplitude difference. |
radtrax.retrieval.matched_filter.background¶
| Name | Kind | What it does |
|---|---|---|
lowrank_factors |
function | Jittable randomised-SVD core: (V, d) of centred samples Xc. |
radtrax.retrieval.mbmp¶
| Name | Kind | What it does |
|---|---|---|
background_mask |
function | Background pixels: outside a first-pass detection grown by a Gaussian. |
mbmp_log_signal |
function | MBMP log signal ln(R₁₁/R₁₂) − ln(R′₁₁/R′₁₂), no scale factors. |
mbmp_signal |
function | Multi-band multi-pass signal −ln((1 + δ) / (1 + δ′)), δ = c R₁₂ / R₁₁ − 1. |
mbsp_signal |
function | Multi-band single-pass signal −ln(c R₁₂ / R₁₁), R₁₁ ≈ c R₁₂ on mask. |
sbmp_signal |
function | Single-band multi-pass signal −ln(c_s R₁₂ / R′₁₂), R′₁₂ ≈ c_s R₁₂ on mask. |
scale_factor |
function | The least-squares c with y ≈ c x through the origin, Σ x y / Σ x². |
swir_contrast |
function | Single-pass normalised SWIR contrast (R₁₁ − R₁₂) / (R₁₁ + R₁₂ + ε). |
radtrax.retrieval.var3d¶
Background-error covariance B constructors for 3D-Var. (radtrax.retrieval.var3d.background)¶
| Name | Kind | What it does |
|---|---|---|
build_diagonal_background |
function | Build B = diag(σ²) as a :class:lineax.DiagonalLinearOperator. |
build_kronecker_background |
function | Build B = σ² · (ρ_y ⊗ ρ_x) using :class:gaussx_linalg.Kronecker. |
build_lowrank_background |
function | Estimate B from a stack of state samples and wrap as λI + U D Uᵀ. |
Control-variable transforms for variational data assimilation. (radtrax.retrieval.var3d.control)¶
| Name | Kind | What it does |
|---|---|---|
IdentityTransform |
class | Pass-through transform. |
WhiteningTransform |
class | δx = U ξ where B = U Uᵀ. |
3D-Var cost functions and gradients. (radtrax.retrieval.var3d.cost)¶
| Name | Kind | What it does |
|---|---|---|
Cost |
class | Bundle of (value, gradient, Hessian-vector product) for an optimiser. |
build_cost_x |
function | Build J(δx) = ½ δxᵀ B⁻¹ δx + ½ (y − H(x_b + δx))ᵀ R⁻¹ (y − H(x_b + δx)). |
build_cost_xi |
function | Build J(ξ) = ½ ξᵀ ξ + ½ (y − H(x_b + U ξ))ᵀ R⁻¹ (…). |
finite_difference_grad |
function | Central finite differences — used only by tests to validate jax.grad. |
Posterior diagnostics for a converged 3D-Var solution. (radtrax.retrieval.var3d.diagnostics)¶
| Name | Kind | What it does |
|---|---|---|
averaging_kernel |
function | Return the averaging kernel A = I − Ŝ B⁻¹ of a cost's Hessian, lazily. |
degrees_of_freedom_for_signal |
function | Estimate DFS = tr(I − Ŝ B⁻¹) (Rodgers 2000, §2.5) from a JAX key. |
gauss_newton_posterior |
function | Return the Laplace posterior at a 3D-Var minimum, by Gauss–Newton. |
posterior_covariance_proxy |
function | Return a callable v → Ŝ v (model-space posterior covariance) via CG. |
reduced_chi_squared |
function | χ²_red = (y - H(x̂))ᵀ R⁻¹ (y - H(x̂)) / dim(y). |
JAX observation operator for the methane VMR retrieval. (radtrax.retrieval.var3d.obs_operator)¶
| Name | Kind | What it does |
|---|---|---|
RadianceObservationModel |
class | Bundle of precomputed pieces that defines the forward operator H. |
Optimisers for 3D-Var: primal LBFGS, Gauss-Newton, and a dual PSAS path. (radtrax.retrieval.var3d.solve)¶
| Name | Kind | What it does |
|---|---|---|
SolveResult |
class | Common result type for all three solvers. |
run_dual_psas |
function | Solve the dual 3D-Var system in observation space. |
run_gauss_newton |
function | Run :class:optimistix.GaussNewton for min ½ ‖r(y)‖². |
run_lbfgs |
function | Minimise cost.value via :class:optimistix.LBFGS. |
radtrax.slab¶
Observation-geometry and instrument configuration for radtran. (radtrax.slab.config)¶
| Name | Kind | What it does |
|---|---|---|
InstrumentSpec |
class | Multispectral instrument description. |
ObservationGeometry |
class | Viewing geometry for a single pixel. |
number_density_cm3 |
function | Ideal-gas total number density [molecules / cm³]. |
Beer-Lambert forward models for atmospheric retrieval. (radtrax.slab.forward)¶
| Name | Kind | What it does |
|---|---|---|
ForwardResult |
class | Bundle of (radiance, Jacobian, transmittance) returned by the forward models. |
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. |
Normalised-brightness LUT for fast per-pixel plume injection. (radtrax.slab.nb_lut)¶
| Name | Kind | What it does |
|---|---|---|
NBLookup |
class | Pre-computed normalised-brightness table, indexed by band and ΔX. |
build_nb_lut |
function | Pre-tabulate band-integrated nB over a column-enhancement grid. |
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. |
Re-exported from other libraries¶
| Name | Kind | What it does |
|---|---|---|
ATM_TO_PA |
constant | Re-exported from builtins. |
BOLTZMANN_J_PER_K |
constant | Re-exported from builtins. |
CM3_PER_M3 |
constant | Re-exported from builtins. |
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.spectroscopy¶
Per-layer optical depth: the OpacityProvider protocol and table opacity. (radtrax.spectroscopy.opacity)¶
| 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. |
TableOpacity |
class | Optical depth from per-gas cross-section tables. |
The solar irradiance at the top of the atmosphere, on the model grid. (radtrax.spectroscopy.solar)¶
| Name | Kind | What it does |
|---|---|---|
fetch_solar_spectrum |
function | Download a solar spectrum into the cache, once, and check its SHA-256. |
solar_irradiance |
function | Solar irradiance \(E_0(\nu)\) at 1 AU, interpolated onto a wavenumber grid. |
The cross-section tables of v0: where they live and how to load them. (radtrax.spectroscopy.table_cache)¶
| Name | Kind | What it does |
|---|---|---|
TableGrid |
class | The (ν, p, T) grid a cross-section table is built on. |
V0_GRID |
constant | TableGrid(name='v0', nu_min_cm=4000.0, nu_max_cm=6500.0, ... |
load_opacity |
function | A :class:~radtrax.spectroscopy.TableOpacity from cached tables. |
load_table |
function | Open gas's cached table (lazily, with xarray). |
table_cache_dir |
function | Where tables are cached. |
LUT interpolation + Beer-Lambert transmittance for one-shot forward models. (radtrax.spectroscopy.tables)¶
| Name | Kind | What it does |
|---|---|---|
absorption_coefficient |
function | α(ν) = σ(ν) · N_gas [1/cm]. |
beers_law_from_lut |
function | End-to-end: σ-from-LUT → α → τ(ν) for a single homogeneous layer. |
interpolate_cross_section |
function | Return σ(ν) at a given (T, p) via bilinear LUT interpolation. |
plume_ratio_spectrum |
function | Differential-Beer-Lambert ratio τ_total(ν) / τ_bg(ν). |
transmittance |
function | τ(ν) = exp(-α · L_vert · AMF). |
radtrax.spectroscopy.hitran¶
Build v0's cross-section tables into the cache (the [hitran] extra). (radtrax.spectroscopy.hitran.build)¶
| Name | Kind | What it does |
|---|---|---|
build_table |
function | Build gas's table on grid and write it to the table cache. |
Gas + grid configuration for HAPI absorption-cross-section look-up tables. (radtrax.spectroscopy.hitran.config)¶
| Name | Kind | What it does |
|---|---|---|
GasConfig |
class | Configuration for a single HITRAN gas species. |
LUTGridConfig |
class | Grid configuration shared across gases for a single LUT build. |
Single-gas absorption-cross-section LUT builder. (radtrax.spectroscopy.hitran.generator)¶
| Name | Kind | What it does |
|---|---|---|
build_lut_dataset |
function | Wrap the raw LUT arrays in a CF-conformant xarray.Dataset. |
compute_absorption_lut |
function | Evaluate σ(ν, T, P) on the full LUT grid. |
default_cache_dir |
function | Return the HITRAN line-data cache directory. |
fetch_hitran_data |
function | Fetch HITRAN line parameters for gas_config into cache_dir. |
generate_single_gas_lut |
function | End-to-end single-gas pipeline: fetch → compute → wrap → (optionally) save. |
save_lut |
function | Persist ds to <output_dir>/<filename> (zlib, σ as float32). |
Multi-gas LUT orchestration — separate-per-gas and combined builds. (radtrax.spectroscopy.hitran.multi)¶
| Name | Kind | What it does |
|---|---|---|
create_combined_lut |
function | Build a single NetCDF with one cross-section variable per gas. |
create_multi_gas_luts |
function | Build one separate <gas>_absorption_lut.nc per gas. |
Re-exported from other libraries¶
| Name | Kind | What it does |
|---|---|---|
ATMOSPHERIC_GASES |
constant | Re-exported from builtins. |
DEFAULT_VMR_NOMINAL |
constant | Re-exported from builtins. |
HAPI_CACHE_ENV |
constant | Re-exported from builtins. |
radtrax.spectroscopy.hitran.build¶
Build v0's cross-section tables into the cache (the [hitran] extra). (radtrax.spectroscopy.hitran.build)¶
| Name | Kind | What it does |
|---|---|---|
fetch_lines |
function | Download gas's HITRAN lines over the grid plus a margin ([hitran]). |
gas_config_for |
function | gas's HITRAN configuration over grid's wavenumber range. |
main |
function | python -m radtrax.spectroscopy.hitran GAS [GAS ...] [--grid v0]. |
Re-exported from other libraries¶
| Name | Kind | What it does |
|---|---|---|
LINE_MARGIN_CM |
constant | Re-exported from builtins. |
radtrax.spectroscopy.hitran.config¶
| Name | Kind | What it does |
|---|---|---|
annotations |
constant | Re-exported from __future__. |
dataclass |
function | Re-exported from dataclasses. |
field |
function | Re-exported from dataclasses. |
radtrax.spectroscopy.hitran.generator¶
| Name | Kind | What it does |
|---|---|---|
HAPI_CACHE_ENV |
constant | Re-exported from builtins. |
radtrax.spectroscopy.hitran.multi¶
| Name | Kind | What it does |
|---|---|---|
Path |
class | Re-exported from pathlib. |
logger |
constant | Re-exported from logging. |
radtrax.spectroscopy.solar¶
The solar irradiance at the top of the atmosphere, on the model grid. (radtrax.spectroscopy.solar)¶
| Name | Kind | What it does |
|---|---|---|
SolarSource |
class | A published solar reference spectrum that radtrax can download. |
solar_spectrum_path |
function | The cache file of a solar spectrum (it may not exist yet). |
Re-exported from other libraries¶
| Name | Kind | What it does |
|---|---|---|
SOLAR_SOURCES |
constant | Re-exported from builtins. |
radtrax.spectroscopy.synthetic¶
Synthetic methane spectra for docs, notebooks and tests, without HITRAN. (radtrax.spectroscopy.synthetic)¶
| Name | Kind | What it does |
|---|---|---|
band_mean |
function | ⟨x⟩_b = ∫ x f dλ / ∫ f dλ on a shared uniform grid. |
methane_cross_section |
function | radtrax · 1 and · 2's synthetic CH₄ cross-section σ(λ) on :data:WL_NM [m²/kg]. |
synthetic_table |
function | radtrax · 3's σ(ν; T, p) [cm²/molecule] on (wavenumber, temperature, pressure [atm]). |
Re-exported from other libraries¶
| Name | Kind | What it does |
|---|---|---|
CH4_MASS_U |
constant | Re-exported from builtins. |
NU_CM |
constant | Re-exported from numpy. |
P_ATM |
constant | Re-exported from numpy. |
T_K |
constant | Re-exported from numpy. |
WL_NM |
constant | Re-exported from numpy. |
radtrax.spectroscopy.table_cache¶
The cross-section tables of v0: where they live and how to load them. (radtrax.spectroscopy.table_cache)¶
| Name | Kind | What it does |
|---|---|---|
build_command |
function | The shell command that builds gases on grid. |
table_path |
function | The cache file of gas on grid: <gas>_<grid key>_<HITRAN>_v<table>.nc. |
Re-exported from other libraries¶
| Name | Kind | What it does |
|---|---|---|
GRIDS |
constant | Re-exported from builtins. |
HITRAN_VERSION |
constant | Re-exported from builtins. |
TABLE_DIR_ENV |
constant | Re-exported from builtins. |
TABLE_VERSION |
constant | Re-exported from builtins. |
radtrax.spectroscopy.tables¶
| Name | Kind | What it does |
|---|---|---|
ATM_TO_PA |
constant | Re-exported from builtins. |
BOLTZMANN_J_PER_K |
constant | Re-exported from builtins. |
CM3_PER_M3 |
constant | Re-exported from builtins. |
radtrax.surface¶
The Surface protocol and the Lambertian surface. (radtrax.surface.lambertian)¶
| Name | Kind | What it does |
|---|---|---|
Lambertian |
class | A Lambertian surface: R = A in every direction. |
Surface |
class | Protocol: the surface's bidirectional reflectance factor. |
A spectral albedo: a low-order Legendre series in wavenumber. (radtrax.surface.polynomial)¶
| Name | Kind | What it does |
|---|---|---|
PolynomialAlbedo |
class | A Lambertian surface whose albedo is a Legendre series in wavenumber. |
The Ross–Li kernel BRDF: RossThick and LiSparse-Reciprocal. (radtrax.surface.ross_li)¶
| Name | Kind | What it does |
|---|---|---|
RossLi |
class | The Ross–Li kernel BRDF: R = f_iso + f_vol K_vol + f_geo K_geo. |
Listed at gaussx-sketch 0.10.0, gaussx-linalg 0.10.0, gaussx-infer 0.10.0, lineax 0.1.1, optimistix 0.1.0.
Upstream: gaussx-sketch¶
Random sketches and randomized factorisations for JAX. radtrax uses its randomized SVD for low-rank matched-filter and retrieval covariances.
gaussx_sketch¶
| Name | Kind | What it does |
|---|---|---|
AbstractSketch |
class | Re-exported from gaussx_sketch. |
CUR |
class | Re-exported from gaussx_sketch. |
ColumnID |
class | Re-exported from gaussx_sketch. |
GaussianSketch |
class | Re-exported from gaussx_sketch. |
OrthonormalSketch |
class | Re-exported from gaussx_sketch. |
RowSamplingSketch |
class | Re-exported from gaussx_sketch. |
SRHTSketch |
class | Re-exported from gaussx_sketch. |
SparseSignSketch |
class | Re-exported from gaussx_sketch. |
column_id |
function | Re-exported from gaussx_sketch. |
cur |
function | Re-exported from gaussx_sketch. |
hadamard_transform |
function | Re-exported from gaussx_sketch. |
nystrom_factors |
function | Re-exported from gaussx_sketch. |
qb |
function | Re-exported from gaussx_sketch. |
randomized_eigh |
function | Re-exported from gaussx_sketch. |
randomized_svd |
function | Re-exported from gaussx_sketch. |
range_finder |
function | Re-exported from gaussx_sketch. |
rp_cholesky |
function | Re-exported from gaussx_sketch. |
Upstream: gaussx-linalg¶
Structured linear algebra for JAX: low-rank updates and Woodbury solves, Kronecker and block-tridiagonal operators, structured Cholesky. radtrax uses it for matched-filter and retrieval covariances.
gaussx_linalg¶
| Name | Kind | What it does |
|---|---|---|
AbstractLogdetStrategy |
class | Re-exported from gaussx_linalg. |
AbstractPreconditioner |
class | Re-exported from gaussx_linalg. |
AbstractSmoother |
class | Re-exported from gaussx_linalg. |
AbstractSolveStrategy |
class | Re-exported from gaussx_linalg. |
AbstractSolverStrategy |
class | Re-exported from gaussx_linalg. |
AutoSolver |
class | Re-exported from gaussx_linalg. |
BBMMSolver |
class | Re-exported from gaussx_linalg. |
BlockDiag |
class | Re-exported from gaussx_linalg. |
BlockTriDiag |
class | Re-exported from gaussx_linalg. |
CGSolver |
class | Re-exported from gaussx_linalg. |
CapacitanceSolver |
class | Re-exported from gaussx_linalg. |
ComposedSolver |
class | Re-exported from gaussx_linalg. |
DenseFallbackWarning |
class | Re-exported from gaussx_linalg. |
DenseLogdet |
class | Re-exported from gaussx_linalg. |
DenseSolver |
class | Re-exported from gaussx_linalg. |
DiagonalSplit |
class | Re-exported from gaussx_linalg. |
DiagonalizedOperator |
class | Re-exported from gaussx_linalg. |
EigenDecomposition |
class | Re-exported from gaussx_linalg. |
FITCPreconditioner |
class | Re-exported from gaussx_linalg. |
GaussxDeprecationWarning |
class | Re-exported from gaussx_linalg. |
IndefiniteSLQLogdet |
class | Re-exported from gaussx_linalg. |
InterpolatedOperator |
class | Re-exported from gaussx_linalg. |
JacobiPreconditioner |
class | Re-exported from gaussx_linalg. |
KeyedSolver |
class | Re-exported from gaussx_linalg. |
Kronecker |
class | Re-exported from gaussx_linalg. |
KroneckerSum |
class | Re-exported from gaussx_linalg. |
KroneckerSumSqrt |
class | Re-exported from gaussx_linalg. |
LSMRSolver |
class | Re-exported from gaussx_linalg. |
LineaxSolver |
class | Re-exported from gaussx_linalg. |
LowRankUpdate |
class | Re-exported from gaussx_linalg. |
LowerBlockTriDiag |
class | Re-exported from gaussx_linalg. |
MINRESSolver |
class | Re-exported from gaussx_linalg. |
MaskedOperator |
class | Re-exported from gaussx_linalg. |
MultigridLevel |
class | Re-exported from gaussx_linalg. |
MultigridPreconditioner |
class | Re-exported from gaussx_linalg. |
MultigridSolver |
class | Re-exported from gaussx_linalg. |
NystromLogdet |
class | Re-exported from gaussx_linalg. |
NystromPreconditioner |
class | Re-exported from gaussx_linalg. |
OperatorPreconditioner |
class | Re-exported from gaussx_linalg. |
PartialCholeskyPreconditioner |
class | Re-exported from gaussx_linalg. |
PreconditionedCGSolver |
class | Re-exported from gaussx_linalg. |
RootDecomposition |
class | Re-exported from gaussx_linalg. |
SLQLogdet |
class | Re-exported from gaussx_linalg. |
SketchAndPrecondLSMR |
class | Re-exported from gaussx_linalg. |
SolveInfo |
class | Re-exported from gaussx_linalg. |
SparseCholeskyFactor |
class | Re-exported from gaussx_linalg. |
SparseCholeskySolver |
class | Re-exported from gaussx_linalg. |
SparseOperator |
class | Re-exported from gaussx_linalg. |
SparsityPattern |
class | Re-exported from gaussx_linalg. |
SpectralFunction |
class | Re-exported from gaussx_linalg. |
SumOfKroneckers |
class | Re-exported from gaussx_linalg. |
SumOfKroneckersSqrt |
class | Re-exported from gaussx_linalg. |
SymbolicCholesky |
class | Re-exported from gaussx_linalg. |
Toeplitz |
class | Re-exported from gaussx_linalg. |
ToeplitzCholesky |
class | Re-exported from gaussx_linalg. |
UDLDecomposition |
class | Re-exported from gaussx_linalg. |
UpperBlockTriDiag |
class | Re-exported from gaussx_linalg. |
WeightedJacobi |
class | Re-exported from gaussx_linalg. |
add_jitter |
function | Re-exported from gaussx_linalg. |
ar1_precision |
function | Re-exported from gaussx_linalg. |
as_diagonalized |
function | Re-exported from gaussx_linalg. |
as_linear_operator |
function | Re-exported from gaussx_linalg. |
besag_structure |
function | Re-exported from gaussx_linalg. |
block_diagonal_tag |
constant | Re-exported from gaussx_linalg. |
block_tridiagonal_tag |
constant | Re-exported from gaussx_linalg. |
bym2_precision |
function | Re-exported from gaussx_linalg. |
cholesky |
function | Re-exported from gaussx_linalg. |
cholesky_logdet |
function | Re-exported from gaussx_linalg. |
circulant |
function | Re-exported from gaussx_linalg. |
circulant_from_symbol |
function | Re-exported from gaussx_linalg. |
compose_solver |
function | Re-exported from gaussx_linalg. |
conditional_variance |
function | Re-exported from gaussx_linalg. |
cov_transform |
function | Re-exported from gaussx_linalg. |
create_grid |
function | Re-exported from gaussx_linalg. |
diag |
function | Re-exported from gaussx_linalg. |
diag_conditional_variance |
function | Re-exported from gaussx_linalg. |
diag_inv |
function | Re-exported from gaussx_linalg. |
diag_inv_structured |
function | Re-exported from gaussx_linalg. |
diagonal_tag |
constant | Re-exported from lineax. |
discrete_lyapunov_solve |
function | Re-exported from gaussx_linalg. |
eig |
function | Re-exported from gaussx_linalg. |
eigh_generalized |
function | Re-exported from gaussx_linalg. |
eigvals |
function | Re-exported from gaussx_linalg. |
estimate_spectral_bounds |
function | Re-exported from gaussx_linalg. |
fem_matrices |
function | Re-exported from gaussx_linalg. |
fem_projector |
function | Re-exported from gaussx_linalg. |
frobenius_norm |
function | Re-exported from gaussx_linalg. |
galerkin_levels |
function | Re-exported from gaussx_linalg. |
gauss_newton_operator |
function | Re-exported from gaussx_linalg. |
gauss_newton_precision |
function | Re-exported from gaussx_linalg. |
generalized_variance_scale |
function | Re-exported from gaussx_linalg. |
ggn_diagonal |
function | Re-exported from gaussx_linalg. |
grid_coupling_indices |
function | Re-exported from gaussx_linalg. |
grid_data |
function | Re-exported from gaussx_linalg. |
hutchinson_hessian_diag |
function | Re-exported from gaussx_linalg. |
iid_precision |
function | Re-exported from gaussx_linalg. |
interpolation_operator |
function | Re-exported from gaussx_linalg. |
inv |
function | Re-exported from gaussx_linalg. |
inv_quad_logdet |
function | Re-exported from gaussx_linalg. |
is_block_diagonal |
function | Re-exported from gaussx_linalg. |
is_block_tridiagonal |
function | Re-exported from gaussx_linalg. |
is_diagonal |
function | Re-exported from lineax. |
is_eigen_reducible |
function | Re-exported from gaussx_linalg. |
is_kronecker |
function | Re-exported from gaussx_linalg. |
is_kronecker_sum |
function | Re-exported from gaussx_linalg. |
is_low_rank |
function | Re-exported from gaussx_linalg. |
is_lower_triangular |
function | Re-exported from lineax. |
is_negative_semidefinite |
function | Re-exported from lineax. |
is_positive_semidefinite |
function | Re-exported from lineax. |
is_symmetric |
function | Re-exported from lineax. |
is_upper_triangular |
function | Re-exported from lineax. |
kronecker_sum_sample |
function | Re-exported from gaussx_linalg. |
kronecker_sum_solve |
function | Re-exported from gaussx_linalg. |
kronecker_sum_tag |
constant | Re-exported from gaussx_linalg. |
kronecker_tag |
constant | Re-exported from gaussx_linalg. |
lift_known_values |
function | Re-exported from gaussx_linalg. |
linear_solve |
function | Re-exported from gaussx_linalg. |
linear_solve_with_info |
function | Re-exported from gaussx_linalg. |
logdet |
function | Re-exported from gaussx_linalg. |
low_rank_plus_diag |
function | Re-exported from gaussx_linalg. |
low_rank_plus_identity |
function | Re-exported from gaussx_linalg. |
low_rank_tag |
constant | Re-exported from gaussx_linalg. |
lower_triangular_tag |
constant | Re-exported from lineax. |
masked_obs_covariance |
function | Re-exported from gaussx_linalg. |
matern_spde_params |
function | Re-exported from gaussx_linalg. |
negative_semidefinite_tag |
constant | Re-exported from lineax. |
positive_semidefinite_tag |
constant | Re-exported from lineax. |
product_operator |
function | Re-exported from gaussx_linalg. |
project |
function | Re-exported from gaussx_linalg. |
pseudo_logdet |
function | Re-exported from gaussx_linalg. |
quadratic_form |
function | Re-exported from gaussx_linalg. |
randomized_nystrom |
function | Re-exported from gaussx_linalg. |
root_decomposition |
function | Re-exported from gaussx_linalg. |
root_inv_decomposition |
function | Re-exported from gaussx_linalg. |
row_kron |
function | Re-exported from gaussx_linalg. |
rw1_structure |
function | Re-exported from gaussx_linalg. |
rw2_structure |
function | Re-exported from gaussx_linalg. |
safe_cholesky |
function | Re-exported from gaussx_linalg. |
sandwich |
function | Re-exported from gaussx_linalg. |
scaled_operator |
function | Re-exported from gaussx_linalg. |
schur_complement |
function | Re-exported from gaussx_linalg. |
selected_inverse |
function | Re-exported from gaussx_linalg. |
sketch_and_solve |
function | Re-exported from gaussx_linalg. |
solve |
function | Re-exported from gaussx_linalg. |
solve_columns |
function | Re-exported from gaussx_linalg. |
solve_matrix |
function | Re-exported from gaussx_linalg. |
solve_rows |
function | Re-exported from gaussx_linalg. |
solve_with_known_values |
function | Re-exported from gaussx_linalg. |
sparse_cholesky |
function | Re-exported from gaussx_linalg. |
spde_precision |
function | Re-exported from gaussx_linalg. |
spde_precision_grid |
function | Re-exported from gaussx_linalg. |
split_diagonal |
function | Re-exported from gaussx_linalg. |
sqrt |
function | Re-exported from gaussx_linalg. |
sqrt_inv_matmul |
function | Re-exported from gaussx_linalg. |
sqrt_matmul |
function | Re-exported from gaussx_linalg. |
stable_squared_distances |
function | Re-exported from gaussx_linalg. |
submatrix |
function | Re-exported from gaussx_linalg. |
sum_of_kroneckers_sample |
function | Re-exported from gaussx_linalg. |
sum_operator |
function | Re-exported from gaussx_linalg. |
svd |
function | Re-exported from gaussx_linalg. |
svd_low_rank_plus_diag |
function | Re-exported from gaussx_linalg. |
symbolic_cholesky |
function | Re-exported from gaussx_linalg. |
symmetric_tag |
constant | Re-exported from lineax. |
symmetrize |
function | Re-exported from gaussx_linalg. |
toeplitz_sample |
function | Re-exported from gaussx_linalg. |
trace |
function | Re-exported from gaussx_linalg. |
trace_and_diag |
function | Re-exported from gaussx_linalg. |
trace_product |
function | Re-exported from gaussx_linalg. |
tridiagonal_solve |
function | Re-exported from gaussx_linalg. |
tridiagonal_solve_batched |
function | Re-exported from gaussx_linalg. |
tridiagonal_tag |
constant | Re-exported from lineax. |
udl_decomposition |
function | Re-exported from gaussx_linalg. |
unit_diagonal_tag |
constant | Re-exported from lineax. |
upper_triangular_tag |
constant | Re-exported from lineax. |
woodbury_solve |
function | Re-exported from gaussx_linalg. |
Upstream: gaussx-infer¶
Gaussian densities, sampling and likelihoods for JAX. radtrax uses it for the log-density and the draws of its noise models.
gaussx_infer¶
| Name | Kind | What it does |
|---|---|---|
AbstractIntegrator |
class | Re-exported from gaussx_infer. |
AbstractLikelihood |
class | Re-exported from gaussx_infer. |
AssumedDensityFilter |
class | Re-exported from gaussx_infer. |
BYM2GMRF |
class | Re-exported from gaussx_infer. |
BernoulliLikelihood |
class | Re-exported from gaussx_infer. |
BinomialLikelihood |
class | Re-exported from gaussx_infer. |
CallableLikelihood |
class | Re-exported from gaussx_infer. |
ConstantSDE |
class | Re-exported from gaussx_infer. |
ConstrainedGMRF |
class | Re-exported from gaussx_infer. |
CosineSDE |
class | Re-exported from gaussx_infer. |
CubatureIntegrator |
class | Re-exported from gaussx_infer. |
DAREResult |
class | Re-exported from gaussx_infer. |
EmissionModel |
class | Re-exported from gaussx_infer. |
FifthOrderCubatureIntegrator |
class | Re-exported from gaussx_infer. |
FilterState |
class | Re-exported from gaussx_infer. |
FixedPointState |
class | Re-exported from gaussx_infer. |
GaussHermiteIntegrator |
class | Re-exported from gaussx_infer. |
GaussianExpFam |
class | Re-exported from gaussx_infer. |
GaussianLikelihood |
class | Re-exported from gaussx_infer. |
GaussianMRF |
class | Re-exported from gaussx_infer. |
GaussianPrior |
class | Re-exported from gaussx_infer. |
GaussianSites |
class | Re-exported from gaussx_infer. |
GaussianState |
class | Re-exported from gaussx_infer. |
HeteroscedasticGaussianLikelihood |
class | Re-exported from gaussx_infer. |
InformationDiagnostics |
class | Re-exported from gaussx_infer. |
IntegratedWienerSDE |
class | Re-exported from gaussx_infer. |
IntrinsicGMRF |
class | Re-exported from gaussx_infer. |
LOOResult |
class | Re-exported from gaussx_infer. |
LOVECache |
class | Re-exported from gaussx_infer. |
LaplaceModel |
class | Re-exported from gaussx_infer. |
LaplaceResult |
class | Re-exported from gaussx_infer. |
LinearGaussianPosterior |
class | Re-exported from gaussx_infer. |
LinearizedSDE |
class | Re-exported from gaussx_infer. |
MaternSDE |
class | Re-exported from gaussx_infer. |
MomentMatchResult |
class | Re-exported from gaussx_infer. |
MonteCarloIntegrator |
class | Re-exported from gaussx_infer. |
NegativeBinomialLikelihood |
class | Re-exported from gaussx_infer. |
PeriodicSDE |
class | Re-exported from gaussx_infer. |
PoissonLikelihood |
class | Re-exported from gaussx_infer. |
PredictionCache |
class | Re-exported from gaussx_infer. |
ProductSDE |
class | Re-exported from gaussx_infer. |
PropagationResult |
class | Re-exported from gaussx_infer. |
QuasiPeriodicSDE |
class | Re-exported from gaussx_infer. |
SDEKernel |
class | Re-exported from gaussx_infer. |
SDEParams |
class | Re-exported from gaussx_infer. |
SLRResult |
class | Re-exported from gaussx_infer. |
SitePosterior |
class | Re-exported from gaussx_infer. |
SoftmaxLikelihood |
class | Re-exported from gaussx_infer. |
StudentTLikelihood |
class | Re-exported from gaussx_infer. |
SumSDE |
class | Re-exported from gaussx_infer. |
TaylorIntegrator |
class | Re-exported from gaussx_infer. |
UnscentedIntegrator |
class | Re-exported from gaussx_infer. |
blr_diag_update |
function | Re-exported from gaussx_infer. |
blr_full_update |
function | Re-exported from gaussx_infer. |
build_prediction_cache |
function | Re-exported from gaussx_infer. |
cavity_distribution |
function | Re-exported from gaussx_infer. |
cavity_from_marginal |
function | Re-exported from gaussx_infer. |
collapsed_elbo |
function | Re-exported from gaussx_infer. |
conditional |
function | Re-exported from gaussx_infer. |
conditional_interpolate |
function | Re-exported from gaussx_infer. |
cost_expectation |
function | Re-exported from gaussx_infer. |
cubature_points |
function | Re-exported from gaussx_infer. |
cvi_update_sites |
function | Re-exported from gaussx_infer. |
damped_natural_update |
function | Re-exported from gaussx_infer. |
dare |
function | Re-exported from gaussx_infer. |
discrepancy_step_size |
function | Re-exported from gaussx_infer. |
discretize_mfd |
function | Re-exported from gaussx_infer. |
discretize_mfd_sequence |
function | Re-exported from gaussx_infer. |
eki_step |
function | Re-exported from gaussx_infer. |
elbo |
function | Re-exported from gaussx_infer. |
enkf_analysis |
function | Re-exported from gaussx_infer. |
ensemble_covariance |
function | Re-exported from gaussx_infer. |
ensemble_cross_covariance |
function | Re-exported from gaussx_infer. |
ensemble_kalman_gain |
function | Re-exported from gaussx_infer. |
ensemble_rts_step |
function | Re-exported from gaussx_infer. |
ep_tilted_moments |
function | Re-exported from gaussx_infer. |
etkf_analysis |
function | Re-exported from gaussx_infer. |
etkf_transform |
function | Re-exported from gaussx_infer. |
euclidean_distance |
function | Re-exported from gaussx_infer. |
expectation_to_mean_chol |
function | Re-exported from gaussx_infer. |
expectation_to_natural |
function | Re-exported from gaussx_infer. |
expectations_to_ssm |
function | Re-exported from gaussx_infer. |
expected_log_likelihood |
function | Re-exported from gaussx_infer. |
fifth_order_cubature_points |
function | Re-exported from gaussx_infer. |
fisher_info |
function | Re-exported from gaussx_infer. |
fixed_point_init |
function | Re-exported from gaussx_infer. |
fixed_point_step |
function | Re-exported from gaussx_infer. |
gaspari_cohn |
function | Re-exported from gaussx_infer. |
gauss_hermite_points |
function | Re-exported from gaussx_infer. |
gauss_kl |
function | Re-exported from gaussx_infer. |
gaussian_entropy |
function | Re-exported from gaussx_infer. |
gaussian_expected_log_lik |
function | Re-exported from gaussx_infer. |
gaussian_kl |
function | Re-exported from gaussx_infer. |
gaussian_log_prob |
function | Re-exported from gaussx_infer. |
gaussian_taper |
function | Re-exported from gaussx_infer. |
gradient_expectation |
function | Re-exported from gaussx_infer. |
haversine_distance |
function | Re-exported from gaussx_infer. |
infinite_horizon_filter |
function | Re-exported from gaussx_infer. |
infinite_horizon_smoother |
function | Re-exported from gaussx_infer. |
inflate_multiplicative |
function | Re-exported from gaussx_infer. |
inflate_rtpp |
function | Re-exported from gaussx_infer. |
inflate_rtps |
function | Re-exported from gaussx_infer. |
information_diagnostics |
function | Re-exported from gaussx_infer. |
joseph_update |
function | Re-exported from gaussx_infer. |
kalman_filter |
function | Re-exported from gaussx_infer. |
kalman_gain |
function | Re-exported from gaussx_infer. |
kl_divergence |
function | Re-exported from gaussx_infer. |
kl_standard_normal |
function | Re-exported from gaussx_infer. |
kronecker_mll |
function | Re-exported from gaussx_infer. |
kronecker_posterior_predictive |
function | Re-exported from gaussx_infer. |
laplace_model |
function | Re-exported from gaussx_infer. |
laplace_result |
function | Re-exported from gaussx_infer. |
leave_one_out_cv |
function | Re-exported from gaussx_infer. |
ledoit_wolf_shrinkage |
function | Re-exported from gaussx_infer. |
linear_gaussian_update |
function | Re-exported from gaussx_infer. |
linearize_sde |
function | Re-exported from gaussx_infer. |
localization_matrix |
function | Re-exported from gaussx_infer. |
localized_kalman_gain |
function | Re-exported from gaussx_infer. |
log_likelihood_expectation |
function | Re-exported from gaussx_infer. |
log_marginal_likelihood |
function | Re-exported from gaussx_infer. |
log_partition |
function | Re-exported from gaussx_infer. |
love_cache |
function | Re-exported from gaussx_infer. |
love_residual |
function | Re-exported from gaussx_infer. |
love_variance |
function | Re-exported from gaussx_infer. |
love_variance_error_bound |
function | Re-exported from gaussx_infer. |
masked_moment_inputs |
function | Re-exported from gaussx_infer. |
matheron_update |
function | Re-exported from gaussx_infer. |
mean_chol_to_expectation |
function | Re-exported from gaussx_infer. |
mean_chol_to_natural |
function | Re-exported from gaussx_infer. |
mean_cov_to_natural |
function | Re-exported from gaussx_infer. |
mean_expectation |
function | Re-exported from gaussx_infer. |
meanfield_kalman_filter |
function | Re-exported from gaussx_infer. |
meanfield_rts_smoother |
function | Re-exported from gaussx_infer. |
mixture_quantile_gaussian_approx |
function | Re-exported from gaussx_infer. |
moment_match |
function | Re-exported from gaussx_infer. |
moment_transform |
function | Re-exported from gaussx_infer. |
natural_to_expectation |
function | Re-exported from gaussx_infer. |
natural_to_mean_chol |
function | Re-exported from gaussx_infer. |
natural_to_mean_cov |
function | Re-exported from gaussx_infer. |
naturals_to_ssm |
function | Re-exported from gaussx_infer. |
newton_update |
function | Re-exported from gaussx_infer. |
nonlinear_kalman_filter |
function | Re-exported from gaussx_infer. |
nonlinear_kalman_predict |
function | Re-exported from gaussx_infer. |
nonlinear_kalman_update |
function | Re-exported from gaussx_infer. |
nonlinear_rts_smoother |
function | Re-exported from gaussx_infer. |
nonlinear_rts_step |
function | Re-exported from gaussx_infer. |
oilmm_back_project |
function | Re-exported from gaussx_infer. |
oilmm_project |
function | Re-exported from gaussx_infer. |
pairwise_marginals |
function | Re-exported from gaussx_infer. |
parallel_kalman_filter |
function | Re-exported from gaussx_infer. |
parallel_rts_smoother |
function | Re-exported from gaussx_infer. |
preconditioned_transition |
function | Re-exported from gaussx_infer. |
predict_mean |
function | Re-exported from gaussx_infer. |
predict_variance |
function | Re-exported from gaussx_infer. |
predictive_variance_sbpv |
function | Re-exported from gaussx_infer. |
predictive_variance_spv |
function | Re-exported from gaussx_infer. |
process_noise_covariance |
function | Re-exported from gaussx_infer. |
riemannian_psd_correction |
function | Re-exported from gaussx_infer. |
rts_interpolate |
function | Re-exported from gaussx_infer. |
rts_sample |
function | Re-exported from gaussx_infer. |
rts_smoother |
function | Re-exported from gaussx_infer. |
sample_joint_conditional |
function | Re-exported from gaussx_infer. |
sample_mvn |
function | Re-exported from gaussx_infer. |
sde_autocovariance |
function | Re-exported from gaussx_infer. |
sde_kl_divergence |
function | Re-exported from gaussx_infer. |
sigma_point_kalman_update |
function | Re-exported from gaussx_infer. |
sigma_points |
function | Re-exported from gaussx_infer. |
site_evidence_correction |
function | Re-exported from gaussx_infer. |
site_log_evidence |
function | Re-exported from gaussx_infer. |
site_mean_var_from_natural |
function | Re-exported from gaussx_infer. |
site_natural_from_tilted |
function | Re-exported from gaussx_infer. |
site_posterior |
function | Re-exported from gaussx_infer. |
sites_to_precision |
function | Re-exported from gaussx_infer. |
soar_taper |
function | Re-exported from gaussx_infer. |
sparse_conditional |
function | Re-exported from gaussx_infer. |
spingp_log_likelihood |
function | Re-exported from gaussx_infer. |
spingp_posterior |
function | Re-exported from gaussx_infer. |
sqrt_backward_conditional |
function | Re-exported from gaussx_infer. |
sqrt_kalman_predict |
function | Re-exported from gaussx_infer. |
sqrt_kalman_update |
function | Re-exported from gaussx_infer. |
sqrt_rts_step |
function | Re-exported from gaussx_infer. |
ssm_to_expectations |
function | Re-exported from gaussx_infer. |
ssm_to_naturals |
function | Re-exported from gaussx_infer. |
statistical_linear_regression |
function | Re-exported from gaussx_infer. |
sufficient_stats |
function | Re-exported from gaussx_infer. |
svgp_variance_adjustment |
function | Re-exported from gaussx_infer. |
theta_design |
function | Re-exported from gaussx_infer. |
tikhonov_augment |
function | Re-exported from gaussx_infer. |
to_mean_cov |
function | Re-exported from gaussx_infer. |
trace_correction |
function | Re-exported from gaussx_infer. |
udl_from_ssm_params |
function | Re-exported from gaussx_infer. |
udl_to_ssm_params |
function | Re-exported from gaussx_infer. |
unwhiten |
function | Re-exported from gaussx_infer. |
unwhiten_covariance |
function | Re-exported from gaussx_infer. |
variational_elbo_gaussian |
function | Re-exported from gaussx_infer. |
variational_elbo_mc |
function | Re-exported from gaussx_infer. |
vb_mean_correction |
function | Re-exported from gaussx_infer. |
whiten_covariance |
function | Re-exported from gaussx_infer. |
whitened_svgp_predict |
function | Re-exported from gaussx_infer. |
Upstream: lineax¶
Linear solves in JAX with implicit differentiation. radtrax uses it for linear systems that are not covariances.
lineax¶
| Name | Kind | What it does |
|---|---|---|
AbstractLinearOperator |
class | Abstract base class for all linear operators. |
AbstractLinearSolver |
class | Abstract base class for all linear solvers. |
AddLinearOperator |
class | A linear operator formed by adding two other linear operators together. |
AutoLinearSolver |
class | Automatically determines a good linear solver based on the structure of the operator. |
BiCGStab |
class | Biconjugate gradient stabilised method for linear systems. |
CG |
class | Conjugate gradient solver for linear systems. |
Cholesky |
class | Cholesky solver for linear systems. |
ComposedLinearOperator |
class | A linear operator formed by composing (matrix-multiplying) two other linear operators together. |
Diagonal |
class | Diagonal solver for linear systems. |
DiagonalLinearOperator |
class | A diagonal linear operator, e.g. for a diagonal matrix. |
DivLinearOperator |
class | A linear operator formed by dividing a linear operator by a scalar. |
FunctionLinearOperator |
class | Wraps a linear function fn: X -> Y into a linear operator. (So that self.mv(x) is defined by self.mv(x) == fn(x).) |
GMRES |
class | GMRES solver for linear systems. |
IdentityLinearOperator |
class | Represents the identity transformation X -> X, where each x in X is some PyTree of floating-point JAX arrays. |
JacobianLinearOperator |
class | Given a function fn: X -> Y, and a point x in X, then this defines the linear operator (also a function X -> Y) given by the Jacobian (d(fn)/dx)(x). |
LSMR |
class | LSMR solver for linear systems. |
LU |
class | LU solver for linear systems. |
MatrixLinearOperator |
class | Wraps a 2-dimensional JAX array into a linear operator. |
MulLinearOperator |
class | A linear operator formed by multiplying a linear operator by a scalar. |
NegLinearOperator |
class | A linear operator formed by computing the negative of a linear operator. |
Normal |
class | Wrapper for an inner solver of positive (semi)definite systems. |
NormalCG |
function | Deprecated helper function. |
PyTreeLinearOperator |
class | Represents a PyTree of floating-point JAX arrays as a linear operator. |
QR |
class | QR solver for linear systems. |
RESULTS |
class | An enumeration, with the following entries: |
SVD |
class | SVD solver for linear systems. |
Solution |
class | The solution to a linear solve. |
TaggedLinearOperator |
class | Wraps another linear operator and specifies that it has certain tags, e.g. representing symmetry. |
TangentLinearOperator |
class | Internal to lineax. |
Triangular |
class | Triangular solver for linear systems. |
Tridiagonal |
class | Tridiagonal solver for linear systems, uses the LAPACK/cusparse implementation of Gaussian elimination with partial pivotting (which increases stability). . |
TridiagonalLinearOperator |
class | As lineax.MatrixLinearOperator, but for specifically a tridiagonal matrix. |
conj |
function | Elementwise conjugate of a linear operator. |
diagonal |
function | Extracts the diagonal from a linear operator, and returns a vector. |
diagonal_tag |
constant | diagonal_tag |
has_unit_diagonal |
function | Returns whether an operator is marked as having unit diagonal. |
invert |
function | Returns a lineax.FunctionLinearOperator representing the (pseudo)inverse of operator. |
is_diagonal |
function | Returns whether an operator is marked as diagonal. |
is_lower_triangular |
function | Returns whether an operator is marked as lower triangular. |
is_negative_semidefinite |
function | Returns whether an operator is marked as negative semidefinite. |
is_positive_semidefinite |
function | Returns whether an operator is marked as positive semidefinite. |
is_symmetric |
function | Returns whether an operator is marked as symmetric. |
is_tridiagonal |
function | Returns whether an operator is marked as tridiagonal. |
is_upper_triangular |
function | Returns whether an operator is marked as upper triangular. |
linear_solve |
function | Solves a linear system. |
linearise |
function | Linearises a linear operator. |
lower_triangular_tag |
constant | lower_triangular_tag |
materialise |
function | Materialises a linear operator. |
negative_semidefinite_tag |
constant | negative_semidefinite_tag |
positive_semidefinite_tag |
constant | positive_semidefinite_tag |
symmetric_tag |
constant | symmetric_tag |
transpose_tags |
function | Lineax uses "tags" to declare that a particular linear operator exhibits some property, e.g. symmetry. |
transpose_tags_rules |
constant | Re-exported from builtins. |
tridiagonal |
function | Extracts the diagonal, lower diagonal, and upper diagonal, from a linear operator. |
tridiagonal_tag |
constant | tridiagonal_tag |
unit_diagonal_tag |
constant | unit_diagonal_tag |
upper_triangular_tag |
constant | upper_triangular_tag |
Upstream: optimistix¶
Root finding, least squares and fixed points in JAX. radtrax uses its Gauss-Newton and Levenberg-Marquardt solvers for optimal estimation.
optimistix¶
| Name | Kind | What it does |
|---|---|---|
AbstractAdjoint |
class | The abstract base class of all adjoints. |
AbstractBFGS |
class | Abstract version of the BFGS (Broyden–Fletcher–Goldfarb–Shanno) minimisation algorithm. |
AbstractDFP |
class | Abstract version of the DFP (Davidon–Fletcher–Powell) minimisation algorithm. |
AbstractDescent |
class | The abstract base class for descents. |
AbstractFixedPointSolver |
class | Abstract base class for all fixed point solvers. |
AbstractGaussNewton |
class | Abstract base class for all Gauss-Newton type methods. |
AbstractGradientDescent |
class | The gradient descent method for unconstrained minimisation. |
AbstractIterativeSolver |
class | Abstract base class for all iterative solvers. |
AbstractLBFGS |
class | Abstract version of the L-BFGS (limited memory Broyden–Fletcher–Goldfarb–Shanno) solver. |
AbstractLeastSquaresSolver |
class | Abstract base class for all least squares solvers. |
AbstractMinimiser |
class | Abstract base class for all minimisers. |
AbstractQuasiNewton |
class | Abstract quasi-Newton minimisation algorithm. |
AbstractRootFinder |
class | Abstract base class for all root finders. |
AbstractSearch |
class | The abstract base class for all searches. (Which are our generalisation of line searches, trust regions, and learning rates.) |
BFGS |
class | BFGS (Broyden–Fletcher–Goldfarb–Shanno) minimisation algorithm. |
BacktrackingArmijo |
class | Perform a backtracking Armijo line search. |
BestSoFarFixedPoint |
class | Wraps another fixed-point solver, to return the best-so-far value. |
BestSoFarLeastSquares |
class | Wraps another least-squares solver, to return the best-so-far value. |
BestSoFarMinimiser |
class | Wraps another minimiser, to return the best-so-far value. |
BestSoFarRootFinder |
class | Wraps another root-finder, to return the best-so-far value. |
Bisection |
class | The bisection method of root finding. |
Chord |
class | The Chord method of root finding. |
ClassicalTrustRegion |
class | The classic trust-region update algorithm which uses a quadratic approximation of the objective function to predict reduction. |
DFP |
class | DFP (Davidon–Fletcher–Powell) minimisation algorithm. |
DampedNewtonDescent |
class | The damped Newton (Levenberg--Marquardt) descent. |
Dogleg |
class | Dogleg algorithm. |
DoglegDescent |
class | The Dogleg descent step, which switches between the Cauchy and the Newton descent directions. |
FixedPointIteration |
class | Repeatedly calls a function in search of a fixed point. |
FunctionInfo |
class | Different solvers (BFGS, Levenberg--Marquardt, ...) evaluate different quantities of the objective function. |
GaussNewton |
class | Gauss-Newton algorithm, for solving nonlinear least-squares problems. |
GoldenSearch |
class | Golden-section search for finding the minimum of a univariate function in a given interval. |
GradientDescent |
class | Classic gradient descent with a learning rate learning_rate. |
ImplicitAdjoint |
class | Backpropagate via the implicit function theorem. |
IndirectDampedNewtonDescent |
class | The indirect damped Newton (Levenberg--Marquardt) trust-region descent. |
IndirectLevenbergMarquardt |
class | The Levenberg--Marquardt method as a true trust-region method. |
LBFGS |
class | L-BFGS (Limited-memory Broyden–Fletcher–Goldfarb–Shanno) minimisation algorithm. |
LearningRate |
class | Move downhill by taking a step of the fixed size learning_rate. |
LevenbergMarquardt |
class | The Levenberg--Marquardt method. |
LinearTrustRegion |
class | The trust-region update algorithm which uses a linear approximation of the objective function to predict reduction. |
NelderMead |
class | The Nelder-Mead minimisation algorithm. (Downhill simplex derivative-free method.) |
Newton |
class | Newton's method for root finding. |
NewtonDescent |
class | Newton descent direction. |
NonlinearCG |
class | The nonlinear conjugate gradient method. |
NonlinearCGDescent |
class | The nonlinear conjugate gradient step. |
OptaxMinimiser |
class | A wrapper to use Optax first-order gradient-based optimisers with optimistix.minimise. |
RESULTS |
class | An enumeration, with the following entries: |
RecursiveCheckpointAdjoint |
class | Backpropagate by differentiating through the iterates directly. |
Solution |
class | The solution to a nonlinear solve. |
SteepestDescent |
class | The descent direction given by locally following the gradient. |
dai_yuan |
function | The Dai--Yuan formula for β. |
fixed_point |
function | Find a fixed-point of a function. |
fletcher_reeves |
function | The Fletcher--Reeves formula for β. |
hestenes_stiefel |
function | The Hestenes--Stiefel formula for β. |
least_squares |
function | Solve a nonlinear least-squares problem. |
max_norm |
function | Compute the L-infinity norm of a PyTree of arrays. |
minimise |
function | Minimise a function. |
polak_ribiere |
function | The Polak--Ribière formula for β. |
rms_norm |
function | Compute the RMS (root-mean-squared) norm of a PyTree of arrays. |
root_find |
function | Solve a root-finding problem. |
two_norm |
function | Computes the L2 norm of a PyTree of arrays. |