Pop-Up Thingie
Sidebar
The Gate BBS
Home
Forum
Files
Games
More
User List
Register
Log in
Username
Password
Sidebar
Forum
DOVE-Net
Programming
half wave dipole python script
From
Kb3pml
@VERT/RDOMENTR to
All
on Wednesday, March 03, 2021 14:01:33
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
Who's Online
Recent Visitors
Volatile_Memory
Wednesday, July 02, 2025 12:44:17
from
Des Moines, IA
via
Telnet
Skys Limit
Wednesday, July 02, 2025 06:56:41
from
Greenville, SC
via
Telnet
Q Fill
Wednesday, July 02, 2025 06:50:08
from
Conover, NC
via
Telnet
Dr. What
Wednesday, July 02, 2025 06:47:02
from
Rockford, MI
via
Telnet
Jill Curtis
Wednesday, July 02, 2025 06:28:33
from
Hickory, NC
via
Telnet
System Info
Sysop:
Gate Keeper
Location:
Shelby, NC
Users:
792
Nodes:
20 (
0
/
20
)
Uptime:
144:42:10
Calls:
12,344
Calls today:
5
Files:
5,294
D/L today:
7 files
(9,134K bytes)
Messages:
575,651