-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbandplans_uk.py
828 lines (822 loc) · 36.7 KB
/
bandplans_uk.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
'''
UK Amateur Radio band plans
Pass the current frequency in Hz and it will return the following:
F Full licensees only
I Intermediate licensees or higher
f foundation licensees or higher
L Licence free range
B Beacons only
G Guard channel
O Out of band
N Notice of Variation only for Full licensees
Data taken from the 2018 RSGB band plan as of 28 January 2018
Written by Gregory Fenton M6LWY 28 January 2018
Recall that the FT847 does not output the final decimals column
so all hertz figures must be multiplied by 10 to get the actual
value in hertz (rounded to 10)
'''
class bandplan(object):
def checkfrequency(self, hertz):
ret = 'O'
try:
frequency = hertz * 10
if (frequency >= 135700) and (frequency < 137800):
ret = 'f'
elif (frequency >= 472000) and (frequency < 479000):
ret = 'F'
elif (frequency >= 1810000) and (frequency < 2000000):
ret = 'f'
elif (frequency >= 3500000) and (frequency < 3800000):
ret = 'f'
elif (frequency >= 5258500) and (frequency < 5264000):
ret = 'F'
elif (frequency >= 5276000) and (frequency < 5284000):
ret = 'F'
elif (frequency >= 5288500) and (frequency < 5292000):
ret = 'F'
elif (frequency >= 5298000) and (frequency < 5307000):
ret = 'F'
elif (frequency >= 5313000) and (frequency < 5323000):
ret = 'F'
elif (frequency >= 5333000) and (frequency < 5338000):
ret = 'F'
elif (frequency >= 5354000) and (frequency < 5358000):
ret = 'F'
elif (frequency >= 5362000) and (frequency < 5374500):
ret = 'F'
elif (frequency >= 5378000) and (frequency < 5382000):
ret = 'F'
elif (frequency >= 5395000) and (frequency < 5401500):
ret = 'F'
elif (frequency >= 5403500) and (frequency < 5406500):
ret = 'F'
elif (frequency >= 7000000) and (frequency < 7200000):
ret = 'f'
elif (frequency >= 10100000) and (frequency < 10150000):
ret = 'f'
elif (frequency >= 14000000) and (frequency < 14099000):
ret = 'f'
elif (frequency >= 14099000) and (frequency < 14101000):
ret = 'B'
elif (frequency >= 14101000) and (frequency < 14350000):
ret = 'f'
elif (frequency >= 18068000) and (frequency < 18109000):
ret = 'f'
elif (frequency >= 18109000) and (frequency < 18111000):
ret = 'B'
elif (frequency >= 18111000) and (frequency < 18169000):
ret = 'f'
elif (frequency >= 21000000) and (frequency < 21149000):
ret = 'f'
elif (frequency >= 21149000) and (frequency < 21151000):
ret = 'B'
elif (frequency >= 21151000) and (frequency < 21450000):
ret = 'f'
elif (frequency >= 24890000) and (frequency < 24929000):
ret = 'f'
elif (frequency >= 24929000) and (frequency < 24931000):
ret = 'B'
elif (frequency >= 24931000) and (frequency < 24990000):
ret = 'f'
elif (frequency >= 28000000) and (frequency < 28190000):
ret = 'f'
elif (frequency >= 28190000) and (frequency < 28300000):
ret = 'B'
elif (frequency >= 28300000) and (frequency < 29510009):
ret = 'f'
elif (frequency >= 29510000) and (frequency < 29520000):
ret = 'G'
elif (frequency >= 29520000) and (frequency < 29590000):
ret = 'f'
elif (frequency == 29600000):
ret = 'f'
elif (frequency == 29610000):
ret = 'f'
elif (frequency >= 29620000) and (frequency < 29700000):
ret = 'f'
elif (frequency >= 50000000) and (frequency < 50400099):
ret = 'f'
elif (frequency >= 50400000) and (frequency < 50500000):
ret = 'B'
elif (frequency >= 50500000) and (frequency < 52000000):
ret = 'f'
elif (frequency >= 70000000) and (frequency < 70010000):
ret = 'B'
elif (frequency >= 70100000) and (frequency < 70500000):
ret = 'f'
elif (frequency >= 144000000) and (frequency < 144400000):
ret = 'f'
elif (frequency >= 144400000) and (frequency < 144490000):
ret = 'B'
elif (frequency >= 144490000) and (frequency < 146000000):
ret = 'f'
elif (frequency >= 146000000) and (frequency < 147000000):
ret = 'N'
elif (frequency >= 430000000) and (frequency < 431981000):
ret = '2'
elif (frequency >= 432000000) and (frequency < 432490000):
ret = 'B'
elif (frequency >= 432491000) and (frequency < 432493000):
ret = 'B'
elif (frequency >= 432500000) and (frequency < 440000000):
ret = 'f'
elif (frequency >= 1240000000) and (frequency < 1240500000):
ret = 'F'
elif (frequency >= 1240500000) and (frequency < 1240750000):
ret = 'B'
elif (frequency >= 1240750000) and (frequency < 1249250000):
ret = 'F'
elif (frequency >= 1250000000) and (frequency < 1270000000):
ret = 'F'
elif (frequency == 1290000000):
ret = 'F'
elif (frequency >= 1290994000) and (frequency < 1291481000):
ret = 'F'
elif (frequency >= 1291494000) and (frequency < 1296800099):
ret = 'F'
elif (frequency >= 1296800000) and (frequency < 1296994000):
ret = 'B'
elif (frequency >= 1296994000) and (frequency < 1297481000):
ret = 'F'
elif (frequency >= 1297494000) and (frequency < 1297981000):
ret = 'F'
elif (frequency >= 1298000000) and (frequency < 1325000000):
ret = 'F'
elif (frequency >= 2300000000) and (frequency < 2302000000):
ret = 'N'
except Exception as e:
pass
finally:
pass
if ret == 'F':
type = "Full licensees only"
if ret == 'I':
type = "Intermediate licensees or higher"
if ret == 'f':
type = "foundation licensees or higher"
if ret == 'L':
type = "Licence free range"
if ret == 'B':
type = "Beacons only"
if ret == 'G':
type = "Guard channel"
if ret == 'O':
type = "Out of band"
if ret == 'N':
type = "Notice of Variation only for Full licensees"
return type
def whatband(self, hertz):
megahertz = hertz / 100000
wavelength = (3000000 / megahertz)
#print("%d megahertz, wavelength %d" % (megahertz, wavelength))
if wavelength >= 10000:
return "%d.%02d%d metres " % (int(wavelength / 10000), (wavelength % 10000) / 100, wavelength % 100)
elif wavelength >= 100:
return "%d.%d centimetres" % (int(wavelength / 100), wavelength % 100)
else:
return "%d millimetres" % wavelength
def signalonfrequency(self, hertz):
signal = "Unknown"
found = True
frequency = int(hertz)
if (135700 <= frequency < 137800):
signal = "CW, QRSS and narrow-band digital modes\n200"
if (472000 <= frequency < 475000):
signal = "CW\n200"
if (475000 <= frequency < 479000):
signal = "CW, QRSS and narrow-band digital modes\n500"
if (1810000 <= frequency < 1838000):
signal = "Telegraphy\n200"
if (1838000 <= frequency < 1840000):
signal = "Narrow band modes\n500"
if (1840000 <= frequency < 1843000):
signal = "All modes\n2700"
if (1843000 <= frequency < 2000000):
signal = "Telephony\n2700"
if (1836000 <= frequency < 1837000):
signal = "QRP (low power) centre of activity\n2700"
if (1960000 <= frequency < 1961000):
signal = "DF contest beacons\n2700"
if (3500000 <= frequency < 3510000):
signal = "Telegraphy - priority for intercontinental operation\n200"
if (3510000 <= frequency < 3560000):
signal = "Telegraphy - contest preferred\n200"
if (3555000 <= frequency < 3556000):
signal = "QRS (slow telegraphy) centre of activity\n200"
if (3560000 <= frequency < 3570000):
signal = "Telegraphy\n200"
if (3570000 <= frequency < 3580000):
signal = "Narrow band modes\n200"
if (3580000 <= frequency < 3590000):
signal = "Narrow band modes\n500"
if (3590000 <= frequency < 3600000):
signal = "Narrow band modes - automatically controlled data stations (unattended)\n500"
if (3600000 <= frequency < 3650000):
signal = "All modes - phone contest preferred\n2700"
if (3630000 <= frequency < 3631000):
signal = "Digital voice centre of activity\n2700"
if (3650000 <= frequency < 3700000):
signal = "All modes - telephony, telegraphy\n2700"
if (3663000 <= frequency < 3664000):
signal = "May be used for UK emergency comms traffic\n2700"
if (3690000 <= frequency < 3691000):
signal = "SSB QRP (low power) centre of activity\n2700"
if (3700000 <= frequency < 3775000):
signal = "All modes - phone contest preferred\n2700"
if (3735000 <= frequency < 3736000):
signal = "Image mode centre of activity\n2700"
if (3760000 <= frequency < 3761000):
signal = "IARU region 1 emergency centre of activity\n2700"
if (3775000 <= frequency < 3800000):
signal = "All modes - phone contest preferred - priority for intercontinental telephony (SSB) operation\n2700"
if (5258500 <= frequency < 5264000):
signal = "60 Metres, no information\n5500"
if (5262000 <= frequency < 5263000):
signal = "CW QRP (low power) centre of activity\n5500"
if (5276000 <= frequency < 5284000):
signal = "60 metres, no information\n8000"
if (5278500 <= frequency < 5279000):
signal = "May be used for UK emergency comms traffic\n8000"
if (52885000 <= frequency < 5292000):
signal = "Beacons\n3500"
if (5298000 <= frequency < 5307000):
signal = "60 metres, no information\n9000"
if (5313000 <= frequency < 5323000):
signal = "60 metres, no information\n10000"
if (5317000 <= frequency < 5318000):
signal = "AM 6KHz maximum bandwidth\n6000"
if (5333000 <= frequency < 5338000):
signal = "60 metres, no information\n5000"
if (5354000 <= frequency < 5358000):
signal = "Within WRC-15 band\n4000"
if (5362000 <= frequency < 5374500):
signal = "Partly within WRC15 band, WSPR\n12500"
if (5378000 <= frequency < 5382000):
signal = "60 metres, no information\n4000"
if (5395000 <= frequency < 5401500):
signal = "60 metres, no information\n6500"
if (5403500 <= frequency < 5406500):
signal = "60 metres, no information\n3500"
if (7000000 <= frequency < 7040000):
signal = "Telegraphy - 7030KHz QRP centre of activity\n200"
if (7040000 <= frequency < 7047000):
signal = "Narrow band modes, PSK31\n500"
if (7047000 <= frequency < 7050000):
signal = "Narrow band modes, automatically controlled data stations (unattended)\n500"
if (7050000 <= frequency < 7053000):
signal = "All modes, automatically controlled data stations (unattended)\n2700"
if (7053000 <= frequency < 7060000):
signal = "All modes, digimodes\n2700"
if (7060000 <= frequency < 7100000):
signal = "All modes, SSB contest preferred segment\n2700"
if (7070000 <= frequency < 7071000):
signal = "Digital voice\n2700"
if (7090000 <= frequency < 7091000):
signal = "SSB QRP (low power) centre of activity\n2700"
if (7100000 <= frequency < 7130000):
signal = "All modes\n2700"
if (7110000 <= frequency < 7111000):
signal = "Region 1 emergency centre of activity\n2700"
if (7130000 <= frequency < 7200000):
signal = "All modes - SSB contest preferred segment\n2700"
if (7165000 <= frequency < 7166000):
signal = "Image centre of activity\n2700"
if (7175000 <= frequency < 7200000):
signal = "All modes - priority for intercontinental operation\n2700"
if (10100000 <= frequency < 10300000):
signal = "Telegraphy (CW)\n200"
if (10116000 <= frequency < 10117000):
signal = "QRP (low power) centre of activity\n200"
if (10130000 <= frequency < 10150000):
signal = "Narrow band modes\n500"
if (14000000 <= frequency < 14060000):
signal = "Telegraphy - contest preferred\n200"
if (14055000 <= frequency < 14056000):
signal = "QRS (Telegraphy slow speed) centre of activity\n200"
if (14060000 <= frequency < 14070000):
signal = "Telegraphy\n200"
if (14060000 <= frequency < 14061000):
signal = "Telegraphy QRP (low power) centre of activity \n200"
if (14070000 <= frequency < 14089000):
signal = "Narrow band modes\n500"
if (14089000 <= frequency < 14099000):
signal = "Narrow band modes - automatically controlled data stations\n500"
if (14099000 <= frequency < 14101000):
signal = "IBP - reserved exclusively for beacons\2000n"
if (14101000 <= frequency < 14112000):
signal = "All modes - automatically controlled data stations\n2700"
if (14112000 <= frequency < 14125000):
signal = "All modes (excluding digimodes)\n2700"
if (14125000 <= frequency < 14300000 ):
signal = "All modes - SSB preferred segment\n2700"
if (14130000 <= frequency < 14131000):
signal = "Digital voice centre of activity\n2700"
if (14190000 <= frequency < 14200000):
signal = "Priority for DXpeditions\n2700"
if (14230000 <= frequency < 14231000):
signal = "Image centre of activity\n2700"
if (14285000 <= frequency < 14286000):
signal = "QRP (low power) centre of activity\n2700"
if (14300000 <= frequency < 14350000):
signal = "All modes\n2700"
if (14300000 <= frequency < 14310000):
signal = "Global emergency centre of activity\n2700"
if (18068000 <= frequency < 18095000):
signal = "Telegraphy\n200"
if (18068000 <= frequency < 18069000):
signal = "Telegraphy QRP (low power) centre of activity\n200"
if (18095000 <= frequency < 18105000):
signal = "Narrow band modes\n500"
if (18105000 <= frequency < 18109000):
signal = "Narrow band modes - automatically controlled data stations (unattended)\n500"
if (18109000 <= frequency < 18111000):
signal = "IBP - reserved exclusively for beacons\n2000"
if (18111000 <= frequency < 18120000):
signal = "All modes - automatically controlled data stations (unattended)\n2700"
if (18120000 <= frequency < 18168000):
signal = "All modes\n2700"
if (18130000 <= frequency < 18131000):
signal = "SSB QRP (low power) centre of activity\n2700"
if (18150000 <= frequency < 18151000):
signal = "Digital voice centre of activity\n2700"
if (18160000 <= frequency < 18161000):
signal = "Global emergency centre of activity\n2700"
if (21000000 <= frequency < 21070000):
signal = "Telegraphy\n200"
if (21055000 <= frequency < 21056000):
signal = "QRS (slow telegraphy) centre of activity\n200"
if (21060000 <= frequency < 21061000):
signal = "Telegraphy QRP (low power) centre of activity\n200"
if (21070000 <= frequency < 21090000):
signal = "Narrow band modes\n500"
if (21090000 <= frequency < 21100000):
signal = "Narrow band modes - automatically controlled data stations (unattended)\n500"
if (21110000 <= frequency < 21120000):
signal = "All modes (excluding SSB)- automatically controlled data stations (unattended)\n2700"
if (21120000 <= frequency < 21149000):
signal = "Narrow band modes\n500"
if (21149000 <= frequency < 21151000):
signal = "IPB - reserved exclusively for beacons\n2000"
if (21151000 <= frequency < 21450000):
signal = "All modes\n2700"
if (21180000 <= frequency < 21181000):
signal = "Digital voice centre of activity\n2700"
if (21285000 <= frequency < 21286000):
signal = "QRP (low power) centre of activity\n2700"
if (21340000 <= frequency < 21341000):
signal = "Image centre of activity\n2700"
if (21360000 <= frequency < 21361000):
signal = "Global emergency centre of activity\n2700"
if (24890000 <= frequency < 24915000):
signal = "Telegraphy\n200"
if (24906000 <= frequency < 24907000):
signal = "Telegraphy QRP (low power) centre of activity\n200"
if (24915000 <= frequency < 24925000):
signal = "Narrow band modes\n500"
if (24925000 <= frequency < 24929000):
signal = "Narrow band modes - automatically controlled data stations (unattended)\n500"
if (24929000 <= frequency < 24931000):
signal = "IPB - reserved exclusively for beacons\n500"
if (24931000 <= frequency < 24940000):
signal = "All modes - automatically controlled data stations (unattended)\n2700"
if (24940000 <= frequency < 24990000):
signal = "All modes\n2700"
if (24950000 <= frequency < 24951000):
signal = "SSB QRP (low power) centre of activity\n2700"
if (24960000 <= frequency < 24961000):
signal = "Digital voice centre of activity\n2700"
if (28000000 <= frequency < 28070000):
signal = "Telegraphy\n200"
if (28055000 <= frequency < 28056000):
signal = "QRS (slow telegraphy) centre of activity\n200"
if (28060000 <= frequency < 28061000):
signal = "Telegraphy QRP (low power) centre of activity\n200"
if (28070000 <= frequency < 28120000):
signal = "Narrow band modes\n500"
if (28120000 <= frequency < 28150000):
signal = "Narrow band modes - automatically controlled data stations (unattended)\n500"
if (28150000 <= frequency < 28190000):
signal = "Narrow band modes\n500"
if (28190000 <= frequency < 28199000):
signal = "IBP - regional time shared beacons\n500"
if (28199000 <= frequency < 28201000):
signal = "IBP - World wide time shared beacons\n500"
if (28201000 <= frequency < 28255000):
signal = "IBP - continuous duty beacons\n500"
if (28255000 <= frequency < 28300000):
signal = "All modes - beacons\n2700"
if (28300000 <= frequency < 28320000):
signal = "All modes - automatically controlled data stations (unattended)\n2700"
if (28320000 <= frequency < 29000000):
signal = "All modes\n2700"
if (28330000 <= frequency < 28331000):
signal = "DV centre of activity\n2700"
if (28360000 <= frequency < 28361000):
signal = "QRP centre of activity\n24700"
if (28680000 <= frequency < 28681000):
signal = "Image centre of activity\n2700"
if (29000000 <= frequency < 29100000):
signal = "All modes\n6000"
if (29100000 <= frequency < 29200000):
signal = "All modes - FM simplex - 10KHz channels - channel %d\n6000" % ((frequency % 100000) / 10000 + 1)
if (29200000 <= frequency < 29300000):
signal = "All modes - automatically controlled data stations (unattended)\n6000"
if (29270000 <= frequency < 29271000):
signal = "UK Internet voice gateway - unattended\n6000"
if (29280000 <= frequency < 29281000):
signal = "UK Internet voice gateway - unattended\n6000"
if (29290000 <= frequency < 29291000):
signal = "UK Internet voice gateway - unattended\n6000"
if (29300000 <= frequency < 29510000):
signal = "Satellite links\n6000"
if (29510000 <= frequency < 29520000):
signal = "Guard channel\n10000"
if (29510000 <= frequency < 29590000):
signal = "All modes - FM repeater inputs (RH%d)\n6000"% ((frequency % 100000) / 10000)
if (29600000 <= frequency < 29601000):
signal = "All modes - FM calling channel\n6000"
if (29610000 <= frequency < 29611000):
signal = "All modes - FM simplex repeater (parrot) - input and output\n6000"
if (29620000 <= frequency < 29700000):
signal = "All modes - FM repeater outputs (RH%d)\n6000"% ((frequency % 100000) / 10000 - 1)
if (50000000 <= frequency < 50100000):
signal = "Telegraphy only\n500"
if (50050000 <= frequency < 50551000):
signal = "Future International Centre of Activity\n500"
if (50090000 <= frequency < 50091000):
signal = "Intercontinental DX Centre of Activity\n500"
if (50100000 <= frequency < 50200000):
signal = "SSB/Telegraphy - International Preferred\n2700"
if (50100000 <= frequency < 51030000):
signal = "Intercontinental DX Telegraphy and SSB\n2700"
if (50110000 <= frequency < 50111000):
signal = "Intercontinental DX Centre of Activity\n2700"
if (50130000 <= frequency < 50200000):
signal = "General International Telegraphy and SSB\n2700"
if (50150000 <= frequency < 50151000):
signal = "International Centre of Activity\n2700"
if (50200000 <= frequency < 50300000):
signal = "SSB/Telegraphy - General Usage\n2700"
if (50285000 <= frequency < 50286000):
signal = "Crossband Centre of Activity\n2700"
if (50300000 <= frequency < 50400000):
signal = "MGM/Narrowband/Telegraphy\n2700"
if (50305000 <= frequency < 50306000):
signal = "PSK Centre of Activity\n2700"
if (50310000 <= frequency < 50320000):
signal = "EME\n2700"
if (50320000 <= frequency < 50380000):
signal = "Meteor scatter\n2700"
if (50400000 <= frequency < 50500000):
signal = "Propagation Beacons Only\n2700"
if (50500000 <= frequency < 52000000):
signal = "All modes\n12500"
if (50510000 <= frequency < 50511000):
signal = "SSTV\n12500"
if (50520000 <= frequency < 50550000):
signal = "Internet voice gateway (channel %d), (IARU common channel)\n12500" % ((frequency % 100000) / 10000 - 1)
if (50550000 <= frequency < 50551000):
signal = "Image/Fax working frequency\n12500"
if (50600000 <= frequency < 50601000):
signal = "Digital Experiments to support innovation\n100000"
if (50620000 <= frequency < 50750000):
signal = "Digital communications\n12500"
if (50630000 <= frequency < 50631000):
signal = "DV calling\n12500"
if (50710000 <= frequency < 50890000):
signal = "FM/DV Repeater Outputs (channel %d)\n12500" % ((frequency % 1000000) / 10000 - 70)
if (51000000 <= frequency < 51001000):
signal = "Digital Experiments to support innovation\n100000"
if (51210000 <= frequency < 51390000):
signal = "FM/DV Repeater Inputs (channel %d)\n12500" % ((frequency % 1000000) / 10000 - 20)
if (51410000 <= frequency < 51590000):
signal = "FM/DV Simplex (channel %d)\n12500" % (((frequency % 1000000) - 10000)/ 20000 - 19)
if (51510000 <= frequency < 51511000):
signal = "FM calling frequency\n12500"
if (51530000 <= frequency < 51531000):
signal = "GB2RS news broadcast and slow morse\n12500"
if (51650000 <= frequency < 51651000):
signal = "May be used for Emergency Communications and Community Events\n12500"
if (51700000 <= frequency < 51701000):
signal = "Digital Experiments to support innovation\n100000"
if (51750000 <= frequency < 51751000):
signal = "May be used for Emergency Communications and Community Events\n12500"
if (51770000 <= frequency < 51771000):
signal = "May be used for Emergency Communications and Community Events\n12500"
if (51790000 <= frequency < 51791000):
signal = "May be used for Emergency Communications and Community Events\n12500"
if (51810000 <= frequency < 51990000):
signal = "FM/DV Repeater Outputs (channel %d)(IARU aligned channels)\n12500" % ((frequency % 1000000) / 10000 - 80)
if (70000000 <= frequency < 70090000):
signal = "Propagation Beacons only\n1000"
if (70090000 <= frequency < 70100000):
signal = "Personal beacons\n1000"
if (70100000 <= frequency < 70250000):
signal = "Narrow Band modes\n2700"
if (70185000 <= frequency < 70186000):
signal = "Cross-band activity centre\n2700"
if (70200000 <= frequency < 70201000):
signal = "CW/SSB calling\n2700"
if (70250000 <= frequency < 70251000):
signal = "MS calling\n2700"
if (70250000 <= frequency < 70294000):
signal = "All modes\n12500"
if (70250000 <= frequency < 70251000):
signal = "MS calling\n2700"
if (70260000 <= frequency < 70261000):
signal = "AM/FM calling\n12500"
if (70270000 <= frequency < 70271000):
signal = "MGM centre of activity\n12500"
if (70294000 <= frequency < 70500000):
signal = "All modes 12.5 kHz spacing (channel %d)\n12500" % (((frequency % 1000000) - 294000) / 12500 + 1)
if (70312500 <= frequency < 70325000):
signal = "Digital modes\n12500"
if (70325000 <= frequency < 70337500):
signal = "DX cluster\n12500"
if (70337500 <= frequency < 70350000):
signal = "Digital modes\n12500"
if (70350000 <= frequency < 70351000):
signal = "Internet voice gateway\n12500"
if (70362500 <= frequency < 70375000):
signal = "Internet voice gateway\n12500"
if (70375000 <= frequency < 70387500):
signal = "May be used for Emergency Communications and Community Events\n12500"
if (70387500 <= frequency < 70400000):
signal = "Internet voice gateway\n12500"
if (70400000 <= frequency < 70412500):
signal = "May be used for Emergency Communications and Community Events\n12500"
if (70412500 <= frequency < 70425000):
signal = "Internet voice gateway\n12500"
if (70425000 <= frequency < 70437500):
signal = "FM simplex - used by GB2RS news broadcast\n12500"
if (70437500 <= frequency < 70450000):
signal = "Digital modes (special projects)\n12500"
if (70450000 <= frequency < 70462500):
signal = "FM calling\n12500"
if (70462500 <= frequency < 70475000):
signal = "Digital modes\n12500"
if (70487500 <= frequency < 70500000):
signal = "Digital modes\n12500"
if (108050000 <= frequency < 117950000):
signal = "ILS/VOR/ATIS (%d)\n50000" % ((frequency - 108000000) / 50000)
if (118000000 <= frequency < 136991660):
signal = "Airband AM Communications (%d)\n8333" % ((frequency - 118000000) / (25000 / 3) + 1)
if (118675000 <= frequency < 118683333):
signal = "Paragliding (below 5000 feet)\n8333"
if (119700000 <= frequency < 119708333):
signal = "Paragliding (below 5000 feet)\n8333"
if (144000000 <= frequency < 144025000):
signal = "All modes - including Satellite downlinks\n2700"
if (144025000 <= frequency < 144100000):
signal = "Telegraphy (including EME CW)\n500"
if (144050000 <= frequency < 144051000):
signal = "Telegraphy centre of activity\n500"
if (144100000 <= frequency < 144150000):
signal = "Telegraphy and MGM/EME MGM activity\n500"
if (144100000 <= frequency < 144101000):
signal = "Random meteor scatter telegraphy calling\n00"
if (144150000 <= frequency < 144400000):
signal = "Telegraphy, MGM and SSB\n2700"
if (144175000 <= frequency < 177176000):
signal = "Microwave talk-back\n2700"
if (144200000 <= frequency < 144201000):
signal = "Random MS SSB\n2700"
if (144250000 <= frequency < 144251000):
signal = "GB2RS news broadcast and slow Morse\n2700"
if (144260000 <= frequency < 144261000):
signal = "May be used for Emergency Communications and Community Events\n2700"
if (144300000 <= frequency < 144301000):
signal = "SSB Centre of Activity\n2700"
if (144370000 <= frequency < 144371000):
signal = "MGM MS calling\n2700"
if (144400000 <= frequency < 144490000):
signal = "Propagation Beacons only\n2700"
if (144490000 <= frequency < 144500000):
signal = "Beacon guard band\n10000"
if (144491000 <= frequency < 144493000):
signal = "Personal Weak Signal MGM Beacons\n500"
if (144500000 <= frequency < 144794000):
signal = "All modes\n20000"
if (144500000 <= frequency < 144501000):
signal = "Image Modes (SSTV, Fax etc)\n20000"
if (144600000 <= frequency < 144601000):
signal = "Data Centre of Activity (MGM, RTTY etc)\n20000"
if (144612500 <= frequency < 144612600):
signal = "UK Digital Voice (DV) calling\n20000"
if (144625000 <= frequency < 144675000):
signal = "May be used for Emergency Communications and Community Events\n20000"
if (144750000 <= frequency < 144751000):
signal = "ATV talkback\n20000"
if (144775000 <= frequency < 144794000):
signal = "May be used for Emergency Communications and Community Events\n20000"
if (144794000 <= frequency < 144990000):
signal = "MGM/Digital Communications\n12500"
if (144800000 <= frequency < 144987500):
signal = "Digital modes (including unattended)\n12500"
if (144800000 <= frequency < 144801000):
signal = "Unconnected nets - APRS, UiView etc\n12500"
if (144812500 <= frequency < 144812600):
signal = "DV Internet voice gateway (IARU common channel)\n12500"
if (144825000 <= frequency < 144825100):
signal = "DV Internet voice gateway (IARU common channel)\n12500"
if (144375000 <= frequency < 144376000):
signal = "DV Internet voice gateway (IARU common channel)\n12500"
if (144500000 <= frequency < 144501000):
signal = "DV Internet voice gateway (IARU common channel)\n12500"
if (144625000 <= frequency < 144626000):
signal = "DV Internet voice gateway (IARU common channel)\n12500"
if (144925000 <= frequency < 144926000):
signal = "TCP/IP usage\n12500"
if (144937500 <= frequency < 144938500):
signal = "AX25n usage\n12500"
if (144950000 <= frequency < 144951000):
signal = "AX25n usage\n12500"
if (144962500 <= frequency < 144963500):
signal = "FM Internet voice gateway\n12500"
if (144990000 <= frequency < 145193500):
signal = "FM/DV RV48 - RV63 Repeater input exclusive (channel %d)\n12500" % ((frequency - 144990000) / 12500 + 48)
if (145200000 <= frequency < 145201000):
signal = "FM/DV Space communications - Earth-to-Space\n12500"
if (145200000 <= frequency < 145593500):
signal = "FM/DV V16-V48 FM/DV simplex (channel %d)\n12500" % ((frequency - 145200000) / 12500 + 16)
if (145225000 <= frequency < 145226000):
signal = "May be used for Emergency Communications and Community Events\n12500"
if (145237500 <= frequency < 145238500):
signal = "MHz FM Internet voice gateway (IARU common channel)\n12500"
if (145250000 <= frequency < 145251000):
signal = "Used for slow Morse transmissions\n12500"
if (145287500 <= frequency < 145288500):
signal = "FM Internet voice gateway (IARU common channel)\n12500"
if (145337500 <= frequency < 145338500):
signal = "FM Internet voice gateway (IARU common channel)\n12500"
if (145500000 <= frequency < 145501000):
signal = "FM calling (not DV)\n12500"
if (145525000 <= frequency < 145526000):
signal = "Used for GB2RS news broadcast\n12500"
if (145550000 <= frequency < 145551000):
signal = "Used for rally/exhibition talk-in\n12500"
if (145593500 <= frequency < 145793500):
signal = "FM/DV RV48 - RV63 Repeater output\n12500"
if (145800000 <= frequency < 145801000):
signal = "FM/DV Space communications (e.g. I.S.S.) - Space-Earth\n12500"
if (145806000 <= frequency < 146000000):
signal = "All Modes - Satellite exclusive\n12500"
if (146000000 <= frequency < 146900000):
signal = "Wideband Digital Modes (High speed data, DATV etc)\n500000"
if (146500000 <= frequency < 146501000):
signal = "Centre frequency for wideband modes\n500000"
if (146900000 <= frequency < 147000000):
signal = "Narrowband Digital Modes including Digital Voice\n12500"
if (430000000 <= frequency < 431981000):
signal = "All modes\n20000"
if (430012500 <= frequency < 430075000):
signal = "FM Internet voice gateways\n20000"
if (430250000 <= frequency < 430300000):
signal = "UK DV 9 MHz reverse-split repeaters - Outputs\n20000"
if (430400000 <= frequency < 430775000):
signal = "UK DV 9 MHz reverse-split repeaters - Inputs\n20000"
if (430400000 <= frequency < 430575000):
signal = "Digital links\n20000"
if (430600000 <= frequency < 430925000):
signal = "Digital repeaters\n20000"
if (430800000 <= frequency < 430801000):
signal = "7.6 MHz Talkthrough\n20000"
if (430825000 <= frequency < 430975000):
signal = "RU66-RU78 7.6 MHz split repeaters – outputs\n20000"
if (430990000 <= frequency < 431900000):
signal = "Digital Communications\n20000"
if (431075000 <= frequency < 431175000):
signal = "DV Internet voice gateways\n20000"
if (432000000 <= frequency < 432100000):
signal = "Telegraphy, MGM\n500"
if (432000000 <= frequency < 432025000):
signal = "Moonbounce (EME)\n500"
if (432050000 <= frequency < 432051000):
signal = "Telegraphy centre of activity\n500"
if (432100000 <= frequency < 432400000):
signal = "SSB, Telegraphy, MGM\n2700"
if (432200000 <= frequency < 432201000):
signal = "SSB centre of activity\n2700"
if (432350000 <= frequency < 432351000):
signal = "Microwave talkback (Europe)\n2700"
if (432370000 <= frequency < 432371000):
signal = "FSK441 calling frequency\n2700"
if (432400000 <= frequency < 432490000):
signal = "Propagation beacons\n500"
if (432491000 <= frequency < 432493000):
signal = "Personal Weak Signal MGM Beacons\n500"
if (432500000 <= frequency < 432994000):
signal = "All modes non-channelised\n25000"
if (432500000 <= frequency < 432501000):
signal = "Narrow band ` activity centre\n25000"
if (432625000 <= frequency < 432675000):
signal = "Digital communications (25 kHz channels)\n25000"
if (432775000 <= frequency < 432776000):
signal = "1.6 MHz Talkthrough - Base TX\n25000"
if (432994000 <= frequency < 433381000):
signal = "FM repeater outputs\n25000"
if (433000000 <= frequency < 433735000):
signal = "Channel RB%d/RU%d output\n25000" % ((frequency - 433000000) / 25000, 240 + (int((frequency - 433000000) / 25000)) * 2)
if (433000000 <= frequency < 433001000):
signal = "GB3NT repeater output (CTCSS 118.8, NFM)\n25000"
if (433175000 <= frequency < 433176000):
signal = "GB3TS repeater output (CTCSS 118.8, NFM)\n25000"
if (433394000 <= frequency < 433581000):
signal = "FM/DV simplex channels\n25000"
if (433400000 <= frequency < 433401000):
signal = "U272; IARU Region 1 SSTV (FM/AFSK)\n25000"
if (433500000 <= frequency < 433501000):
signal = "U280 FM Calling channel\n25000"
if (433550000 <= frequency < 433551000):
signal = "Used for Rally/Exhibition talk-in\n25000"
if (433600000 <= frequency < 434000000):
signal = "All modes\n25000"
if (433625000 <= frequency < 433675000):
signal = "Digital communications\n25000"
if (433700000 <= frequency < 433775000):
signal = "May be used for Emergency Communications and Community Events\n25000"
if (433800000 <= frequency < 434250000):
signal = "Digital communications & Experiments\n25000"
if (434000000 <= frequency < 434001000):
signal = "Low Power Non-NoV Personal Hot-Spot usage\n25000"
if (433950000 <= frequency < 434050000):
signal = "Internet voice gateways\n25000"
if (434375000 <= frequency < 434376000):
signal = "1.6 MHz Talkthrough - Mobile TX\n25000"
if (434475000 <= frequency < 434525000):
signal = "DV Internet voice gateways\n25000"
if (434594000 <= frequency < 434981000):
signal = "FM repeater inputs and ATV\n25000"
if (434600000 <= frequency < 434975000):
signal = "Channel RB%d/RU%d input\n25000" % ((frequency - 434600000) / 25000, 240 + (int((frequency - 434600000) / 25000)) * 2)
if (434600000 <= frequency < 434601000):
signal = "GB3NT Repeater input (CTCSS 118.8, NFM)\n25000"
if (434775000 <= frequency < 434776000):
signal = "GB3NT Repeater input (CTCSS 118.8, NFM)\n25000"
if (435000000 <= frequency < 438000000):
signal = "Satellites and fast scan TV\n20000"
if (437000000 <= frequency < 437001000):
signal = "Experimental DATV Centre of Activity\n20000"
if (438000000 <= frequency < 440000000):
signal = "All modes\n25000"
if (438400000 <= frequency < 438401000):
signal = "7.6 MHz Talkthrough\n25000"
if (438425000 <= frequency < 438575000):
signal = "RU66-RU78 7.6MHz split repeaters – inputs\n25000"
if (438612500 <= frequency < 438613500):
signal = "UK DV calling\n25000"
if (438800000 <= frequency < 438801000):
signal = "Low Power Non-NoV Personal Hot-Spot usage\n25000"
if (439600000 <= frequency < 440000000):
signal = "Digital communications\n25000"
if (439250000 <= frequency < 439300000):
signal = "UK DV 9 MHz reverse-split repeaters - Inputs\n25000"
if (439400000 <= frequency < 439775000):
signal = "UK DV 9 MHz split repeaters - Outputs\n25000"
if (145687500 == frequency):
signal = "GB3CD repeater output (CTCSS 118.8, NFM, in -0.6MHz)\n12500"
if (145087500 == frequency):
signal = "GB3CD repeater input (CTCSS 118.8, NFM, out +0.6MHz)\n12500"
if (145287500 == frequency):
signal = "MB7IAB ROIP gateway (CTCSS 118.8, NFM)\n2700"
if (433300000 == frequency):
signal = "GB3TJ repeater output (CTCSS 118.8, NFM)\n2700"
if (434900000 == frequency):
signal = "GB3TJ repeater input (CTCSS 118.8, NFM)\n2700"
if (439462500 == frequency):
signal = "GB7XX DMR Repeater on Brandmeister output (-9MHz, colour code 10)\n2700"
if (430462500 == frequency):
signal = "GB7XX DMR Repeater on Brandmeister input (out +9MHz, colour code 10)\n2700"
if (439525000 == frequency):
signal = "GB7DZ DMR Repeater on Brandmeister output (-9MHz, colour code 7)\n2700"
if (430462500 == frequency):
signal = "GB7DZ DMR Repeater on Brandmeister input (out +9MHz, colour code 7)\n2700"
if (frequency in [28721000, 24933000, 21313000, 18119000, 14240000, 14236000, 7190000, 7177000, 5403500, 3817000, 3732000, 1997000]):
signal = "FreeDV frequency\n2700"
if (frequency in [137975000, 138075000, 138150000, 138175000, 153025000, 153125000, 153150000, 153175000, 153237500, 153250000,\
153262500, 153275000, 153325000, 153337500, 153350000, 153362500, 153375000, 153450000, 454075000, 454200000,\
454675000, 454775000, 454825000, 466075000]):
signal = "POCSAG frequency (NFM)\n2700"
if (frequency in [4996000, 9996000, 149996000]):
signal = "Frequency calibration - RWM signal\n2700"
if (frequency in [136000, 474200, 1836600, 3568600, 7038600, 10138700, 14095600, 18104600, 21094600, 24924600, 28124600, 50293000,\
70091000, 144489000, 43230000]):
signal = "WSPR\n2700"
if (frequency in [136130, 474200, 1838000, 3570000, 7076000, 10138000, 14076000, 18102000, 21076000, 24917000, 28076000, 50276000,\
50310000, 70102000, 144120000, 222065000, 432065000]):
signal = "JT65\n2700"
if (frequency in [136130, 474200, 1839000, 3572000, 7078000, 10140000, 14078000, 18104000, 21078000, 24919000, 28078000,\
50312000, 70104000]):
signal = "JT9\n2700"
if (frequency in [ 1840000, 3573000, 7074000, 10136000, 14074000, 18100000, 21074000, 24915000, 28074000,\
50313000, 70100000]):
signal = "FT8\n2700"
if (frequency in [50200000, 144120000, 222065000, 432065000]):
signal = "Echo\n2700"
if (frequency in [50260000, 50360000, 70230000, 144150000, 144360000, 432360000]):
signal = "MSK144\n2700"
if (frequency in [144120000, 432065000]):
signal = "JT65/Echo/QRA64\n2700"
if (frequency in [136130, 474200]):
signal = "JT9/JT65\n2700"
return signal