carputils.carpio.sv.SVFile

class carputils.carpio.sv.SVFile(filename, dtype, dsize, bigendian, nsamps=None)

Read a single state variable (sv) file.

It’s unlikely that you will want to instantiate this class directly. Correctly reading an sv file requires additional information found in the header file, which is already done by SVSeries.

Args:
filename : str
The filename to be read
dtype : str
The sv-header data type
dsize : int
The size, in bytes, of the data type
bigendian : bool
Whether the file is big endian
nsamps : int, optional
The number of values in the sv file
close()

Close the file.

data()

Return the sv file contents as a numpy array.

Returns:
numpy.ndarray
The file data
dtype()

Return the file data type.

Returns:
str
The data type name
varname()

Return the variable name, determined from the read file name.

Returns:
str
The variable name