Description

Select a grid ensemble member based on a scalar index.
Use case: Produce a relevant flood map based on the current forecast for e.g. water level. Starting point is a number of pre-computed flood maps for different forecast conditions. In an operational setting, you select the relevant flood map, based on the current forecast (water level, rainfall etc.). 

Input

This selection ensemble member by index transformation takes two inputs. 

Since the input is both a SCALAR and a GRID, the headers cannot be matched based on location id (as the scalar and grid will have different location ids).
Instead of the transformation framework automatically matching input and output (based on identical location id) the transformation matches all possible input headers with the output.
Therefore, the transformation can only be run using a single location (and not a location set).

Output

The output time is determined by the time of the indices input.
The output grid is the grid ensemble member that corresponds to the input index.

Options

Because the time of the output time series is determined by the time of the ensemble member indices, it can happen that the input grids do not have data at the given time. 
Therefore, the transformation has an optional parameter:

Some notes as to behavior
Use case: select a pre-calculated flood map based on a water level forecast

This use case is provided as an example, to inspire your own use and configuration choices.

Preparation steps:

Operational steps:



XML example
<transformation id="ensembleLookup">
      <selection>
         <gridEnsembleMemberByIndex>
            <inputEnsembleIndices>
               <variableId>InputIndex</variableId>
            </inputEnsembleIndices>
            <inputTimeSeriesGrids>
               <variableId>InputGrids</variableId>
            </inputTimeSeriesGrids>
            <output>
               <variableId>Output</variableId>
            </output>
            <matchInputAndOutputGridTimes>false</matchInputAndOutputGridTimes>
         </gridEnsembleMemberByIndex>
      </selection>
   </transformation>
</transformationModule>