skrf.io.touchstone.hfss_touchstone_2_gamma_z0

skrf.io.touchstone.hfss_touchstone_2_gamma_z0(filename)

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 : numpy.ndarray

frequency vector (in Hz)

gamma : complex numpy.ndarray

complex propagation constant

z0 : numpy.ndarray

complex port impedance

Examples

>>> f,gamm,z0 = rf.hfss_touchstone_2_gamma_z0('line.s2p')

This Page