Unit of tank volume when importing from UDDF

25 views
Skip to first unread message

Christian Schmitt

unread,
Sep 27, 2025, 6:05:38 AM (5 days ago) Sep 27
to Subsurface Divelog
Hi all,
I'm trying to import dives using the UDDF format and noticed one problem: the tank volume is specified as this in my UDDF file:
<tankvolume>0.011</tankvolume>
which corresponds to 11 liters (as UDDF stores the tank volume in cubic meters: https://www.streit.cc/extern/uddf_v321/en/tankvolume.html) but after the subsurface import the tank volume is set to 0 liters. Looking at the UDDF import xslt file  there is no conversion happening at import:


And looking at the gas consumption after the import it looks to me as if subsurface treats this tank as having a volume of 0.011 liters. Is this simply a bug in the import (and the xslt should be corrected to apply the conversion from cubic meters to liters) or is there more going on behind the scenes?

Thanks,
Christian

Michael Keller

unread,
Sep 27, 2025, 6:15:57 AM (5 days ago) Sep 27
to subsurfac...@googlegroups.com
Hi Christian.
Yes, I think you are right, and our UDDF import (and export) is missing
the conversion between liter and cubic meter.

Are you able to submit a pull request to fix this?


Out of interest, how was the UDDF generated that you are trying to import?


Ngā mihi

  Michael Keller

Christian Schmitt

unread,
Sep 27, 2025, 6:29:03 AM (5 days ago) Sep 27
to Subsurface Divelog
Hi Michael,

the UDDF was generated by MacDive (it looks like MacDive is not actively worked on anymore and so I try to migrate to subsurface). Unfortunately I have no idea how XSLT files work and so I could only guess how it should be corrected (and so far I haven't tried to compile subsurface on my own on my ARM Mac which, as far as there is no ARM version for Mac, I guess is not straightforward).

Cheers,
Christian

Michael Keller

unread,
Sep 27, 2025, 6:34:41 AM (5 days ago) Sep 27
to subsurfac...@googlegroups.com
Hi Christian.


On 27/09/25 22:26, Christian Schmitt wrote:
> the UDDF was generated by MacDive (it looks like MacDive is not
> actively worked on anymore and so I try to migrate to subsurface).
> Unfortunately I have no idea how XSLT files work and so I could only
> guess how it should be corrected (and so far I haven't tried to
> compile subsurface on my own on my ARM Mac which, as far as there is
> no ARM version for Mac, I guess is not straightforward).


No problem, I can have a go at it, it should be fairly simple.

Are you able to share a sample UDDF file with me that I can use for testing?


Ngā mihi

  Michael Keller

Christian Schmitt

unread,
Sep 27, 2025, 9:32:54 AM (5 days ago) Sep 27
to Subsurface Divelog
Hi Michael,

I have attached one dive in UDDF format that is hopefully useful for testing.

Cheers,
Christian
test.uddf
Reply all
Reply to author
Forward
0 new messages