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

Parameters:

Attributes

sparameters

Touchstone data in tabular format.

version

The version string.

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_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.