comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculator.java @ 9236:b515ed950d39

S-Info flood durations with automatic km step width
author mschaefer
date Fri, 06 Jul 2018 17:56:18 +0200
parents d47f6641f597
children c2a0028bfa9f
comparison
equal deleted inserted replaced
9235:d47f6641f597 9236:b515ed950d39
78 calcRange.getMaximumDouble(), bankKey); 78 calcRange.getMaximumDouble(), bankKey);
79 79
80 // Merge all stations (range/step, borders of gauge ranges, infrastructures) 80 // Merge all stations (range/step, borders of gauge ranges, infrastructures)
81 final Map<Double, InfrastructureValue> allStations = new HashMap<>(); 81 final Map<Double, InfrastructureValue> allStations = new HashMap<>();
82 final Map<Double, InfrastructureValue> secondBank = new HashMap<>(); // any second infrastructure in case of both-banks-option 82 final Map<Double, InfrastructureValue> secondBank = new HashMap<>(); // any second infrastructure in case of both-banks-option
83 // addRangeStations(allStations, winfo); //@Schäfer: bitte überprüfen, wie diese Funktion ersetzt werden muss 83 addRangeStations(allStations, winfo);
84 addGaugeLimits(allStations, durFinders.keySet(), calcRange.getMinimumDouble(), calcRange.getMaximumDouble()); 84 addGaugeLimits(allStations, durFinders.keySet(), calcRange.getMinimumDouble(), calcRange.getMaximumDouble());
85 addInfrastructures(allStations, secondBank, infras); 85 addInfrastructures(allStations, secondBank, infras);
86 final double[] stationsSorted = sortStations(allStations.keySet()); 86 final double[] stationsSorted = sortStations(allStations.keySet());
87 87
88 // Calculate W and Q for all stations and the selected discharge states 88 // Calculate W and Q for all stations and the selected discharge states

http://dive4elements.wald.intevation.org