aldanor / hdf5-rust

HDF5 for Rust
https://docs.rs/hdf5
Apache License 2.0
310 stars 85 forks source link

How to append values to a dataset? #97

Closed YoshieraHuang closed 4 years ago

YoshieraHuang commented 4 years ago

I use HDF5 to persist my large time-series data. I want to write my data asynchronously while receiving. Could you tell me how to create a dataset which maxlength is infinite and to append data to the end of this dataset?

magnusuMET commented 4 years ago

You can use the resizable function when declaring your variable.

aldanor commented 4 years ago

As @magnusuMET said, you can declare it as resizable (you can also write slices and not overwrite the whole dataset if needed).

pkptzx commented 2 years ago

@YoshieraHuang Who can give me an example ? append struct

tks