diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculator.java @ 8978:b5600453bb8f

SINFO Calculations: do not produce result rows if some input data has missing values. Also check for years of waterlevels in flow depth development calculation.
author gernotbelger
date Thu, 05 Apr 2018 11:57:54 +0200
parents a4f1ac81f26d
children d5802f22e4f5
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculator.java	Tue Apr 03 17:23:51 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculator.java	Thu Apr 05 11:57:54 2018 +0200
@@ -77,8 +77,7 @@
         final String location = this.riverInfoProvider.getLocation(station);
         row.putValue(SInfoResultType.location, location);
 
-        this.tkhCalculator.calculateTkh(station, row);
-
-        this.rows.add(row);
+        if (this.tkhCalculator.calculateTkh(station, row))
+            this.rows.add(row);
     }
 }
\ No newline at end of file

http://dive4elements.wald.intevation.org