A new field can be inserted into a table. We use the function H5TBinsert_field
.
To use this function we have to supply the field name, its type, the position
where to insert the field and the dada
to insert in the table. The following
call inserts a field called "New Field"
into the table named "Table1".
H5TBinsert_field( file_id, "Table1", "New Field", field_type, position,
fill_data, data);
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_11.c
ex_table_11.h5
NOTE: To download a tar file of all of the examples, including a Makefile, please go to the Index page.