Read Tektronix WFM files with FastFrame support.
Project description
FFTekWFM
Tektronix Waveform file format reader.
Features :
- Support WFM file format version 1, 2 and 3
- Support FastFrame
- Support memory mapping
- Support loading frames with or without pre- and post-charge data
Header reader structure inspired by TekWFM2.
Notice
Note this package works for my use-case but is not properly tested. Consider using TekWFM2 for a more established solution.
Installation
pip install fftekwfm
Usage
Read a file with memory mapping and plot some time series from fast frames, unscaled :
import matplotlib.pyplot as plt
from fftekwfm import TekWFM
filename = "/path/to/tekfile.wfm"
tek = TekWFM(filename).load_frames().get_time_frame()
plt.figure()
plt.plot(tek.time_frame, tek.frames[:, [0, 8000, 15000]])
plt.xlabel("time (s)")
plt.ylabel("signal (a.u.)")
Load every frames in-memory and do some calculation :
import matplotlib.pyplot as plt
import numpy as np
from fftekwfm import TekWFM
filename = "/path/to/tekfile.wfm"
tek = TekWFM(filename).load_frames(mmap=False)
Sn = np.abs(np.fft.rfft(tek.frames, axis=0))
f = np.fft.rfftfreq(sig.shape[0], d=tek.tscale) # tscale is the time between two samples
plt.figure()
plt.plot(f, S_mag)
plt.xlabel("frequency (Hz)")
plt.ylabel("magnitude")
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 fftekwfm-0.3.1.tar.gz.
File metadata
- Download URL: fftekwfm-0.3.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a06747354ef3229ffc9c72157508dfd76573c8d4a1d990014a4f62b42adc52ca
|
|
| MD5 |
edc402561cdd083cba8eb15c4b20eae5
|
|
| BLAKE2b-256 |
12be2acc544ae53ee79b5716b3b6658d98cffb382859aa287d30b88700fb3eb5
|
File details
Details for the file fftekwfm-0.3.1-py3-none-any.whl.
File metadata
- Download URL: fftekwfm-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b28fe00f5707938c8b677109e88b76e989b2961b54fcf08b83d24fbb5814898
|
|
| MD5 |
0469f9db34d3065f00fda848ec6bf165
|
|
| BLAKE2b-256 |
3b1e3b875f68af40a3c39906ef129eeeb5d0da6005ae565811f14c120c727693
|