summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-11-04 22:54:07 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-06 05:22:20 -0800
commit676713335bb9710d9a35a6a8a27e5d242c691e44 (patch)
treefa83ccd9cd13f53db954cf17c43d53f8b1a71397
parentd643bde61a91b54f9107f0e2a81573533caf2471 (diff)
downloadsubsurface-676713335bb9710d9a35a6a8a27e5d242c691e44.tar.gz
Include po2 on Shearwater import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--xslt/shearwater.xslt10
1 files changed, 10 insertions, 0 deletions
diff --git a/xslt/shearwater.xslt b/xslt/shearwater.xslt
index ae6501a11..308303791 100644
--- a/xslt/shearwater.xslt
+++ b/xslt/shearwater.xslt
@@ -103,6 +103,16 @@
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
+ <xsl:attribute name="po2">
+ <xsl:choose>
+ <xsl:when test="$units = 'imperial'">
+ <xsl:value-of select="concat(averagePPO2 div 14.5037738, ' bar')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="concat(averagePPO2, ' bar')"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
</sample>
</xsl:for-each>
</dive>