skrf.network.s2s

skrf.network.s2s(s, z0, s_def_new, s_def_old)[source]

Convert scattering parameters to scattering parameters with different definition.

Calculates port voltages and currents using the old definition and then calculates the incoming and reflected waves from the voltages using the new S-parameter definition.

Only has effect if z0 has at least one complex impedance port.

Parameters:
  • s (complex array-like) – impedance parameters

  • z0 (complex array-like or number) – port impedances

  • s_def_new (str -> s_def : can be: 'power', 'pseudo' or 'traveling') – Scattering parameter definition of the output network. ‘power’ for power-waves definition [1], ‘pseudo’ for pseudo-waves definition [2]. ‘traveling’ corresponds to the initial implementation.

  • s_def_old (str -> s_def : can be: 'power', 'pseudo' or 'traveling') – Scattering parameter definition of the input network. ‘power’ for power-waves definition [1], ‘pseudo’ for pseudo-waves definition [2]. ‘traveling’ corresponds to the initial implementation.

Returns:

s – scattering parameters

Return type:

complex array-like

References