How to read an HDF5 with ironPython

Hi there,
I am dealing with some post processing of some very large data set written in the hd5f file format.
Have anyone tried to open this kind of file before? Can you please help?

I have tried to use http://hdf5.net/ but with no luck. h5py works well in Cpython but it shouldn’t work in Ghpython.
I attach an example file for the brave :laughing:

Thanks,
Marco

Hello,

This library seems to be pure python - maybe that will work ?

-Graham

Hi Graham,
thanks for the suggestion! I’ll definitely have a more look at “unofficial” library.
I have tried but it didn’t work but I am not sure what it could be the problem.
Have you tried to open the attached file?

I have updated the .hdf5 file.

No I haven’t tried - maybe the library doesnt work, or not for your files …

Hi @AndersDeleuran . Sorry to bother but I know that you work for an engineering company and you are maybe able to help :sweat_smile:

Have you ever get into this problem?
With h5py is super easy to solve the problem. I don’t understand why it has to be so complicated in .net

Best,
Marco

I’m afraid I don’t have any experience with HDF5 (I’m not actually part of the engineering team :wink: ). What kind of problems/errors are you experiencing/getting with the HDF5DotNet assembly? From a quick glance it looks like it’s simply wrapping a bunch of C++ code, so you might be able to implement this directly using ctypes (i.e. similar to what I did for ShapeOp). That said, I think I’d try to implement the pure Python library that Graham suggested first.

1 Like

thanks Anders. Really appreciate it!
I think it is a file compatibility version issue. I am now trying to get help from HDF GROUP FORUM.
I hope they will help

1 Like