Create new data type
output = H5T.create(class_id,size)
output = H5T.create(class_id,size)
creates
a new data type of the class specified by class_id
,
with the number of bytes specified by size
. The output
argument
is a data type identifier.
Create a signed 32-bit enumerated data type.
type_id = H5T.create('H5T_ENUM',4); H5T.set_order(type_id,'H5T_ORDER_LE'); H5T.set_sign(type_id,'H5T_SGN_2'); H5T.enum_insert(type_id,'black',0); H5T.enum_insert(type_id,'white',1);