Input

  • coefficientSet

Output

  • outputVariable

Description

This transformation does an even distribution of the totalAmount over the forecastPeriod period starting after the delay. The delay is a period between T0 and the start of the forecastPeriod for which 0 units defined in the output variable is generated. Example: timeLength = 1 hour, totalAmount = 10, delay = 2 hours. After running this transformation, the result will be [0, 5, 5]. Set relativeViewPeriod to [start = 0, end = delay + forecastPeriod]

Configuration example

 

<?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">
	<!--Output time series-->
	<variable>
		<variableId>Qout</variableId>
		<timeSeriesSet>
			<moduleInstanceId>HuangChuan_Update_Pre</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.u</parameterId>
			<locationSetId>HydroGauges_HuangChuan</locationSetId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="hour" multiplier="1"/>
			<relativeViewPeriod unit="day" start="-16" end="2" startOverrulable="true"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<!--Transformations-->
	<transformation id="generation">
		<generation>
			<constant>
				<coefficientSetId>HuangChuanQ</coefficientSetId>
				<coefficientSetFile>generation</coefficientSetFile>
				<outputVariable>
					<variableId>Qout</variableId>
				</outputVariable>
			</constant>
		</generation>
	</transformation>
</transformationModule>

using the following coefficientSetFile:

<?xml version="1.0" encoding="UTF-8"?>
<transformationCoefficientSets version="1.0" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/transformationCoefficientSets.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews">
	<coefficientSet id="HuangChuanQ">
		<locationCoefficientSet>
			<location>
				<locationId>50203100</locationId>
			</location>
			<generation>
				<constant>
					<duration unit="day" multiplier="2"/>
					<totalSum>1000</totalSum>
					<delay unit="hour" multiplier="4"/>
				</constant>
			</generation>
		</locationCoefficientSet>
	</coefficientSet>
</transformationCoefficientSets>

  • No labels