accumulativeReferencePattern

disaggregates data by dividing the values using a pattern of a time series with a smaller time step
Input
  • InputVariable
referencePatternVariable
  • referenceVariable with temporal pattern
Output
  • OutputVariable
Description

This transformation performs a disaggregation on an accumulative input time series. Divides the values of the input time-series by a pattern of a second time series with smaller time interval. The time intervals in the output time-series have the same interval as the referencePatternVariable and are stored at each step.

This function can be used when one rain gauge has daily time intervals and a second rain gauge hourly or 15 minute time intervals. The pattern of the hourly rain gauge is used to disaggregate the daily totals of the input time series.

When this function is used with a locationset and used in a loop, the inputvariable, referencePatternVariable and outputVariable loop over the same locations. It is best to first use an interpolation to find the closest hourly rain gauge from the daily rain gauge and store this as temporary series for the referencePatternVariable.

Configuration example

 

	<variable>
		<variableId>sensors_P_24hObs_EQ</variableId>
		<timeSeriesSet>
			<moduleInstanceId>Process_Rainfall</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>P.obs</parameterId>
			<qualifierId>24h</qualifierId>
			<locationSetId>Sensors_P_24h</locationSetId>
			<timeSeriesType>temporary</timeSeriesType>
			<timeStep id="9am"/>
			<relativeViewPeriod unit="day" start="-4" end="0" startOverrulable="true"/>
			<readWriteMode>read only</readWriteMode>
		</timeSeriesSet>
	</variable>
    <variable>
		<variableId>sensors_P_24hObs_15m_reference</variableId>
		<timeSeriesSet>
			<moduleInstanceId>Process_Rainfall</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>P.obs</parameterId>
			<qualifierId>24h</qualifierId>
			<qualifierId>15m</qualifierId>
			<locationSetId>Sensors_P_24h</locationSetId>
			<timeSeriesType>temporary</timeSeriesType>
			<timeStep unit="minute" multiplier="15"/>
			<relativeViewPeriod unit="day" start="-4" end="0" startOverrulable="true"/>
			<readWriteMode>read only</readWriteMode>
		</timeSeriesSet>
	</variable>
    <variable>
		<variableId>sensors_P_24hObs_15m_pattern</variableId>
		<timeSeriesSet>
			<moduleInstanceId>Process_Rainfall</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>P.obs</parameterId>
			<qualifierId>24h</qualifierId>
			<qualifierId>closest</qualifierId>
			<locationSetId>Sensors_P_24h</locationSetId>
			<timeSeriesType>temporary</timeSeriesType>
			<timeStep unit="minute" multiplier="15"/>
			<relativeViewPeriod unit="day" start="-4" end="0" startOverrulable="true"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</variable>
    <transformation id="Equidistant_P_24hr_15m">
		<disaggregation>
			<accumulativeReferencePattern>
				<inputVariable>
					<variableId>sensors_P_24hObs_EQ</variableId>
				</inputVariable>
				<referencePatternVariable>
					<variableId>sensors_P_24hObs_15m_reference</variableId>
				</referencePatternVariable>
				<outputVariable>
					<variableId>sensors_P_24hObs_15m_pattern</variableId>
				</outputVariable>
			</accumulativeReferencePattern>
		</disaggregation>
	</transformation>
  • No labels