Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/SalixLineCalculation.java @ 9573:b9c87bbff6a4
mean bed height -> mean bed LEVEL
author | gernotbelger |
---|---|
date | Tue, 06 Nov 2018 10:56:22 +0100 |
parents | 429b62373633 |
children | 5395c6d4ca50 |
comparison
equal
deleted
inserted
replaced
9572:0d0c8fd1b8c8 | 9573:b9c87bbff6a4 |
---|---|
143 rangeScenarios.put(Double.valueOf(part.getFromKm().doubleValue() - 0.0001), dwsm); | 143 rangeScenarios.put(Double.valueOf(part.getFromKm().doubleValue() - 0.0001), dwsm); |
144 } | 144 } |
145 } | 145 } |
146 | 146 |
147 /** | 147 /** |
148 * Fetches historical and reference bed heights and fills a map of delta-MSHs for all fetched stations in the calc range | 148 * Fetches historical and reference bed levels and fills a map of delta-MSHs for all fetched stations in the calc range |
149 */ | 149 */ |
150 private void fillRangeScenarios(final NavigableMap<Double, List<Double>> rangeScenarios, final RangeAccess calcRange, final double partFrom, | 150 private void fillRangeScenarios(final NavigableMap<Double, List<Double>> rangeScenarios, final RangeAccess calcRange, final double partFrom, |
151 final double partTo, final int historicalBedHeightId) { | 151 final double partTo, final int historicalBedHeightId) { |
152 | 152 |
153 // Find relevant default bed-heights | 153 // Find relevant default bed-heights |
180 } | 180 } |
181 rangeScenarios.put(Double.valueOf(partTo + 0.0001), nulls); | 181 rangeScenarios.put(Double.valueOf(partTo + 0.0001), nulls); |
182 } | 182 } |
183 | 183 |
184 /** | 184 /** |
185 * Gets the difference of a historical bed height against a current one for a station | 185 * Gets the difference of a historical bed level against a current one for a station |
186 */ | 186 */ |
187 private double bedHeightDifference(final double station, final Collection<BedHeightsFinder> currentFinders, final BedHeightsFinder historicalFinder) { | 187 private double bedHeightDifference(final double station, final Collection<BedHeightsFinder> currentFinders, final BedHeightsFinder historicalFinder) { |
188 double currentMSH = Double.NaN; | 188 double currentMSH = Double.NaN; |
189 for (final BedHeightsFinder bhf : currentFinders) { | 189 for (final BedHeightsFinder bhf : currentFinders) { |
190 currentMSH = bhf.getMeanBedHeight(station); | 190 currentMSH = bhf.getMeanBedHeight(station); |