Sensus dataloggers report depth in (absolute) millibar. This simple fix corrects the CSV import. The depth is now computed correctly.

best,

--jan
>From 11a987f0f631926e6cfc97ad3d0ffcaa355bf95e Mon Sep 17 00:00:00 2001
From: Jan Mulder <[email protected]>
Date: Thu, 3 Apr 2014 17:23:09 +0200
Subject: [PATCH] Reefnet Sensus dataloggers report in mbar (CSV import)

Sensus dataloggers report depth in (absolute) millibar. This simple
fix corrects the CSV import. The depth is now computed correctly.

Signed-off-by: Jan Mulder <[email protected]>
---
 xslt/sensuscsv.xslt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xslt/sensuscsv.xslt b/xslt/sensuscsv.xslt
index f94eb73..a2f37bd 100644
--- a/xslt/sensuscsv.xslt
+++ b/xslt/sensuscsv.xslt
@@ -142,7 +142,7 @@
           </xsl:call-template>
         </xsl:variable>
         <xsl:attribute name="depth">
-          <xsl:value-of select="$depth div 1000"/>
+          <xsl:value-of select="($depth - 1000) div 100"/>
         </xsl:attribute>
 
           <xsl:variable name="temp">
-- 
1.8.3.2

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to