comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculator.java @ 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 b380a5693514
children f8308db94634
comparison
equal deleted inserted replaced
9593:8f4e300b5f79 9594:225e48df608c
142 if (wqday == null) 142 if (wqday == null)
143 return null; 143 return null;
144 144
145 final int[] odays = new int[wqday.size()]; 145 final int[] odays = new int[wqday.size()];
146 for (int i = 0; i <= odays.length - 1; i++) 146 for (int i = 0; i <= odays.length - 1; i++)
147 odays[i] = 365 - wqday.getDay(i); 147 odays[i] = 365 - wqday.getDay(i); // TODO Eigentlich 365.25, ist aber mit getDay als int sinnlos
148 return new WQDay(odays, wqday.getWs(), wqday.getQs()); 148 return new WQDay(odays, wqday.getWs(), wqday.getQs());
149 } 149 }
150 150
151 /** 151 /**
152 * Calculates the data for the Q main value lines in the duration curve chart 152 * Calculates the data for the Q main value lines in the duration curve chart
464 464
465 /** 465 /**
466 * Translates underflow duration into overflow duration 466 * Translates underflow duration into overflow duration
467 */ 467 */
468 private double underflowDaysToOverflowDays(final double underflowDays) { 468 private double underflowDaysToOverflowDays(final double underflowDays) {
469 return 365 - underflowDays; 469 return 365.25 - underflowDays;
470 } 470 }
471 } 471 }

http://dive4elements.wald.intevation.org