rubem.validation.lookup_tables.read_lookup_table

read_lookup_table(path)[source]

Return the (keys, value) rows of a PCRaster lookup table.

Parameters:

path – The table file.

Raises:

LookupTableError – On an empty table, a row without a value, a row with more than one key column, a value or key that is neither a number nor an interval, or an interval key without a numeric bound.

Return type:

list[tuple[tuple[str, ...], float]]