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@fkurz.net
Fabian Kurz → Ham Radio → Stuff
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. db.pl 5W + 10dB in dBm # db.pl 100W + 6dB [in W] # db.pl 100W - 1SU # db.pl 100W in dBm # 2) x POWERUNIT to y POWERUNIT, output: dB and S-Units # e.g. db.pl 100W to 200W # db.pl 200W to 5W # # POWERUNITs: [pnumkMG]W, dBm, dBW, S (defined as S9 = -73dBm, 6dB per unit) # RATIOUNITs: dB, SU (S-Units, 6dB each)
download db.pl (2008-Jan-19)
Added: 23-Jan-2008. Last modified: 23-Jan-2008.