Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/MiddleBedHeightCalculation.java @ 6351:2c7a16d59f67
Use Double.NaN for missing values in middle bedheight calculation and write empty strings in csv export.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 17 Jun 2013 15:37:26 +0200 |
parents | af13ceeba52a |
children | 868f55932fe6 |
comparison
equal
deleted
inserted
replaced
6350:876c797c2805 | 6351:2c7a16d59f67 |
---|---|
155 single.getEvaluationBy(), | 155 single.getEvaluationBy(), |
156 single.getDescription()); | 156 single.getDescription()); |
157 | 157 |
158 for (BedHeightSingleValue value: values) { | 158 for (BedHeightSingleValue value: values) { |
159 if (value.getHeight() != null) { | 159 if (value.getHeight() != null) { |
160 double uncert = value.getUncertainty() != null ? | |
161 value.getUncertainty().doubleValue() : Double.NaN; | |
162 double sounding = value.getSoundingWidth() != null ? | |
163 value.getSoundingWidth().doubleValue() : Double.NaN; | |
164 double gap = value.getDataGap() != null ? | |
165 value.getDataGap().doubleValue() : Double.NaN; | |
160 data.addAll(value.getStation().doubleValue(), | 166 data.addAll(value.getStation().doubleValue(), |
161 value.getHeight().doubleValue(), | 167 value.getHeight().doubleValue(), |
162 value.getUncertainty().doubleValue(), | 168 uncert, |
163 value.getSoundingWidth().doubleValue(), | 169 sounding, |
164 value.getDataGap().doubleValue(), | 170 gap, |
165 value.getWidth().doubleValue(), | 171 value.getWidth().doubleValue(), |
166 false); | 172 false); |
167 } | 173 } |
168 else { | 174 else { |
169 data.addAll(value.getStation().doubleValue(), | 175 data.addAll(value.getStation().doubleValue(), |