comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FlowVelocityData.java @ 2706:d8444fcb4e44

Create chart facets for flow velocity calculation and a chart generator for this. flys-artifacts/trunk@4424 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 16 May 2012 12:39:13 +0000
parents 4c00cf83fff1
children 4bd3d8bbb60c
comparison
equal deleted inserted replaced
2705:71f072d8b3d8 2706:d8444fcb4e44
73 } 73 }
74 74
75 public int size() { 75 public int size() {
76 return km.size(); 76 return km.size();
77 } 77 }
78
79
80 public double[][] getMainChannelPoints() {
81 double[][] points = new double[2][size()];
82
83 for (int i = 0, n = size(); i < n; i++) {
84 points[0][i] = getKM(i);
85 points[1][i] = getVMain(i);
86 }
87
88 return points;
89 }
90
91
92 public double[][] getTotalChannelPoints() {
93 double[][] points = new double[2][size()];
94
95 for (int i = 0, n = size(); i < n; i++) {
96 points[0][i] = getKM(i);
97 points[1][i] = getVTotal(i);
98 }
99
100 return points;
101 }
102
103
104 public double[][] getTauPoints() {
105 double[][] points = new double[2][size()];
106
107 for (int i = 0, n = size(); i < n; i++) {
108 points[0][i] = getKM(i);
109 points[1][i] = getTauMain(i);
110 }
111
112 return points;
113 }
78 } 114 }

http://dive4elements.wald.intevation.org