Mercurial > dive4elements > river
changeset 5117:842026a5a12c
Fixed 'W fuer ungleichwertige AbflussLaengsschnitte'. See TODO!!!
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 27 Feb 2013 15:52:38 +0100 (2013-02-27) |
parents | ae25e23a1546 |
children | dc0cc18e7944 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Segment.java |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Segment.java Wed Feb 27 11:56:11 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Segment.java Wed Feb 27 15:52:38 2013 +0100 @@ -178,18 +178,21 @@ DischargeTable dt = gauge.fetchMasterDischargeTable(); + //TODO: Change scale from 100 to 1 immediately after + // discharge table import changed to cm! double [][] table = - DischargeTables.loadDischargeTableValues(dt, 1); + DischargeTables.loadDischargeTableValues(dt, 100); // need the original values for naming segment.backup(); for (int i = 0; i < values.length; ++i) { - double w = values[i] / 100.0; + //TODO: s.o. + double w = values[i]; /* / 100.0; */ double [] qs = DischargeTables.getQsForW(table, w); if (qs.length == 0) { log.warn("No Qs found for W = " + values[i]); - report.addProblem("cannot.find.w.for.q", values[i]); + report.addProblem("cannot.find.q.for.w", values[i]); values[i] = Double.NaN; success = false; }