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.commit

Commit transient data type

Syntax

H5T.commit(loc_id,name,type_id)
H5T.commit(loc_id,name,type_id,lcpl_id,tcpl_id,tapl_id)

Description

H5T.commit(loc_id,name,type_id) commits a transient data type to a file, creating a new named data type. loc_id is a file or group identifier. name is the name of the data type and type_id is the data type id. This interface corresponds to the 1.6.x version of H5Tcommit.

H5T.commit(loc_id,name,type_id,lcpl_id,tcpl_id,tapl_id) commits a transient data type to a file, creating a new named data type. loc_id is a file or group identifier. name is the name of the data type and type_id is the data type id. lcpl_id, tcpl_id, and tapl_id are link creation, data type creation, and data type access property list identifiers. This interface corresponds to the 1.8.x version of H5Tcommit.

Examples

Create a named variable-length data type.

plist_id = 'H5P_DEFAULT';
fid = H5F.create('myfile.h5','H5F_ACC_TRUNC',plist_id,plist_id);
base_type_id = H5T.copy('H5T_NATIVE_DOUBLE');
vlen_type_id = H5T.vlen_create(base_type_id);
H5T.commit(fid,'MyVlen',vlen_type_id);
H5T.close(vlen_type_id);
H5T.close(base_type_id);
H5F.close(fid);
Was this topic helpful?