skrf.network.n_twoports_2_nport

skrf.network.n_twoports_2_nport(ntwk_list, nports, offby=1, port_sep='', **kwargs)[source]

Build an N-port Network from list of two-ports.

This method was made to reconstruct an n-port network from 2-port subnetworks as measured by a 2-port VNA. So, for example, given a 3-port DUT, you might measure the set p12.s2p, p23.s2p, p13.s2p. From these measurements, you can construct p.s3p.

By default all entries of result.s are filled with 0’s, in case you dont fully specify the entire s-matrix of the resultant ntwk.

Parameters:
  • ntwk_list (list of Network objects) – the names must contain the port index, ie ‘p12’ or ‘p43’, ie. define the Network.name property of the Network object.

  • nports (int) – Number of ports to expect by the parser.

  • offby (int) – starting value for s-parameters indices. ie a value of 1, assumes that a s21 = ntwk.s[:,1,0]

  • port_sep (str, default "") – string separating port 1 connection from port 2 for the vna connected to the DUT. If constructing nport network with a maximum of 10 ports, it can be left as “”. To avoid ambiguity for more than 10 ports, port_sep is required to format the trace names like S{}

  • *args – passed to Network.__init__() for the N-port

  • **kwargs – passed to Network.__init__() for the N-port

Returns:

nport – result

Return type:

n-port Network

See also

concat_ports

concatenate ntwks along their ports