Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/TkhCalculator.java @ 8916:5d5d0051723f
Working on outputmodes of tkh calculation
author | gernotbelger |
---|---|
date | Wed, 28 Feb 2018 18:55:39 +0100 |
parents | d9dbf0b74bc2 |
children | 29442c03c6e3 |
comparison
equal
deleted
inserted
replaced
8915:d9dbf0b74bc2 | 8916:5d5d0051723f |
---|---|
167 final double tkh = calculateTkh(wst - meanBedHeight, this.flowVelocitiesFinder.getFindVmainFound(), d50, this.flowVelocitiesFinder.getFindTauFound()); | 167 final double tkh = calculateTkh(wst - meanBedHeight, this.flowVelocitiesFinder.getFindVmainFound(), d50, this.flowVelocitiesFinder.getFindTauFound()); |
168 // FIXME: noch mal prüfen, im alten code wurde hier immer auf 0 gesetzt | 168 // FIXME: noch mal prüfen, im alten code wurde hier immer auf 0 gesetzt |
169 if (Double.isNaN(tkh) || (tkh < 0)) { | 169 if (Double.isNaN(tkh) || (tkh < 0)) { |
170 // TODO: ggf. station in Fehlermeldung? | 170 // TODO: ggf. station in Fehlermeldung? |
171 | 171 |
172 // FIXME: Fehlermeldung nicht korrekt, passiert mit Wasserspiegel 'MHQ' und 'QP-1993': alle Daten (auch Abfluss) | 172 // FIXME: Fehlermeldung nicht korrekt, passiert mit Wasserspiegel 'MHQ' und 'QP-1993 |
173 // vorhanden, aber tkh negativ... | |
174 final String message = Resources.getMsg(this.context.getMeta(), "sinfo_calc_flow_depth.warning.missingQ", null, this.problemLabel); | 173 final String message = Resources.getMsg(this.context.getMeta(), "sinfo_calc_flow_depth.warning.missingQ", null, this.problemLabel); |
175 this.problems.addProblem(km, message); | 174 this.problems.addProblem(km, message); |
176 | 175 |
177 return new Tkh(km, wst, meanBedHeight, discharge, kind, Double.NaN, Double.NaN, Double.NaN); | 176 return new Tkh(km, wst, meanBedHeight, discharge, kind, Double.NaN, Double.NaN, Double.NaN); |
178 } | 177 } |