I have created a UDCF file that I want to IMPORT into Mac Dive and noticed a few issues that perhaps you can help me with:
1. MD - does not pick up my <o2> and <n2> mix correctly (When I load the file I still get Nitrox Enrichment = 0%)
2. MD - does not parse Country, Location and Site from <place>
3. MD - does not appear to do anything with <tankvolume>, <density> or <altitude>
I have included a sample of the UDCF that I created.
Thanks Cameron
<profile udcf="1">
<units>imperial</units>
<device>
<vendor>Aeris</vendor>
<model>ATMOS AI</model>
</device>
<addinfo>
<persinfo>Cameron David Wright</persinfo>
<serialid>1805</serialid>
</addinfo>
<repgroup>
<dive>
<place>Jeannie's Glory, Bonaire, Netherland Antillies</place>
<date>
<year>2010</year>
<month>6</month>
<day>13</day>
</date>
<time>
<hour>17</hour>
<minute>08</minute>
<second>00</second>
</time>
<surfaceinterval>4200.0</surfaceinterval>
<temperature>83</temperature>
<density>1030.0</density>
<altitude>0</altitude>
<timedepthmode></timedepthmode>
<gases>
<mix>
<mixname>31%</mixname>
<tank>
<tankvolume>80</tankvolume>
<pstart>3030</pstart>
<pend>1264</pend>
</tank>
<o2>0.31</o2>
<n2>0.69</n2>
</mix>
</gases>
<samples>
<switch>31%</switch>
<delta>15</delta>
<t>15</t>
<d>6.0</d>
<t>30</t>
<d>10.0</d>
<t>45</t>
<d>11.0</d>
<t>60</t>
<d>13.0</d>
<t>60</t>
<d>12.0</d>
<t>75</t>
<d>13.0</d>
<t>90</t>
<d>15.0</d>
<t>105</t>
<d>12.0</d>
<t>120</t>
<d>14.0</d>
<t>135</t>
<d>14.0</d>
<t>150</t>
<d>16.0</d>
<t>165</t>
<d>14.0</d>
<t>180</t>
<d>15.0</d>
<t>195</t>
<d>15.0</d>
<t>210</t>
<d>15.0</d>
<t>225</t>
<d>16.0</d>
<t>240</t>
<d>18.0</d>
<t>255</t>
<d>18.0</d>
<t>270</t>
<d>14.0</d>
<t>285</t>
<d>16.0</d>
<t>300</t>
<d>15.0</d>
<t>315</t>
<d>17.0</d>
<t>330</t>
<d>16.0</d>
<t>345</t>
<d>16.0</d>
<t>360</t>
<d>16.0</d>
<t>375</t>
<d>17.0</d>
<t>390</t>
<d>15.0</d>
<t>405</t>
<d>16.0</d>
<t>420</t>
<d>17.0</d>
<t>435</t>
<d>16.0</d>
<t>450</t>
<d>18.0</d>
<t>465</t>
<d>18.0</d>
<t>480</t>
<d>18.0</d>
<t>495</t>
<d>20.0</d>
<t>510</t>
<d>19.0</d>
<t>525</t>
<d>20.0</d>
<t>540</t>
<d>20.0</d>
<t>555</t>
<d>20.0</d>
<t>570</t>
<d>21.0</d>
<t>585</t>
<d>21.0</d>
<t>600</t>
<d>22.0</d>
<t>615</t>
<d>22.0</d>
<t>630</t>
<d>22.0</d>
<t>645</t>
<d>23.0</d>
<t>660</t>
<d>24.0</d>
<t>675</t>
<d>25.0</d>
<t>690</t>
<d>24.0</d>
<t>705</t>
<d>23.0</d>
<t>720</t>
<d>24.0</d>
<t>735</t>
<d>25.0</d>
<t>750</t>
<d>25.0</d>
<t>765</t>
<d>25.0</d>
<t>780</t>
<d>25.0</d>
<t>795</t>
<d>27.0</d>
<t>810</t>
<d>27.0</d>
<t>825</t>
<d>28.0</d>
<t>840</t>
<d>24.0</d>
<t>855</t>
<d>25.0</d>
<t>870</t>
<d>23.0</d>
<t>885</t>
<d>23.0</d>
<t>900</t>
<d>22.0</d>
<t>915</t>
<d>22.0</d>
<t>930</t>
<d>20.0</d>
<t>945</t>
<d>20.0</d>
<t>960</t>
<d>22.0</d>
<t>975</t>
<d>23.0</d>
<t>990</t>
<d>25.0</d>
<t>1005</t>
<d>25.0</d>
<t>1020</t>
<d>26.0</d>
<t>1035</t>
<d>28.0</d>
<t>1050</t>
<d>28.0</d>
<t>1065</t>
<d>28.0</d>
<t>1080</t>
<d>30.0</d>
<t>1095</t>
<d>32.0</d>
<t>1110</t>
<d>32.0</d>
<t>1125</t>
<d>32.0</d>
<t>1140</t>
<d>32.0</d>
<t>1155</t>
<d>32.0</d>
<t>1170</t>
<d>31.0</d>
<t>1185</t>
<d>33.0</d>
<t>1200</t>
<d>35.0</d>
<t>1215</t>
<d>34.0</d>
<t>1230</t>
<d>32.0</d>
<alarm>ascent</alarm>
<t>1245</t>
<d>29.0</d>
<t>1260</t>
<d>29.0</d>
<t>1275</t>
<d>28.0</d>
<t>1290</t>
<d>28.0</d>
<t>1305</t>
<d>26.0</d>
<t>1320</t>
<d>26.0</d>
<t>1335</t>
<d>26.0</d>
<t>1350</t>
<d>25.0</d>
<t>1365</t>
<d>25.0</d>
<t>1380</t>
<d>24.0</d>
<t>1395</t>
<d>23.0</d>
<t>1410</t>
<d>21.0</d>
<t>1425</t>
<d>21.0</d>
<t>1440</t>
<d>19.0</d>
<t>1455</t>
<d>19.0</d>
<t>1470</t>
<d>19.0</d>
<t>1485</t>
<d>20.0</d>
<t>1500</t>
<d>22.0</d>
<t>1515</t>
<d>22.0</d>
<t>1530</t>
<d>20.0</d>
<t>1545</t>
<d>19.0</d>
<t>1560</t>
<d>17.0</d>
<t>1575</t>
<d>20.0</d>
<t>1590</t>
<d>20.0</d>
<t>1605</t>
<d>19.0</d>
<t>1620</t>
<d>18.0</d>
<t>1635</t>
<d>18.0</d>
<t>1650</t>
<d>18.0</d>
<t>1665</t>
<d>18.0</d>
<t>1680</t>
<d>19.0</d>
<t>1695</t>
<d>18.0</d>
<t>1710</t>
<d>19.0</d>
<t>1725</t>
<d>18.0</d>
<t>1740</t>
<d>17.0</d>
<t>1755</t>
<d>17.0</d>
<t>1770</t>
<d>17.0</d>
<t>1785</t>
<d>18.0</d>
<t>1800</t>
<d>17.0</d>
<t>1815</t>
<d>16.0</d>
<t>1830</t>
<d>18.0</d>
<t>1845</t>
<d>18.0</d>
<t>1860</t>
<d>18.0</d>
<t>1875</t>
<d>17.0</d>
<t>1890</t>
<d>16.0</d>
<t>1905</t>
<d>17.0</d>
<t>1920</t>
<d>15.0</d>
<t>1935</t>
<d>15.0</d>
<t>1950</t>
<d>14.0</d>
<t>1965</t>
<d>15.0</d>
<t>1980</t>
<d>14.0</d>
<t>1995</t>
<d>13.0</d>
<t>2010</t>
<d>15.0</d>
<t>2025</t>
<d>13.0</d>
<t>2040</t>
<d>15.0</d>
<t>2055</t>
<d>15.0</d>
<t>2070</t>
<d>18.0</d>
<t>2085</t>
<d>17.0</d>
<t>2100</t>
<d>14.0</d>
<t>2115</t>
<d>15.0</d>
<t>2130</t>
<d>16.0</d>
<t>2145</t>
<d>13.0</d>
<t>2160</t>
<d>14.0</d>
<t>2175</t>
<d>13.0</d>
<t>2190</t>
<d>14.0</d>
<t>2205</t>
<d>14.0</d>
<t>2220</t>
<d>14.0</d>
<t>2235</t>
<d>13.0</d>
<t>2250</t>
<d>14.0</d>
<t>2265</t>
<d>13.0</d>
<t>2280</t>
<d>12.0</d>
<t>2295</t>
<d>12.0</d>
<t>2310</t>
<d>13.0</d>
<t>2325</t>
<d>12.0</d>
<t>2340</t>
<d>12.0</d>
<t>2355</t>
<d>12.0</d>
<t>2370</t>
<d>11.0</d>
<t>2385</t>
<d>10.0</d>
<t>2400</t>
<d>11.0</d>
<t>2415</t>
<d>10.0</d>
<t>2430</t>
<d>10.0</d>
<t>2445</t>
<d>9.0</d>
<t>2460</t>
<d>9.0</d>
<t>2475</t>
<d>8.0</d>
<t>2490</t>
<d>10.0</d>
<t>2505</t>
<d>10.0</d>
<t>2520</t>
<d>9.0</d>
<t>2535</t>
<d>8.0</d>
<t>2550</t>
<d>6.0</d>
<t>2565</t>
<d>5.0</d>
<t>2580</t>
<d>7.0</d>
<t>2595</t>
<d>7.0</d>
<t>2610</t>
<d>4.0</d>
</samples>
</dive>
</repgroup>
</profile>
UDCF Import issues
-
- Posts: 10
- Joined: Wed May 12, 2010 8:49 pm
- Dive Computer: Oceanic VT3
- Location: Sugar Hill, Georgia
- Contact:
- nick
- Site Admin
- Posts: 4376
- Joined: Sat Apr 12, 2008 8:33 am
- Dive Computer: Shearwater Teric
- Contact:
Re: UDCF Import issues
The problem with the place is that there's no separate fields, so you have to attempt to guess what the country/location/site should be. It's a little error prone.
I'll look at the other issues tonight - probably just a couple of bugs.
I'll look at the other issues tonight - probably just a couple of bugs.
-
- Posts: 10
- Joined: Wed May 12, 2010 8:49 pm
- Dive Computer: Oceanic VT3
- Location: Sugar Hill, Georgia
- Contact:
Re: UDCF Import issues
Thanks Nick I appreciate it but if my little issues takes away from getting 2.0 released, forget my issues 
Cameron

