changeset 9594:225e48df608c

Softwaretests...20181219 6.1: overflow day compute with 365.25 instead of 365.0
author mschaefer
date Tue, 05 Feb 2019 15:24:22 +0100
parents 8f4e300b5f79
children 9b39cfd39e59
files artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculator.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculator.java	Fri Jan 11 17:44:25 2019 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculator.java	Tue Feb 05 15:24:22 2019 +0100
@@ -144,7 +144,7 @@
 
         final int[] odays = new int[wqday.size()];
         for (int i = 0; i <= odays.length - 1; i++)
-            odays[i] = 365 - wqday.getDay(i);
+            odays[i] = 365 - wqday.getDay(i); // TODO Eigentlich 365.25, ist aber mit getDay als int sinnlos
         return new WQDay(odays, wqday.getWs(), wqday.getQs());
     }
 
@@ -466,6 +466,6 @@
      * Translates underflow duration into overflow duration
      */
     private double underflowDaysToOverflowDays(final double underflowDays) {
-        return 365 - underflowDays;
+        return 365.25 - underflowDays;
     }
 }
\ No newline at end of file

http://dive4elements.wald.intevation.org