Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This statisticsEnsemble transformation will compute take the member index of the ensemble time series that has the max value. Input is an ensemble with multiple time series. Output is one time series. Per time step the member index of the ensemble time series with the max value is calculated taken for that time step and written to the output value. This transformation assumes all members are in ascending order starting at 0 in steps of 1.

Example


Code Block
languagexml
titleStatistics Ensemble Member Index Of Max
<?xml version="1.0" encoding="UTF-8"?>
<transformationModule version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews"
                 xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/transformationModule.xsd">
   <variable>
      <variableId>input</variableId>
      <timeSeriesSet>
         <moduleInstanceId>InputModuleInstance</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>Q.m</parameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external forecasting</timeSeriesType>
         <timeStep unit="day"/>
         <relativeViewPeriod unit="day" start="-3" end="0"/>
         <readWriteMode>add originals</readWriteMode>
         <ensembleId>EnsembleA</ensembleId>
      </timeSeriesSet>
   </variable>
   <variable>
      <variableId>output</variableId>
      <timeSeriesSet>
         <moduleInstanceId>InputModuleInstance</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>MemberIndex</parameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external forecasting</timeSeriesType>
         <timeStep unit="day"/>
         <readWriteMode>add originals</readWriteMode>
      </timeSeriesSet>
   </variable>
   <transformation id="ensemble index of max test">
      <statisticsEnsemble>
         <memberIndexOfMax>
            <inputVariable>
               <variableId>input</variableId>
            </inputVariable>
            <outputVariable>
               <variableId>output</variableId>
            </outputVariable>
         </memberIndexOfMax>
      </statisticsEnsemble>
   </transformation>
</transformationModule>

...