2.2.7. The Function element¶
..A Function element information item is a child of the ModelUnit element.
Function element is related to a mathematical function or service that can be called into model algorithm.
<ModelUnit modelid=" " timestep=" " name=" " version =" ">
...
<Function name=" " language=" " filename=" "/>
...
</ModelUnit>
A
Functionelement MUST contain the following attriutes:A
nameattribute
A
languageattribute
A
typeattribute
The value of A
typeattribute MUST be eitherinternalorexternalCrop2ML provides a library of well-known mathematical functions such as fibonacci, interpolation.
If the function exists in this library, the value of code:type attribute is
internal.A
Functionelement MAY contain adescriptionattriute
A function can also be used for model adaptation such as temporal aggregation, unit conversion to link two models without changing.
In this case, it won’t be declared as a Function but as a Crop2ML model with no physiology meaning.