I am trying to write an HDF5 file. The file basically contains a large timeseries matrix in the following format
TimeStamp Property1 Property2 I have managed to write the data successfully, I created a dset and used the H5Dwrite function. Now my question is how do I create a file header, in other words, if I want to write the following array to the file... ['TimeStamp', 'Property1', 'Property2'] ...and tag it to the columns for ease of later use ( I am planning to analyze the matrix in Python). How to do that? I tried to use H5Dwrite to write a string array but failed, I guess it wanted consistent datatypes, so it just wanted floats, which is the datatype for my data. Then I read about this metadata thing, but I am a bit lost as to how to use it? Any help would be much appreciated. A related side question is can the first row of a matrix be a string and the others rows contain doubles?
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
