![]() |
LASP 1.0
Library for Acoustic Signal Processing
|
Iterate over blocks of data, scaled with sensitivity and integer scaling between 0 and 1. More...


Public Member Functions | |
| __init__ (self, fa, channels, sensitivity, **kwargs) | |
| Initialize a BlockIter object. | |
| __next__ (self) | |
| Return the next block. | |
Public Member Functions inherited from lasp.lasp_measurement.IterRawData | |
| __iter__ (self) | |
Public Attributes | |
| sens | |
Public Attributes inherited from lasp.lasp_measurement.IterRawData | |
| fa | |
| i | |
| blocksize | |
| channels | |
| istart | |
| istop | |
| firstblock | |
| lastblock | |
| firstblock_start_offset | |
| lastblock_stop_offset | |
Iterate over blocks of data, scaled with sensitivity and integer scaling between 0 and 1.
Definition at line 169 of file lasp_measurement.py.
| lasp.lasp_measurement.IterData.__init__ | ( | self, | |
| f, | |||
| channels, | |||
| kwargs, | |||
| ** | kwargs | ||
| ) |
Initialize a BlockIter object.
Args: f: Audio dataset in the h5 file, accessed as f['audio'] channels: list of channel indices to use istart: index of first sample istop: index of last sample (not including istop)
Reimplemented from lasp.lasp_measurement.IterRawData.
Definition at line 174 of file lasp_measurement.py.
| lasp.lasp_measurement.IterData.__next__ | ( | self | ) |
Return the next block.
Reimplemented from lasp.lasp_measurement.IterRawData.
Definition at line 179 of file lasp_measurement.py.
| lasp.lasp_measurement.IterData.sens |
Definition at line 176 of file lasp_measurement.py.