Accessing objects by location and name:
Many HDF5 function calls use a combination of a location and name to identify an HDF5 object.

The location will be specified by a location identifier, loc_id, and will be an HDF5 file or an object in a file, such as a group, dataset or named datatype.

The name, name, will be a character string and will specify an object in an HDF5 file, such as a group, dataset or named datatype. name will specify that object by either an absolute path in the file specified by loc_id or by a relative path relative to loc_id.

Sample file structure:
DATA_FILE1

The loc_id and name combination, as used in these function calls, can interact in any of several ways. To illustrate, the following combinations all identify dset3 in the illustrated file structure.

Many HDF5 functions accept loc_id and name in all of the above combinations. When accepted combinations are limited for a specific function, the limitations are mentioned in the function’s reference manual entry.

For a related discussion of the structure of HDF5 files and HDF5 path names, see “The Structure of an HDF5 File” (particularly the subsection “HDF5 Path Names and Navigation”) in the “HDF5 Data Model and File Structure” chapter of the HDF5 User’s Guide.