Acoular 16.5 documentation


«  SamplesGenerator   ::   sources   ::   MaskedTimeSamples  »


class acoular.sources.TimeSamples

Bases: acoular.sources.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( depends_on = 'name', #filter=['*.h5'], desc="basename of data file")

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(0L, desc="number of input channels")

Number of channels, is set automatically / read from file

numsamples = CLong(0L, 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(tables.File, transient = True)

HDF5 file object


Python generator that yields the output block-wise.


num : integer, 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.

«  SamplesGenerator   ::   sources   ::   MaskedTimeSamples  »