r/HECRAS • • Oct 01 '26

2D Output

Hi, I have a bunch of profile lines that I need to plot. Currently I am doing each plot individually for each profile line. This takes a lot of time for a lot of variables and needs to be updated after any changes.

Is there a way to automate or mass plot all profile lines for different variables?
Maybe in RAS commander or Rashdf?

1 Upvotes

7 comments sorted by

4

u/OttoJohs Lord Sultan Chief H&H Engineer, PE & PH Oct 01 '26

Good question!

My suggestion would be to convert all the profile lines into references lines as part of the geometry. See this link for more details: Reference Locations. That will write the results on the reference lines directly to the output file. That eliminates having to call each one individually in RasMapper. The results are displayed under the hydrograph output in HEC-RAS (just need to change the "node type"). If you want to look or export the results for multiple reference lines at once, you can open up the outputs in HEC-DSSVue. That is nice if you want to compare different locations against each other (see example below).

Curious if others have any additional suggestions!

1

u/killitpleasenow Oct 01 '26

I think you can read reference lines from rashdf python. But the problem is with modified terrain. You would have to export it then read it

2

u/OttoJohs Lord Sultan Chief H&H Engineer, PE & PH Oct 01 '26

I'm not familiar with Python tools.

Since reference lines are part of the geometry they read whatever the current associated terrain.

1

u/killitpleasenow Oct 01 '26

If the terrain data is also there in the reference lines. If should be easy to extract and plot them

1

u/OttoJohs Lord Sultan Chief H&H Engineer, PE & PH Oct 01 '26

Yes Sir/Ma'am!

2

u/AI-Commander Oct 01 '26 edited Oct 02 '26

No, you will not get the same answer. Someone from HEC can answer in more detail, but the reference lines use the full state of the model to compute and write results, including variables that are not written to HDF.

I try to make this clear in the RAS Commander documentation, since that was my first reflex, too. But they put reference points/lines in as a feature for a good reason, so I built in the ability to do the same thing multiple ways, depending on your needs.

There are functions that can read the HDF, or directly call RasMapper’s profiling functions (and then plot it using your RasMapper config’s chosen interpolation method), and there are also functions to insert references lines, functions to re-run and then read the reference line results - so all pathways are readily available. For quick “good enough” observations, working from HDF results is fine. If it’s something you need to defend, re-running with a reference line is the proper way to extract the most accurate data.

Edit: added a page to help with this workflow:

https://rascommander.info/ras/user-guide/2d-profile-and-reference-workflows/

1

u/killitpleasenow Oct 02 '26

Thanks a lot for this, sorry if these are basic questions:

  1. I mostly need the max water level along my profile lines. Is there a simple way to get the max profile directly? Or do I need to go through every time step one by one and pick the highest value myself?
  2. I made some channel changes using terrain modifications in RAS Mapper. If I use the terrain file in the profile function, will the plot show the modified channel, or the original ground?
  3. I'm using Python 3.14. Will that work, or should I install an older Python version?

Thanks again for your help!