Wiki Markup |
---|
{scrollbar} |
Anchor | ||||
---|---|---|---|---|
|
Formula-based Calculation
Formula-based Calculation allows you to operate math, multivariate and neigbourhood functions on one or multiple grids. It also allows you to make queries (using the 'if-then-else' function). In fact all the functions from PCRaster can be used in this modeltype. For a description of the PCRaster functions we advise you to look in the PCRaster Manual.
You can add this modeltype with right click at a composite model or project and select 'Add Model' and the select the Formula Based Function. Learn more about how to add models. To change the name of the model, type a name in the Properties window or in the Project Explorer. Open the window of the model by double clicking on the model in the Project Explorer, both windows look like the figure below. The numbers correspond with the steps to implement the response curve.
User interface for the Fomula-based functions. The numbers correspond with the steps to implement the response curve.
To determine the response curve, the following steps have to be executed:
- Enter a name for the input variable.
- Double click at the field and select a map by browsing or by selecting a map from previous models. You can also use results from previous models by linking the maps in the Project Explorer.
- Name your output map and fill out the equation. Check if the equation is valid (when the equation is not valid an exclamation mark will be given or an error is given in the messages window)
The user interface will then look like the picture below:
Info | ||
---|---|---|
| ||
The following PCRaster functions are often used: '*' '**' or '^' '-' '+' '/' Exp() max() min() If then function: For more information, see the PCRaster Manual. |
HABITAT uses a point '.' as a deliminator.
Note that x-values outside the range of the class division will result in a no-data value. Combining a no-data value with one of the input variables will also result in a no-data value. Therefore, it is very important to always check the range of the class division.