Skip to content

Instantly share code, notes, and snippets.

@edy555
Created March 30, 2013 07:41
Show Gist options
  • Save edy555/5275768 to your computer and use it in GitHub Desktop.
Save edy555/5275768 to your computer and use it in GitHub Desktop.
理想のSOLのtouchstoneファイルを生成するためのスクリプト
from pylab import *
import skrf as rf
f = rf.Frequency(0, 2e9, 201, 'hz')
z0 = [50.]
s = rf.Network(frequency=f, s=[-1]*f.npoints, z0=z0, name='short')
o = rf.Network(frequency=f, s=[1]*f.npoints, z0=z0, name='open')
l = rf.Network(frequency=f, s=[0]*f.npoints, z0=z0, name='load')
ns = rf.NetworkSet([s,o,l])
#ns.plot_s_smith()
ns.write_touchstone()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment