I ran the Annual Water Yield model but at the first this error:KeyError: ‘Kc’
InVEST-Hydropower-Water-Yield-log-2020-01-15–17_03_48.txt (1.7 KB)
Hi @Fatemeh1 -
When the model gives an error like this about a required coefficient field name, it usually means that the CSV (comma-separated value) table has values that are separated by semicolons, not commas, so it is not reading the field names correctly. InVEST requires that the values are separated by commas, and you can check for this by looking at the table in a text editor (you can’t see it in Excel.) If you’re working in Excel, make sure that you save the table as “CSV (comma delimited)”. Let us know if this helps.
Also I strongly recommend updating to the latest version of invest: https://naturalcapitalproject.stanford.edu/software/invest
Thank you so much !
Yes I checked it in a text editor and edit it and now its running…