skrf.io.touchstone.Touchstone

class skrf.io.touchstone.Touchstone(file, encoding=None)[source]

Class to read touchstone s-parameter files.

The reference for writing this class is the draft of the Touchstone(R) File Format Specification Rev 2.0 1 and Touchstone(R) File Format Specification Version 2.0 2

References

1

https://ibis.org/interconnect_wip/touchstone_spec2_draft.pdf

2

https://ibis.org/touchstone_ver2.0/touchstone_ver2_0.pdf

Parameters
  • file (Union[str, TextIO]) –

  • encoding (Optional[str]) –

Methods

__init__

constructor

get_comment_variables

Convert hfss variable comments to a dict of vars.

get_comments

Returns the comments which appear anywhere in the file.

get_format

Returns the file format string used for the given format.

get_gamma_z0

Extracts Z0 and Gamma comments from touchstone file (if provided).

get_gamma_z0_from_fid

Extracts Z0 and Gamma comments from fid.

get_noise_data

get_noise_names

get_sparameter_arrays

Returns the s-parameters as a tuple of arrays.

get_sparameter_data

Get the data of the s-parameter with the given format.

get_sparameter_names

Generate a list of column names for the s-parameter data.

load_file

Load the touchstone file into the internal data structures.