Collection of tools to manipulate Touchstone files
Project description
Collection of tools to manipulate Touchstone files
Description
This projects aims to collect several utilities to manage Touchstone files. They are mainly wrappers around scikit-rf to make them command line friendly.
Commands
The list of available commands are:
s_cat: This command generates an n-port Touchstone file from the appropriate number of two-port files.
s_plot: This command will plot a Touchstone file into a PDF file.
s_cat
This command generates an n-port Touchstone file from the appropriate number of two-port files.
For example, to generate a three-port file from three s2p files:
s_cat P12_FILE.s2p P13_FILE.s2p P23_FILE.s2p --output output.s3p
The order of the files is important, it must begin with all the combinations of the first port, then the second,…
The number of ports is calculates automatically, if more than 10 ports are used, the explicit number of ports must be provided:
s_cat *.s2p -n 12 -o test.s12p
- The complete list of options is obtained using s_cat -h. The input files to process are mandatory:
--help, -h: List of options.
--numports, -p: Number of ports, if omitted it will be guessed from number of files.
--output, -o: Output file to write result, if none given, it will be the input file with the PDF extension.
--version: Package version.
-v/-vv: Verbose or very verbose mode.
s_plot
This command will plot a Touchstone file into a PDF file.
A simple example is:
s_plot test.s2p
This will produce a file called test.pdf plotting the data.
- The complete list of options is obtained using s_plot -h. The input file to process are mandatory:
--help, -h: List of options.
--output, -o: Output file to write result, if none given, it will be the input file with the PDF extension.
--title, -t: Title of the plot. If it is not provided, the file name will be used.
--version: Package version.
-v/-vv: Verbose or very verbose mode.
Installation
The easiest way to install this package is to use pip:
pip install STouchTool
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
File details
Details for the file STouchTool-0.1.2.tar.gz
.
File metadata
- Download URL: STouchTool-0.1.2.tar.gz
- Upload date:
- Size: 193.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061f7b3fd5f67b3a689a0b12cf173d6457dd1b6e7627d0b4d615585b70a595d9 |
|
MD5 | 94bb0442a94820e37b48f240ec7261e5 |
|
BLAKE2b-256 | 23d2aa2d743e4224e5a0d20c9b273a1c5fdc344c9918ad7d84bf319d87ad1011 |
File details
Details for the file STouchTool-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: STouchTool-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e070d804f5bf21820052b9e82e304b473c1fca0f3971cd56fa117917f6385b3 |
|
MD5 | 894186c943f88c04a286010744a069ba |
|
BLAKE2b-256 | 29272bea36cc57a5e00df3596f6e62534bdf84c71e07bb6bacd4e647f456cb4f |