# Combo Overlay

The combo overlay is a grid overlay which can combine up to three grid overlays with boolean operators and use these overlays as input arguments functions and operators. The list of available functions and operators is given in the chapter below. Combo overlays can also take other combo overlays as input. Another powerful combination is the use of combo overlays with average overlays (with or without an average distance).

## Operators

In the table below are the operators displayed that are supported by the combo overlay. The term argument refers to a grid overlay configured as input, a numerical value or a global name.

Name | Arguments | Type | Displays |
---|---|---|---|

SIN | Single | Function | Sine function |

COS | Single | Function | Cosine function |

TAN | Single | Function | Tangent function |

ASIN | Single | Function | Arc sine function |

ACOS | Single | Function | Arc cosine function |

ATAN | Single | Function | Arc tangent function |

ROUND | Single | Function | Round function |

FLOOR | Single | Function | Floor function |

CEIL | Single | Function | Ceil function |

ABS | Single | Function | Absolute function |

EXP | Single | Function | Exponential function |

LN | Single | Function | The natural logarithm (base e) function |

LOG | Single | Function | The natural logarithm (base 10) function |

SQRT | Single | Function | The square root function |

RANDOM | Single | Function | The random function, which returns a number greater than or equal to 0.0 and less than the provided argument |

ADD | Multi | Operator | Add one or more argument |

MULT | Multi | Operator | Multiply one or more arguments |

SUB | Multi | Operator | Subtract one or more arguments from the first argument |

DIV | Multi | Operator | Divide the first argument with one or more other arguments |

MIN | Multi | Function | Returns the smallest of the provided arguments. That is, the result is the argument closest to negative infinity. |

MAX | Multi | Function | Returns the largest of the provided arguments. That is, the result is the argument closest to positive infinity. |

POW | Multi | Function | Raises the first argument to the power of the consecutive arguments. For example 2 to the power 3 to the power 4. |

OR | Multi | Boolean | Returns 1.0 if any argument is not equal to 0.0. |

AND | Multi | Boolean | Returns 1.0 if all arguments are not equal to 0.0. |

GTE | Pair | Boolean | Returns 1.0 if the first argument is larger than or equal to the second argument, else returns 0.0. |

GT | Pair | Boolean | Returns 1.0 if the first argument is larger than the second argument, else returns 0.0. |

LTE | Pair | Boolean | Returns 1.0 if the first argument is smaller than or equal to the second argument, else returns 0.0. |

LT | Pair | Boolean | Returns 1.0 if the first argument is smaller than the second argument, else returns 0.0. |

NEQ | Pair | Boolean | Returns 1.0 if the first argument is not equal to the second argument, else returns 0.0. |

EQ | Pair | Boolean | Returns 1.0 if the first argument is equal to second argument, else returns 0.0. |

## Input overlays and timeframes

- Up to three overlays can be configured as input for the combo overlay. They are referenced as A, B and C.
- To query a specific timeframe add its number. E.g. A2 queries timeframe 2 from Input Overlay A.
- To query multiple timeframes add start:end numbers. E.g. A1:5 is identical to "A1 A2 A3 A4 A5".
- When selecting an overlay as just "A" the last timeframe is selected by default
- You can use Globals in a formula

## How-to's

- How to add and remove an Overlay
- How to edit a Combo Overlay's formula
- How to edit an overlay legend
- How to add and remove an Attribute

## Examples

- Combo Overlay with average overlays
- Combo Overlay with masking
- Combo Overlay with distance filtering