Wolfram Language

Accumulate Structured Data in HDF5

HDF5 allows for incremental accumulation of structured data by appending new data to an existing file.

In this example, you can collect data about Mars's and Jupiter's orbit paths and other properties like semimajor axis, eccentricity and inclination from PlanetData and gradually add them to an HDF5 file.

Here is the initial set of data to be saved.

Describe a compound HDF5 type to store orbit properties for a single planet.

Export collected data to HDF5.

Investigate the contents of the file.

Check attribute values.

Now, get some information about Venus's orbit and append it to the same file using the option OverwriteTarget -> "Append".

Related Examples

de es fr ja ko pt-br zh