Read HDF5 file within .net

504 views Asked by At

I am trying to read a file with HDF5DotNet.dll but I am getting the following error:

1. Solution exception:H5F.open
File "recorder.h5"  failed to open with status -1

I have been able to open the file with HDFView so I am pretty sure the file is not corrupted. The file is created from an FEA software that it is using "HDF5 library version: 1.10.1".

I have attached the file in case someone wants to try to help

https://drive.google.com/file/d/1SAKkZf0VGHRfbdPKabyiEPzpEXie4VzC/view?usp=sharing

Code that I have used

import HDF5DotNet

from HDF5DotNet import *

import System
from System import Array, Double, Int64

print('\nInitializing HDF5 library\n')
status = H5.Open()
print('HDF5 ', H5.Version.Major, '.', H5.Version.Minor, '.', H5.Version.Release)

h5file = H5F.open('recorder.hdf5', H5F.OpenMode.ACC_RDONLY)
H5F.close(h5file)
print '\nShutting down HDF5 library\n'
status = H5.Close()
0

There are 0 answers