TypeError: can't multiply sequence by non-int of type 'str'

Hi, I am running the Coastal Vulnerability model. All data input file are in the proper type but when I run the model I have the following error:
Something went wrong when adding task calculate wind exposure (4), terminating taskgraph.

TypeError: can’t multiply sequence by non-int of type ‘str’
Maybe it’s a problem related to WaveWatch file, but I don’t know how to resolve it.

I used the User’s Guide and the global data to get direction for create this new file of WaveWatch data.
I upload the log file of the last run I did:
InVEST-natcap.invest.coastal_vulnerability-log-2023-06-12–18_50_21.txt (5.5 KB)

It looks like this error is happening because some values read from your WaveWatch vector file (REI_PCT and/or REI_V) are strings, not numbers. You probably need to change the data type for these columns in your vector attribute table.

Thanks for the reply,
I try to change the data type of REI_PCT and REIV to all directions (0,22, 45,67,ecc) in the section fields calculator through the function ‘to_real’ that convert values from string to real number.
However, the error still exist.
You konw another way to change the data type of attribute table values?

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