Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

H5T.create

Create new data type

Syntax

output = H5T.create(class_id,size)

Description

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.

Examples

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);
Was this topic helpful?