Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepthminmax/FlowDepthMinMaxCalculation.java @ 9312:740d65e4aa14
Q [m³/s] one message
author | gernotbelger |
---|---|
date | Thu, 26 Jul 2018 15:54:20 +0200 |
parents | d5802f22e4f5 |
children | 7b2b086e45f0 |
comparison
equal
deleted
inserted
replaced
9311:7c7f73e5e01e | 9312:740d65e4aa14 |
---|---|
119 | 119 |
120 final String waterlevelLabel = waterlevel.getName(); | 120 final String waterlevelLabel = waterlevel.getName(); |
121 final String soundingLabel = bedHeightInfo.getDescription(); | 121 final String soundingLabel = bedHeightInfo.getDescription(); |
122 | 122 |
123 /* real calculation loop */ | 123 /* real calculation loop */ |
124 final Collection< ResultRow> rows = new ArrayList<>(); | 124 final Collection<ResultRow> rows = new ArrayList<>(); |
125 | 125 |
126 final Collection<Double> stations = bedHeight.getStations(); | 126 final Collection<Double> stations = bedHeight.getStations(); |
127 for (final double station : stations) { | 127 for (final double station : stations) { |
128 if (calcRange.containsDouble(station)) { | 128 if (calcRange.containsDouble(station)) { |
129 | 129 |
145 | 145 |
146 /* ignore invalid lines */ | 146 /* ignore invalid lines */ |
147 if (Double.isNaN(wst) || Double.isNaN(minBedHeightValue) || Double.isNaN(maxBedHeightValue)) | 147 if (Double.isNaN(wst) || Double.isNaN(minBedHeightValue) || Double.isNaN(maxBedHeightValue)) |
148 continue; | 148 continue; |
149 | 149 |
150 final ResultRow row = ResultRow.create().// | 150 final ResultRow row = ResultRow.create().// |
151 putValue(GeneralResultType.station, station). // | 151 putValue(GeneralResultType.station, station). // |
152 putValue(SInfoResultType.flowdepthmin, minFlowDepth). // | 152 putValue(SInfoResultType.flowdepthmin, minFlowDepth). // |
153 putValue(SInfoResultType.flowdepthmax, maxFlowDepth). // | 153 putValue(SInfoResultType.flowdepthmax, maxFlowDepth). // |
154 putValue(SInfoResultType.waterlevel, wst). // | 154 putValue(SInfoResultType.waterlevel, wst). // |
155 putValue(SInfoResultType.discharge, discharge). // | 155 putValue(SInfoResultType.discharge, discharge). // |
156 putValue(SInfoResultType.waterlevelLabel, waterlevelLabel). // | 156 putValue(SInfoResultType.waterlevelLabel, waterlevelLabel). // |
157 putValue(SInfoResultType.gaugeLabel, gaugeLabel). // | 157 putValue(SInfoResultType.gaugeLabel, gaugeLabel). // |
158 putValue(SInfoResultType.meanBedHeight, meanBedHeight). // | 158 putValue(SInfoResultType.meanBedHeight, meanBedHeight). // |
159 putValue(SInfoResultType.soundingLabel, soundingLabel). // | 159 putValue(SInfoResultType.soundingLabel, soundingLabel). // |
160 putValue(SInfoResultType.location, location); | 160 putValue(GeneralResultType.location, location); |
161 rows.add(row); | 161 rows.add(row); |
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 return new FlowDepthMinMaxCalculationResult(label, wstInfo, bedHeightInfo, rows); | 165 return new FlowDepthMinMaxCalculationResult(label, wstInfo, bedHeightInfo, rows); |