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
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
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to