Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/TkhCalculation.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 | 45f1ad66560e |
children | b194fa64506a |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/TkhCalculation.java Tue Apr 03 17:23:51 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/TkhCalculation.java Thu Apr 05 11:57:54 2018 +0200 @@ -169,9 +169,8 @@ row.putValue(SInfoResultType.gaugeLabel, riverInfoProvider.findGauge(station)); row.putValue(SInfoResultType.location, riverInfoProvider.getLocation(station)); - tkhCalculator.calculateTkh(station, row); - - rows.add(row); + if (tkhCalculator.calculateTkh(station, row)) + rows.add(row); } return new TkhCalculationResult(wstLabel, wstInfo, true, rows);