¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Save S21 data in CSV format


 

On Sun, Oct 13, 2019 at 10:12 PM, John Gord wrote:

¡­.. "To get dB, you compute 20*log(sqrt( real^2 + im^2)), or equivalently
10*log(real^2 + im^2).
10 * log (0.019876752^2 + 0.001359617^2) = -34.013, the insertion loss in dB.
You can also get the phase by taking the arctan (im/re). "
--John Gord
------------------------------------------------------------

John,
That's the key piece of info I needed. None of my web searches returned that conversion formula. I can now use Excel to convert the data to dB and then apply some additional correction factors. I would eventually like to use Python to read the data directly from the NanoVNA and post process, plot and save it to a factor file. That's something I never would have even considered before purchasing the NanoVNA. The device has expanded my learning horizon. Thanks to everyone who responded.

- Herb

Join [email protected] to automatically receive all group messages.