Cameron
- nick
- Site Admin
- Posts: 4376
- Joined: Sat Apr 12, 2008 8:33 am
- Dive Computer: Shearwater Teric
- Contact:
Re: UDCF Import issues
This is fixed. v2 will correctly read your o2 percentage now.GeorgiaCanuck wrote: 1. MD - does not pick up my <o2> and <n2> mix correctly (When I load the file I still get Nitrox Enrichment = 0%)
I don't store or do anything with these values yet (except tank volume), so they're just ignored. I'll look at adding them for v2.x but I don't want to change the database at the moment.3. MD - does not appear to do anything with <tankvolume>, <density> or <altitude>
As for tanks, they also work slightly differently in v2. We'll see how it goes after that.
Thanks very much for the sample data though, it was very helpful.
-
- Posts: 10
- Joined: Wed May 12, 2010 8:49 pm
- Dive Computer: Oceanic VT3
- Location: Sugar Hill, Georgia
- Contact:
Re: UDCF Import issues
Thanks Nick, If you want more I have 19 Dives in total in UDCF
Cameron
Cameron
- nick
- Site Admin
- Posts: 4376
- Joined: Sat Apr 12, 2008 8:33 am
- Dive Computer: Shearwater Teric
- Contact:
Re: UDCF Import issues
Cheers - not necessary though. There's data in the one you gave me and I have plenty of dives I can export to UDCF 

