Acoular 21.05 documentation


«  WriteWAV   ::   tprocess   ::   SampleSplitter  »


class acoular.tprocess.WriteH5

Bases: acoular.tprocess.TimeInOut

Saves time signal as *.h5 file

name = File(filter=['*.h5'], …

Name of the file to be saved. If none is given, the name will be automatically generated from a time stamp.

numsamples_write = Int(-1)

Number of samples to write to file by result method. defaults to -1 (write as long as source yields data).

precision = Trait('float32', 'float64', …

The floating-number-precision of entries of H5 File corresponding to numpy dtypes. Default is 32 bit.

metadata = Dict( …

Metadata to be stored in HDF5 file object


Saves source output to *.h5 file


adds metadata to .h5 file


Python generator that saves source output to *.h5 file and yields the source output block-wise.


This parameter defines the size of the blocks to be yielded (i.e. the number of samples per block).

Samples in blocks of shape (num, numchannels).

The last block may be shorter than num. Echos the source output, but reads it from cache when available and prevents unnecassary recalculation.

«  WriteWAV   ::   tprocess   ::   SampleSplitter  »