Coastal Vulenerability - Geomorhpology exposure calculation error


After a couple of successful test runs I chose a broader AOI (in the same area) but the model did not finish due the following error:

ERROR Something went wrong when adding task calculate geomorphology exposure (11), terminating taskgraph.

Traceback (most recent call last):

File “taskgraph\”, line 674, in add_task

File “taskgraph\”, line 1093, in _call

File “natcap\invest\”, line 2701, in calculate_geomorphology_exposure TypeError: unsupported operand type(s) for +: ‘int’ and ‘NoneType’

Any suggestions on that?

It seems that in coding this may have to do with an operand or an object that is None (probably resulting an IF test) when something else should be expected. Is this relevant and how it can be fixed from the InVEST user position?

Thank you in advance

Hi @byron , Is it possible that the RANK column of your geomorphology vector contains any missing values? It should only contain integer values from 1 to 5 and the model may not be resilient to a missing value.

Please be sure to always upload the logfile from your run, it has useful info that can help us debug.

Thank you,

Hi Dave,

Sorry for leaving out the log file.
You are very right, the missing values were the problem. Thank you for your help!

All the best

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