Please look at the example posted here http://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/hdf5-examples/1_8/C/H5T/h5ex_t_stringatt.c
Elena ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Elena Pourmal The HDF Group http://hdfgroup.org 1800 So. Oak St., Suite 203, Champaign IL 61820 217.531.6112 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On Oct 19, 2012, at 9:03 AM, sudipta sarkar wrote: > Folks > Can anyone show me a simple example of how to read a series of STRING > attributes where each are like one of of the following: > > ATTRIBUTE "N_Aux_Filename" { > DATATYPE H5T_STRING { > STRSIZE 105; > STRPAD H5T_STR_NULLTERM; > CSET H5T_CSET_ASCII; > CTYPE H5T_C_S1; > } > DATASPACE SIMPLE { ( 2, 1 ) / ( 2, 1 ) } > } > > ATTRIBUTE "N_Input_Prod" { > DATATYPE H5T_STRING { > STRSIZE 33; > STRPAD H5T_STR_NULLTERM; > CSET H5T_CSET_ASCII; > CTYPE H5T_C_S1; > } > DATASPACE SIMPLE { ( 4, 1 ) / ( 4, 1 ) } > } > > and so on..... > > Thanks and regards > _______________________________________________ > Hdf-forum is for HDF software users discussion. > [email protected] > http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
