Calc Parity
March 22, 2026 ยท View on GitHub
wxtrain is intended to port the full verified metrust/MetPy calc surface into native Rust.
The canonical target inventory lives in:
The inventory is derived from the public metrust.calc export surface, not from ad hoc memory.
Current State
The Rust crate now tracks 199 public calc-surface targets, including aliases and dataset/interpolation helpers.
Current command:
cargo run -p wx-cli -- calc parity --limit 20
Current summary:
199ported0missing
Category snapshot:
thermo:82 / 82wind:11 / 11kinematics:26 / 26severe:13 / 13grid:14 / 14atmo:9 / 9smooth:12 / 12utils:9 / 9dataset:3 / 3interpolation:16 / 16
Porting Rule
wx-calc should not invent a new scientific surface. It should port the verified logic from metrust-py and then carry parity tests into wxtrain.
Regression Status
The parity target is no longer just public API coverage. The active requirement is numerical
agreement against MetPy on representative map and severe-weather cases.
Current regression entrypoint:
python examples\metpy_regression_suite.py
Current regression docs: