[Elecraft] Coax Switches / dBm & W in python
Mike Markowski
mike.ab3ap at gmail.com
Sun Feb 17 16:48:09 EST 2019
On 2/17/19 4:32 PM, Andy Durbin wrote:
> "
> from math import *
> w2dbm = lambda x: 10 * log10(x/10) + 30
> dbm2w = lambda x: 10 ** ((x-30)/10)
> iso = lambda pwr_W, iso_dB: dbm2w(w2dbm(pwr_W) - iso_dB)
>
> and now something like
>
> >>> iso(1500, 60)
> 0.001500
>
> tells you that 1500 W with 60 dB isolation leaks 1.5 mW to the other port."
>
> Does dividing 1,500 by 10 to the power of 6 really need a computer and a Python script? Why not just move the decimal point 6 times?
>
> 73,
> Andy, k3wyc
Bad example. :-) Use messier numbers. General shack use for quick
conversions is the point.
73,
Mike ab3ap
More information about the Elecraft
mailing list