Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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?