Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixationCompute.java @ 3131:bac0b2721451
FixA: Added delta W(t) chart in fix analysis.
flys-artifacts/trunk@4732 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 20 Jun 2012 16:10:59 +0000 |
parents | 5e9533687a0c |
children | 6f6a8e5fb7a4 |
comparison
equal
deleted
inserted
replaced
3130:0dd569e9b9f1 | 3131:bac0b2721451 |
---|---|
21 import de.intevation.flys.artifacts.model.fixings.FixAnalysisPeriodsFacet; | 21 import de.intevation.flys.artifacts.model.fixings.FixAnalysisPeriodsFacet; |
22 import de.intevation.flys.artifacts.model.fixings.FixReferenceEventsFacet; | 22 import de.intevation.flys.artifacts.model.fixings.FixReferenceEventsFacet; |
23 import de.intevation.flys.artifacts.model.fixings.FixOutlierFacet; | 23 import de.intevation.flys.artifacts.model.fixings.FixOutlierFacet; |
24 import de.intevation.flys.artifacts.model.fixings.FixWQCurveFacet; | 24 import de.intevation.flys.artifacts.model.fixings.FixWQCurveFacet; |
25 import de.intevation.flys.artifacts.model.fixings.FixDerivateFacet; | 25 import de.intevation.flys.artifacts.model.fixings.FixDerivateFacet; |
26 import de.intevation.flys.artifacts.model.fixings.FixDeviationFacet; | |
26 | 27 |
27 import de.intevation.flys.artifacts.model.fixings.DateRange; | 28 import de.intevation.flys.artifacts.model.fixings.DateRange; |
28 | 29 |
29 import de.intevation.flys.artifacts.states.DefaultState; | 30 import de.intevation.flys.artifacts.states.DefaultState; |
30 | 31 |
112 case 3: sector = "[HQ5 - \u221e)"; break; | 113 case 3: sector = "[HQ5 - \u221e)"; break; |
113 } | 114 } |
114 String description = sector + ": " + | 115 String description = sector + ": " + |
115 startDate + " - " + | 116 startDate + " - " + |
116 endDate; | 117 endDate; |
118 | |
119 int sectorNdx = j - access.getQSectorStart().intValue(); | |
120 int facetNdx = i << 2; | |
121 facetNdx = facetNdx | j; | |
122 | |
117 facets.add( | 123 facets.add( |
118 new FixAvSectorFacet(j - access.getQSectorStart().intValue(), | 124 new FixAvSectorFacet(facetNdx, |
119 FIX_SECTOR_AVERAGE_DWT, | 125 FIX_SECTOR_AVERAGE_DWT + "_" + sectorNdx, |
120 description)); | 126 description)); |
121 facets.add( | 127 facets.add( |
122 new FixAvSectorFacet(j - access.getQSectorStart().intValue(), | 128 new FixAvSectorFacet(facetNdx, |
123 FIX_SECTOR_AVERAGE_LS, | 129 FIX_SECTOR_AVERAGE_LS, |
124 description)); | 130 description)); |
125 facets.add( | 131 facets.add( |
126 new FixAvSectorFacet(j - access.getQSectorStart().intValue(), | 132 new FixAvSectorFacet(facetNdx, |
127 FIX_SECTOR_AVERAGE_WQ, | 133 FIX_SECTOR_AVERAGE_WQ, |
128 description)); | 134 description)); |
129 | 135 |
130 } | 136 } |
131 String eventDesc = period.getFrom().toString() + | 137 String eventDesc = period.getFrom().toString() + |
175 facets.add(new FixDerivateFacet(FIX_DERIVATE, | 181 facets.add(new FixDerivateFacet(FIX_DERIVATE, |
176 Resources.getMsg(context.getMeta(), | 182 Resources.getMsg(context.getMeta(), |
177 I18N_DERIVATIVE, | 183 I18N_DERIVATIVE, |
178 I18N_DERIVATIVE))); | 184 I18N_DERIVATIVE))); |
179 | 185 |
186 facets.add(new FixDeviationFacet(FIX_DEVIATION_DWT, "Abweichung")); | |
180 return res; | 187 return res; |
181 } | 188 } |
182 } | 189 } |
183 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : | 190 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |