I’m trying to run Urban Flood Risk Mitigation to use it for my master’s thesis. However, I’m new to InVEST tools and I’m not able to get around this error (KeyError: ‘cn_a’). By the naming, I believe it is some slip in the biophysical table. I have already used two different nominations for the Curve Number column, namely: “cn_c” and “cn_3” in order to represent the Hydrological Group C of soils.
You’re exactly right, this looks to be a formatting issue in your biophysical table. As mentioned in the user’s guide, you’ll need to add these columns: “cn_a”, “cn_b”, “cn_c”, and “cn_d”. The “lucode” column that you have in the table is also needed, so be sure to keep that there.
Hope this helps, and let us know if you have any other questions!
James