rizer.io.experimental_data.read_trc#

Little helper class to load data from a .trc binary file.

This is the file format used by LeCroy oscilloscopes. M. Betz 09/2015 + pag1pag 03/2024

Copy from sda/io/read_trc.py

Classes#

Functions#

get_data(→ tuple[numpy.ndarray, numpy.ndarray, ...)

Open a .trc file and return the data.

Module Contents#

class rizer.io.experimental_data.read_trc.ReadTrc#
f: None = None#
x: numpy.ndarray | None = None#
y: numpy.ndarray | None = None#
d: dict[str, Any] | None = None#
open(file_name: pathlib.Path) tuple[numpy.ndarray, numpy.ndarray, dict]#

_decode_fixed_length_string .trc binary files from LeCroy Oscilloscopes.

Decoding is based on LECROY_2_3 template. For more information, see: http://forums.ni.com/attachments/ni/60/4652/2/LeCroyWaveformTemplate_2_3.pdf

Parameters:

file_name (pathlib.Path) – Path to the .trc file.

Returns:

time array, signal array, and metadata dictionary.

Return type:

tuple of numpy.ndarray, numpy.ndarray, and dict

rizer.io.experimental_data.read_trc.get_data(file_name: pathlib.Path, deskew: float = 0, interpolation: bool = False) tuple[numpy.ndarray, numpy.ndarray, scipy.interpolate.interp1d | None]#

Open a .trc file and return the data.