Mercurial > dive4elements > river
changeset 4467:10e7bd292c47
FlowVelocityData: Add new helper to get km/Q-double-arrays.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 09 Nov 2012 12:08:52 +0100 |
parents | 4d856f11e527 |
children | 2e8638567c49 |
files | flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FlowVelocityData.java |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FlowVelocityData.java Fri Nov 09 12:08:15 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FlowVelocityData.java Fri Nov 09 12:08:52 2012 +0100 @@ -101,6 +101,18 @@ } + public double[][] getQPoints() { + double[][] points = new double[2][size()]; + + for (int i = 0, n = size(); i < n; i++) { + points[0][i] = getKM(i); + points[1][i] = getQ(i); + } + + return points; + } + + public double[][] getTauPoints() { double[][] points = new double[2][size()];