Skip to main content

Read HP SDF binary and ASCII files

Project description

sdfascii

PyPi Version Build Status Coverage Status License Badge

sdfascii is a Python (2.6+/3.3+) 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:

  1. .HDR contains SDF header information
  2. .TXT contains the y-axis information, preserving the same units as displayed on the analyzer screen when the trace was saved
  3. .X contains the x-axis information
  4. .Z contains 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

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.9.9 sdfascii
$ pyenv activate sdfascii
$ pip install -r requirements.txt
$ inv -l

Submitting Pull Requests

[keysight][] is developed using Scott Chacon's GitHub Flow. To contribute, fork sdfascii, create a feature branch, and then submit a pull request. GitHub Flow is summarized as:

  • Anything in the master branch is deployable
  • To work on something new, create a descriptively named branch off of master (e.g., new-oauth2-scopes)
  • Commit to that branch locally and regularly push your work to the same named branch on the server
  • When you need feedback or help, or you think the brnach is ready for merging, open a pull request.
  • After someone else has reviewed and signed off on the feature, you can merge it into master.
  • Once it is merged and pushed to master, you can and should deploy immediately.

Testing

License

sdfascii is released under the MIT license. Please see the LICENSE.txt file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdfascii-0.5.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdfascii-0.5.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file sdfascii-0.5.2.tar.gz.

File metadata

  • Download URL: sdfascii-0.5.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for sdfascii-0.5.2.tar.gz
Algorithm Hash digest
SHA256 83d49d652cfc86cf21c76495b5eb93acc6f9e8a244f72644b755baadff9f02c8
MD5 f13bf4a5c5d8c1e8193d28858d750d6f
BLAKE2b-256 fea3c92ce0b572e042b19cee15935fa41c1721492142650372d263ffac42aa89

See more details on using hashes here.

File details

Details for the file sdfascii-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: sdfascii-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.9

File hashes

Hashes for sdfascii-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07950b38739378481b6ba47fb16c7912b7c69752e39072e108a13365b32b6b64
MD5 5bd01d3099af96d63669bd3c86713e4c
BLAKE2b-256 8a9058f2c4564a22ae968ddbd3543bd029fe9698b0c4d5f589e6e34d1514eab1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page