changeset 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 0a994bbe645e
children bb00ee1556b9
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataCalculation.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataCalculation.java	Tue Sep 09 12:03:46 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadDataCalculation.java	Tue Sep 09 13:49:28 2014 +0200
@@ -308,7 +308,8 @@
                         filter, sum);
 
                     if (result[0].length == 0 || DoubleUtil.isNaN(result[1])) {
-                        continue;
+                        addProblem("sedimentload.missing.fraction." +
+                            ls.getDescription(), ((Integer)year).toString());
                     }
 
                     transformT2M3(sd, year, result);

http://dive4elements.wald.intevation.org