Read HP SDF binary and ASCII files
Project description
sdfascii
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).
The HP/Agilent 35670A Dynamic Signal Analyzer has the ability to save files as either SDF or ASCII format.
HP/Agilent SDF Binary 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.
HP/Agilent DSA ASCII Format
Four files are created when saving to the HP/Agilent DSA ASCII format:
.HDRcontains SDF header information.TXTcontains the y-axis information, preserving the same units as displayed on the analyzer screen when the trace was saved.Xcontains the x-axis information.Zcontains the z-axis information, if the trace contains waterfall data
Source: Agilent discussion forum question When I save the trace in the ASCII format, there are 4 files created with extensions of .txt, .hdr, .x, and .z. What are the contents of these files?
Contributing
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
Development Setup
Development Setup Using pyenv
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
License
sdfascii is released under the MIT license. Please see the LICENSE.txt file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sdfascii-0.8.2.tar.gz.
File metadata
- Download URL: sdfascii-0.8.2.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d3ffd3a8a68790a1992c3374685bddb1db5c216ce346118f97542920a9d5357
|
|
| MD5 |
c5ba1d409cd47fb42dc77fb1e336d100
|
|
| BLAKE2b-256 |
3b1937e1f1b126d7a144809b95ef9ffc2478741b85b68635b911633248069dbc
|
File details
Details for the file sdfascii-0.8.2-py3-none-any.whl.
File metadata
- Download URL: sdfascii-0.8.2-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1105fe693689a3decd49cbbc00043143386855f4a9283a80181b7d3bf4bfbc90
|
|
| MD5 |
4208e7cda020f7db784ce5f446dba7b9
|
|
| BLAKE2b-256 |
d63cb296a98def9ece698621cc9f150acd88f03434e7bbc24f0999c2a0bcd67b
|