diff artifacts/doc/conf/meta-data.xml @ 8950:b0aeed4c97c1

Implemented chart output for sinfo flow depth min/max calculation
author gernotbelger
date Thu, 15 Mar 2018 17:22:28 +0100
parents a9950a3a71e5
children ee5ce13016ed
line wrap: on
line diff
--- a/artifacts/doc/conf/meta-data.xml	Wed Mar 14 18:34:34 2018 +0100
+++ b/artifacts/doc/conf/meta-data.xml	Thu Mar 15 17:22:28 2018 +0100
@@ -121,6 +121,9 @@
                   <dc:when test="$out = 'sinfo_flow_depth'">
                     <dc:call-macro name="annotations"/>
                   </dc:when>
+                  <dc:when test="$out = 'sinfo_flow_depth_minmax'">
+                    <dc:call-macro name="annotations"/>
+                  </dc:when>
                   <dc:when test="$out = 'sinfo_tkk'">
                     <dc:call-macro name="annotations"/>
                   </dc:when>
@@ -266,7 +269,9 @@
                   <dc:when test="$out = 'sinfo_flow_depth'">
                     <dc:call-macro name="longitudinal-section-prototype"/>
                   </dc:when>
-
+                  <dc:when test="$out = 'sinfo_flow_depth_minmax'">
+                    <dc:call-macro name="longitudinal-section-prototype"/>
+                  </dc:when>
                   <dc:when test="$out = 'sinfo_tkk'">
                     <dc:call-macro name="longitudinal-section-prototype"/>
                   </dc:when>
@@ -353,6 +358,9 @@
                     <dc:when test="$out = 'sinfo_flow_depth'">
                       <dc:call-macro name="longitudinal-section-user-prototype"/>
                     </dc:when>
+                    <dc:when test="$out = 'sinfo_flow_depth_minmax'">
+                      <dc:call-macro name="longitudinal-section-user-prototype"/>
+                    </dc:when>
                     <dc:when test="$out = 'sinfo_tkk'">
                       <dc:call-macro name="longitudinal-section-user-prototype"/>
                     </dc:when>
@@ -1532,6 +1540,7 @@
 
       <dc:comment> SINFO </dc:comment>
       <dc:call-macro name="sinfo_flowdepths"/>
+      <dc:call-macro name="sinfo_flowdepths_minmax"/>
       <dc:call-macro name="sinfo_tkh"/>
 
       <dc:call-macro name="sinfo_tkh_velocity"/>
@@ -3107,6 +3116,29 @@
       </dc:filter>
     </dc:macro>
 
+    <dc:macro name="sinfo_flowdepths_minmax">
+      <dc:filter expr="( $facet_name = 'sinfo_facet_flow_depth_min.filtered' or $facet_name = 'sinfo_facet_flow_depth_max.filtered' )">
+        <dc:if test="dc:has-result()">
+          <sinfo_flow_depths_minmax>
+            <dc:call-macro name="collection-group">
+              <sinfo_flow_depth_minmax description="{dc:group-key()}">
+                <dc:for-each>
+                  <dc:element name="${facet_name}">
+                    <dc:attribute name="factory" value="sinfo"/>
+                    <dc:attribute name="target_out" value="${out}"/>
+                    <dc:attribute name="description" value="${facet_description}"/>
+                    <dc:attribute name="ids" value="${facet_num}"/>
+                    <dc:attribute name="artifact-id" value="${a_gid}"/>
+                    <dc:attribute name="out" value="${out_name}"/>
+                  </dc:element>
+                </dc:for-each>
+              </sinfo_flow_depth_minmax>
+            </dc:call-macro>
+          </sinfo_flow_depths_minmax>
+        </dc:if>
+      </dc:filter>
+    </dc:macro>
+
     <dc:macro name="sinfo_tkh">
       <dc:filter expr="$facet_name = 'sinfo_facet_tkh' or $facet_name = 'sinfo_facet_tkh'">
         <dc:if test="dc:has-result()">

http://dive4elements.wald.intevation.org