Python API reference#

Every public symbol of the rustmatrix Python package, rendered from source docstrings. The module pages below are the authoritative reference; the tutorials and background pages show them in use.

Scatterer

The T-matrix solver. Scatterer, TMatrix alias, size / shape / refractive-index constants.

rustmatrix.scatterer
PSD

PSDIntegrator, ExponentialPSD, GammaPSD, UnnormalizedGammaPSD, BinnedPSD.

rustmatrix.psd
Radar observables

refl, Zdr, Kdp, rho_hv, delta_hv, Ai, ldr.

rustmatrix.radar
Scatter helpers

Cross sections, amplitude / phase matrices, asymmetry parameter.

rustmatrix.scatter
HydroMix

Combine multiple species into one Scatterer-shaped object.

rustmatrix.hd_mix
Spectra

SpectralIntegrator, fall-speed presets, turbulence kernels.

rustmatrix.spectra
Beam × scene

Explicit beam-pattern × scene integration for non-uniform beams.

rustmatrix.spectra.beam
Refractive index

Tabulated water / ice indices; Maxwell-Garnett / Bruggeman mixing.

rustmatrix.refractive
tmatrix_aux

Radar-band wavelengths, \(|K_w|^2\), drop-shape relations, geometries.

rustmatrix.tmatrix_aux
Orientation

Orientation-averaging strategies and canting-angle PDFs.

rustmatrix.orientation
Quadrature

Gautschi quadrature against arbitrary weights.

rustmatrix.quadrature

The Rust crate that backs the Python extension is documented separately on docs.rs; see Rust API.