skrf.network.renormalize_s¶
- skrf.network.renormalize_s(s, z_old, z_new, s_def='power', s_def_old=None)[source]¶
Renormalize a s-parameter matrix given old and new port impedances. Can be also used to convert between different S-parameter definitions.
Note
This re-normalization assumes power-wave formulation per default. To use the pseudo-wave formulation, use s_def=’pseudo’. However, results should be the same for real-valued characteristic impedances. See the 1 and 2 for more details.
Note
This just calls
z2s(s2z(s, z0=z_old, s_def=s_def_old), z0=z_new, s_def=s_def)
- Parameters
s (complex array of shape fxnxn) – s-parameter matrix
z_old (complex array of shape fxnxn or a scalar) – old (original) port impedances
z_new (complex array of shape fxnxn or a scalar) – new port impedances
s_def (str -> s_def : can be: 'power', 'pseudo' or 'traveling') – Scattering parameter definition of the output network: ‘power’ for power-waves definition, ‘pseudo’ for pseudo-waves definition. ‘traveling’ corresponds to the initial implementation. Default is ‘power’.
s_def_old (str -> s_def : can be: None, 'power', 'pseudo' or 'traveling') – Scattering parameter definition of the input network: None to copy s_def. ‘power’ for power-waves definition, ‘pseudo’ for pseudo-waves definition. ‘traveling’ corresponds to the initial implementation.
- Returns
renormalized s-parameter matrix (shape fxnxn)
- Return type
References
- 1
Marks and D. F. Williams, “A general waveguide circuit theory,” Journal of Research of the National Institute of Standards and Technology, vol. 97, no. 5, pp. 533-561, 1992.
- 2
Anritsu Application Note: Arbitrary Impedance, https://web.archive.org/web/20200111134414/https://archive.eetasia.com/www.eetasia.com/ARTICLES/2002MAY/2002MAY02_AMD_ID_NTES_AN.PDF?SOURCES=DOWNLOAD
Examples
>>> s = zeros(shape=(101,2,2)) >>> renormalize_s(s, 50,25)