Touchstone data, complex phase and measurement uncertainty
Read versioned S-parameter data correctly, convert RI/MA/DB, preserve the direction of S12/S21, derive group delay, and propagate complex measurement uncertainty with reproducible metadata.
- Identify actual Touchstone file version, unit and network-data format.
- Decode options and verify the true port count and data order.
- Reconstruct asymmetric complex two-port S-matrices without swapping directions.
- Convert real/imaginary, magnitude/angle and decibel/phase pairs.
- Relate insertion loss to power transmission with correct matched-wave conventions.
- Unwrap phase and estimate group delay without false branch jumps.
- Identify phase uncertainty near transmission zeros.
- Distinguish renormalization from calibration and fixture removal.
- Propagate real/imaginary uncertainty using a declared Jacobian.
- Archive and independently validate a reproducible calibrated RF measurement.
This chapter treats Touchstone as a traceable representation of calibrated complex RF networks, not a screenshot. We follow the official IBIS specification for versioned data order, RI/MA/DB conversions, phase and group delay, reference planes and basic uncertainty propagation before constructing reproducible experimental archives.
0104.1 — Scattering data are complex measurements
A Touchstone record represents sampled network quantities at specified frequencies. A calibrated S-matrix is complex; each entry has a real/imaginary representation or an equivalent magnitude/phase representation. Its numerical values depend on port definitions, calibration reference planes and wave reference impedances. Plotting only || discards a physically meaningful phase needed to compute group delay and compare reference-plane shifts.
Under a declared real-positive port reference, the entry is the ratio of the outgoing wave at port 2 to the incident wave at port 1 while no external wave enters port 2. Preserve the direction of excitation and exact port ordering throughout data import, calculation and export. A change of reference plane can change the phase without indicating a change in the DUT.
0204.2 — Touchstone version and option line
The official IBIS Touchstone 2.1 format defines the meaning of file headers, options, network-data organization and applicable keywords. An example option line is # GHz S RI R 50, which indicates GHz frequency units, S parameters, real-imaginary complex pairs, and a declared 50-ohm reference under that file version. Units must be converted explicitly before derivatives or frequency-dependent circuit calculations.
Version 2.0/2.1 structural keywords should not be imposed blindly on older version 1.x files. Under 2.1 the number of ports and network-data order must be parsed according to the actual standard. Do not assume an instrument always exports exactly a particular Touchstone version: inspect the file contents and reject unsupported syntax rather than quietly misreading the data.
0304.3 — Reassemble port matrices without swapping directions
For a two-port, write the physically defined S matrix with the first index identifying the outgoing port and the second the driven incident port. The forward coefficient is measured under a2=0, while is measured with a1=0. A Touchstone reader must identify the two-port data ordering from its format version and, when applicable, the explicit two-port ordering declaration.
A reciprocal passive resistor can accidentally hide a parser bug that swaps and , because those coefficients are equal in the ideal model. Use an intentionally nonreciprocal numerical fixture as an independent parser test, for instance . The matrix orientation then becomes observable in both the data and the reconstructed physical interpretation.
Figure 5.4 — Signed electrical references of a two-port
Both I₁ and I₂ are defined ENTERING the network at their positive terminals; each voltage arrow points from minus to plus.
I₁ enters the left port pointing right, while I₂ enters the right port pointing left. V₁ and V₂ are positive on the upper terminals. The conventional output current toward an attached load equals −I₂. These arrows define references, not actual solved current flow.
0404.4 — Convert RI, MA and DB exactly
RI stores the real and imaginary components of each complex coefficient. MA stores the nonnegative magnitude followed by its phase in degrees. DB stores amplitude magnitude in decibels followed by phase in degrees. Convert through a complex number, using the factor 20 in log10 for scattering-amplitude magnitudes, not the power-ratio factor 10 without square magnitude.
As a worked value, amplitude with a phase of has magnitude and complex value approximately . A magnitude does not imply the coefficient is a negative real number. Round-trip RI→MA→DB→RI on several arbitrary complex values and check relative numerical tolerance.
0504.5 — Phase unwrap and group delay
An argument function returns wrapped phase on a branch such as (−,]. Discontinuities at branch boundaries can occur even when the physical transmission evolves continuously. Before estimating group delay, unwrap phase using enough frequency samples and check that the transmission magnitude is sufficiently large to define a meaningful phase.
With the exp(+jt) convention, a nondispersive line contribution gives group delay g=. For =, a frequency increase of rotates phase by . A derivative computed from wrapped phase, or near a deep transmission zero, can produce a spurious very large delay; define a mask or uncertainty criterion.
0604.6 — Match wave references and physical planes
Renormalization represents the same physical multiport with a different choice of wave reference impedances; a stable implementation can transform S to the underlying Z network, then normalize again under compatible reference definitions. This operation is not calibration or fixture de-embedding. A lossless line extension modifies the phase of reflection by twice the one-way electrical length.
Two files may both specify R 50 and yet refer to different connector or probe planes, so agreement of their numeric reference fields is not sufficient. Compare only after documenting the calibration standards, physical planes and any extensions or removed launch networks. For complex port references, explicitly choose the Kurokawa power-wave or pseudo-wave convention.
0704.7 — Trace uncertainty through complex calculations
Use a real vector composed of real and imaginary parts of the measured complex coefficients when applying the ordinary covariance propagation formula. For a differentiable real-valued mapping y=g(x), the local Jacobian J gives . This approach can include covariance between real and imaginary parts or between measurements at nearby frequencies.
Do not silently substitute a complex-conjugate transpose unless the complex covariance convention and derivatives are correctly defined. Calibration-kit errors, imperfect connectors, reference-plane uncertainty, cable drift and source/receiver noise can dominate over simple numerical round-off. Smoothing lowers some random variation but does not eliminate systematic bias.
0804.8 — Export a reproducible RF measurement
Archive the file version, option line, number and ordering of ports, frequency units, reference impedances, original complex S values and physical port orientation. Preserve instrument/firmware, sweep range and points, power level, IF bandwidth, averaging, kit standard definitions, calibration planes and subsequent processing transformations.
A defensible measurement workflow includes an independent verification load or network, nonreciprocal parser test data, conversion round-trip, repeated connector/probe mating and uncertainty estimates. Report the complex coefficients alongside insertion/return loss and group delay, with enough metadata to reconstruct every plotted result.
Touchstone and measurement-uncertainty exercises
- Interpret the option line # GHz S RI R 50 while stating why the Touchstone file version must first be checked.
- Convert a , scattering coefficient to its complex real-imaginary representation.
- Reassemble a nonreciprocal two-port matrix with , explaining why a reciprocal resistor is an insufficient ordering test.
- For matched port references and , compute insertion loss and the transmitted power fraction.
- Calculate and return loss for a resistive load referenced to at the same physical plane.
- Verify that a pure time delay of produces a phase difference over .
- Explain when phase unwrap and group-delay numerical differentiation become unstable near a zero of .
- Show how a lossless reference-plane extension changes reflection phase but not its magnitude.
- Propagate an independent two-dimensional real covariance through the diagonal Jacobian for standard deviations 0.01 and 0.02.
- Specify a version-aware Touchstone 2-port reader and writer validation using RI, MA, DB, port ordering and independent calibration metadata.
Worked solutions
1. Read the file's version and identify which structural keywords apply. The example option line requests GHz frequencies, S-parameters, RI complex pairs and the stated reference. Frequency values must be multiplied by to obtain Hz for derivatives and RF circuit models. For v2.1 also check the number of ports and required version-aware fields; do not impose v2.x keywords on v1.x data.
2. The amplitude is . A phase of yields and , so S≈. The real-imaginary pair is (0,−0.501187), not a negative six or a negative-real coefficient.
3. Define , where the first index is outgoing and the second incident. Use as an asymmetric test network; a misplaced column would swap and , a detectable error. For a reciprocal resistor , so the same bug would be invisible to a naive equality check.
4. Insertion loss is . With correctly matched equal real wave references and only port 1 incident, transmitted power fraction is ||²=4, or 64 percent. The remaining 36 percent is not automatically dissipation because some may be reflected.
5. The resistive load gives and return loss . The reflected-power fraction is 0.04 or 4 percent. These results require the same physical reference plane and real-positive wave reference.
6. With the exp(+jt) convention , the phase slope is −2 radians per hertz. A increment with = gives Δφ=−2×10⁸×10⁻⁹==. A correctly unwrapped phase slope therefore returns + group delay.
7. At a very small ||, noise can make the measured phase nearly arbitrary and a finite difference unstable. An argument function also inserts jumps unless unwrapped, which can mimic enormous group delay. Choose a sufficient frequency grid, unwrap only coherent regions, and mask or flag frequencies with small transmission and large phase uncertainty.
8. For an ideal lossless line of length d from DUT toward the measurement reference, . The exponential has unit magnitude, so ; the argument rotates by . With attenuation α>0 the magnitude would scale instead by . Port extension alone does not remove an arbitrary mismatched fixture.
9. The real input covariance is . With , covariance propagation gives . The resulting output standard deviations are 0.02 and 0.06. This example uses a real Jacobian; substituting complex J† requires an explicitly different covariance convention.
10. Read the declared version and option line, validate number of ports, legal two-port data order, units and reference impedance, and parse each complex value according to RI/MA/DB. Test with an asymmetric S matrix and round-trip through all encodings. Also preserve the calibrated planes, kit models, instrument settings, complex data and a separately measured verification standard.
Next: physically remove known fixture error boxes through tested de-embedding and build the complete VNA-to-DUT measurement chain.