Skip to main content

Finds DXCC entry for given amateur callsign.

Project description

Find DXCC from call sign.

For radio amateur purposes, the land on the earth's surfaces has been compartmentalized into "DXCC regions". Given a radio amateur's officially assigned call sign, it is possible to find out to which DXCC region that call sign belongs. This is what this software does.

Or, more precisely, strives to do. Read on.

Legal situation: Owned by ARRL

But before explaining the known bugs, let me touch another unpleasent subject: The legal situation.

The list of all DXCC regions is under ARRL copyright. It can be downloaded from the ARRL web page, but I have no license to redistribute this material. See the ARRL publication on copyright to learn more.

I'm not a layer, but my impression is that the ARRL, through its pertinent page, allows personal use without obtaining (further) permission of the copyrighted list of all DXCC regions.

So, if you figured out a way to be allowed to use the ARRL list, I'm entitled to provide software to you that helps you do that. (I actually asked the ARRL to make sure.)

This is that software. It will download the DXCC list (as a text file) from the ARRL web site on first use, to the current directory, and use the copy thus obtained from there on to analyze callsigns you feed it.

Limitations

That ARRL list is an unwieldly beast to be tamed. The list's format is not well specified (I wish they had used regular expressions), so it's some guesswork.

Now I'm not much of a DXer myself, which does not really help. So there are some details in the DXCC list which I do not presently understand.

For starters, I do not understand which call signs belong to "Spratly Is.".

Also, I do not know how to distinguish which "CE9"-calls belong to Antarctica and which to South Shetland. So this software lumps all "CE9" to South Shetland.

Other notes I do not understand:

  • FT/G,TO for Glorioso Is.
  • FT/J,E,TO for Juan de Nova, Europa
  • FT/T,TO for Tromelin I.
  • FT/W for Crozet I.
  • FT/X for Kerguelen Is.
  • FT/Z for Amsterdam & St. Paul Is.
  • R1/F for Franz Josef Land
  • SV/A for Mount Athos

Present limitations

Here is what is presently implemented, even some of this is clearly incorrect:

  • All calls starting with "FT" belong to France in Europe.

  • All SV calls belong to Greece.

  • All KC0, .. KC3 and KC5 .. KC9 calls belong to USA / NA.

  • (The "," after T8 is considered a typo.)

  • 4U_ITU is meant to represent 4U0ITU through 4UZITU.

  • 4U_UN is meant to represent 4U0UN through 4UZUN

  • R1 through R7 and RA1 through RZ7 belong where UA1 through UA7 go.

  • R8, R9, R0 and RA8 through RZ0 all belong where UA8 though UA0 go.

  • PP0-PY0F and PP0-PY0S and PP0-PY0T are not comprehensible for me right now, so they are lumped with plain Brazil.

Stuff collected elsewhere, with a decent dose of guesswork thrown in:

  • CT8 and CR2Y - calls belong to the Azores in EU, DXCC 149

  • CR3 and CT9 - calls belong to Madeira in AF, DXCC 256

  • TM - calls belong to France in EU, DXCC 227

  • 3Z - calls belong to Poland in EU, DXCC 269

  • 4U1A belongs to the United Nations in Vienna, EU, DXCC 117

If I find time, I may try to clean up this mess. In the meantime, if you have better information, tell me.

Example usage

import call_to_dxcc

country, continent, dxcc_number = call_to_dxcc.data_for_call("DJ3EI")

The import will download the DXCC list to the working directory, unless that file is already present there. It will use the information from that file.

You can then ask for data for an amateur radio call sign. In the example given above, country will contain "Federal Republic of Germany", continent will contain "EU", and dxcc_number will contain the number 230.

If you want to proceed when the DXCC for a callsign cannot be found, catch call_to_dxcc.DxccUnknownException.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

call_to_dxcc-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

call_to_dxcc-0.0.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file call_to_dxcc-0.0.1.tar.gz.

File metadata

  • Download URL: call_to_dxcc-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.5.3

File hashes

Hashes for call_to_dxcc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1dc9c6f5f96ab6d7b3180a200b4827201cf70ceeec4eeff04451e893a6af5a2f
MD5 539428c9c3394d46c6475bfc3aa67242
BLAKE2b-256 8f1935f29941e943238c3bddb67ae0d2c5a23ce766e3a82b4de927647a0a60d0

See more details on using hashes here.

File details

Details for the file call_to_dxcc-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: call_to_dxcc-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.5.3

File hashes

Hashes for call_to_dxcc-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17edac8ec98c713f1e0e09a4a528a33149483c3d9510ff77b51cca6aca7eb872
MD5 943c1085d3f4492faed953febcbd1c30
BLAKE2b-256 b3dd102aefc8e326514b1b97f43b61f3d1a3824b6e6b7a5ed2f4ac7035a11486

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page