Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

  • inputVariable, the time series which has to shift a certain number of time steps
Options

direction: Direction can be "forward" or "backward". This can also be a reference to a location attribute between '@' signs. The referenced location attribute must contain a valid direction.

numberOfTimeSteps: Integer number of time steps to shift input time series. This can also be a reference to a location attribute between '@' signs. The referenced location attribute must contain an integer.

Output
  • outputVariable, the shifted time series.

...

The option numberOfTimeSteps defines the number of time steps the transformation has to shift. A positive value will shift the time series in the specified direction ("forward" shifts to the future and "backward" shifts to the past, default is "backward"). A negative value will shift the time series in the opposite direction (as opposed to the specified direction).

Configuration examples

In the shown following example the output input time series shiftedInput will be shifted backwards 1 time steps step to create the input time series input

Configuration example

output time series.

Code Block

<transformation id="TimeShiftConstant">
	<timeShift>
		<constant>
			<inputVariable>
				<variableId>input</variableId>
			</inputVariable>
			<direction>backward</direction>
			<numberOfTimeSteps>1</numberOfTimeSteps>
			<outputVariable>
				<variableId>shiftedInput</variableId>
			</outputVariable>
		</constant>
	</timeShift>
</transformation>

In the following example direction and numberOfTimeSteps refer to location attributes of locations in the locationSet of the output variable. So the amount of shift can be different for different output locations.

Code Block

<transformation id="TimeShiftConstantWithLocationAttributes">
	<timeShift>
		<constant>
			<inputVariable>
				<variableId>input</variableId>
			</inputVariable>
			<direction>@direction@</direction>
			<numberOfTimeSteps>@nr_steps@</numberOfTimeSteps>
			<outputVariable>
				<variableId>output</variableId>
			</outputVariable>
		</constant>
	</timeShift>
</transformation>

...