I’m having trouble with some of the output functions and subroutines in RAS 4.1. Specifically, I’m trying to retrieve values for stream power.
I have a steady flow model with one river, one reach, and one profile. At first the Output_ReachOutput subroutine seemed to be working fine. I wrote a subroutine to grab every single variable and populate successive columns in a spreadsheet, skipping over the columns where Output_ReachOutput fails completely. Some of the output values look like garbage, but I figured those were mostly explained by the the lack of structures or other features in certain sections. I noticed, however, that the values it retrieves for stream power are completely wrong. “Power Total” values are all 0, “Power LOB” values range from 290.4 and 2237.3 (not even close), “Power Chan” values are all 0, and “Power ROB” values are all 0. Obviously these results don’t match the values shown in the RAS output table. Even stranger is the fact that these extracted stream power values match the extracted levee stationing values (nVar 263 to 266) precisely.
To get around this I’ve been trying to call the NodeOutputfunction, but I just can’t get it to work. My inputs are: riv=1, rch=1, n=1, updn=1, prof=1, nVar=154. I’ve tried all different values for n, updn, and nVar with no luck.
Has anyone run into the same problems? In the meantime I’m continuing to look for problems with my own code.