You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

What

nameofinstance.xml

Description

Configuration for the new version of the transformation module

schema location

http://fews.wldelft.nl/schemas/version1.0/transformationModule.xsd

Entry in ModuleDescriptors

<moduleDescriptor id="TransformationModule">
<description>Transformation Module</description>
<className>nl.wldelft.fews.system.plugin.transformationmodule.TransformationModule</className>
</moduleDescriptor>

Transformation Module Configuration (New Version)

The Transformation module is a general-purpose module that allows for generic transformation and manipulation of time series data. The module may be configured to provide for simple arithmetic manipulation, time interval transformation, shifting the series in time etc, as well as for applying specific hydro-meteorological transformations such as stage discharge relationships etc.

A new version of the FEWS Transformation Module is currently under construction. The new version is much more easy to configure than the old version. The new version uses a new schema for configuration, which is explained below (TODO). Currently only a few of the old transformations are available in the new transformation module. All of the old transformations will be made available in the new module, as well as several new transformations.

List of transformations

This list will be continuously updated to show the current status of the transformations available in the new transformation module.

Group

Transformation

Code completed?

Test completed?

Comment

adjust

stage

(tick)

(error)

New feature

adjust

q

(tick)

(error)

New feature

adjust

qUsingObservedInstantaneousDischarge

(tick)

(error)

New feature

adjust

qUsingMeanDailyDischarge

(tick)

(error)

New feature

adjust

tide

(tick)

(error)

New feature

aggregation

instantaneous

(tick)

(error)

 

aggregation

accumulative

(tick)

(error)

 

aggregation

instantaneousToMean

(tick)

(error)

 

aggregation

meanToMean

(tick)

(error)

 

aggregation

seasonal

(error)

(error)

 

altitude

zero degree altitude

(tick)

(error)

 

altitude

elevation lapse

(error)

(error)

 

conditional

simple

(error)

(error)

This allows definition of a single rule group (from the current lookup module)

conditional

multiple

(tick)

(error)

This allows definition of multiple rule groups, combined with logical operators (from the current lookup module)

conversion

datum

(error)

(error)

This includes an enumeration option called direction local/global

disaggregation

instantaneous

(tick)

(error)

 

disaggregation

accumulative

(tick)

(error)

 

disaggregation

meanToInstantaneous

(tick)

(error)

 

disaggregation

meanToMean

(tick)

(error)

 

disaggregation

weights

(tick)

(error)

 

discharge stage

power

(tick)

(error)

Uses the same coefficient sets as stage discharge power.

discharge stage

table

(tick)

(error)

Uses the same coefficient sets (for table entries) as stage discharge table.

evaporation

penmanNorthEast

(error)

(error)

should be renamed to the specific type of penman equation

filter

moving window

(error)

(error)

contains options average/maximum/minimum

filter

block

(error)

(error)

contains options average/maximum/minimum

interpolation serial

linear

(tick)

(error)

 

interpolation serial

block

(tick)

(error)

 

interpolation serial

default

(tick)

(error)

 

interpolation serial

extrapolate constant

(tick)

(error)

Extrapolates by filling the gap between the start of the input time series and the first data value or by filling the gap between the last data value and the end of the input time series or by filling both of these gaps.

interpolation serial

extrapolate base

(tick)

(error)

Extrapolates by adding future values that start at the last data value and linearly approach a given base value.

interpolation serial

extrapolate exponential

(tick)

(error)

New feature: Extrapolates by adding future values that start at the last data value and exponentially approach a given base value.

interpolation serial

extrapolate window

(error)

(error)

Should contain option on how to extrapolate: persitence/trend/mean trend/persistence trend/accumulation/moving average.

interpolation spatial

average

(tick)

(error)

 

interpolation spatial

closest distance

(tick)

(error)

 

interpolation spatial

inverse distance

(tick)

(error)

 

interpolation spatial

sum

(tick)

(error)

 

interpolation spatial

weighted

(tick)

(error)

This is the old weighted average approach used for rainfall.

interpolation spatial

weightedTimesOutputArea

(tick)

(error)

 

interpolation spatial

bilinear

(error)

(error)

 

interpolation spatial

triangulation

(error)

(error)

Used to be called Renka & Cline

interpolation spatial

kriging

(error)

(error)

 

lookup

simple

(tick)

(tick)

from the current lookup module

lookup

multi-dimensional

(tick)

(error)

from the current lookup module

merge

simple

(tick)

(error)

merge data hierarchy

merge

toggle

(tick)

(error)

 

merge

mean

(tick)

(error)

New feature?

merge

synoptic

(error)

(error)

This needs a true false element to indicate if the smaller or the larger quantities prevail (new feature)

merge

forecasts

(error)

(error)

equivalent to sampleForecasts - this is a new feature.

moisture

soil moisture

(tick)

(error)

unit test not yet available

moisture

optical depth

(tick)

(error)

unit test not yet available

precipitation

rainfallEvent

(error)

(error)

writes median value of event (Enumeration of 2 to indicate where to write the data)

precipitation

rainfallEventLength

(error)

(error)

writes length of event (Enumeration of 2 to indicate where to write the data)

precipitation

tipping bucket

(tick)

(error)

 

profile

timeSeries

(error)

(error)

Converts a profile to a time series.

profile

harmonics

(error)

(error)

Converts an input profile consisting of harmonic components (a Fourier series) to a time series.

review

stage

(tick)

(error)

New feature

review

tidal balance

(tick)

(error)

New feature

sample

historical

(error)

(error)

 

sample

forecasts

(error)

(error)

This samples the first n values from a forecast - somewhat similar to the merge-forecast function

sample

equidistant

(tick)

(error)

converts an equidistant series to another equidistant series or to a non-equidistant series

sample

non-equidistant

(tick)

(error)

converts a non-equidistant series to another non-equidistant series or to an equidistant series

selection

peaks

(error)

(error)

 

selection

independent peaks

(error)

(error)

previously called selectWithinHorizontalgaps

selection

lows

(error)

(error)

 

selection

independent lows

(error)

(error)

 

selection

maximum

(tick)

(error)

 

selection

minimum

(tick)

(error)

 

stage discharge

power

(tick)

(error)

Uses the same coefficient sets as discharge stage power.

stage discharge

power backwater

(error)

(error)

Backwater correction (new feature).

stage discharge

power unsteady

(error)

(error)

Unsteady flow (new feature).

stage discharge

parabolic

(error)

(error)

New feature

stage discharge

table

(tick)

(error)

Uses the same coefficient sets (for table entries) as discharge stage table.

statistical

summary

(error)

(error)

Summary statistics act on the ensemble. Options include max/min/mean/quartile/(percentile + value)

statistical

window

(error)

(error)

These are statisicts over a time window - e.g. to define monthly mean temp - may be seasonal

statistical

climatology

(error)

(error)

These are the seasonal stats - used to define e.g. mean monthly temp

structure

general weir fixed height

(tick)

(error)

 

structure

general weir variable height

(tick)

(error)

 

structure

flatV weir

(error)

(error)

Enumeration to indicate simple or crest tapping

structure

flatV weir backwater

(error)

(error)

New feature

structure

crump weir

(error)

(error)

Enumeration to indicate simple or crest tapping

structure

crump weir backwater

(error)

(error)

New feature

structure

pumpFixedDischarge

(tick)

(error)

 

structure

pumpHeadDischargeTable

(tick)

(error)

 

structure

pumpSpeedDischargeTable

(tick)

(error)

 

structure

pumpSpeedHeadDischargeTable

(tick)

(error)

 

time shift

constant

(tick)

(error)

 

time shift

variable

(error)

(error)

 

time shift

length

(error)

(error)

 

user

simple

(tick)

(error)

free format expression

user

periodic

(tick)

(error)

This can be used for periodic output - the range can be defined, e.g 0-1, 0-360 or 0-100

Configuration details (TODO)

When available as configuration on the file system, the name of an XML file for configuring an instance of the transformation module called for example TransformHBV_Inputs may be:

TransformHBV_Inputs 1.00 default.xml

TransformHBV_Inputs

File name for the TransformHBV_Inputs configuration.

1.00

Version number

default

Flag to indicate the version is the default configuration (otherwise omitted).

The configuration for the transformation module consists of two parts: transformation configuration files in the Config/ModuleConfigFiles directory and coefficient set configuration files in the Config/CoefficientSetsFiles directory.

In a transformation configuration file one or more transformations can be configured. See List of transformations for the available types of transformation. Some transformations require coefficient sets in which given coefficients are defined. For a given transformation that requires a coefficient set there are different ways of defining the coefficient set in the configuration. One way is to specify an embedded coefficient set in the transformation configuration itself. Another way is to put a reference in the transformation configuration. This reference consists of the name of a separate coefficient set configuration file and the id of a coefficient set in that file.

Both the transformations and coefficient sets can be configured to be time dependent. This can be used for instance to define a given coefficient value to be 3 from 1 January 2008 to 1 January 2009, and to be 4 from 1 January 2009 onwards. This can be done by defining multiple periodCoefficientSets, each one with a different period, as in the following xml example.

<periodCoefficientSet>
    <period>
        <startDate>2008-01-01T00:00:00Z</startDate>
        <endDate>2009-01-01T00:00:00Z</endDate>
    </period>
    <structure>
        <pumpFixedDischarge>
            <discharge>3</discharge>
        </pumpFixedDischarge>
    </structure>
</periodCoefficientSet>
<periodCoefficientSet>
    <period>
        <validAfterDate>2009-01-01T00:00:00Z</validAfterDate>
    </period>
    <structure>
        <pumpFixedDischarge>
            <discharge>4</discharge>
        </pumpFixedDischarge>
    </structure>
</periodCoefficientSet>

The Z in 2008-01-01T00:00:00Z in the above example means that the time is specified in GMT. To specify the time in a different time zone use e.g. 2008-06-20T11:33:00+05:00 for time zone GMT+05:00. Note: 2008-06-20T11:33:00+05:00 is physically the same time as 2008-06-20T06:33:00Z.


  • No labels