rubem.validation.lookup_tables.check_lookup_tables
- check_lookup_tables(tables, *, lai_max_from_table=True)[source]
-
Check the content of the model’s lookup tables.
Blocking: unreadable tables;
dg,Zr,Tsat,manningand the rainy days must be positive;Tcc > Twfor every class, with the same classes in both tables; the rainy days table must cover the twelve months; thelai_maxtable, when the run reads it, must be positive, at most the admissible maximum of thelai_maxconstant and keyed by the classes of the vegetated area fraction table. Warning:kc_max < kc_minfor a class, and the area fractionsa_i,a_o,a_sanda_vof a land use class not adding up to one.- Parameters:
-
tables – An
InputTableFiles.lai_max_from_table (
bool) – Whether the run reads thelai_maxtable; its content is checked only then (the file must exist either way, like every table given).
- Return type:
-
list[Problem] - Returns:
-
The problems found, blocking ones flagged.