Using the example from Compound datatype with int, float and array of floats - #2 by ajelenak , I get this rendering in HDFView
The h5dump output looks like this:
HDF5 "hdf-forum-8083.h5" {
GROUP "/" {
GROUP "group1" {
DATASET "ds1" {
DATATYPE H5T_COMPOUND {
H5T_STD_I32LE "id";
H5T_IEEE_F32LE "time";
H5T_ARRAY { [10][2] H5T_IEEE_F32LE } "matrix";
}
DATASPACE SIMPLE { ( 10 ) / ( 10 ) }
}
}
}
}
I’m not sure what you mean by “row headers.” There are row indexes, the greyish leftmost column, 1-based.
This is a 1D dataset (array). Each element (cell) of the dataset has three fields (id, time, matrix), but they are fields of the compound datatype, not the dataset. You are welcome to think about this as a table, but it is not a table in the sense of tables in the relational model. As it is set up, HDFView renders ND-arrays as stacks of 2D slices. Aside from the array indices, there are no headers to speak of. One could write a GUI module to change that rendering or modify the HDFView code to change the rendering of 1D compound datasets, but that’s not been done to my knowledge.
G.

