[Trlog] Contest Country File Mods

Paul Kirley pkirley at fuse.net
Wed Oct 20 10:28:13 PDT 2010

Having raised the issue of the overly large cty.dat file, I decided to try to address the problem.

The file cty.dat is plain-text, and its format is fairly obvious.  My review of the October 15 version indicated that there were two huge country entries, China at 348 lines and Asiatic Russia at 354 lines.  The great majority of the data for those two countries is zone data, rather than country data.

I looked at old versions of cty.dat that I happened to find on my machine, specifically April 5 and October 5 of this year.  I copied their China and Asiatic Russia portions respectively and cut each down to eliminate zone and individual-station data (there wasn't much of the latter).

Then I used a text editor (Wordpad on my Win98SE machine) to paste the brief resulting entries over those in the current October 15 version of cty.dat.  These two changes shrank cty.dat from 110 KB to 60 KB.  When I loaded the modified cty.dat into TRLog, it started and appears to run OK.  Of course, it no longer knows specific data for China and Asiatic Russia zones and/or individual stations, so I will have to keep that in mind when working those two countries.  It thinks that all of China is zone 24, and all of Asiatic Russia is zone 17.

If you want to try this approach, copy the following entries and paste them over the entire respective entries in AD1C's current version of cty.dat and use the result in your TRLog directory.

China:                    24:  44:  AS:   40.00:  -116.40:    -8.0:  BY:

Asiatic Russia:           17:  30:  AS:   67.18:  -104.00:    -7.0:  UA9:

When you modify cty.dat, don't leave any blank lines and be certain to replace the entire entry for each country, but nothing else.

Hopefully this will allow us to continue to benefit from AD1C's work, except for China and Asiatic Russia.

If you notice missed prefixes for China or Asiatic Russia, please let me know, as my manual deletions may have been overly aggressive.

73, Paul W8TM

More information about the Trlog mailing list