comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveExporter.java @ 1689:e9475d2ef343

Bugfix: #189 Changed the order of a duration curve CSV export. flys-artifacts/trunk@2911 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 10 Oct 2011 07:07:17 +0000
parents efe1b8545f5c
children 65dac9cf6ff5
comparison
equal deleted inserted replaced
1688:7eb9015489b0 1689:e9475d2ef343
95 95
96 NumberFormat wf = getWFormatter(); 96 NumberFormat wf = getWFormatter();
97 NumberFormat qf = getQFormatter(); 97 NumberFormat qf = getQFormatter();
98 NumberFormat df = getDFormatter(); 98 NumberFormat df = getDFormatter();
99 99
100 for (int i = 0; i < size; i ++) { 100 if (wqday.isIncreasing()) {
101 writer.writeNext(new String[] { 101 for (int i = size-1; i >= 0; i --) {
102 wf.format(wqday.getW(i)), 102 writer.writeNext(new String[] {
103 qf.format(wqday.getQ(i)), 103 wf.format(wqday.getW(i)),
104 df.format(wqday.getDay(i)) 104 qf.format(wqday.getQ(i)),
105 }); 105 df.format(wqday.getDay(i))
106 });
107 }
108 }
109 else {
110 for (int i = 0; i < size; i ++) {
111 writer.writeNext(new String[] {
112 wf.format(wqday.getW(i)),
113 qf.format(wqday.getQ(i)),
114 df.format(wqday.getDay(i))
115 });
116 }
106 } 117 }
107 } 118 }
108 119
109 120
110 /** 121 /**

http://dive4elements.wald.intevation.org