comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java @ 1681:e5f7f25a511c

fixed flys/issue201 flys-artifacts/trunk@2899 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 05 Oct 2011 16:58:38 +0000
parents 1ea7eb72aaa6
children eb35570df0e8
comparison
equal deleted inserted replaced
1680:f4da2009eb8b 1681:e5f7f25a511c
484 return !Double.isNaN(out[0]); 484 return !Double.isNaN(out[0]);
485 } 485 }
486 486
487 rowIndex = -rowIndex -1; 487 rowIndex = -rowIndex -1;
488 488
489 if (rowIndex < 1 || rowIndex >= R1) { 489 if (rowIndex < 1 || rowIndex > R1) {
490 // do not extrapolate 490 // do not extrapolate
491 return false; 491 return false;
492 } 492 }
493 493
494 Row r1 = rows.get(rowIndex-1); 494 Row r1 = rows.get(rowIndex-1);
569 continue; 569 continue;
570 } 570 }
571 571
572 rowIndex = -rowIndex -1; 572 rowIndex = -rowIndex -1;
573 573
574 if (rowIndex < 1 || rowIndex >= R1) { 574 if (rowIndex < 1 || rowIndex > R1) {
575 // do not extrapolate 575 // do not extrapolate
576 if (errors != null) { 576 if (errors != null) {
577 errors.addProblem(kms[i], "cannot find km"); 577 errors.addProblem(kms[i], "cannot find km");
578 } 578 }
579 ws[i] = Double.NaN; 579 ws[i] = Double.NaN;

http://dive4elements.wald.intevation.org