Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java @ 5379:61bf64b102bc mapgenfix
Merge with default branch
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Fri, 22 Mar 2013 11:25:54 +0100 |
parents | 5f38d1c39ebd |
children |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java Wed Mar 06 14:14:15 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/DischargeTables.java Fri Mar 22 11:25:54 2013 +0100 @@ -26,10 +26,10 @@ /** Private logger. */ private static Logger log = Logger.getLogger(DischargeTables.class); - /** Scale to convert discharge table values of master table into [cm] */ + /** Scale to convert discharge table values of master table into [cm]. */ public static final double MASTER_SCALE = 100d; - /** Scale to convert discharge table values of historical tables into [cm] */ + /** Scale to convert discharge table values of historical tables into [cm]. */ public static final double HISTORICAL_SCALE = 1d; public static final int MASTER = 0; @@ -184,6 +184,11 @@ return x > a && x < b; } + /** + * Find or interpolate Qs from q/w array. + * @param values [[q0,q1,q2],[w0,w1,w2]] + * @param w W value to look for in values. + */ public static double [] getQsForW(double [][] values, double w) { boolean debug = log.isDebugEnabled();