Required
samples_per_trace| Type: | int |
| Description: | The number of samples per trace. |
bytes_per_sample == 4:
No compression - raw IEEE float 32 dataFor `bytes_per_sample == 2` = 16 bit dynamic range per packet: `| float32 factor | | int16 value | | int16 value| ...` For `bytes_per_sample == 1` = 8 bit dynamic range per packet: `| float32 factor | | int8 value | | int8 value| ...`
class TraceCompression(builtins.object):
def __init__(
self,
samples_per_trace: int,
samples_per_packet: int,
bytes_per_sample: int,
): ...| Type: | int |
| Description: | The number of samples per trace. |
| Type: | int |
| Description: | The number of samples per packet. |
| Type: | int |
| Description: | The number of bytes per sample. |
def decompress_trace(self, data: np.ndarray) -> np.ndarray: ...| Type: | np.ndarray |
| Description: | The compressed data as a np.int8 byte array. |
def decompress_trace_dynamic_range(
self,
data: np.ndarray,
bytes_per_sample: int,
buf: np.ndarray | None = None,
) -> np.ndarray: ...| Type: | np.ndarray |
| Description: | The compressed data. |
| Type: | int |
| Description: | The number of bytes per compressed sample. |
| Type: | np.ndarray | None |
| Default value: | None |
| Description: | Buffer (np.float32) to store the decompressed data. Will be created if it does not exist. |