comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/GaugeDischargeCurveFacet.java @ 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 dbe9b7d6b80b
comparison
equal deleted inserted replaced
4583:5d19a291bd9f 4584:9745f37c0d52
57 57
58 String name = gauge.getName(); 58 String name = gauge.getName();
59 59
60 DischargeTables dt = new DischargeTables(river, name); 60 DischargeTables dt = new DischargeTables(river, name);
61 61
62 Map<String, double [][]> map = dt.getValues(100d); 62 Map<String, double [][]> map = dt.getValues(
63 DischargeTables.HISTORICAL_SCALE);
63 64
64 double [][] values = map.get(name); 65 double [][] values = map.get(name);
65 if (values == null) { 66 if (values == null) {
66 return null; 67 return null;
67 } 68 }

http://dive4elements.wald.intevation.org