Introduction
A .raw file holds the waveforms a SPICE circuit simulator has calculated.
ngspice, LTspice, QSPICE and Xyce write files of this family, with differences between
them.
Structure
A text header comes first, with lines such as Title, Date,
Plotname, Flags (real or complex among others),
No. Variables and No. Points, then a Variables
list giving the number, name and type of each trace. The data section that follows is
marked Binary or Values, the latter being ASCII.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the binary number sizes and ordering, and the differences between the simulators.
- Viewer: the site has no viewer for this format.
Also used for
- Raw PCM audio – Bare audio samples with no header: the format must be known in advance.
Links
Software
- ngspice – open source circuit simulator
- LTspice – circuit simulator
Developers
- spicelib – reads raw files from several simulators (Python)
Reference
- RAW file structure – PyLTSpice’s description of the header and data
- ngsconvert manual page – ngspice’s raw file converter