Water yield error:lulc_veg

InVEST-Hydropower-Water-Yield-log-2021-06-18–10_25_37.txt (4.2 KB)
I cannot understand where this error come from.Please help me.

Hi @fiona -

It looks like the model is having trouble reading your biophysical table. The error KeyError: ‘lulc_veg’ means that it cannot find the column named “lulc_veg”, which is required by the model. Looking at this line of the logfile:

2021-06-18 10:25:38,149 hydropower_water_yield.execute(405) DEBUG bio_lucodes {-3.4028230607370965e+38, ‘7锛�0锛�0.355’, ‘1锛�7000锛�0.613’, ‘6锛�0锛�1’, ‘5锛�0锛�0.804’, ‘2锛�3000锛�0.601’, ‘4锛�2000锛�0.683’, ‘3锛�1700锛�0.591’}

Makes me wonder if the values in your land cover map and/or biophysical table are using characters that the model unfortunately does not support. Please look at the User Guide Data Needs section, and the sample data provided with the models, to see how the columns need to be named.

Also, make sure that the Values in the land cover map are numeric, and that every land cover Value has a corresponding entry in the biophysical table.

~ Stacie

2 Likes

Thank you very much.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.