divecmd2csv —
export dives to CSV
divecmd2csv |
[-v]
[files...] |
The
divecmd2csv utility accepts XML files generated
by
divecmd(1) and exports dive profiles to CSV.
This can then read by, say, Subsurface. Its arguments are as follows:
-
-
- -v
- Parse files in verbose mode.
-
-
- files...
- XML input files with one or more dives.
The output of
divecmd2csv consists of
comma-separated rows of dive number, time (seconds since start of the dive),
depth (metres), and temperature (celsius). The depth and temperature fields
may be empty.
To import into subsurface, these columns correspond to the “Dive
No.”, “Time”, “Sample depth”, and
“Sample temperature” fields when importing from a dive log CSV
file. The separator is a comma, time in seconds, measures in metric.
The
divecmd2csv utility exits 0 on success,
and >0 if an error occurs.
The
divecmd2csv utility was written by
Kristaps Dzonsons,
kristaps@bsd.lv.