Reference (H5R)
HDF5 references
Description
Use the MATLAB® HDF5 reference interface, H5R, to create and access
information about references to HDF5 objects.
Functions
H5R.create
Create reference
ref = H5R.create(locID,objname,reftype,spaceID) creates a reference
ref of the type specified in reftype pointing to
the object specified by objname and locID.
H5R.dereference
Open object specified by reference
output = H5R.dereference(dsID,reftype,ref) returns an identifier to
the object specified by ref in the dataset specified by
dsID. This syntax corresponds to the
H5Rdereference interface in version 1.8 of the HDF5 C library.
output = H5R.dereference(dsID,plistID,reftype,ref) returns an
identifier to the object specified by ref in the dataset specified by
dsID and with additional property list plistID.
This syntax corresponds to the H5Rdereference interface in version 1.10
of the HDF5 C library.
H5R.get_name
Name of referenced object
name = H5R.get_name(locID,reftype,ref) returns the name of the object
identified by ref of type reftype located in a
dataset or group locID.
name = H5R.get_name(locID,reftype,ref,"TextEncoding",encoding)
specifies the text encoding to use to interpret the reference name.
H5R.get_obj_type
Type of referenced object
objType = H5R.get_obj_type(locID,reftype,ref) returns the type of
object that an object reference points to. This syntax corresponds to the
H5Rget_obj_type interface in version 1.8 of the HDF5 C library.
H5R.get_region
Copy of dataspace of specified region
spaceID = H5R.get_region(fileID,reftype,ref) returns a dataspace with
the specified region selected. fileID is used to identify the file
containing the referenced region and can be any identifier for any object in the
file.
Examples
Version History
Introduced before R2006aSee Also
Library (H5) | Dataset (H5D) | File (H5F) | Group (H5G) | Object (H5O) | Dataspace (H5S) | Datatype (H5T)
