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

Compare with Current View Page History

Version 1 Current »

This transformation can be used to extract a normal scalar time series from a scalar map time series set. Input and output location and ensemble ID should be the same.

In the configuration minDomainValue and maxDomainValue need to be defined. These values determine which domain axis values should be ued in the extracted time series. If you only wish to extract one value, use the same setting for min and max. You can also define a range, in this case the output amount will be the average of the values that belong to the different domain axis values. 

MinvalueInclusive and MaxValueInclusive are optional fields that can be used when defining a range. Default value is true.

Example config:

<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>SelectionScalarTimeSeriesFromScalarMapFunction</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>H.obs</parameterId>
         <domainParameterId>H.obs</domainParameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="day"></timeStep>
         <relativeViewPeriod unit="day" start="-1" end="10"/>
         <readWriteMode>add originals</readWriteMode>
      </timeSeriesSet>
   </variable>
   <variable>
      <variableId>output</variableId>
      <timeSeriesSet>
         <moduleInstanceId>SelectionScalarTimeSeriesFromScalarMapFunction</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>H.obs</parameterId>
         <locationId>H-2001</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="day"></timeStep>
         <relativeViewPeriod unit="day" start="-1" end="10"/>
         <readWriteMode>add originals</readWriteMode>
      </timeSeriesSet>
   </variable>
   <transformation id="SelectionScalarTimeSeriesFromScalarMapFunction">
      <selection>
         <selectionScalarTimeSeriesFromScalarMap>
            <input>
               <variableId>input</variableId>
            </input>
            <output>
               <variableId>output</variableId>
            </output>
            <minDomainValue>500</minDomainValue>
            <maxDomainValue>500</maxDomainValue>
			<minValueInclusive>true</minValueInclusive>
			<maxValueInclusive>true</maxValueInclusive>
         </selectionScalarTimeSeriesFromScalarMap>
      </selection>
   </transformation>
</transformationModule>


  • No labels