comparison 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
comparison
equal deleted inserted replaced
8977:bf8a9df86f32 8978:b5600453bb8f
167 167
168 row.putValue(SInfoResultType.waterlevelLabel, descBuilder.getDesc(wkms)); 168 row.putValue(SInfoResultType.waterlevelLabel, descBuilder.getDesc(wkms));
169 row.putValue(SInfoResultType.gaugeLabel, riverInfoProvider.findGauge(station)); 169 row.putValue(SInfoResultType.gaugeLabel, riverInfoProvider.findGauge(station));
170 row.putValue(SInfoResultType.location, riverInfoProvider.getLocation(station)); 170 row.putValue(SInfoResultType.location, riverInfoProvider.getLocation(station));
171 171
172 tkhCalculator.calculateTkh(station, row); 172 if (tkhCalculator.calculateTkh(station, row))
173 173 rows.add(row);
174 rows.add(row);
175 } 174 }
176 175
177 return new TkhCalculationResult(wstLabel, wstInfo, true, rows); 176 return new TkhCalculationResult(wstLabel, wstInfo, true, rows);
178 } 177 }
179 178

http://dive4elements.wald.intevation.org