Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation6.java @ 2418:899ca89f497e
Another partial fix for flys/issue499: Do the W to Q conversions
needed for 'W am Pegel' correctly.
flys-artifacts/trunk@4052 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 14 Feb 2012 16:48:13 +0000 |
parents | c0dfa36add96 |
children | e96bf6c47c12 |
comparison
equal
deleted
inserted
replaced
2417:e5fa3cbbe3ae | 2418:899ca89f497e |
---|---|
280 return new Date[] { start, end }; | 280 return new Date[] { start, end }; |
281 } | 281 } |
282 | 282 |
283 | 283 |
284 protected double findValueForW(DischargeTable dt, double w) { | 284 protected double findValueForW(DischargeTable dt, double w) { |
285 double[][] vs = DischargeTables.loadDischargeTableValues(dt,SCALE,true); | 285 double[][] vs = DischargeTables.loadDischargeTableValues(dt, SCALE); |
286 return DischargeTables.getQForW(vs, w); | 286 double [] qs = DischargeTables.getQsForW(vs, w); |
287 return qs.length == 0 ? Double.NaN : qs[0]; | |
287 } | 288 } |
288 | 289 |
289 | 290 |
290 protected double findValueForQ(DischargeTable dt, double q) { | 291 protected double findValueForQ(DischargeTable dt, double q) { |
291 double[][] vs = DischargeTables.loadDischargeTableValues(dt,SCALE,true); | 292 double[][] vs = DischargeTables.loadDischargeTableValues(dt, SCALE); |
292 logger.warn("TODO: IMPLEMENT ME!"); | 293 logger.warn("TODO: IMPLEMENT ME!"); |
293 | 294 |
294 return 10; | 295 return 10; |
295 } | 296 } |
296 | 297 |