Description
This transformation will find for each peak time from inputPeaksVariable a maximum value from inputVariable. The maximum value is searched in a period configured with a time window.
Input
- inputVariable
- inputPeaksVarialbe
timeWindow / timeWindowInWholeDays
timeWindow : the maximum will be searched in this period : "time of the peak - timeWindow" up to and including "time of the peak + timeWindow"
timeWindowInWholeDays: the maximum will be searched in this period : "day of the peak - timeWindowInWholeDays" up to and including "day of the peak + timeWindowInWholeDays"
Options
- maximumAtPeakTime
- valueDifference
- timeDifference
maximumAtPeakTime: Nonequidistant series with maximum values found. The maximum values are stored at peak times.
valueDifference: Nonequidistant series with differences between the input peaks and the maximum found for the peaks. The value difference is stored at peak time
timeDifference: Nonequidistant series with differences between the input peak times and the times of the found maximum. The time difference is stored at peak time. If 'timeWindow' is used, the values are stored in millis. If 'timeWindowInWholeDays' is use the values are stored in whole days.
Output
maximumAtActualTime
Nonequidistant series with maximum values found. The maximum values are stored at actual time of the max value
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>Q_in</variableId> <timeSeriesSet> <moduleInstanceId>ImportDatabase</moduleInstanceId> <valueType>scalar</valueType> <parameterId>Q.obs</parameterId> <locationSetId>HydroGauges_HuangChuan</locationSetId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="nonequidistant"/> <relativeViewPeriod unit="day" start="-16" end="0" startOverrulable="true"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </variable> <!--Output time series--> <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="nonequidistant"/> <relativeViewPeriod unit="day" start="-16" end="0" startOverrulable="true"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </variable> <!--Transformations--> <transformation id="maximumAroundPeak"> <selection> <maximumAroundPeak> <inputVariable> <variableId>Q_in</variableId> </inputVariable> <inputPeaksVariable> <variableId>Q_in</variableId> </inputPeaksVariable> <timeWindow unit="hour" multiplier="2"/> <maximumAtActualTime> <variableId>Q_out</variableId> </maximumAtActualTime> </maximumAroundPeak> </selection> </transformation> </transformationModule>