hecras_compute_rascontrol
Installation
SKILL.md
Executing HEC-RAS Plans via RasControl (COM Interface)
Use RasControl to automate HEC-RAS versions 3.x-5.x via the HECRASController COM interface. For HEC-RAS 6.x+, use RasCmdr instead.
Primary Sources
1. RasControl Implementation
Location: ras_commander/RasControl.py
Read these key sections:
- Lines 438-527:
RasControlclass with version mapping and output variable codes - Lines 543-742: COM lifecycle management (
_com_open_close()) - Lines 746-884:
run_plan()with smart skip and watchdog protection - Lines 936-1177:
get_steady_results()- extract steady state profiles - Lines 1179-1458:
get_unsteady_results()- extract time series with Max WS - Lines 1647-1909: Process management API (orphan cleanup)