I am trying to write a comma separated string attribute to an HDF5 dataset. I create the data set using,
dset = H5Dcreate(file, "dset1", H5T_NATIVE_DOUBLE, file_space, H5P_DEFAULT, plist, H5P_DEFAULT);
The data is basically columnar, it has fields such as
Timestamp Prop1 Prop2
Now I know that this is a hack, but it suffices for my purpose to somehow tag the dset with a string like "TimeStamp, Prop1, Prop2". I am looking to read the HDF5 file back in python and can easily read the string. I think one can use the H5AWrite method for this. But I am not sure if we can write strings with it, My question is
1) How to use the method to write the comma separated attribute
2) How to read it back while opening the file in Python.
I wasnt able to find any examples to do it in C++. Any pointers will be appreciated.