skrf.io.touchstone.hfss_touchstone_2_gamma_z0
- skrf.io.touchstone.hfss_touchstone_2_gamma_z0(filename)[source]
Extracts Z0 and Gamma comments from touchstone file.
Takes a HFSS-style Touchstone file with Gamma and Z0 comments and extracts a triplet of arrays being: (frequency, Gamma, Z0)
- Parameters:
filename (string) – the HFSS-style Touchstone file
- Returns:
f (np.ndarray) – frequency vector (in Hz)
gamma (complex np.ndarray) – complex propagation constant
z0 (np.ndarray) – complex port impedance
- Return type:
Examples
>>> f,gamm,z0 = rf.hfss_touchstone_2_gamma_z0('line.s2p')