Two tables can be combined into a third. We use the function H5TBcombine_tables
.
To use this function only the names of the tables is necessary. The following
call combines "Table1"
and "Table2"
into
a new table called "Table3".
H5TBcombine_tables( file_id1, "Table1", file_id2, "Table2",
"Table3" );
The tables can be located on different files, identified by file_id1
and file_id2
(identifiers obtained with H5Fcreate
).
The following C program provides an example. The corresponding HDF5 file that is generated is also referenced here. You can use an HDF5 file browser to access this file by clicking on the link below.
ex_table_10.c
ex_table_10.h5
NOTE: To download a tar file of all of the examples, including a Makefile, please go to the Index page.