harry that is
a member of a group called dick, which, in turn, is a
member of the root group.
/dick/harry
H5Fcreate and H5Fclose.
hdf5.h must be included because it contains definitions
and declarations used by the library.
H5T_IEEE_F32LE
- 4-byte little-endian, IEEE floating point H5T_NATIVE_INT
- native integer
DATASPACE { SIMPLE (4 , 6 ) / ( 4 , 6 ) }
dset has a simple dataspace
with the current dimensions (4,6) and the maximum size of the
dimensions (4,6).
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?
/foo/boo/moo
moo described in
the previous section (Section 9, question 2) using a
relative name.
Describe a way to access the same dataset using an absolute name.
/foo and get the group ID.
Access the group boo using the group ID obtained
in Step 1.
Access the dataset moo using the group ID obtained
in Step 2.
gid = H5Gopen (file_id, "/foo", 0); /* absolute path */ gid1 = H5Gopen (gid, "boo", 0); /* relative path */ did = H5Dopen (gid1, "moo"); /* relative path */
/foo and get the group ID.
Access the dataset boo/moo with the group ID
just obtained.
gid = H5Gopen (file_id, "/foo", 0); /* absolute path */ did = H5Dopen (gid, "boo/moo"); /* relative path */
did = H5Dopen (file_id, "/foo/boo/moo"); /* absolute path */