Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java @ 6951:f5f60b3d9180
Doc fix.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 30 Aug 2013 12:31:33 +0200 |
parents | 40da4a6e2cfb |
children | 733c35239fe7 |
comparison
equal
deleted
inserted
replaced
6950:40da4a6e2cfb | 6951:f5f60b3d9180 |
---|---|
529 | 529 |
530 | 530 |
531 /** | 531 /** |
532 * Transform values in load. | 532 * Transform values in load. |
533 * Background is to transform values measured in | 533 * Background is to transform values measured in |
534 * t/a to m^3/a or vice versa using the specific | 534 * t/a to m^3/a using the specific measured densities. |
535 * measured relationships. | |
536 * | 535 * |
537 * @param load The load of which values should be transformed. | 536 * @param load The load of which values should be transformed. |
538 * @param year The year at which to look at density (e.g. 2003). | 537 * @param year The year at which to look at density (e.g. 2003). |
539 * | 538 * |
540 * @return parameter load with transformed values. | 539 * @return parameter load with transformed values. |
541 */ | 540 */ |
542 private SedimentLoad calculateUnit(SedimentLoad load, int year) { | 541 private SedimentLoad calculateUnit(SedimentLoad load, int year) { |
543 SedimentDensity density = | 542 SedimentDensity density = |
544 SedimentDensityFactory.getSedimentDensity(river, kmLow, kmUp, year); | 543 SedimentDensityFactory.getSedimentDensity(river, kmLow, kmUp, year); |
544 | |
545 for (double km: load.getKms()) { | 545 for (double km: load.getKms()) { |
546 double dens = density.getDensity(km, year); | 546 double dens = density.getDensity(km, year); |
547 SedimentLoadFraction fraction = load.getFraction(km); | 547 SedimentLoadFraction fraction = load.getFraction(km); |
548 double coarse = fraction.getCoarse(); | 548 double coarse = fraction.getCoarse(); |
549 double fineMiddle = fraction.getFineMiddle(); | 549 double fineMiddle = fraction.getFineMiddle(); |