Welcome to the RAS Solution Forums HEC-RAS Help Take a Snapshot! – how to edit the .rasmap file to see the results

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7722
    minovsor
    Participant

    Hey guys,
    Simple trick here!

    As you know, we can “Take a snapshot of results” during the simulation by using a button in the HEC-RAS Computation Window.

    This process will save a .pxx.snapshot.hdf file in the project root folder, but it won’t plot in RasMapper.

    For this example, I’m assuming you have a basic HEC-RAS project with:
    – a project file: myproject.prj
    – a plan file: myproject.p01
    – a rasmapper file: myproject.rasmap
    – a partial result snapshot file: myproject.p01.snapshot.hdf

    We can plot a snapshot in RasMapper using the following process.
    1. open the rasmapper configuration file “myproject.rasmap” using a text editor
    2. find the initial and final tags for Results:
    3. add the following lines for a new layer (which will hold the snapshot)








    In summary:
    – Backup the .rasmap or take the risks
    – Set the .hdf filename by using the Filename tags
    – Set the layer title by using the first tag of Layer Name

    Tips:
    – I prefer to insert the lines just before the because it is easier to find/edit/remove without messing with other layers.
    – We can also copy the lines from another result and make edits – probably easier!

    I think editing the .rasmap provides more flexibility to manage the result files and it’s not that hard once we have a template.

    Try it and have fun!

    PS: I’m not sure, but I believe the “ProfileIndex”=”2147483647” is a default pointer for the “Simulation Maximum” selector.

    #12889
    cameron
    Participant

    The easier answer is just to rename the snapshot file and reopen Mapper.

    For instance when it is created it will be called myproject.p01.snapshot.hdf. Just rename it to myproject.p01.hdf and it will open in Mapper. If you already have a solution file because you are just rerunning the model, you will have to delete it

    #12890
    minovsor
    Participant

    Dear Cameron,

    Thanks for building upon my post. Renaming is much easier and I’m glad to learn that overwriting the .hdf during the model execution is safe. This is great!

    I believe intermediate and advanced users can benefit from understading details of the HEC-RAS files.

    I’m curious and like the power to tweak ascii files (e.g. cleaning projects, scripting, etc.), so I took the opportunity to share a bit of how RasMapper deals with results in .rasmap file.

    Best regards,

    #12891
    cameron
    Participant

    I like to modify the *.rasmap file as well (along with the other text files), but I have found that Mapper does not always use the changes you you make to the rasmap file so I am extra cautious when working within that file.

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