As the title suggests I'm trying to create an array of compounds which again is a member of a compound, using the Java Native Interface for the HDF5 Library. The datatype should look like this:
- Compound Datatype filetype
- index: Int
- nest:Array[filetype_inside]
- Compund Datatype filetype_inside
- long: long
Here (http://pastebin.com/tepFdWZk) I am using the H5Dwrite method together with a byte array in which i put the data. The Example compiles and runs however only the "index" field, which i put in there as an example, shows up in the HDF5-File created. The compound Array does not.
Is there any way to accomplish this?
Thanks you for any ideas.
Notes:
It may not be possible, although I haven't found anything saying it's not. This (http://www.hdfgroup.org/hdf5-quest.html#jlimit) links to a release note talking about the limitations of HDFview, not the JNI for HDF5.
I left off most of the error checking in the example for readability.
Even better would be a Variable-Length field instead of the array, but I'm pretty sure thats impossible due to the lack of structs/pointers in Java. However if you know a way... :P
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
