Description:

recessionMean Will repeat the mean value defined in the history period with recession each repeat. First, the mean for the values listed in the history period is calculated. Then starting at T0 for the duration in 'length', the following is repeated: the mean value is written to the output variable for the same value of timesteps present in the historie period, after which the mean is 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)4, 4, 2, 2, 1]. 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>
			<recessionMean>
				<inputVariable>
					<variableId>Q_in</variableId>
				</inputVariable>
				<coefficientSet>
					<duration unit="hour" multiplier="10"/>
					<matchingPeriod unit="hour" multiplier="6"/>
					<recessionFactor>0.2</recessionFactor>
					<offset unit="day" value="0"/>
				</coefficientSet>
				<outputVariable>
					<variableId>Q_out</variableId>
				</outputVariable>
			</recessionMean>
		</generation>
	</transformation>

  • No labels