## June's newsletter examples using scikit-rf

• 0
Dear all,

Many thanks for the Microwaves101 website and its newsletter, it's always a nice source of information and discoveries.

In the last newsletter, there is a nice trick to perform interpolation between components:
https://www.microwaves101.com/encyclopedias/s-parameter-interpolator

I can't resist to show how to do perform the same with only 3 lines of Python using the scikit-rf package:

import skrf as rf
# Data from MTVA Series
ns = rf.NetworkSet.from_dir('MTVA0100N03')
# reference temperatures (from filenames alphabetical order)
temperatures = [125, 25, 55, -55]  # degC
# interpolated Network at 0 degC
ntwk_interp = ns.interpolate_from_network(temperatures, 0)

# to check, plot it: 0°C is in between -55°C and 25°C
ns.plot_s_db(m=1, n=0)  # S21
ntwk_interp.plot_s_db(m=1, n=0, label='Interpolated @ 0°C')


Doing the same from a MDIF file would be even easier, as then the temperature parameter would be directly included into the dataset. scikit-rf now knows how to read MDIF and use the named parameters defined within for interpolating networks.

Hope it helps!

Best regards,

Julien
• 3
Julien

This is great! I will add it to the page as an alternative way to interpolate. SciKit RF is awesome, I'm still waiting for Alex to print up some new shirts. Blam!

Steve
• 0
A new collection of T-shirt is coming ;)
• 3
I finally got around to adding this info to the interpolation page... Thanks again!

https://www.microwaves101.com/encyclopedias/s-parameter-interpolator
bold
italic
underline
strike
code
quote
ulist
image
url
mention
reveal