ras_plan_set
Adjust a HEC-RAS plan's simulation window, intervals, cores, identifiers, titles, and linked geometry/flow files in a safe project copy, returning before/after values.
Instructions
Change settings of one plan (.p##) in place: simulation window, computation / output / mapping interval, number of cores, short id, title, description, and which geometry (g##) or unsteady flow file (u##) the plan uses. Returns before/after values. Edit a COPY of the project (ras_project_copy) — this rewrites the plan file. Intervals use HEC-RAS strings ('10SEC','1MIN','15MIN','1HOUR'); dates accept '02JAN1900 0000' or ISO '1900-01-02T00:00'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | Unsteady flow file number to use, e.g. '01'. | |
| geom | No | Geometry number to use, e.g. '02'. | |
| plan | Yes | Plan number, e.g. '03'. | |
| title | No | Plan title. | |
| project | Yes | Project folder or .prj (a copy!). | |
| ras_exe | No | Optional Ras.exe path. | |
| short_id | No | Short identifier (<= 24 chars). | |
| num_cores | No | Cores for the 1D/2D solvers (2-8 typical). | |
| description | No | Plan description text. | |
| simulation_end | No | New end, e.g. '03JAN1900 0000'. | |
| output_interval | No | e.g. '5MIN', '1HOUR'. | |
| mapping_interval | No | e.g. '1HOUR'. | |
| simulation_start | No | New start, e.g. '02JAN1900 0000' or '1900-01-02T00:00'. | |
| computation_interval | No | e.g. '10SEC', '1MIN'. |