Expand description
§Touchstone
A Rust library for parsing, manipulating, and plotting Touchstone (.sNp) files
containing S-parameter data for RF and microwave networks.
Use touchstone for measured or simulated S-parameter files, network
resampling, reference impedance metadata, S/Y/Z/ABCD conversion, and two-port
network cascading. Use rfconversions for scalar RF math, gainlineup for
block-level gain/NF/P1dB/IP3 lineups, and linkbudget for end-to-end radio
link performance.
S-parameter port indices are 1-indexed: s_db(2, 1) is S21.
§Examples
use touchstone::Network;
let net = Network::new("files/ntwk1.s2p").unwrap();
assert_eq!(net.rank, 2);Modules§
- cli
- Command-line interface helpers for the touchstone binary.
Structs§
- ABCD
Matrix - Stable two-port ABCD transmission-parameter matrix.
- Complex
- Stable complex number representation used by public matrix accessors.
- FrequencyDB
- S-parameter data at a single frequency in Decibel/Angle format.
- FrequencyMA
- S-parameter data at a single frequency in Magnitude/Angle format.
- FrequencyRI
- S-parameter data at a single frequency in Real/Imaginary format.
- Network
- A network parsed from a Touchstone (
.sNp) file. - Network
Builder - Builder for generated S-parameter networks.
- Network
Point - Stable network data for one frequency point.
- Parameter
Matrix - Stable admittance- or impedance-parameter matrix for one frequency point.
- SMatrix
- Stable S-parameter matrix for one frequency point.
- Touchstone
Error Context - Source location attached to a Touchstone parse error.
Enums§
- Extrapolation
- Policy used when sampling outside the parsed frequency range.
- Interpolation
- Interpolation algorithm used when sampling S-parameter data between parsed frequencies.
- Reference
Impedance - Reference impedance metadata for a Touchstone network.
- Touchstone
Error - Error returned when Touchstone data cannot be read or parsed.
- Touchstone
Warning - Non-fatal condition reported while parsing Touchstone data.