Documentation Center

  • Trial Software
  • Product Updates

H5T.get_inpad

Internal padding type for floating-point data types

Syntax

pad_type = H5T.get_inpad(type_id)

Description

pad_type = H5T.get_inpad(type_id) returns the internal padding type for unused bits in floating-point data types. type_id is a data type identifier. pad_type can be H5T_PAD_ZERO, H5T_PAD_ONE, or H5T_PAD_BACKGROUND.

Examples

 fid = H5F.open('example.h5');
 dset_id = H5D.open(fid,'/g3/float');
 type_id = H5D.get_type(dset_id);
 pad_type = H5T.get_inpad(type_id);
 switch(pad_type)
     case H5ML.get_constant_value('H5T_PAD_ZERO')
         fprintf('pad zero\n');
     case H5ML.get_constant_value('H5T_PAD_ONE');
         fprintf('pad one\n');
     case H5ML.get_constant_value('H5T_PAD_BACKGROUND')
         fprintf('pad background\n');
 end

See Also

Was this topic helpful?