hdf images hdf images

H5EDIT

The HDF5 file editor, h5edit, is a tool for editing an HDF5 file. The tool can read in a command file, written in the h5edit Command Language, to edit the file accordingly. Commands can also be specified by command line options. This is intended for simple and short commands. The h5edit Command Language is defined in the Definition of the h5edit Command Language document (pdf).

This first release supports commands for the creation and deletion of attributes of datasets and groups only. Support for more commands and other HDF5 objects will be implemented in future releases.

Here are some simple examples of using the H5edit tool.

$ h5edit -c "DELETE /sta1/month12/temperature" greenland.h5
This deletes the attribute temperature from dataset /sta1/month12 in the HDF5 data file greenland.h5.

$ h5edit -c "CREATE /sta1/month12/temperature {{-40.0}}" greenland.h5
This creates in dataset /sta1/month12, a new attribute temperature, which is of the datatype of H5T_NATIVE_FLOAT and dataspace of SCALAR (single data) with the value of -40.0, in the HDF5 data file greenland.h5. Note that if the above two commands are executed in sequence, they have the net effect of changing the value of the attribute temperature. (The CHANGE command is not supported but will be implemented in the future.)


Use menu items on the left or click on the links below to access documentation and source for the tool


- - Last modified:October 10th 2011