Documentation

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

H5R.get_region

Copy of data space of specified region

Syntax

space_id = H5R.get_region(dataset,ref_type,ref)

Description

space_id = H5R.get_region(dataset,ref_type,ref) returns a data space with the specified region selected. dataset is used to identify the file containing the referenced region and can be any identifier for any object in the file.

Examples

space = 'H5S_ALL';
plist = 'H5P_DEFAULT';
fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/region_reference');
ref_data = H5D.read(dset_id,'H5T_STD_REF_DSETREG',space,space,plist);
space_id = H5R.get_region(fid,'H5R_DATASET_REGION',ref_data(:,1));
H5S.close(space_id);
H5D.close(dset_id);
H5F.close(fid);
Was this topic helpful?