skrf.io.touchstone.hfss_touchstone_2_media

skrf.io.touchstone.hfss_touchstone_2_media(filename, f_unit='ghz')[source]

Creates a Media object from a a HFSS-style Touchstone file with Gamma and Z0 comments.

Parameters
  • filename (string) – the HFSS-style Touchstone file

  • f_unit (string) – ‘hz’, ‘khz’, ‘mhz’ or ‘ghz’, which is passed to the f_unit parameter to Frequency constructor

Returns

my_media – the transmission line model defined by the gamma, and z0 comments in the HFSS file.

Return type

Media object

Examples

>>> port1_media, port2_media = rf.hfss_touchstone_2_media('line.s2p')

See also

hfss_touchstone_2_gamma_z0

returns gamma, and z0