Re: UDCF Import issues
Other problems with UDCF import
1. Does not allow for samplerates higher then 1 second. If you specify the <delta> tag as 0.25 (for my Liquivision X1 logs in freedive mode), it rounds it up to 1 second.
2. It ignores <temperature> tag in the samples section for realtime temperature measurements for each depth sample.
--- cut ----
<deltamode></deltamode>
<samples>
<switch>1</switch>
<delta>0.25</delta>
<d>0.0</d>
<temperature>25.8</temperature>
<d>1.1</d>
<temperature>25.8</temperature>
<d>1.7</d>
<temperature>25.8</temperature>
<d>2.3</d>
<temperature>25.8</temperature>
---- etc etc -----
p.s. I can mail you a full UDCF dive with 0.25 samples and temp if you want for debugging.
1. Does not allow for samplerates higher then 1 second. If you specify the <delta> tag as 0.25 (for my Liquivision X1 logs in freedive mode), it rounds it up to 1 second.
2. It ignores <temperature> tag in the samples section for realtime temperature measurements for each depth sample.
--- cut ----
<deltamode></deltamode>
<samples>
<switch>1</switch>
<delta>0.25</delta>
<d>0.0</d>
<temperature>25.8</temperature>
<d>1.1</d>
<temperature>25.8</temperature>
<d>1.7</d>
<temperature>25.8</temperature>
<d>2.3</d>
<temperature>25.8</temperature>
---- etc etc -----
p.s. I can mail you a full UDCF dive with 0.25 samples and temp if you want for debugging.
- nick
- Site Admin
- Posts: 4376
- Joined: Sat Apr 12, 2008 8:33 am
- Dive Computer: Shearwater Teric
- Contact:
Re: UDCF Import issues
No, it does not. I wasn't aware of any devices using anything more than 1 second so the field is an integer. As per my email, this can be addressed in an update, but it requires a large update as it needs a database change.glennv wrote:Other problems with UDCF import
1. Does not allow for samplerates higher then 1 second. If you specify the <delta> tag as 0.25 (for my Liquivision X1 logs in freedive mode), it rounds it up to 1 second.
This is not supported by UDCF, so it's fair. But, MacDive does actually support it, it's just called "temp" not "temperature". This was added in to make it more flexible, so you can use that.2. It ignores <temperature> tag in the samples section for realtime temperature measurements for each depth sample.
Temp not necessary as above, but sure. Again this won't be an immediate update: it does require some reasonably high impact changes to be made to support more more granular sample rates.p.s. I can mail you a full UDCF dive with 0.25 samples and temp if you want for debugging.
Re: UDCF Import issues
Aha that is a bummer. Had hoped it was a small bugnick wrote:
No, it does not. I wasn't aware of any devices using anything more than 1 second so the field is an integer. As per my email, this can be addressed in an update, but it requires a large update as it needs a database change.

