Input
  • inputVariable ( 2 input time series)
  • weightTime
Options
  • lowerLimit
  • upperLimit
Output
  • indexUsedInputTimeSeries
  • outputVariable
Description

This transformation merges two input time series with weights that are a function of time. there is one or more points in time with weights. Each weight is used for the time for which it is defined. For the times in between, the weights are calculated using linear interpolation. The weight configured for the first point in time is also used for all times before that time. The weight configured for the last point in time is also used for all times after that time. The relative time is used to define the corresponding weight. This time is relative to T0. Weight is specified for the first inputVariable over time. The weight for the second inputVariable is calculated as follows: Weight for inputVariable2 = 1 - weight for inputVariable1.

Optional lower limit above which these coefficients are valid. Lower limit is inclusive. If no lower limit specified, then valid for all values below upper limit. Optional upper limit below which these coefficients are valid. Upper limit is exclusive. If no upper limit specified, then valid for all values above lower limit.

 

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">
	<!--Input time series-->
	<variable>
		<variableId>P_6_1</variableId>
		<timeSeriesSet>
			<moduleInstanceId>HuangChuanRain6to1</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>P.obs</parameterId>
			<locationSetId>RainGauges_HuangChuan</locationSetId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="hour" multiplier="1"/>
			<!--<aggregationPeriod unit="hour" start="-6" end="0"/>-->
			<relativeViewPeriod unit="day" start="-16" end="0"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<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="1"/>
			<relativeViewPeriod unit="day" start="-16" end="0"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<!--Output time series after disaggregration-->
	<variable>
		<variableId>Qout</variableId>
		<timeSeriesSet>
			<moduleInstanceId>HuangChuan_Update_Pre</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.u</parameterId>
			<locationSetId>HydroGauges_HuangChuan</locationSetId>
			<timeSeriesType>simulated historical</timeSeriesType>
			<!--<timeStep unit="nonequidistant"/>-->
			<timeStep unit="hour" multiplier="1"/>
			<relativeViewPeriod unit="day" start="-16" end="0"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
	<!--Transformations-->
	<transformation id="merge_weighted">
		<merge>
			<weighted>
				<inputVariable>
					<variableId>P_6_1</variableId>
					<locationId>50228800</locationId>
				</inputVariable>
				<inputVariable>
					<variableId>Q_out</variableId>
				</inputVariable>
				<coefficientSet>
					<weightTime>
						<relativeTime unit="day" value="3"/>
						<weight>0.8</weight>
					</weightTime>
					<weightTime>
						<relativeTime unit="day" value="10"/>
						<weight>0.2</weight>
					</weightTime>
				</coefficientSet>
				<outputVariable>
					<variableId>Qout</variableId>
				</outputVariable>
			</weighted>
		</merge>
	</transformation>
 </transformationModule>

(figures 1 and 3 are input time series, figure 2 is the output time series)

  • No labels