File: test

package info (click to toggle)
pyhamtools 0.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,012 kB
  • sloc: xml: 307,301; python: 3,493; makefile: 152
file content (16 lines) | stat: -rwxr-xr-x 442 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python3

import pyhamtools.locator

print(pyhamtools.locator.calculate_distance('JO31HI', 'JN39PF'))
print(pyhamtools.locator.calculate_sunrise_sunset('JO31HI'))

import pyhamtools.frequency

print(pyhamtools.frequency.freq_to_band(14005.3))

from pyhamtools import LookupLib, Callinfo

my_lookuplib = LookupLib(lookuptype="countryfile", filename="test/fixtures/cty.plist")
cic = Callinfo(my_lookuplib)
print(cic.get_all("DF7CB"))