Documentation Center

  • Trial Software
  • Product Updates
我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

H5R.dereference

Open object specified by reference

Syntax

output = H5R.dereference(dataset,ref_type,ref)

Description

output = H5R.dereference(dataset,ref_type,ref) returns an identifier to the object specified by ref in the dataset specified by dataset.

Examples

plist = 'H5P_DEFAULT';
space = 'H5S_ALL';
fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/reference');
ref_data = H5D.read(dset_id,'H5T_STD_REF_OBJ',space,space,plist);
deref_dset_id = H5R.dereference(dset_id,'H5R_OBJECT',ref_data(:,1));
H5D.close(dset_id);
H5D.close(deref_dset_id);
H5F.close(fid);

See Also

|

Was this topic helpful?