RadioBanter

RadioBanter (https://www.radiobanter.com/)
-   Dx (https://www.radiobanter.com/dx/)
-   -   New Call Sign Prefix Look Up Tool (https://www.radiobanter.com/dx/73988-new-call-sign-prefix-look-up-tool.html)

Zed Zed July 4th 05 04:12 PM

New Call Sign Prefix Look Up Tool
 
I am just getting my new web site back online and have now also added a new
tool to search for the country name by the call sign prefix. Please give
this a try.

http://www.onlinehamfest.com/search.htm

tnx es 73
Zed Zed

To reply to this message by email, please remove the X's.





Zed Zed July 4th 05 05:37 PM

http://www.onlinehamfest.com/search.htm

Not too good, I'm afraid.

All the following return "United Kingdom of Great Britain and Northern
Ireland":

G3, M3, MI, MM, GD, MX, GW, GU, MJ, 2E, 2M, 2W, etc (There are 6
different DXCC countries here),
VP, VQ (which are several different countries in the Caribbean and
East African areas).


This is the first draft and the data is from the information that I found at
arrl.org.
Please list them for me and I'll add them to the database. I need them in
this format:
VHA-VNZ|Australia|VK


The following return "No trace":

ZB, ZC, ZD, ZF.


Please enter the call sign in lower case letters as instructed above the
search box. There is a bug in the script that does not like the capital
letter "Z". :)





Some more development work needed, I think. A good idea, though.

73 de G3NYY

--
Walt Davidson Email: g3nyy @despammed.com




Zed Zed July 4th 05 06:20 PM

I was going by the simple list. ;)

http://www.arrl.org/awards/dxcc/itucalls.html




I don't think it will work that way.

Take a look here for the country list:

http://www.arrl.org/awards/dxcc/list_g.html

Even this is not complete, because there are also new prefixes MX, MT,
MN, MH, MS, MP and MC which are equivalent to GX, GT, GN, GH, GS, GP
and GC.

The VK and VP series are even more complicated. VK9 can be any of 6
different countries ... none of which is Australia. VP8 can be any of
5 different countries.

http://www.arrl.org/awards/dxcc/list_ua.html

73 de G3NYY

--
Walt Davidson Email: g3nyy @despammed.com




Fabian Kurz July 4th 05 06:29 PM

Zed Zed wrote:
http://www.onlinehamfest.com/search.htm


Not too good, I'm afraid.

All the following return "United Kingdom of Great Britain and Northern
Ireland":

[...]

This is the first draft and the data is from the information that I found at
arrl.org.
Please list them for me and I'll add them to the database. I need them in
this format:
VHA-VNZ|Australia|VK


You might rather want to use the CTY.DAT file by K1EA. The data you are
using looks like the ITU allocations, and from those you cannot tell the
_DXCC_ country.

As I see, you are using Perl for the script; I wrote a parser and
algorithms in Perl to figure out the DXCC, Zone, Continent etc. from
any callsign (including calls like KL7/DJ1YFK/P) as a part of my
logbook program YFKlog. It's open source under the GPL, so you can use
the code if you like (subs 'dxcc' and 'wpx' in yfksubs.pl):
http://fkurz.net/ham/yfklog/yfklog-0.1.0.tar.gz
or http://fkurz.net/ham/yfklog.html for a general description of the
software, if anyone is interested.

73,
--
Fabian Kurz, DJ1YFK * Dresden, Germany * http://fkurz.net/

Caveat Lector July 4th 05 06:48 PM

Sir Walter and others -- try URL:

http://ac6v.com/prefixes.htm

Most complete one I know of.
--
CL -- I doubt, therefore I might be !






"Walt Davidson" wrote in message
...
On Mon, 04 Jul 2005 15:12:04 GMT, "Zed Zed"
wrote:

I am just getting my new web site back online and have now also added a
new
tool to search for the country name by the call sign prefix. Please give
this a try.

http://www.onlinehamfest.com/search.htm


Not too good, I'm afraid.

All the following return "United Kingdom of Great Britain and Northern
Ireland":

G3, M3, MI, MM, GD, MX, GW, GU, MJ, 2E, 2M, 2W, etc (There are 6
different DXCC countries here),
VP, VQ (which are several different countries in the Caribbean and
East African areas).

The following return "No trace":

ZB, ZC, ZD, ZF.

Some more development work needed, I think. A good idea, though.

73 de G3NYY

--
Walt Davidson Email: g3nyy @despammed.com




Zed Zed July 4th 05 11:36 PM

I was wondering if you might be able to help me identify the fields used in
K1EA's cty.dat file?

The fields in the file are in this format.

Spratly Is.: 26: 50: AS: 8.80: -111.90: -8.0: 1S:
1S,9M0,9M6OO/P,9M6PO,9M6TCR,9M6TPR,BV9S,DU0,DX0;
Fiji: 32: 56: OC: -18.10: -178.40: -12.0: 3D2:
3D2;

1st field is country,
the 2nd: ?
the 3rd: ?
4th: continent
5th: longitude ?
6th: latitude ?
7th: UTC offset?
8th: Primary Prefix ?
9th: All Prefixes?


You might rather want to use the CTY.DAT file by K1EA. The data you are
using looks like the ITU allocations, and from those you cannot tell the
_DXCC_ country.

As I see, you are using Perl for the script; I wrote a parser and
algorithms in Perl to figure out the DXCC, Zone, Continent etc. from
any callsign (including calls like KL7/DJ1YFK/P) as a part of my
logbook program YFKlog. It's open source under the GPL, so you can use
the code if you like (subs 'dxcc' and 'wpx' in yfksubs.pl):
http://fkurz.net/ham/yfklog/yfklog-0.1.0.tar.gz
or http://fkurz.net/ham/yfklog.html for a general description of the
software, if anyone is interested.

73,
--
Fabian Kurz, DJ1YFK * Dresden, Germany * http://fkurz.net/




Fabian Kurz July 5th 05 12:49 AM

Zed Zed wrote:
I was wondering if you might be able to help me identify the fields used in
K1EA's cty.dat file?

The fields in the file are in this format.

Spratly Is.: 26: 50: AS: 8.80: -111.90: -8.0: 1S:
1S,9M0,9M6OO/P,9M6PO,9M6TCR,9M6TPR,BV9S,DU0,DX0;
Fiji: 32: 56: OC: -18.10: -178.40: -12.0: 3D2:
3D2;

1st field is country,
the 2nd: ?


CQ Zone

the 3rd: ?


ITU Zone

4th: continent
5th: longitude ?
6th: latitude ?


other way round. 5th is latitude, 6th is longitude.

7th: UTC offset?


r

8th: Primary Prefix ?


r

9th: All Prefixes?


Yes. Always the longest matching prefix counts for determining the
DXCC. For example EA6ABC would match for EA (2 characters mathcing)
and EA6 (3 characters matching), so it is EA6, Balearic Is..
For some countries there are even full calls given, like for FO0s,
where callsigns like FO/DL1AWI are not unambiguously assigned to a
certain DXCC.

Polynesia: 32: 63: OC: -17.60: 149.50: 10.0: FO:
FO,FO0FRA,TO8K;

Using the cty.dat file has the great advantage that you don't have
to mainain your own database, but simply can download the actual
version every now and then...

At http://fkurz.net/ham/dxcc/ you find a little Perl script which
asks for callsigns and then returns their data from the country file.
Should be a task of a few minutes to turn this into a CGI for web
access..

73,
-
Fabian Kurz, DJ1YFK * Dresden, Germany * http://fkurz.net/

Zed Zed July 5th 05 02:31 AM

Thank you for all the help. :)

