It is possible to insert records from a table into another table. The H5TBadd_records_from
is used to add records
from a table to another.
H5TBadd_records_from( file_id, "Table1", start1, nrecords, "Table2",
start2);
This call reads nrecords
records from "Table1"
, starting at
position start1
, and inserts those records into "Table2"
, starting at
position start2
.
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_09.c
ex_table_09.h5
NOTE: To download a tar file of all of the examples, including a Makefile, please go to the Index page.