You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

This statisticsEnsemble transformation will compute the 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 index of the ensemble time series with the max value is calculated 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


Statistics 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>


  • No labels