fema-ffrd / rashdf

Read data from HEC-RAS HDF files.
MIT License
6 stars 0 forks source link

Investigate MDAL #3

Open thwllms opened 6 months ago

thwllms commented 6 months ago

The Mesh Data Abstraction Library (MDAL) is able to read the HEC-RAS mesh format, as well as number of other hydrodynamic mesh formats.

Investigate MDAL. Consider:

thwllms commented 6 months ago

MDAL Python API

qijuechenwsp commented 5 months ago

For MDAL exploration, a sample data file in the repo was used as the data input "test.p01.hdf". The library is pretty handy reading the file and different objects generated can be convert to GeoDataframe. The objects often have a method returning their values as numpy.ndarray. However, I tried to use MDAL to open some of the HEC-RAS p01.hdf files on my laptop but failed. MDAL can load the file but was unable to display any information regarding the mesh. Not sure what the cause is. This requires further investigation into input files. I basically ran through the code example on PYPI and repo, plus digging into the source code for more methods. I documented some methods/objects in this library that we might find useful and codes used to transform MDAL object into GeoDataframe. MDAL Exploration Notes.docx

Please feel free to check and let me know what you think!

thwllms commented 5 months ago

@qijuechenwsp can you elaborate on the HDF files on your laptop that failed? What errors did you get? Was there anything strange about those models? (They were 2D models, right?)

qijuechenwsp commented 5 months ago

They are .p01.hdf and .g01.hdf from 1D HECRAS model - the output hdf should be 2D. And the test.p01.hdf in the repo is under folder 1D area so I think 1D output hdf should be a valid input here. I don't have any 2D model output files to test. The error shows below - I found the error defined in the code but couldn't locate which line reports it image