changeset 4584:9745f37c0d52

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.
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 27 Nov 2012 17:39:38 +0100
parents 5d19a291bd9f
children b4a95290ec63
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {

http://dive4elements.wald.intevation.org