On Wed, Jan 13, 2010 at 07:28:53PM -0500, John W. Eaton wrote: > | A sample file is attached to the gentoo report and here enclosed. It is > | correctly dumped by hdf5 tools. > > How did you create the file? > > Octave's load function is only designed to load HDF5 files created by > Octave. There is no guarantee that it can load any and all arbitrary > HDF5 files. If it loads anything else, then it was just luck. > > jwe
Ok, point catched, load() cannot be used as a method to dump a generic hdf5 file and some better tool is required. That's true also for very simple files like that (a single 3x3 matrix). Feel free to close this bug or make it a wishlist/wontfix eventually. HDF5 "file.hdf5" { GROUP "/" { GROUP "MatrixA" { DATASET "columnlabels" { DATATYPE H5T_STRING { STRSIZE 6; STRPAD H5T_STR_NULLTERM; CSET H5T_CSET_ASCII; CTYPE H5T_C_S1; } DATASPACE SIMPLE { ( 1, 3 ) / ( 1, 3 ) } DATA { (0,0): "col_0", "col_1", "col_2" } } DATASET "data" { DATATYPE H5T_IEEE_F64LE DATASPACE SIMPLE { ( 3, 3 ) / ( 3, 3 ) } DATA { (0,0): 1, 4, 7, (1,0): 2, 5, 8, (2,0): 3, 6, 9 } } DATASET "rowlabels" { DATATYPE H5T_STRING { STRSIZE 6; STRPAD H5T_STR_NULLTERM; CSET H5T_CSET_ASCII; CTYPE H5T_C_S1; } DATASPACE SIMPLE { ( 1, 3 ) / ( 1, 3 ) } DATA { (0,0): "row_0", "row_1", "row_2" } } } } } HDF5 "file-oct.hdf5" { GROUP "/" { COMMENT "# Created by Octave 3.2.3, Thu Jan 14 14:58:36 201ΓΈ" GROUP "a" { ATTRIBUTE "OCTAVE_NEW_FORMAT" { DATATYPE H5T_STD_U8LE DATASPACE SCALAR DATA { (0): 1 } } DATASET "type" { DATATYPE H5T_STRING { STRSIZE 7; STRPAD H5T_STR_NULLTERM; CSET H5T_CSET_ASCII; CTYPE H5T_C_S1; } DATASPACE SCALAR DATA { (0): "matrix" } } DATASET "value" { DATATYPE H5T_IEEE_F64LE DATASPACE SIMPLE { ( 3, 3 ) / ( 3, 3 ) } DATA { (0,0): 1, 4, 7, (1,0): 2, 5, 8, (2,0): 3, 6, 9 } } } } } -- Francesco P. Lovergine -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org