Pop-Up Thingie
Sidebar
Digital Distortion
Home
Forum
Files
Web Monitor
Dark
Log in
Username
Password
Sidebar
Forum
DOVE-Net
Programming
half wave dipole python script
From
Kb3pml
@VERT/RDOMENTR to
All
on Wed Mar 3 14:01:33 2021
0
0
#
# Calculate the dimensions of and the resonant frequency of
# a half-wave dipole's antenna elements
#
# 468
# F = ------------
# L
#
# 468
# L = ------------
# F
#
#def frequency(length):
# return 468/length
#
#def length(frequency):
# return 468/frequency
#
menuSelect = ''
print("\n")
print("Half-Wave Dipole Calculations\n")
#
invalidMenu = False
while invalidMenu == False:
print("\n")
print("[F] --- Calculate resonant frequency from length")
print("[L] --- Calculate length from resonant frequency")
print("[Q] --- Quit")
menuSelect = input("Select: ")
menuSelect = menuSelect.lower()
#
if (menuSelect == 'f' or menuSelect == 'l' or menuSelect == 'q'):
invalidMenu = True
else:
print("Please select a valid menu entry...")
#
# print(menuSelect)
#
if (menuSelect == 'q'):exit
elif (menuSelect == 'f'):
l = input("Enter dipole's length in feet: ")
print("Resonant frequency: {0} MHz".format(468/float(l)))
#
elif (menuSelect == 'l'):
f = input("Enter dipole's resonant frequency in MHz: ")
print("Length: {0} feet".format(468/float(f)))
else:
print("ERROR")
exit
---
■ Synchronet ■ Radio Mentor BBS - bbs.radiomentor.org
Web-based telnet client
Other Links
What is a BBS?
Doors installed on this BBS
Digital Distortion Doors & Tools
Door stats
Trivia scores
Message networks
Terminal software
Synchronet archiver setup
Ready.gov anti-terrorist guidelines as of 2003
Other services
Telnet
RLogin
IRC
Email & news access
Feel free to
send me an email
.
BBS UPS stats
Who's Online
System Info
Sysop:
Eric Oulashin
Location:
Beaverton, Oregon, USA
Users:
105
Nodes:
16 (
0
/
16
)
Uptime:
10:37:15
Calls:
5,908
Files:
8,496
D/L today:
1 files
(173K bytes)
Messages:
343,996