Hi Vlad, This PyTables page shows the output of a Pytables file (tutorial1.h5) using h5ls: http://www.pytables.org/usersguide/tutorials.html
It is a compound datatype. On the Examples by API page are C examples: https://support.hdfgroup.org/HDF5/examples/api-c.html Under “Datatypes” is an example to “Read / Write Compound Datatypes (Dataset)”: h5ex_t_cmpd.c Also, the High Level Table (H5TB) APIs allow you how to create and modify simple tables (compound datatypes) in HDF5. There is a tutorial here, in case that might help: https://support.hdfgroup.org/HDF5/Tutor/h5table.html -Barbara From: Hdf-forum [mailto:hdf-forum-boun...@lists.hdfgroup.org] On Behalf Of Vlad Danilov Sent: Tuesday, November 21, 2017 8:58 AM To: HDF Users Discussion List Subject: Re: [Hdf-forum] ***SPAM*** H5T_ARRAY The problem solved, i just had to install 'blosc' filter and put it into default dir /usr/local/hdf5/lib/plugin But i have a question, maybe it's a bit offtopic, but still - does somebody knows how to read PyTables in hdf5 format using C API? thank You Понедельник, 20 ноября 2017, 15:30 +01:00 от Rafal Lichwala <syri...@man.poznan.pl<mailto:syri...@man.poznan.pl>>: Hello Vlad, Please send me example HDF5 file and your current C code which you are trying to use to read that file and I will try to find a solution. Regards, Rafal W dniu 2017-11-19 o 19:46, Vlad Danilov pisze: > > Hello, > > my name is Vlad and HDF5 is new for me. > I want to ask an advise in one case. > i have a datatype and there i have smth like: > > DATATYPE H5T_COMPOUND { > H5T_STD_U32LE "fillnum"; > H5T_STD_U32LE "runnum"; > H5T_STD_U32LE "lsnum"; > H5T_STD_U32LE "nbnum"; > H5T_STD_U32LE "timestampsec"; > H5T_STD_U32LE "timestampmsec"; > H5T_STD_U8LE "publishnnb"; > H5T_STD_U8LE "datasourceid"; > H5T_STD_U8LE "algoid"; > H5T_STD_U8LE "channelid"; > H5T_ARRAY { [3564] H5T_STD_U16LE } "data"; > } > > to read it i'm creating a structure and then read the file into it, i > define the structure in my code like this: > typedef struct { > unsigned int fillnum; > unsigned int runnum; > unsigned int lsnum; > unsigned int nbnum; > unsigned int timestampsec; > unsigned int timestampmsec; > unsigned char publishnnb; > unsigned char datasourceid; > unsigned char algoid; > unsigned char channelid; > unsigned short data[3564]; > } bcm1fagghist_type; > but looks like for H5T_ARRAY line 'unsigned short data[3564];' is wrong. > could You advise me how to read it? > ------------------------------------------------------------------------ > > Kind regards, > Vlad Danilov > > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org> > http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org > Twitter: https://twitter.com/hdf5 > _______________________________________________ Hdf-forum is for HDF software users discussion. Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5 Kind regards, Vlad Danilov
_______________________________________________ Hdf-forum is for HDF software users discussion. Hdf-forum@lists.hdfgroup.org http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5