Dr. X wrote:
Hi All,
I am trying
hid_t dataset_id = H5Dcreate(group_frame_id, "mass (GeV/(c^2))", std_type_id, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); And the returned dataset_id = -1. If I changed the string to "mass (GeV_(c^2))", I got a valid dataset_id. Is "/" a special/reserved character in HDF5? Is there such a reserved character list for HDF5?
Hi Xunlei,

If your goal is to indicate the units of mass used then a more common approach is to specify those as a bit of metadata, for example as an HDF5 attribute called "Units" which a value of "GeV/(c^2)".

Cheers,
--dan

--
Daniel Kahn
Science Systems and Applications Inc.
301-867-2162


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to