network (skrf.network
)
Provide an n-port network class and associated functions.
Much of the functionality in this module is provided as methods and
properties of the Network
Class.
Network Class
|
An n-port electrical network. |
Building Network
|
Create a Network from its Z-parameters. |
Network Representations
Scattering parameter matrix. |
|
Impedance parameter matrix. |
|
Admittance parameter matrix. |
|
abcd parameter matrix. |
|
Scattering transfer parameter matrix. |
Connecting Networks
|
Connect two n-port networks together. |
|
Connect ports of a single n-port network. |
|
Cascade two 2, 2N-ports Networks together. |
|
Cascade a list of 2N-port networks. |
|
De-embed ntwkA from ntwkB. |
|
Invert the ports of a networks s-matrix, 'flipping' it over left and right. |
Interpolation and Concatenation Along Frequency Axis
|
Stitch ntwkA and ntwkB together. |
|
Return the overlapping parts of two Networks, interpolating if needed. |
|
Interpolate the current Network along frequency axis (inplace). |
|
Interpolate a Network along frequency axis. |
|
Interpolate the current Network along frequency axis (inplace). |
Combining and Splitting Networks
|
Return a subnetwork of a given Network from a list of port numbers. |
|
Calculate the 2-port network given a symmetric, reciprocal and lossless 1-port network. |
|
Build an N-port Network from list of N one-ports. |
|
Build a 2-port Network from list of four 1-ports. |
|
Create 3-port from three 2-port Networks. |
|
Build an N-port Network from list of two-ports. |
|
Concatenate networks along the port axis. |
IO
|
Read skrf object[s] from a pickle file. |
|
Write skrf object[s] to a file. |
Write a Network object to a spreadsheet, for your boss. |
|
|
Write the Network to disk using the |
|
Write a contents of the |
|
Read a Network from a 'ntwk' file. |
|
Write contents of network to a spreadsheet, for your boss to use. |
Noise
|
Adds a complex zero-mean gaussian white-noise. |
|
Add a flatband complex zero-mean gaussian white-noise signal of given standard deviations for magnitude and phase. |
|
Multiply a complex bivariate gaussian white-noise signal of given standard deviations for magnitude and phase. |
Supporting Functions
|
Calculate 'inverse' s-parameter matrix, used for de-embedding. |
|
Connect two n-port networks' s-matrices together. |
|
Connect two ports of a single n-port network's s-matrix. |
|
Convert scattering parameters [#]_ to impedance parameters [#]_. |
|
Convert scattering parameters [#]_ to admittance parameters [#]_. |
|
Convert scattering parameters [#]_ to scattering transfer parameters [#]_. |
|
Convert scattering parameters to abcd parameters [#]_. |
|
Convert scattering parameters [#]_ to hybrid parameters [#]_. |
|
Convert impedance parameters [#]_ to scattering parameters [#]_. |
|
Convert impedance parameters [#]_ to admittance parameters [#]_. |
|
Not Implemented yet. |
|
Converts impedance parameters to abcd parameters [#]_. |
|
Convert admittance parameters [#]_ to scattering parameters [#]_. |
|
Convert admittance parameters [#]_ to impedance parameters [#]_. |
|
Not Implemented Yet. |
|
Converts scattering transfer parameters [#]_ to scattering parameters [#]_. |
|
Not Implemented Yet. |
|
Not Implemented Yet. |
|
Convert hybrid parameters to s parameters. |
|
Convert hybrid parameters to z parameters [#]_. |
|
Make a port impedance of correct shape for a given network's matrix. |
|
Renormalize a s-parameter matrix given old and new port impedances. |
|
Passivity metric for a multi-port network. |
|
Reciprocity metric for a multi-port network. |
Misc Functions
|
Calculate the average network from a list of Networks. |
|
Generate a two-port reflective two-port, from two one-ports. |
|
Chop a sandwich of identical, reciprocal 2-ports in half. |
|
Perturb s-parameters by small amount. |
|
Renormalize s-parameter matrix given a new port impedances. |
Drop invalid values based on duplicate and non increasing frequency values. |