Hello, I am trying to re-create the types below from an Hdf5 file created by another software package (output below was generated from h5dump) but am not quite sure on how to define them. I am using h5dotnet wrappers (though c examples would help).
1) This appears to be a fixed-length string. It seems straightforward enough, but the h5dotnet docs suggest using ascii character arrays which give a different type signature. Any reason the h5t_c_s1 type cannot be used in c#?
2) Not clear what this type is and how the sizes are specified or mean.
Thanks.
--Jim
ATTRIBUTE "attribute1" {
DATATYPE H5T_STRING {
STRSIZE 6;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SCALAR
DATA {
(0): "valuea"
}
}
ATTRIBUTE "attribute2" {
DATATYPE H5T_VLEN { H5T_STRING {
STRSIZE 1;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}}
DATASPACE SIMPLE { ( 5 ) / ( 5 ) }
DATA {
(0): ("f", "i", "e", "l", "d", "1"), ("f", "i", "e", "l", "d", "2"),
(2): ("f", "i", "e", "l", "d", "3"), ("f", "i", "e", "l", "d", "4"),
(4): ("f", "i", "e", "l", "d", "5")
}
}