i have a h5 file and i want to read its data in my java program. first of all, i import the sis-jhdf5-batteries_included.jar to my project, then, i use the follow code to read a dataset:
IHDF5Reader reader=HDF5Factory.openForReading(h5filepath); reader.int16().readArray("/REF/DataSet_1000_1"); reader.close();
unfortunatly, when i run the program, it thorws out an exception:
in thread "main" ncsa.hdf.hdf5lib.exceptions.HDF5LibraryException: Plugin for dynamically loaded library:Can't open directory or file ["H5PL.c line 402 in H5PL__find(): can't open directory"] at ch.systemsx.cisd.hdf5.hdf5lib.H5.H5Dread(Native Method) at ch.systemsx.cisd.hdf5.hdf5lib.H5D.H5Dread(H5D.java:381) at ch.systemsx.cisd.hdf5.HDF5.readDataSet(HDF5.java:944) at ch.systemsx.cisd.hdf5.HDF5ShortReader.readShortArray(HDF5ShortReader.java:199) at ch.systemsx.cisd.hdf5.HDF5ShortReader.access$1(HDF5ShortReader.java:192) at ch.systemsx.cisd.hdf5.HDF5ShortReader$5.call(HDF5ShortReader.java:186) at ch.systemsx.cisd.hdf5.HDF5ShortReader$5.call(HDF5ShortReader.java:1) at ch.systemsx.cisd.hdf5.cleanup.CleanUpCallable.call(CleanUpCallable.java:40) at ch.systemsx.cisd.hdf5.HDF5ShortReader.readArray(HDF5ShortReader.java:189) at VariableTest.main(VariableTest.java:24)
i don't know how to solve this problem, anyone can help me?
the h5 file's data format like this ( use hdfview to open it ):
when i double click on the DataSet_1000_1, the same exception happens:
the DataSet_1000_1 in fact is a 2D image (1200*1200)
any answer will be appreciated, thanks in advance!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Any other country that celebrates Midsummer holiday (this friday 22 June)?
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs