https://github.com/georgtree/tcl_tools
Different TCL utilities
https://github.com/georgtree/tcl_tools
gnuplot math rf s2p tcl
Last synced: 5 months ago
JSON representation
Different TCL utilities
- Host: GitHub
- URL: https://github.com/georgtree/tcl_tools
- Owner: georgtree
- License: mit
- Created: 2024-07-04T18:49:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-18T22:09:57.000Z (8 months ago)
- Last Synced: 2025-07-19T03:03:58.806Z (8 months ago)
- Topics: gnuplot, math, rf, s2p, tcl
- Language: Tcl
- Homepage: https://georgtree.github.io/tcl_tools/
- Size: 1.24 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Content
This package provides different Tcl tools:
- [Simple wrapper to some 2D plots of Gnuplot](https://georgtree.github.io/tcl_tools/index-gnuplotutil.html) - "src/gnuplotutil.tcl"
- [Some math function](https://georgtree.github.io/tcl_tools/index-mathutil.html) - "src/mathutil.tcl"
- [Basic procedure to read touchstone .s2p files](https://georgtree.github.io/tcl_tools/index-touchstoneutil.html) - "src/touchstoneutil.tcl"
- [Collection of functions to work with 2-port network parameters](https://georgtree.github.io/tcl_tools/index-rfutil.html) - "src/rfutil.tcl"
# Installation and dependencies
Packages are written in pure Tcl and relies on Tcllib. The only necessary external dependency is
the `argparse` package.
- [Tcllib](https://www.tcl.tk/software/tcllib/)
- [argparse](https://github.com/georgtree/argparse)
To install, run
```bash
./configure
sudo make install
```
If you have different versions of Tcl on the same machine, you can set the path to this version with `-with-tcl=path`
flag to configure script.
After installation you can run `make test` to test installed packages.
On Windows you can use [MSYS64 UCRT64 environment](https://www.msys2.org/), the above
steps are identical if you run it from UCRT64 shell. After installing the package, you can move tcl_tools package
folder (usually located in `C:\msys64\ucrt64\lib\`) to path listed in `auto_path` variable of your local Tcl
installation.
On the other hands, because the package is Tcl only, you can just download zip package in release section. And then
put this folder to path listed in `auto_path` variable of your local Tcl installation.
# Supported platforms
Any OS that has tcl8.6/tcl9.0 (Linux, Windows, FreeBSD).
# Documentation
You can find some documentation [here](https://georgtree.github.io/tcl_tools).
Also on Linux you can open manpages installed after run of `make install`.
All public commands in all packages in this distribution (except `extexpr`) support `-help` command that returns
information about command and its arguments. For example, if we call command `::mathutil::movAvg` with `-help`
switch in interactive terminal:
```tcl
::mathutil::movAvg -help
```
Information printed into the standard output:
```text
Finds moving average of y with given window size. Returns: list of y, and x if
-x argument is specified. Can accepts unambiguous prefixes instead of switches
names. Required parameters must appear before switches.
Switches:
-x - Expects argument. Optional argument with x values.
Parameters:
y - List of values, must be larger than window size.
winsize - Size of the window, must be an integer larger than 1 and odd
size. Type integer.
```