Via <tankdataref ref="id_of_tankdata_to_be_cross-referenced"/> access to data stored under this identifier is possible. By means of this it is possible to take into account the tank data for a breathing gas consumption calculation.
<equipmentused>, <profile>
<dive>, <equipmentused>, <profile>
(see also <profile>)
<uddf version="2.2.0"> <gasdefinitions> <mix id="air"> <name>1</name> <o2>0.21</o2> <n2>0.79</n2> <he>0.0</he> <ar>0.0</ar> <h2>0.0</h2> </mix> <mix id="nitrox"> <name>1</name> <o2>0.35</o2> <n2>0.65</n2> <he>0.0</he> <ar>0.0</ar> <h2>0.0</h2> </mix> <tankdata id="airtank"> <mixref ref="air"/> <tankvolume>0.01</tankvolume> <tankpressurebegin>20000000.0</tankpressurebegin> <!-- because the breathing consumption volume is given - in [m^3/s] units! - --> <!-- the end pressure information can be omitted --> <!-- 20 litres / minute ^= 0.00033333... m^3/s --> <breathingconsumptionvolume>0.000333333333</breathingconsumptionvolume> </tankdata> <tankdata id="nitroxtank"> <mixref ref="nitrox"/> <tankvolume>0.012</tankvolume> <tankpressurebegin>20000000.0</tankpressurebegin> <!-- because the breathing consumption volume is given - in [m^3/s] units! - --> <!-- the end pressure information can be omitted --> <!-- 20 litres / minute ^= 0.00033333... m^3/s --> <breathingconsumptionvolume>0.000333333333</breathingconsumptionvolume> </tankdata> </gasdefinitions> <profiledata> <repetitiongroup id="wg_a"> <dive id="tg-123"> <mixref ref="air"/> <!-- here all other data concerning this dive --> </dive> </repetitiongroup> <repetitiongroup id="wg_b"> <dive id="tg-124"> <mixref ref="nitrox"/> <!-- here all other data concerning this dive --> </dive> </repetitiongroup> </profiledata> <tablegeneration> <calculateprofile> <profile id="profil_1"> <diveref ref="tg-123"/> <!-- the following <tankdataref/> statement cannot be omitted, --> <!-- because in the dive cross-referenced before the tank data are not --> <!-- known (only the breathing gas used - air - is known) --> <tankdataref ref="airtank"/> <!-- here more statements --> </profile> <profile id="profil_2"> <diveref ref="tg-124"/> <!-- Dive 124 was made using nitrox as breathing gas, nonetheless the table --> <!-- shall be calculated with air as breathing gas. --> <!-- The following <tankdataref/> statement therefore "overwrites" --> <!-- the otherwise known nitrox data of the cross-referenced dive. --> <tankdataref ref="airtank"/> <!-- here more statements --> </profile> </calculateprofile> </tablegeneration> </uddf>