# HG changeset patch # User Felix Wolfsteller # Date 1321434774 0 # Node ID d002198c64a20beb31c56d1db7595bc17963639e # Parent 7053e3255ab4c78f8846029e32d90a680fd2f57d Removed logging noise, find better suited rows for W interpolation. flys-artifacts/trunk@3259 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 7053e3255ab4 -r d002198c64a2 flys-artifacts/ChangeLog --- 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 + + * src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java: + Removed logging noise, find better suited rows for interpolation. + 2011-11-16 Felix Wolfsteller * src/main/java/de/intevation/flys/artifacts/model/WstValueTableFactory.java: diff -r 7053e3255ab4 -r d002198c64a2 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.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; }