comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxCalculation.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
comparison
equal deleted inserted replaced
8977:bf8a9df86f32 8978:b5600453bb8f
147 final String location = riverInfoProvider.getLocation(station); 147 final String location = riverInfoProvider.getLocation(station);
148 148
149 // REMARK: access the gauge once only during calculation 149 // REMARK: access the gauge once only during calculation
150 final String gaugeLabel = riverInfoProvider.findGauge(station); 150 final String gaugeLabel = riverInfoProvider.findGauge(station);
151 151
152 /* ignore invalid lines */
153 if (Double.isNaN(wst) || Double.isNaN(minBedHeightValue) || Double.isNaN(maxBedHeightValue))
154 continue;
155
152 final SInfoResultRow row = SInfoResultRow.create().// 156 final SInfoResultRow row = SInfoResultRow.create().//
153 putValue(SInfoResultType.station, station). // 157 putValue(SInfoResultType.station, station). //
154 putValue(SInfoResultType.flowdepthmin, minFlowDepth). // 158 putValue(SInfoResultType.flowdepthmin, minFlowDepth). //
155 putValue(SInfoResultType.flowdepthmax, maxFlowDepth). // 159 putValue(SInfoResultType.flowdepthmax, maxFlowDepth). //
156 putValue(SInfoResultType.waterlevel, wst). // 160 putValue(SInfoResultType.waterlevel, wst). //

http://dive4elements.wald.intevation.org