Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

This transformation is used to sample a timeseries of several years into members of an ensemble in the current year. The start year within the input value has to be specified, as well as the beginning of the year if different from Jan 1st. Output variable should be of the same type as input variable.

Configuration

A basic configuration of the function is described below.

<?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>parameter</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="myHistoricalTransformation">
        <sample>
            <historical>
                <inputVariable>
                    <variableId>Q_in</variableId>
                </inputVariable>
                <startYear>1981</startYear>
                <ensembleMemberCount>40</ensembleMemberCount>
                <startWaterYear>--01-01</startWaterYear>
                <outputVariable>
                    <variableId>Q_out</variableId>
                </outputVariable>
            </historical>

        </sample>
    </transformation>
</transformationModule>

...