[Dive4elements-commits] [PATCH 3 of 6] FlowVelocityData: Add new helper to get km/Q-double-arrays

Wald Commits scm-commit at wald.intevation.org
Fri Nov 9 12:05:35 CET 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1352459332 -3600
# Node ID 10e7bd292c475c26e21c19eacbc223e34193c47d
# Parent  4d856f11e527ca8a0fc0fb487a2fc2fc73eaaa32
FlowVelocityData: Add new helper to get km/Q-double-arrays.

diff -r 4d856f11e527 -r 10e7bd292c47 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FlowVelocityData.java
--- 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()];
 


More information about the Dive4elements-commits mailing list