Habitat Quality Model: IndexError: index 16 is out of bounds for axis 0 with size 16

Hi, what does this error mean and how do i fix it? attached is the full log text of the model run. I did not see any such error while running this model to read previous threads. New to these stuffs so no idea whats going on.

InVEST-Habitat-Quality-log-2020-03-03–23_04_12.txt (6.8 KB)

Hi @JackR -

Sorry, this error isn’t very user-friendly. But it might mean that there is a problem mapping the sensitivity table values to your land use raster. It looks like you’re giving the model NLCD land cover, but possibly mixing that with the InVEST sample data tables, which are not based on the NLCD.

All of the land use codes that are in the NLCD land cover raster must have a row in the sensitivity table. If one of the land use codes that are in the LULC raster are not present in the sensitivity table, the model will give an error, possibly like this one (or a KeyError.) So check for that and let us know if that helps.

~ Stacie