Urban Flood Risk Mitigation: KeyError: 'cn_a'

Hello guys,

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.

can you help me? Thanks

InVEST-natcap.invest.urban_flood_risk_mitigation-log-2022-07-13–21_24_51.txt (2.2 KB)
Input_data.zip (117.1 KB)

Hi @GeanGonzaga ,

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!


Thank you my friend. I did as you said and it worked.

1 Like

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