Description:

recessionPattern will repeat the pattern in the history period with recession each repeat. First, the values listed in the history period are stored as historic amounts. Then starting at T0 for the duration in 'length', the following is repeated: all historic values are copied to the output variable for the amount timesteps present in the historie period, after which the historic values are multiplied by the resessionFactor. Example: length = 5 hour, historie = 2 hour, factor = 0.5, input = [3,5,3,(t0)4]. After running this transformation it would result in [(t0)5 ,3 ,2.5 ,1.5 ,1.25]. Set relativeViewPeriod to [start = -historie, end = length]

 

Configuration example

	<variable>
		<variableId>Q_in</variableId>
		<timeSeriesSet>
			<moduleInstanceId>XAJ_HuangChuan_Update_2h</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.u</parameterId>
			<locationSetId>HydroGauges_HuangChuan</locationSetId>
			<timeSeriesType>simulated historical</timeSeriesType>
			<timeStep unit="hour" multiplier="2"/>
			<relativeViewPeriod unit="hour" start="-5" end="10"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<variable>
		<variableId>Q_out</variableId>
		<timeSeriesSet>
			<moduleInstanceId>test</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.u</parameterId>
			<locationSetId>HydroGauges_HuangChuan</locationSetId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="hour" multiplier="2"/>
			<relativeViewPeriod unit="hour" start="-5" end="10"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<transformation id="generation">
		<generation>
			<recessionPattern>
				<inputVariable>
					<variableId>Q_in</variableId>
				</inputVariable>
				<coefficientSet>
					<duration unit="hour" multiplier="10"/>
					<matchingPeriod unit="hour" multiplier="6"/>
					<recessionFactor>0.2</recessionFactor>
				</coefficientSet>
				<outputVariable>
					<variableId>Q_out</variableId>
				</outputVariable>
			</recessionPattern>
		</generation>
	</transformation>

  • No labels