RAS Commander Fast-Map
Native Rust 2D flood inundation mapping, distributed as the
ras-commander-fast-map Rust crate and Python wheel. It maps computed hydraulic
results; it does not run the HEC-RAS hydraulic solver.
Install
pip install ras-commander-fast-map
ras2fim-batch method
Python wheels provide the compatible ras2fim-batch executable on Windows x64
and Linux x64 (glibc 2.28+). A wheel requires no Rust compiler or system GDAL.
Python consumers normally install ras-commander[fim], which adds the public
RasFim APIs and Python preparation/GeoTIFF delivery dependencies. Remove the
former ras2fim-engine package before installing this package if both would
own the same executable. The command name and JSON contracts remain compatible.
Rust users can install the CLI or use the library independently of Python:
cargo install ras-commander-fast-map --locked
cargo add ras-commander-fast-map
let methods = ras_commander_fast_map::method_record();
assert!(methods.is_object());
See Rust API documentation and the
RasFim guide for request contracts and
end-to-end model preparation. The Rust library consumes prepared geometry,
profiles and terrain; HDF extraction belongs to ras-commander-fast-hdf and
Commander. The CLI does not read a plan HDF directly.
Methods and resource controls
- Horizontal: cell-constant WSE with native float32 visibility.
- Sloping: reconstructed cell corners; optional cell faces, depth weighting, and shallow-to-horizontal selection.
- ras2fim-2D Step05: the separate globally prepared SciPy triangulation method.
Terrain decoding and ownership rasterization use terrio with GDAL disabled. Rayon workers share immutable terrain/geometry across bounded in-flight profiles. Bbox/polygon output masks retain global hydraulic topology. Planned allocation admission is not a hard RSS limit. Python delivery may use Rasterio/GDAL; the Rust mapping executable does not link it.
Production methods and binary32 operation order are unchanged from the qualified
Commander engine 0.8.0. MIGRATION.json binds the extracted source and immutable
numerical files. Existing request schemas, method identifiers and CLI exit codes
are preserved. ras2fim-batch method adds package/version/source-commit identity.
Qualification and limits
The retained five-model comparisons cover raw Depth/WSE validity masks and float32 bits against native HEC-RAS 7.0.1, without an added depth cutoff. Those published timing observations predate this packaging extraction; no new speedup is claimed for renaming/distribution.
Mapping covers physical 2D cells. Commander rejects models with 1D river/cross- section geometry. Standalone storage-area surfaces are excluded. Cell-face matching preserves the original source TIFF grid and 256-square tile layout; arbitrary retiled/cropped terrain and multi-source mosaics are unqualified. Depth weighting needs stored corner ground elevations. When absent, explicit corner preparation still uses Windows/HEC-RAS 7.0.1 through Commander and pythonnet; it has not been implemented in Rust. Once prepared, ordinary mapping runs on Windows/Linux without HEC-RAS. Source terrain must match the effective terrain used by the native reference.
Build and verify
cargo fmt --check
cargo test --locked --all-targets
cargo clippy --locked --all-targets -- -D warnings -A clippy::chunks_exact_to_as_chunks
cargo publish --locked --dry-run
python scripts/verify_sources.py
CI builds and smoke-tests Windows/Linux wheels. Tagged releases attach the wheels, source distribution, provenance and checksums to GitHub Releases. See release instructions for PyPI/crates.io publishing.
License and attribution
Our code retains its MIT license. Step05/SciPy reuse retains BSD-3-Clause notices;
see LICENSE, THIRD_PARTY_NOTICES.md and licenses/. The crate license
expression is MIT AND BSD-3-Clause. Dependency notices accompany distributions.
HEC-RAS assemblies, decompiled vendor source and model data are not distributed.
This independent project is not affiliated with or endorsed by HEC/USACE.
Metadata
Release files for ras-commander-fast-map 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ras_commander_fast_map-0.8.0.tar.gz | 246.0 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ras_commander_fast_map-0.8.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| ras_commander_fast_map-0.8.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details |
Total release size: 11.3 MB
Release files / ras_commander_fast_map-0.8.0.tar.gz
| Download URL | ras_commander_fast_map-0.8.0.tar.gz |
|---|---|
| Size | 246.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
882fa5faeda424015ddb19a6634072265e3456644ccfccbfc66bc543b8d4585a
|
|
BLAKE2b-256 checksum How to use checksums |
44727844e9f7aa6a017e1d7822af9bfe179a544ce510fdf762f4bf00cc8a2c93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / ras_commander_fast_map-0.8.0-py3-none-win_amd64.whl
| Download URL | ras_commander_fast_map-0.8.0-py3-none-win_amd64.whl |
|---|---|
| Size | 5.3 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c58b71936c80f47bd645066bdb43486ae184fa880d1e0f967f68f4f0517b27cb
|
|
BLAKE2b-256 checksum How to use checksums |
e2215041465aafa966fee8212b6389aba14f097bfcf4e81538126de75ebfc75f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / ras_commander_fast_map-0.8.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | ras_commander_fast_map-0.8.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 5.7 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
b7b21870d862091409e4de1b5aea921d6ab180f4e32380fdc7a55e148fe73d40
|
|
BLAKE2b-256 checksum How to use checksums |
5e63493ec76c5ca9603451d983ad48173bfc34027fd81d43b4c0a20040578254
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for ras-commander-fast-map 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.