Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFacet.java @ 8215:204905c16ade
Fetch missing values from database and show them in diagrams.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 08 Sep 2014 12:21:32 +0200 |
parents | c657ddcf1fa6 |
children | 1cd7225df846 |
comparison
equal
deleted
inserted
replaced
8214:ceeeaf228fe4 | 8215:204905c16ade |
---|---|
66 TDoubleArrayList xPos = new TDoubleArrayList(); | 66 TDoubleArrayList xPos = new TDoubleArrayList(); |
67 TDoubleArrayList yPos = new TDoubleArrayList(); | 67 TDoubleArrayList yPos = new TDoubleArrayList(); |
68 | 68 |
69 for (SedimentLoadData.Station sta: allLoadData.getStations()) { | 69 for (SedimentLoadData.Station sta: allLoadData.getStations()) { |
70 double value = sta.findValueByLoadId(id); | 70 double value = sta.findValueByLoadId(id); |
71 if (Double.isNaN(value)) { | |
72 continue; | |
73 } | |
74 xPos.add(sta.getStation()); | 71 xPos.add(sta.getStation()); |
75 yPos.add(value); | 72 yPos.add(value); |
76 } | 73 } |
77 | 74 |
78 return new double[][] {xPos.toNativeArray(), yPos.toNativeArray()}; | 75 return new double[][] {xPos.toNativeArray(), yPos.toNativeArray()}; |