Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixWQCurveFacet.java @ 3055:1fbf8462f808
FixWQCurveGenerator generates randomized curves as the Facets crashes when retrieving data
flys-artifacts/trunk@4631 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Sat, 09 Jun 2012 13:46:04 +0000 |
parents | b388d888330d |
children | 0b5a7a2c3724 |
comparison
equal
deleted
inserted
replaced
3054:8bd4cf11c25a | 3055:1fbf8462f808 |
---|---|
72 | 72 |
73 String function = access.getFunction(); | 73 String function = access.getFunction(); |
74 Function ff = FunctionFactory.getInstance().getFunction(function); | 74 Function ff = FunctionFactory.getInstance().getFunction(function); |
75 | 75 |
76 Parameters params = result.getParameters(); | 76 Parameters params = result.getParameters(); |
77 int row = params.binarySearch("km", km, Math.pow(10, -4)); | 77 int row = 0; //params.binarySearch("km", km, Math.pow(10, -4)); //FIXME: search failes as access.getCurrentKm() always returns 13.37... |
78 String[] paramNames = ff.getParameterNames(); | 78 String[] paramNames = ff.getParameterNames(); |
79 int[] paramInd = params.columnIndices(paramNames); | 79 int[] paramInd = params.columnIndices(paramNames); |
80 double[] coeffs = new double[paramNames.length]; | 80 double[] coeffs = new double[paramNames.length]; |
81 params.get(row, paramInd, coeffs); | 81 params.get(row, paramInd, coeffs); |
82 | 82 |
83 de.intevation.flys.artifacts.math.Function mf = | 83 de.intevation.flys.artifacts.math.Function mf = |
84 ff.instantiate(coeffs); | 84 ff.instantiate(coeffs); |
85 | 85 |
86 double maxQ = getMaxQ(result, km); | 86 double maxQ = 100; //getMaxQ(result, km); //FIXME |
87 | 87 |
88 FixFunction fix = new FixFunction( | 88 FixFunction fix = new FixFunction( |
89 ff.getName(), | 89 ff.getName(), |
90 ff.getDescription(), | 90 ff.getDescription(), |
91 mf, | 91 mf, |