ras_plot
Generate PNG plots from HEC-RAS HDFs: overlay hydrographs (up to 4 runs) with peak annotations, plot reach profiles of max water/flow/velocity, or map 2D cell maxima.
Instructions
Make a PNG figure from results HDF(s). plot='hydrograph': one time series (kind/location/variable/mesh as in ras_results_timeseries) for 1-4 runs overlaid (hdfs + labels), peaks annotated. plot='profile': maximum water surface (or flow / velocity) along the river stations of a reach ('reach'='River/Reach', default all) for 1-4 runs. plot='mesh_max': map of the 2D cells coloured by maximum water surface (single hdf, optional 'mesh'). Returns the PNG path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hdf | No | One results HDF. | |
| hdfs | No | Several results HDFs to overlay (baseline first). | |
| kind | No | ||
| mesh | No | ||
| plot | No | Default 'hydrograph'. | |
| reach | No | profile only: 'River/Reach' to plot (default: all). | |
| title | No | ||
| labels | No | Legend labels matching hdfs. | |
| out_png | Yes | Where to write the PNG. | |
| location | No | ||
| variable | No |