comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java @ 337:ec17fad34061

Discharge table: Fix problem when sorting by q (copied w instead of q). flys-artifacts/trunk@1736 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 20 Apr 2011 09:46:40 +0000
parents 7f13ed751277
children aa0889141b15
comparison
equal deleted inserted replaced
336:7f13ed751277 337:ec17fad34061
164 }); 164 });
165 165
166 double [][] vs2 = new double[2][vs[0].length]; 166 double [][] vs2 = new double[2][vs[0].length];
167 for (int i = 0; i < indices.length; ++i) { 167 for (int i = 0; i < indices.length; ++i) {
168 vs2[0][i] = vs[0][indices[i]]; 168 vs2[0][i] = vs[0][indices[i]];
169 vs2[1][i] = vs[0][indices[i]]; 169 vs2[1][i] = vs[1][indices[i]];
170 } 170 }
171 values.put(gaugeName, vs2); 171 values.put(gaugeName, vs2);
172 } 172 }
173 else { 173 else {
174 values.put(gaugeName, vs); 174 values.put(gaugeName, vs);

http://dive4elements.wald.intevation.org