Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
get_lookup_table_value [2016/05/07 17:38] hermann [Outputs] |
get_lookup_table_value [2026/08/28 03:20] (current) hermann Sync from local documentation review |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Get Lookup Table Value ====== | + | ====== Get Lookup Table Value ====== |
| ===== Description ===== | ===== Description ===== | ||
| - | This functor retrieves a value from a lookup table at a specified key. | + | Retrieves the value corresponding to a specified key from a lookup table. |
| ===== Inputs ===== | ===== Inputs ===== | ||
| - | ^ Name ^ Type ^ Description ^ | + | ^ Name ^ Type ^ Description ^ |
| - | | Lookup table | [[Lookup table Type]] | Any lookup table. | | + | | Table | [[Lookup Table Type]] | Lookup table to search. | |
| - | | Key | [[Real Value Type]] | Row key. | | + | | Key | [[Real Value Type]] | Key to search for in Table. | |
| ===== Optional Inputs ===== | ===== Optional Inputs ===== | ||
| - | ^ Name ^ Type ^ Description ^ Default Value ^ | + | ^ Name ^ Type ^ Description ^ Default Value ^ |
| - | | Value If Not Found | [[Real Value Type]] | Value returned in case the key is not found. | None | | + | | Value If Not Found | [[Real Value Type]] | Value returned if Key is not present in Table. If not provided, an error is reported when the key is not found. This is an advanced port. | .none | |
| ===== Outputs ===== | ===== Outputs ===== | ||
| ^ Name ^ Type ^ Description ^ | ^ Name ^ Type ^ Description ^ | ||
| - | | Value | [[Real Value Type]] | The value corresponding to the given key. | | + | | Value | [[Real Value Type]] | Value corresponding to the given key. | |
| ===== Group ===== | ===== Group ===== | ||
| - | [[Functor List#Table | Table]] | + | [[Functor List#Lookup Table | Lookup Table]] |
| ===== Notes ===== | ===== Notes ===== | ||
| - | ===== Internal Name ===== | + | If Key is not found in Table and Value If Not Found is not provided, this functor reports an error, interrupting the model's execution. |
| + | |||
| + | To find an approximate match, or to interpolate between neighboring keys, instead use a [[Calculate Value]], [[Calculate Map]], [[Calculate Categorical Map]], or [[Calculate Lookup Table]] with one of the Lookup Table Operators described in the Image Expression Type documentation. | ||
| + | |||
| + | ===== Internal Name ===== | ||
| GetLookupTableValue | GetLookupTableValue | ||