skrf.data.line

skrf.data.line = 2-Port Network: 'line',  75.0-110.0 GHz, 201 pts, z0=[50.+0.j 50.+0.j]

An n-port electrical network.

For instructions on how to create Network see __init__(). An n-port network [1] may be defined by three quantities * network parameter matrix (s, z, or y-matrix) * port characteristic impedance matrix * frequency information

The Network class stores these data structures internally in the form of complex numpy.ndarray’s. These arrays are not interfaced directly but instead through the use of the properties:

Property

Meaning

s

Scattering parameter matrix.

z0

Characteristic impedance matrix.

f

Frequency vector.

Although these docs focus on s-parameters, other equivalent network representations such as z and y are available. Scalar projections of the complex network parameters are accessible through properties as well. These also return numpy.ndarray’s.

Property

Meaning

s_re

Real part of the s-matrix.

s_im

Imaginary part of the s-matrix.

s_mag

Magnitude of the s-matrix.

s_db

Magnitude in log scale of the s-matrix.

s_deg

Phase of the s-matrix in degrees.

The following operations act on the networks s-matrix.

Operator

Function

+

Element-wise addition of the s-matrix.

-

Element-wise difference of the s-matrix.

*

Element-wise multiplication of the s-matrix.

/

Element-wise division of the s-matrix.

**

Cascading (only for 2-ports).

//

De-embedding (for 2-ports, see inv).

Different components of the Network can be visualized through various plotting methods. These methods can be used to plot individual elements of the s-matrix or all at once. For more info about plotting see the ../../tutorials/Plotting tutorial.

Method

Meaning

plot_s_smith()

Plot complex s-parameters on smith chart.

plot_s_re()

Plot real part of s-parameters vs frequency.

plot_s_im()

Plot imaginary part of s-parameters vs frequency.

plot_s_mag()

Plot magnitude of s-parameters vs frequency.

plot_s_db()

Plot magnitude (in dB) of s-parameters vs frequency.

plot_s_deg()

Plot phase of s-parameters (in degrees) vs frequency.

plot_s_deg_unwrap()

Plot phase of s-parameters (in unwrapped degrees) vs frequency.

Network objects can be created from a touchstone or pickle file (see __init__()), by a Media object, or manually by assigning the network properties directly. Network objects can be saved to disk in the form of touchstone files with the write_touchstone() method.

An exhaustive list of Network Methods and Properties (Attributes) are given below

References