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

Compare with Current View Page History

« Previous Version 8 Next »

Simple

Input
  • input
Coefficient set
  • interpolationType
  • extrapolationType
  • inputUnit (optional, since 2016.02)
  • outputUnit (optional, since 2016.02)
  • lookupTable
Output
  • output
Description

 The output will be calculated using a simple table lookup with the input value. The output value will be calculated by interpolation or extrapolation in the lookup table. The type of

interpolation can be configured in the coefficient set with the interpolation type option. The options available are:lineair and logarithmic. When the input value is outside the range

of the lookup table the behaviour of the transformation will be determined by the configured extrapolation type. Make sure the input and output values are configured in ascending order.

 The options available are:

  • notAllowed,
  • maxMin,
  • linear

 If the first option, notAllowed, is configured an input value outside the range will return a missing value. The second option will return the minimum value or the maximum value in the lookup table. The third option linear enables the extrapolation for the function.

inputUnit: unit of the input values in the lookup table. When this unit is different from the input parameter unit the input values are converted using the config
units configured in the parameters.xml

ouputUnit: unit of the output values in the lookup table. When this unit is different from the output parameter unit the output values are converted using the config

units configured in the parameters.xml

config example
<transformation id="simpleTableLookup">
	<lookup>
		<simple>
			<input>
				<variableId>H1</variableId>
			</input>
			<coefficientSet>
				<interpolationType>linear</interpolationType>
				<extrapolationType>extrapolate</extrapolationType>
				<inputUnit>m</inputUnit>
				<outputUnit>mm</outputUnit>
				<lookupTable>
					<lookupTableRow input="1.8" output="4000"/>
					<lookupTableRow input="2.0" output="6000"/>
					<lookupTableRow input="2.2" output="8000"/>
					<lookupTableRow input="2.4" output="10000"/>
					<lookupTableRow input="2.6" output="12000"/>
					<lookupTableRow input="2.8" output="14000"/>
					<lookupTableRow input="3.0" output="16000"/>
					<lookupTableRow input="3.2" output="18000"/>
					<lookupTableRow input="3.4" output="20000"/>
					<lookupTableRow input="3.6" output="22000"/>
				</lookupTable>
			</coefficientSet>
			<output>
				<variableId>H2</variableId>
			</output>
		</simple>
	</lookup>
</transformation>
  • No labels