phase of the s-matrix in pico-second (ps)

30 views

MrLapDong

Jun 22, 2022, 11:56:12 PM6/22/22
Hello,
I found the property s_deg to generate plot for phase of matrix in degrees, I would like to generate plot for phase of the s-matrix in ps. Do you all know how to do that?

Regards,
Dong

vinc0110

Jun 23, 2022, 1:42:47 AM6/23/22
to scikit-rf
Hi,
with "phase in ps" you probably mean the phase delay? https://www.microwaves101.com/encyclopedias/phase-delay

I don't think there is a plotting function for the phase delay, but you can always calculate it yourself and then plot manually:

import skrf
import numpy as np
import matplotlib.pyplot as mplt

nw = skrf.Network('mydata.s2p')
s21 = nw.s[:, 1, 0]
f = nw.f
delay = -1 / (2 * np.pi * f) * np.unwrap(np.angle(s21))

mplt.figure()
mplt.plot(f, delay)
mplt.show()

jeanbiego

Jun 23, 2022, 2:34:27 AM6/23/22
to scikit-rf
Hello.
If what you are looking for is group delay, the following tutorial may be helpful.
Group Delay

2022年6月23日木曜日 14:42:47 UTC+9 vinc0110:

MrLapDong

Jun 23, 2022, 3:26:30 AM6/23/22
Hi,
I would like to generate plot for phase delay error:

nw = skrf.Network('mydata.s4p')
phase_delay = abs(abs(nw[:,1,3].s_deg) - abs(nw[:, 2, 4].s_deg))

Now, this is in degrees and I would like to convert it into ps.

Regards,
Dong

--
You received this message because you are subscribed to the Google Groups "scikit-rf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikit-rf+...@googlegroups.com.