The following example uses the groups.h5 file that is created by the HDF5 Introductory Tutorial example
h5_crtgrpar.c. To display
dset1 in the groups.h5 file below, specify dataset
/MyGroup/dset1 . The
-H option is used to suppress printing of the data values:
You can obtain the
h5ex_d_gzip.c program that created this file, as well as the file created, from the HDF5 C Examples by API page.
The following datatypes are discussed, using the output of
h5dump with HDF5 files from the HDF5 C Examples by API page:
This dataset is much more complex. Also note that subsetting cannot be done on Array datatypes.
See this FAQ for more information on the Array datatype.
An example of a Region Reference dataset ( h5ex_t_regref.h5 ) can be found on the C Examples by API page, under Datatypesunder Datatypes. If you examine this dataset with
h5dump you will see that
/DS1 is a Region Reference dataset as indicated by its datatype, highlighted in bold below:
A selection of four individual elements in dataset
/DS2: (0,1), (2,11), (1,0), (2,4)
See the H5SselectH5S_elementsSELECT_ELEMENTS API in the HDF5 User's Guide for information on selecting individual elements.
- A selection of these blocks in dataset
/DS2: (0,0)-(0,2), (0,11)-(0,13), (2,0)-(2,2), (2,11)-(2,13)
See the H5SselectH5S_hyperslabSELECT_HYPERSLAB API in the HDF5 User's Guide for how to do hyperslab selection.