Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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?