[Dive4elements-commits] [PATCH] Fixed 'W fuer ungleichwertige AbflussLaengsschnitte'. See TODO!!!

Wald Commits scm-commit at wald.intevation.org
Wed Feb 27 15:54:15 CET 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1361976758 -3600
# Node ID 842026a5a12c76880dc735824a7b4dc1d7c8c45b
# Parent  ae25e23a1546cc40a0b3856eff0b2ceb8f484d82
Fixed 'W fuer ungleichwertige AbflussLaengsschnitte'. See TODO!!!

diff -r ae25e23a1546 -r 842026a5a12c flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Segment.java
--- 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;
                     }


More information about the Dive4elements-commits mailing list