Welcome to the RAS Solution Forums HECRAS Controller export RAS MAPPER output(depth velocity WSE)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8227
    [email protected]
    Participant

    Dear Team ,

    i am using below code to run HMS But i am not able to export RAS MAPPER output(depth velocity WSE).
    if anyone have any idea about this please give the suggestion.
    ———————
    using RAS503;
    hrc = new HECRASController();
    int nmsg = 0;
    bool block = true;
    Array sa = null;
    hrc.Project_Open(strhmsraspath + “\\Rapti13012018.prj”);
    hrc.Compute_ShowComputationWindow();
    hrc.Compute_CurrentPlan(ref nmsg, ref sa, ref block);
    hrc.ShowRasMapper();

    ——————————————-

    With Regards
    Lokendra Dixit

    #13604
    Anonymous
    Guest

    Hi,

    I assume you meant “RAS” instead of “HMS”.

    I don’t know whether you can directly extract 2D outputs from RAS using the HECRASController, however, RAS 5.0 outputs are stored in hdf5 files. This file format is open, which allowed people to develop APIs that give you the opportunity to read those files from a piece of code (e.g. in Python) and retrieve the data you want.

    While the HECRASController provides you with convenience methods to extract some output data, developping your own methods to parse hdf5 files is the way to go if you want full control on what you can extract from the output.

    Cheers,
    ML

    #13605
    Rodrigo Perdigão
    Participant

    Hi, Lokendra

    You can read these results using python to read the raster (.tiff) or shapefile (.shp) results generated for the variable that you chose in “Edit Map Parameters” option. If you keep the “Post Processor” and “Flodplain Mapping” options selected, every time you run a simulation a new output file (.shp;.tiff) will be generated with the same name that is associated with your plan. So you can use that to read your output data automatically.

    With regards,

    Rodrigo Perdigão

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.