ras_flow_set_hydrograph
Edit an unsteady flow boundary condition table: replace hydrograph values, scale existing ones, set the flow multiplier, or change the interval. Works on river stations, reaches, and 2D areas, using a project copy.
Instructions
Edit ONE boundary condition table in an unsteady flow file (.u##): replace the hydrograph 'values' (any length; count line rewritten), or scale the existing values by 'multiplier', or set the HEC-RAS flow multiplier 'qmult' (Flow Hydrograph QMult, applied at run time), and/or change the 'interval' ('1HOUR','15MIN'). Select the boundary by boundary_index (from ras_project_info plan detail) or river/reach/rs, or area/bc_line for 2D BC lines. Works for Flow, Stage, Lateral Inflow, Uniform Lateral Inflow, Precipitation hydrographs and Gate Openings. Edit a COPY of the project. Returns the boundary before/after summary (n, peak).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rs | No | River station, e.g. '15696.24'. | |
| area | No | 2D flow area / storage area name (2D BC lines). | |
| flow | No | Unsteady flow file number, e.g. '01'. | |
| kind | No | Table kind if the boundary has none yet, e.g. 'Flow Hydrograph'. | |
| plan | No | Plan whose unsteady flow file to edit (or give 'flow'). | |
| qmult | No | HEC-RAS 'Flow Hydrograph QMult' multiplier (values untouched). | |
| reach | No | ||
| river | No | ||
| values | No | New series (replaces the table). | |
| bc_line | No | 2D boundary condition line name. | |
| project | Yes | Project folder or .prj (a copy!). | |
| ras_exe | No | ||
| interval | No | New Interval= string, e.g. '15MIN'. | |
| multiplier | No | Scale existing table values by this factor. | |
| boundary_index | No | 0-based boundary index in the file (see ras_project_info). |