changeset 1899:d002198c64a2

Removed logging noise, find better suited rows for W interpolation. flys-artifacts/trunk@3259 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 16 Nov 2011 09:12:54 +0000
parents 7053e3255ab4
children 64ffc371afe7
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Nov 16 09:11:14 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Nov 16 09:12:54 2011 +0000
@@ -1,3 +1,8 @@
+2011-11-16  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java:
+	  Removed logging noise, find better suited rows for interpolation.
+
 2011-11-16  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/model/WstValueTableFactory.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java	Wed Nov 16 09:11:14 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java	Wed Nov 16 09:12:54 2011 +0000
@@ -681,7 +681,7 @@
             // Search neighbouring rows that define w at this col.
             Row rowBefore = null;
             Row rowAfter  = null;
-            for (int before = rowIndex; before >= 0; before--) {
+            for (int before = rowIndex -1; before >= 0; before--) {
                 if (!Double.isNaN(rows.get(before).ws[col])) {
                     rowBefore = rows.get(before);
                     break;
@@ -689,7 +689,6 @@
             }
             for (int after = rowIndex; after < rows.size(); after++) {
                 if (!Double.isNaN(rows.get(after).ws[col])) {
-                    log.error("rows.get(after).ws[col] " + rows.get(after).ws[col]);
                     rowAfter = rows.get(after);
                     break;
                 }

http://dive4elements.wald.intevation.org