Table

Input
  • stage
Coefficient set
  • authoriseExtrapolation
  • interpolationType
  • minimumStage
  • tableRecord
Output
  • discharge
Description

This transformation will transform a stage value to a discharge value by doing a table lookup. The coefficient set used in this transformation has an option type. The type will indicate if the lookup table can be used in a discharge to stage-transformation, a stage to discharge-transformation or both. If a coefficient set which is defined as a flow_to_level type is used in this type of transformation an error will be issued. The authoriseExtrapolation option will enable/disable the extrapolation option. The interpolationType can be used the configure the type of interpolation used.

The available options are:

  • linear
  • logarithmic

When the option logarithmic is selected the calculation method used is almost the same the method used when the linear option is selected. The only difference is that the calculation is done with the natural logarithm of the lookup-value and with the natural logarithm of the table values.

The minimum stage value allow configurators to enter a minimum stage value. Stage values lower than the minimum value will return the lowest discharge value in the lookup table.

The table record is the actual lookup table. Each tableRecord is a single en

try in the lookup-table with a stage and a discharge value. Note that it is also possible to define an offset for each tableRecord. This offset

will be applied as a positive offset to the stage value. Offsets will apply to the tableRecord in which it is defined and the records above this record until a new offset is defined.

Configuration example
<transformation id="stageToDischarge">
	<stageDischarge>
		<table>
			<stage>
				<variableId>input</variableId>
			</stage>
			<coefficientSet>
				<type>level_to_flow</type>
				<authoriseExtrapolation>true</authoriseExtrapolation>
				<interpolationType>linear</interpolationType>
				<tableRecord stage="0.433" discharge="0"/>
				<tableRecord stage="0.457" discharge="0.0595"/>
				<tableRecord stage="0.488" discharge="0.190"/>
				<tableRecord stage="0.610" discharge="1.84"/>
				<tableRecord stage="0.686" discharge="3.85"/>
				<tableRecord stage="0.762" discharge="6.71"/>
				<tableRecord stage="0.914" discharge="14.9"/>
				<tableRecord stage="4.88" discharge="306"/>
				<tableRecord stage="4.95" discharge="340"/>
				<tableRecord stage="5.03" discharge="377"/>
				<tableRecord stage="5.09" discharge="408"/>
				<tableRecord stage="5.11" discharge="419"/>
			</coefficientSet>
			<discharge>
				<variableId>output</variableId>
			</discharge>
		</table>
	</stageDischarge>
</transformation>
  • No labels