Quantcast

Documentation Center

  • Trial Software
  • Product Updates

H5A.get_name

Attribute name

Syntax

attr_name = H5A.get_name(attr_id)

Description

attr_name = H5A.get_name(attr_id) returns the name of the attribute specified by attr_id.

Examples

fid = H5F.open('example.h5');
gid = H5G.open(fid,'/g1/g1.1');
idx_type = 'H5_INDEX_NAME';
order = 'H5_ITER_INC';
attr_id = H5A.open_by_idx(gid,'dset1.1.1',idx_type,order,0);
name = H5A.get_name(attr_id);
H5A.close(attr_id);
H5G.close(gid);
H5F.close(fid);

See Also

Was this topic helpful?