RIV2ASCII

RIV2ASCII is a simple command line tool that finds the meaning various letter codes spotted on freight wagons and writes them to the screen. Additionally it also parses axle arrangements (German Style) and UIC numbers for both passenger and freight wagons.

RIV2ASCII is released under GPL.
2004-2005 © Gavin Spearhead

Supported typed:

This code is currently in development phase and any help is appreciated, for coding, bug reports as well as additional information on these RIV codes. Send comments to me

.

Usage: riv2ascii <options> <riv Code>

--help
-h
help
--year
-y
specify year
--axle-arrangement
-A
parse an axle arrangement
--axles
-a
specify number of wheel sets
--country-by-number
-c
specify country code by number
--country-by-name
-C
specify country code by name
--file
-f
load a file
--html
-h
specify HTML output
--nohtml
specify plain text output
--interactive
-i
interactive mode
--uic-number
-u
parse UIC-number
--history-file
-Y
Set the file used for command line history
--debug
-dSet the level of debug information
By default, the file files.rc is read

Download source code here (version 0.1.4)

Explanation:
The RIV codes consists of a main class, written down by one capital letter, and an optional number of small letters, the subclass. E.g. Fals, Saadksm, or Es. The main classes are described in uic_c.df; the sub-classes in uic_s.df. In uic.cnt the coutry codes for the origin of the wagons are described, e.g. DBAG is 80 (Germany), NS is 84 (Netherlands) and 76 is NSB (Norway).