sdfascii is a Python (3.8+) module for reading the HP/Agilent Standard Data Format (SDF) binary files and the ASCII files saved by HP/Agilent Dynamic Signal Analyzers (DSA). A few examples of using sdfascii can be found at this example repository.
The HP/Agilent 35670A Dynamic Signal Analyzer has the ability to save files as either SDF or ASCII format.
The "Standard Data Format Utilities User's Guide" version B.02.01, P/N 5963-1715 was used to determine the SDF file format while developing sdfascii.
Four files are created when saving to the HP/Agilent DSA ASCII format:
.HDR
contains SDF header information.TXT
contains the y-axis information, preserving the same units as displayed on the analyzer screen when the trace was saved.X
contains the x-axis information.Z
contains the z-axis information, if the trace contains waterfall data
Contributions are welcome! To contribute please:
- Fork the repository
- Create a feature branch
- Add code and tests
- Pass lint and tests
- Submit a pull request
Use the following commands to create a Python 3.9.9 virtualenv using pyenv
and pyenv-virtualenv, install the requirements in the virtualenv named
sdfascii
, and list the available Invoke tasks.
$ pyenv virtualenv 3.11 sdfascii
$ pyenv activate sdfascii
$ pip install --upgrade pip
$ pip install -r requirements.txt
$ inv -l
sdfascii is released under the MIT license. Please see the LICENSE.txt file for more information.