Versions Compared

Key

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

...

NextTimeStep

The first input value to be found before each (output) timestep is stored in the output timeserie.

 

 

Block

The first input value to be found after each (output) timestep is stored in the output timeserie, and repeated until a new value is found.

 

 

Linear

The value of each output timestep is calculated, by interpolating the input values just before and after the output timestep. Essentially, the value is found at the point where the line connecting these values, crosses the timestep.

 

LinearOrClosest

This method is a variation on the previous method. For every output timestep the method will search for input values in a searchwindow of 1 timestep-range before, and 1 timestep range after the output timestep. In this example, that means that for output timestep 02-01-2014 00:00 the method will look for a value in the searchwindow 01-01-2014 00:00 until 02-01-2014 00:00, and for one value in the searchwindow 02-01-2014 00:00  until 03-01-2014 00:00.

...

 

 

In the image below the results from both methods are depicted.

 

 

Configuration

A basic configuration of the function is described below.

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<transformationModule version="1.0" xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/transformationModule.xsd">
	<!--Input time series-->
	<variable>
		<variableId>Q_in</variableId>
		<timeSeriesSet>
			<moduleInstanceId>ImportDatabase</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.obs</parameterId>
			<locationSetId>HydroGauges_HuangChuan</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<relativeViewPeriod unit="day" start="-16" end="0" startOverrulable="true"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<!--Output time series-->
	<variable>
		<variableId>Q_out</variableId>
		<timeSeriesSet>
			<moduleInstanceId>HuangChuan_Update_Pre</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.obs</parameterId>
			<locationSetId>HydroGauges_HuangChuan</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="hour" multiplier="6"/>
			<relativeViewPeriod unit="day" start="-16" end="0" startOverrulable="true"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<!--Transformations-->
	<transformation id="nonequidistant to equidistant">
		<sample>
			<nonEquidistant>
				<nonEquidistantInputVariable>
					<variableId>Q_in</variableId>
				</nonEquidistantInputVariable>
				<interpolationType>linear</interpolationType>
				<outputVariable>
					<variableId>Q_out</variableId>
				</outputVariable>
			</nonEquidistant>
		</sample>
	</transformation>
</transformationModule>

Save

Save

Save

Save

Save