Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following example demonstrates how to create and write a dataset using the HDF5 Lite function H5LTmake_dataset.

C Example

There are other Lite functions that allow the writing of a dataset. These functions are type specific; there is one of them for each of the most common HDF5 datatypes. These functions are listed below. For example, to write an integer array of data, use the H5LTmake_dataset_int function:

...

The following example demonstrates how to read a dataset using the HDF5 Lite function H5LTread_dataset_int:

C Example

Similar to the make dataset functions, the common types that have specific read functions are the following:

...

The following example demonstrates how to write and read an attribute using the HDF5 Lite functions H5LTset_attribute_int and H5LTget_attribute_int.

C Example

The more common Lite functions that allow the creating of attributes are listed below. These functions are type specific; there is one for each of the most common HDF5 datatypes. There are similar functions for reading.

...