This transformation has two input time series. The first one contains the reference times and the other one the values. The transformation will for each time step in the reference time series try to find the closest value in the time series with values. That value will be written to the time step from the reference time series in the output time series. Each value from the time series with values will only be written once to the output time series. If for multiple reference times the same time/value pair from the value time series are the closest the value will be written to the closest reference time only and the other reference times will not be written to the output time series.
<variable>
<variableId>inputVariable</variableId>
<timeSeriesSet>
<moduleInstanceId>SampleNonEquidistantSingleValueTest</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>Q.m</parameterId>
<locationId>H-2001</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="nonequidistant"/>
<relativeViewPeriod unit="day" start="0" end="5"/>
<readWriteMode>read complete forecast</readWriteMode>
</timeSeriesSet>
</variable>
<variable>
<variableId>timeReferenceInputVariable</variableId>
<timeSeriesSet>
<moduleInstanceId>SampleNonEquidistantSingleValueTest</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>Q.sim</parameterId>
<locationId>H-2001</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="nonequidistant"/>
<relativeViewPeriod unit="day" start="0" end="5"/>
<readWriteMode>read complete forecast</readWriteMode>
</timeSeriesSet>
</variable>
<variable>
<variableId>output</variableId>
<timeSeriesSet>
<moduleInstanceId>SampleNonEquidistantSingleValueTest</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.updated</parameterId>
<locationId>H-2001</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="nonequidistant"/>
<relativeViewPeriod unit="day" start="0" end="5"/>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</variable>
<transformation id="test">
<sample>
<nonEquidistantSingleValue>
<inputVariable>
<variableId>inputVariable</variableId>
</inputVariable>
<timeReferenceInputVariable>
<variableId>timeReferenceInputVariable</variableId>
</timeReferenceInputVariable>
<outputVariable>
<variableId>output</variableId>
</outputVariable>
</nonEquidistantSingleValue>
</sample>
</transformation>
</transformationModule> |