Acoular 24.05 documentation


«  sources   ::   sources   ::   MaskedTimeSamples  »


class acoular.sources.TimeSamples

Bases: SamplesGenerator

Container for time data in *.h5 format.

This class loads measured data from h5 files and and provides information about this data. It also serves as an interface where the data can be accessed (e.g. for use in a block chain) via the result() generator.

name = File(filter=['*.h5'], desc='name of data file')

Full name of the .h5 file with data.

basename = Property(

Basename of the .h5 file with data, is set automatically.

calib = Trait(Calib, desc='Calibration data')

Calibration data, instance of Calib class, optional .

numchannels = CLong(0, desc='number of input channels')

Number of channels, is set automatically / read from file.

numsamples = CLong(0, desc='number of samples')

Number of time data samples, is set automatically / read from file.

data = Any(transient=True, desc='the actual time data array')

The time data as array of floats with dimension (numsamples, numchannels).

h5f = Instance(H5FileBase, transient=True)

HDF5 file object

metadata = Dict(desc='metadata contained in .h5 file')

Provides metadata stored in HDF5 file object


Open the .h5 file and set attributes.


Loads timedata from .h5 file. Only for internal use.


Loads metadata from .h5 file. Only for internal use.


Python generator that yields the output block-wise.

numinteger, defaults to 128

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.

«  sources   ::   sources   ::   MaskedTimeSamples  »