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.

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

H5A.open_by_name

Open attribute specified by name

Syntax

attr_id = H5A.open_by_name(loc_id,obj_name,attr_name)
attr_id = H5A.open_by_name(loc_id,obj_name,attr_name,aapl_id,lapl_id)

Description

attr_id = H5A.open_by_name(loc_id,obj_name,attr_name) opens an existing attribute attr_name attached to an object specified by its location loc_id and name obj_name.

attr_id = H5A.open_by_name(loc_id,obj_name,attr_name,aapl_id,lapl_id) opens an existing attribute with the attribute access property list aapl_id and link access property list lacpl_id. aapl_id must be specified as 'H5P_DEFAULT'. lapl_id may also be specified by 'H5P_DEFAULT'.

Examples

fid = H5F.open('example.h5');
gid = H5G.open(fid,'/g1/g1.1');
attr_id = H5A.open_by_name(gid,'dset1.1.1','attr1');
H5A.close(attr_id);
H5G.close(gid);
H5F.close(fid);
Was this topic helpful?