Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WW.java @ 2329:d999062c20e6
Add W(cm) column to csv export of reference curves.
flys-artifacts/trunk@4013 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 10 Feb 2012 08:28:17 +0000 |
parents | 3973a2451cf7 |
children | 5642a83420f2 |
comparison
equal
deleted
inserted
replaced
2328:0cc0e232fa35 | 2329:d999062c20e6 |
---|---|
179 } | 179 } |
180 | 180 |
181 public double minWs2() { | 181 public double minWs2() { |
182 return ws2.min(); | 182 return ws2.min(); |
183 } | 183 } |
184 | |
185 // Note that we can also easily define a Function to do so. | |
186 public double getRelHeight1Cm(int idx) { | |
187 if (this.startAtGauge()) { | |
188 return (ws.getQuick(idx) - getStartDatum())*100d; | |
189 } | |
190 else return ws.getQuick(idx)*100d; | |
191 } | |
192 | |
193 public double getRelHeight2Cm(int idx) { | |
194 if (this.endAtGauge()) { | |
195 return (ws2.getQuick(idx) - getEndDatum())*100d; | |
196 } | |
197 else return ws2.getQuick(idx)*100d; | |
198 } | |
184 } | 199 } |
185 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : | 200 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |