How to combine results of multiple Overlays as timeframes in a Combo Overlay

From Tygron Support wiki
Revision as of 11:29, 17 June 2022 by Rudolf@tygron.nl (talk | contribs) (Created page with "{{stub}} The timeframes functionality of Grid Overlays is a user-friendly way to show multiple results in succession, and most commonly used to show multiple results...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This article is a stub.

The timeframes functionality of Grid Overlays is a user-friendly way to show multiple results in succession, and most commonly used to show multiple results which follow one another across time. This functionality is built-in for time-based calculation models such as the Heat Stress Overlay or the Water Overlay, but in these cases the results per timeframe are all the result of the same calculation. Leveraging this functionality to combine the results of multiple different Grid Overlays takes a bit more setup, but is doable through a specific approach.

Formula

The formula used in the Combo Overlay will consist of individual checks of which Grid Overlay's results to add to which timeframe. The formula for an individual check will be structured as follows:

MUL( EQ(GLOBAL_TIMEFRAMES_FOR_OVERLAY,0), A )

In which "0" is the intended timeframe, A is the intended Grid Overlay, and TIMEFRAMES_FOR_OVERLAY is a Global which lists timeframes.

Multiple of these entries can be combined. For example, to combine the results of 3 Grid Overlays together, the formulas for individual checks can simply be added together:

MUL( EQ(GLOBAL_TIMEFRAMES_FOR_OVERLAY,0), A ),  EQ(GLOBAL_TIMEFRAMES_FOR_OVERLAY,1), B ),  EQ(GLOBAL_TIMEFRAMES_FOR_OVERLAY,2), C )

In which each individual check will either output the Grid Overlay, if it's the correct timeframe for the Grid Overlay, or 0. This will result in the timeframes computing as:

  • Timeframe 0: A + 0 + 0
  • Timeframe 1: 0 + B + 0
  • Timeframe 2: 0 + 0 + C

Steps

Editor → Current Situation (Ribbon tab) → Overlays (Ribbon bar)

{{editor steps|title=combine results of multiple Overlays as timeframes in a Combo Overlay | Have Grid Overlays present in the Project, the results of which should be combined in a Combo Overlay. | Add a Global to the Project, with a global array value of "0 1 2 3" etc. The amount of numbers should match the amount of intended timeframes.
(e.g. if there are 3 intended timeframes, set the value of the Global to "0 1 2". | Set the name of the Global to something recognizable, such as "TIMEFRAMES_FOR_OVERLAY" | Add a Combo Overlay. Set the Grid Overlay intended for timeframe 0 to input A, the [[Grid Overlay intended for timeframe 1 to input B, etc. | | }}

Notes