How to get variable length string attribute

Hi, All:

     I am writing some C code to read the attribute value of datasets from HDF5 files. But I have no idea of how to get the attribute value of some dataset when the attribute is a variable string array. Could someone nicely tell me how to solve the problem? Thanks.

     In attached file, there is an dataset "/DS1", with attribute named "A1", the attribute is string array type, with size of 4, and value as "Parting, is such, sweet, sorrow.".

h5ex_t_vlstringatt.h5 (5.54 KB)

···

--

Hi,

Did you look at the example h5ex_t_vlstringatt.c (see http://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/api18-c.html)?

Elena

···

On Oct 27, 2009, at 4:57 AM, 暮如雪 wrote:

Hi, All:

     I am writing some C code to read the attribute value of datasets from HDF5 files. But I have no idea of how to get the attribute value of some dataset when the attribute is a variable string array. Could someone nicely tell me how to solve the problem? Thanks.

     In attached file, there is an dataset "/DS1", with attribute named "A1", the attribute is string array type, with size of 4, and value as "Parting, is such, sweet, sorrow.".

--

"雪见"杨幂邀你共品3D国韵网游《天下贰》,海报免费领 <h5ex_t_vlstringatt.h5>_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org