Changeset 1c03cb2 in subsurface


Ignore:
Timestamp:
Apr 1, 2017, 8:06:09 AM (3 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
a0ed0ff
Parents:
3a003f4c
git-author:
Miika Turkia <miika.turkia@…> (03/13/17 12:25:43)
git-committer:
Dirk Hohndel <dirk@…> (04/01/17 08:06:09)
Message:

CSV export: export only existing temperatures

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/xml2manualcsv.xslt

    r0a1224b r1c03cb2  
    231231    <xsl:choose>
    232232      <xsl:when test="$units = 1">
    233         <xsl:value-of select="concat(format-number((substring-before(@air, ' ') * 1.8) + 32, '0.0'), ' F')"/>
     233        <xsl:if test="substring-before(@air, ' ') &gt; 0">
     234          <xsl:value-of select="concat(format-number((substring-before(@air, ' ') * 1.8) + 32, '0.0'), ' F')"/>
     235        </xsl:if>
    234236      </xsl:when>
    235237      <xsl:otherwise>
     
    242244    <xsl:choose>
    243245      <xsl:when test="$units = 1">
    244         <xsl:value-of select="concat(format-number((substring-before(@water, ' ') * 1.8) + 32, '0.0'), ' F')"/>
     246        <xsl:if test="substring-before(@water, ' ') &gt; 0">
     247          <xsl:value-of select="concat(format-number((substring-before(@water, ' ') * 1.8) + 32, '0.0'), ' F')"/>
     248        </xsl:if>
    245249      </xsl:when>
    246250      <xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.