Menu

Reading H5T_UNIX_D64, H5T_NATIVE_SCHAR, and H5T_BITFIELD types

2014-04-28
2014-04-28
  • Sze Howe Koh

    Sze Howe Koh - 2014-04-28

    Hello,

    I'm new to HDF5, and I'm implementing a program to read .h5 files that will provided by a 3rd party. I currently have the specifications, but no sample files yet.

    I noticed that the types listed in my subject are not listed under "Supported Types" at http://h5labview.sourceforge.net/. I was wondering if I'll be able read H5T_UNIX_D64 as LabVIEW's DBL, H5T_NATIVE_SCHAR as LabVIEW's I8 and H5T_BITFIELD as LabVIEW's U8/U16 (depending on the bitfield length)?

    Thanks in advance!

     
  • Martijn Jasperse

    Hi,
    Thanks for your interest! The "Supported Types" list on the front page refers to those natively implemented by h5labview under the hood. HDF5 supports many, many predefined types (see http://www.hdfgroup.org/HDF5/doc/RM/PredefDTypes.html) which are not listed for the sake of brevity. If it is possible for HDF5 to convert between one of these natively implemented types and the type in the file, HDF5 will do so automatically.

    So yes, you should be able to read those values from the file. I have not used a H5T_BITFIELD type before, but I expect it should unpack into a native unsigned value fine.

    Cheers,
    Martijn

     
  • Sze Howe Koh

    Sze Howe Koh - 2014-04-28

    Great, thank you for your clarifications!

    Also, thank you for creating these bindings -- they look very well-designed and intuitive.

     

Log in to post a comment.

Auth0 Logo