export dives to CSV
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.
- XML input files with one or more dives.
The output 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.
utility exits 0 on
success, and >0 if an error occurs.
utility was written by