nick wrote:
This is not supported by UDCF, so it's fair. But, MacDive does actually support it, it's just called "temp" not "temperature". This was added in to make it more flexible, so you can use that.
Aha . I tried <temp> but it does not work. Still ignores it. Can you check please. UDCF attached
I
b.t.w. It "IS" supported by UDCF only not mentioned very clearly.
----
2.40 <temperature> ... </temperature> (optional)
The lowest water temperature during dive, if known. If unknown the element <temperature> is dropped.
Stands inside the < dive> section after the < surfaceinterval> statement and before < density>. The temperature is given as a real number with one digit after the decimal point.
Example:
<!-- lowest water temperature 12 degrees Celsius -->
<temperature>12.0</temperature>
Alternatively this tag can be used in the samples-section to indicate the temperature of the actual sample.
-------------------------
- Attachments
-
- nofins-freedive-4samples-per-second-and-temp-data.txt.zip
- (2.17 KiB) Downloaded 609 times
- nick
- Site Admin
- Posts: 4376
- Joined: Sat Apr 12, 2008 8:33 am
- Dive Computer: Shearwater Teric
- Contact:
Re: UDCF Import issues
Oh, I totally missed that.glennv wrote: Alternatively this tag can be used in the samples-section to indicate the temperature of the actual sample.
Edit: I see why temp wasn't working for you. I'd actually set it as an attribute of the sample (much easier to parse). "temperature" is now supported as per your sample file, and the schema. I've left temp as an attribute for Rob's sake.