select_ecoCode
selects one or more eco-codes from list
Contents
created 2018/05/31 by Bas Kooijman
Syntax
[code, s, v] = select_ecoCode
Description
Select eco-codes from a list of all possibilities. First select a type, then one or more codes. Press the Ctrl-key to add code selections in the list of codes or the Shift-key to select a whole group of codes. The type of codes in the output is coded as
C climate E ecozone H habitat E embryo environment M migration/torpor F food G gender R reproduction
Input:
- s: optional vector of indices of codes in the list for pre-selection. The first element refers to the type index, the others to codes within the type
Output:
- code: cell-string with names of codes; the type of code is prepended before "."
- s: vector of indices of codes in the list. The first element refers to the type index, the others to codes within the type
- v: 0 when no selection is made, or 1 when a selection is made
Remarks
uses global eco_types for codes and labels; assign eco_types with get_eco_types. Outputs code and s are empty, and v = 0, if cancel has been selected in list of types. If cancel is selected in the list of codes for a type, selection from the list of types is presented again.
Example of use
select_ecoCode