DCMD2CSV(1) General Commands Manual DCMD2CSV(1)

dcmd2csv
export dives to CSV

dcmd2csv [
-v
] [
files...
]

The dcmd2csv utility accepts XML files generated by dcmd(1) and exports dive profiles to CSV. This can then read by, say, Subsurface. Its arguments are as follows:
 
 
Parse files in verbose mode.
 
 
files...
XML input files with one or more dives.

The output of dcmd2csv 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 dcmd2csv utility exits 0 on success, and >0 if an error occurs.

The dcmd2csv utility was written by Kristaps Dzonsons, kristaps@bsd.lv.
August 13, 2018 OpenBSD 6.3