Name

crp2csv — convert CicloTour CRP files to CSV format

Synopsis

crp2csv [OPTION...] [ infile [ outfile ] ]

DESCRIPTION

crp2csv is used to convert a CicloTour CRP file (or a CRP file fragment) to a CSV file readable by most spreadsheet calculators. The tour data can be manipulated in several ways: The distance values can be scaled by a constant factor in order to compensate for a wrongly calibrated odometer. The altitude values can be scaled by giving a new start and end altitude, or a constant offset can be added to all altitude values.

Unless the option -n (or --nosmooth) is given, the distance and altitude values are first smoothed by adding/subtracting small correction terms. Distance values are altered by at most 5 m, and altitude values are altered by at most 0.5 m.

The generated CSV file starts with some lines of meta data (e.g., title, height difference, average slope). After that, the actual data rows contain the following tab-separated fields:

  1. time [HH:MM:SS]
  2. original distance [km]
  3. original altitude [m]
  4. heart rate [1/min]
  5. temperature [°C]
  6. corrected distance [km]
  7. corrected altitude [m]
  8. speed [km/h]
  9. vertical speed [m/h]
  10. slope [%]
  11. comment

The meta data from the beginning of the CSV file can also be output as an XML file. The speed, vertical speed, and slope colums do not contain any additional information, they are simply calculated from consecutive distance and altitude values. svggraph(1) only uses the 6th and 7th column of the generated CSV file (corrected distance, corrected altitude).

OPTIONS

-h, --help

Display a help message and exit.

-V, --version

Display version information and exit.

-v, --verbose

Show debugging output.

-x, --xml=FILE

Set file name for XML output.

-s, --startheight=INT

Set start height [m] for profile scaling.

-e, --endheight=INT

Set end height [m] for profile scaling.

-a, --addheight=INT

Set height offset [m] for profile scaling. This option cannot be combined with -s or -e.

-l, --lscale=FLOAT

Set length (distance) scaling factor.

AUTHOR

Frank Pählke

SEE ALSO

crpcut(1) crpreverse(1), svggraph(1),