comparison artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java @ 7614:3e3a4f44423a

(issue1620) Print the real official Q value instead of the first The assumption Q=Q becomes false if there are more then one waterlevels to be exported and only one of them has an official value.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 29 Nov 2013 11:12:31 +0100
parents 05549a84ee83
children edb323a4c286
comparison
equal deleted inserted replaced
7613:505737373ba4 7614:3e3a4f44423a
828 // Bad for perfomance but the user can wait a bit for WST 828 // Bad for perfomance but the user can wait a bit for WST
829 // so lets not spend time optimizing too much,.. *hides* 829 // so lets not spend time optimizing too much,.. *hides*
830 double km = entry.getKey().doubleValue(); 830 double km = entry.getKey().doubleValue();
831 int idx = officialKms.indexOf(km); 831 int idx = officialKms.indexOf(km);
832 if (idx != -1) { 832 if (idx != -1) {
833 entry.getValue().add(wqkms.getW(idx), entry.getValue().getQ(0)); 833 entry.getValue().add(wqkms.getW(idx), wqkms.getQ(idx));
834 } 834 }
835 } 835 }
836 836
837 /* Variant: Interpolate the values 837 /* Variant: Interpolate the values
838 // Now get the lines for the of the calculation 838 // Now get the lines for the of the calculation

http://dive4elements.wald.intevation.org