Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
get_lookup_table_value [2011/07/31 17:48]
hermann created
get_lookup_table_value [2016/05/07 18:01] (current)
hermann [Notes]
Line 8: Line 8:
  
 ^ Name ^ Type ^ Description ^ ^ Name ^ Type ^ Description ^
-| Lookup table  | [[ Lookup table Type|Lookup table  ​]]  | Any input map.  | +| Lookup table  | [[Lookup table Type]] ​ | Any lookup table.  | 
-| Key  | [[Double ​Type|Double  ​]]  | Line key.  |+| Key  | [[Real Value Type]] ​ | Row key.  |
  
 ===== Optional Inputs ===== ===== Optional Inputs =====
  
 ^ Name ^ Type ^ Description ^ Default Value ^ ^ Name ^ Type ^ Description ^ Default Value ^
-| Value If Not Found  | [[Double ​Type|Double  ​]]  | Value returned in case the key is not found. ​ | 0.0  |+| Value If Not Found  | [[Real Value Type]] ​ | Value returned in case the key is not found. ​ | None  |
  
 ===== Outputs ===== ===== Outputs =====
  
-^ Name ^ Type ^ Description ^ +^ Name  ^ Type  ^ Description ​ 
-Cell Value  | [[ Double ​Type|Double  ​]]  | Extracted ​value. ​ |+| Value  | [[Real Value Type]] ​ | The value corresponding to the given key.  |
  
 ===== Group ===== ===== Group =====
Line 27: Line 27:
 ===== Notes ===== ===== Notes =====
  
 +This searches for a value associated with a given key. If an exact match is not found, the result will depend on how the input port "Value If Not Found" is defined. If a default value is defined by this port, that value will be returned. Otherwise, the execution will an error and the model execution will be interrupted.
 +
 +It is also possible to search for an approximate match using a [[Calculate Value]], [[Calculate Map]], [[Calculate Categorical Map]] or [[Calculate Lookup Table]]. See the "​Lookup Table Operators"​ description on the [[http://​csr.ufmg.br/​dinamica/​dokuwiki/​doku.php?​id=image_expression_type#​operators|Image Expression Type]] documentation.
 ===== Internal Name =====  ===== Internal Name ===== 
  
 GetLookupTableValue GetLookupTableValue