在 .net 中读取 HDF5 文件

问题描述

我正在尝试使用 HDF5DotNet.dll 读取文件,但出现以下错误:

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

我已经能够用 HDFView 打开文件,所以我很确定文件没有损坏。 该文件是从使用“HDF5 库版本:1.10.1”的 FEA 软件创建的。

我附上了文件,以防有人想帮忙

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

我使用过的代码

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()

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)