H5A.get_type

Copy of attribute data type

Syntax

type_id = H5A.get_type(attr_id)

Description

type_id = H5A.get_type(attr_id) returns a copy of the data type for the attribute specified by attr_id.

Examples

fid = H5F.open('example.h5');
gid = H5G.open(fid,'/');
attr_id = H5A.open(gid,'attr1');
type_id = H5A.get_type(attr_id);
H5T.close(type_id);
H5A.close(attr_id);
H5G.close(gid);
H5F.close(fid);

See Also

|

Was this topic helpful?