Navigate back: Main / Getting Started with HDF5 / Learning the Basics
HDF5 File Organization
-
Name and describe the two primary objects that can be stored in an HDF5 file.
-
What is an attribute?
-
Give the path name for an object called
harry
that is a member of a group called dick
, which, in turn, is a member of the root group.
The HDF5 API
-
Describe the purpose of each of the following HDF5 APIs:
H5A, H5D, H5E, H5F, H5G, H5T, H5Z
Creating an HDF5 File
-
What two HDF5 routines must be called to create an HDF5 file?
-
What include file must be included in any file that uses the HDF5 library?
-
An HDF5 file is never completely empty because as soon as it is created, it automatically contains a certain primary object. What is that object?
Creating a Dataset
-
Name and describe two major datatype categories.
-
List the HDF5 atomic datatypes. Give an example of a predefined datatype. How would you create a string dataset?
-
What does the dataspace describe? What are the major characteristics of the simple dataspace?
-
What information needs to be passed to the H5Dcreate function, i.e., what information is needed to describe a dataset at creation time?
Reading From and Writing To a Dataset
-
What are six pieces of information which need to be specified for reading and writing a dataset?
-
Why are both the memory dataspace and file dataspace needed for read/write operations, while only the memory datatype is required?
-
In Figure 6.1, what does this line mean?
DATASPACE { SIMPLE (4 , 6 ) / ( 4 , 6 ) }
Creating an Attribute
-
What is an attribute?
-
Can partial I/O operations be performed on attributes?
Creating an Group
-
What are the two primary objects that can be included in a group?
Creating Groups using Absolute and Relative Names
-
Group names can be specified in two ways. What are these two types of group names?
-
You have a dataset named
moo
in the group boo
, which is in the group foo
, which, in turn, is in the root
group. How would you specify an absolute name to access this dataset?
Creating Datasets in Groups
-
Describe a way to access the dataset moo described in the previous section (question 2) using a relative name. Describe a way to access the same dataset using an absolute name.
Navigate back: Main / Getting Started with HDF5 / Learning the Basics