comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataCalculation.java @ 8244:0a03c1921cfe

We well want to average NaNs but want to know the cause of the result being NaN.
author Tom Gottfried <tom@intevation.de>
date Tue, 09 Sep 2014 13:49:28 +0200
parents b207eeb66edd
children 155a886ab19b
comparison
equal deleted inserted replaced
8243:0a994bbe645e 8244:0a03c1921cfe
306 double [][] result = sum( 306 double [][] result = sum(
307 sld, ls.getGrainFractions(), ls.getStationType(), 307 sld, ls.getGrainFractions(), ls.getStationType(),
308 filter, sum); 308 filter, sum);
309 309
310 if (result[0].length == 0 || DoubleUtil.isNaN(result[1])) { 310 if (result[0].length == 0 || DoubleUtil.isNaN(result[1])) {
311 continue; 311 addProblem("sedimentload.missing.fraction." +
312 ls.getDescription(), ((Integer)year).toString());
312 } 313 }
313 314
314 transformT2M3(sd, year, result); 315 transformT2M3(sd, year, result);
315 results.add(result); 316 results.add(result);
316 } 317 }

http://dive4elements.wald.intevation.org