[Dive4elements-commits] [PATCH 2 of 4] Use constant from DischargeTables for the scaling factor
Wald Commits
scm-commit at wald.intevation.org
Tue Nov 27 17:43:34 CET 2012
# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1354034378 -3600
# Node ID 9745f37c0d52a989341fe641ba3ef241636bd9f5
# Parent 5d19a291bd9f96bd2ee2b75f9a49878f0ffdbe20
Use constant from DischargeTables for the scaling factor
Don't hardcode the scaling factor in the GaugeDischargeCurveFacet. Instead use
the constant scaling factor from the DischargeTables.
diff -r 5d19a291bd9f -r 9745f37c0d52 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java Tue Nov 27 17:38:23 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java Tue Nov 27 17:39:38 2012 +0100
@@ -59,7 +59,8 @@
DischargeTables dt = new DischargeTables(river, name);
- Map<String, double [][]> map = dt.getValues(100d);
+ Map<String, double [][]> map = dt.getValues(
+ DischargeTables.HISTORICAL_SCALE);
double [][] values = map.get(name);
if (values == null) {
More information about the Dive4elements-commits
mailing list