The updated version is now running.
http://www.onlinehamfest.com/search.htm

tnx es 73
Zed Zed

To reply to this message by email, please remove the X's.




Doug Smith W9WI July 5th 05 01:32 PM

Fabian Kurz wrote:
As I see, you are using Perl for the script; I wrote a parser and
algorithms in Perl to figure out the DXCC, Zone, Continent etc. from
any callsign (including calls like KL7/DJ1YFK/P) as a part of my
logbook program YFKlog. It's open source under the GPL, so you can use
the code if you like (subs 'dxcc' and 'wpx' in yfksubs.pl):
http://fkurz.net/ham/yfklog/yfklog-0.1.0.tar.gz
or http://fkurz.net/ham/yfklog.html for a general description of the
software, if anyone is interested.


Thanks for posting that!

I've done a similar project. (http://www.w9wi.com, scroll about halfway
down for the link) Mine uses Apache as a user interface instead of
curses. Guess I was lazygrin. Otherwise it's similar, written in
Perl and logging to a MySQL DB.

I have my own routine to determine the DXCC entity of a callsign - seems
to work pretty well but has missed a few. Basically, I have two
additional tables and a routine that parses the CTY.DAT file to fill
those tables. One table references a "country_id" (the "main prefix"
for a country, for example "DL" for Germany or "G" for England) to a
list of valid prefixes from the CTY.DAT file. The other contains
information about each country - zone, name, etc...

I'll be taking a close look at your routine, might well work a lot better!

--
Doug Smith W9WI
Pleasant View (Nashville), TN EM66
http://www.w9wi.com


J Tabor July 5th 05 04:53 PM

Howdy Doug,

You indeed have a great page with lots of good info, seen it before. What is
the link name for call search? G I didn't find.

Regards,
Jim
www.taborsoft.com
--
email sent to:
is discarded without being seen.
Sorry for any inconvenience.




All times are GMT +1. The time now is 04:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
RadioBanter.com