Mercurial > dive4elements > river
changeset 1662:a800994aed1e
Fixed issues flys/issue244, flys/issue332
flys-artifacts/trunk@2865 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 29 Sep 2011 18:19:45 +0000 |
parents | a890bf077de5 |
children | 4fbd43061315 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java |
diffstat | 2 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Wed Sep 28 15:47:57 2011 +0000 +++ b/flys-artifacts/ChangeLog Thu Sep 29 18:19:45 2011 +0000 @@ -1,3 +1,12 @@ +2011-09-29 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + flys/issue244 (WINFO: Export von AT-Dateien im ersten Teil unterschiedlich) + flys/issue332 (W-INFO / Berechnung Abflusskurve, Export, FLYS 2.5) + + * src/main/java/de/intevation/flys/exports/ATWriter.java: Due to a rounding + issue the w's of the first line underun the minimal w of the curve at times. + An extra test was introduced to suppress the output of the q's of the wrong w's. + 2011-09-28 Felix Wolfsteller <felix.wolfsteller@intevation.de> * src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java Wed Sep 28 15:47:57 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ATWriter.java Thu Sep 29 18:19:45 2011 +0000 @@ -139,7 +139,13 @@ out.print(EMPTY); } for (int i = COLUMNS-columns; i < COLUMNS; ++i) { - printQ(out, getQ(startW + i*0.01)); + double w = startW + i*0.01; + if (w < minW) { + out.print(EMPTY); + } + else { + printQ(out, getQ(w)); + } } out.println(); startW += 0.1;