NDR Error - Multiple InVEST versions

Hi - I’m trying to run the NDR and have all of the datasets preprocessed to match the InVEST example datasets. However there is still an error that comes up no matter what modifications I make to the underlying datasets - KeyError encountered: 128

I looked through other posts and it looks like this might be an error with a land use code that doesn’t match between the LULC dataset and the biophysical table. I’ve checked this multiple ways and can’t find that mismatch.

Overall the model seems to run well at the beginning (aligns rasters, begins to process) but then breaks down when adding the n-load. LOG FILE ATTACHED HERE.

Any guidance is appreciated - thanks in advance for your help!

InVEST-Nutrient-Delivery-Ratio-Model-(NDR)-log-2019-06-26–11_04_30.txt (12.3 KB)

Hi @b.rosenberg_ERG -

Does 128 happen to be the NoData value of your land use raster? If so, try adding that value to the biophysical table and give values of 0 for the coefficients, see if it helps and let us know.

~ Stacie

That was the issue! I had an NoData value in the table but it wasn’t correct. Thanks for the help!

Glad it helped. You really shouldn’t need to do that, I think it’s something that the software team has been trying to fix.

~ Stacie