DJ5CW's Ham Radio Stuff


All kinds of things too precious not to share, in short articles. Constantly under construction or destruction. Note that code snippets are usually working minimum examples (often stripped of extra features). If you plan to use and of the code for anything serious, you may want to contact me. It's likely that I can provide you with some updates and good (?) advice.

Fabian KurzHam RadioStuff - A small Perl script to do some power calculations

Being tired of typing the same stuff into my calculator again and again, I wrote a small script in Perl to save some work. From the source:

# Input formats:
# 1)      x POWERUNIT (+/- y RATIOUNIT) (in POWERUNIT)
#        e.g. 5W + 10dB in dBm
#     100W + 6dB [in W]
#     100W - 1SU
#     100W in dBm
# 2)      x POWERUNIT to y POWERUNIT, output: dB and S-Units
#        e.g. 100W to 200W
#     200W to 5W
# POWERUNITs:  [pnumkMG]W, dBm, dBW, S (defined as S9 = -73dBm, 6dB per unit)
# RATIOUNITs:  dB, SU (S-Units, 6dB each) 

download (2008-Jan-19)

Added: 23-Jan-2008. Last modified: 23-Jan-2008.

Fabian KurzHam RadioStuff