View Single Post
  #6   Report Post  
Old July 4th 05, 11:36 PM
Zed Zed
 
Posts: n/a
Default

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/