Some FST-based modules like Lintul5 need irrigation and fertilizer as interpolation tables, where x-values hold the DOY and y-values hold the amount.
When the DOY is not known beforehand, the interpolation table has to be created at simulation runtime.
The sim component takes daily inputs iXValue and iYValue and outputs both as a DOUBLEARRAY ValueTable , first array element holding iXValue, second holding yValue.
iXValue | iYValue |
If cInterpolationType is set to true, then the output ValueTable has six elements:
iXValue - cDeltaX | 0 | iXValue | iYValue | iXValue + cDeltaX | 0 |
If cOnlyY is set to true, then the output ValueTable has only one element
iYValue |
In this case, you can use the module to pass DOUBLE values from one component / resource to a component that expects an DOUBLEARRAY. For each of such a conversion, you need an instance of this sim component in your solution.
Content Type | Name | Description | Data Type | Unit | Min Value | Max Value | Default Value |
---|---|---|---|---|---|---|---|
constant | cDeltaX | distance of 0-valued points to x | DOUBLE | - | - | 1.0 | |
constant | cInterpolationType | if y-values at x-cDeltaX and x+cDeltaY should be set to 0. | BOOLEAN | - | - | false | |
constant | cOnlyY | Output y-value only as an array with one element | BOOLEAN | - | - | false | |
input | iXValue | x value, not required, if cOnlyY is set to true | DOUBLE | - | - | 0.0 | |
input | iYValue | y value, is always required | DOUBLE | - | - | 0.0 | |
out | ValueTable | Array with x and y values, possibly with 0 before and after x | DOUBLEARRAY | - | - | 0.0 0.0 |