Hello, it’s my first time using Invest,
I saved Parameter and data (.tgz file that I upload)
I am trying to run the urban flood risk mitigation model, but whenever I try to run this errors appears:
03/02/2025 17:48:21 pygeoprocessing.geoprocessing ERROR exception encountered in raster_calculator
Traceback (most recent call last):
File “natcap\invest\urban_flood_risk_mitigation.py”, line 892, in _lu_to_cn_op
File “numpy_core\fromnumeric.py”, line 455, in choose
File “numpy_core\fromnumeric.py”, line 57, in _wrapfunc
ValueError: invalid entry in choice array
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “pygeoprocessing\geoprocessing.py”, line 475, in raster_calculator
File “natcap\invest\urban_flood_risk_mitigation.py”, line 899, in _lu_to_cn_op
ValueError: invalid entry in choice array
Check that the Soil Group raster does not contain values other than (1, 2, 3, 4)
03/02/2025 17:48:21 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.
03/02/2025 17:48:21 taskgraph.Task ERROR Something went wrong when adding task create Curve Number raster (1), terminating taskgraph.
Traceback (most recent call last):
File “natcap\invest\urban_flood_risk_mitigation.py”, line 892, in _lu_to_cn_op
File “numpy_core\fromnumeric.py”, line 455, in choose
File “numpy_core\fromnumeric.py”, line 57, in _wrapfunc
ValueError: invalid entry in choice array
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task.py”, line 1093, in _call
File “src\pygeoprocessing\geoprocessing_core.pyx”, line 77, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File “src\pygeoprocessing\geoprocessing_core.pyx”, line 78, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File “pygeoprocessing\geoprocessing.py”, line 475, in raster_calculator
File “natcap\invest\urban_flood_risk_mitigation.py”, line 899, in _lu_to_cn_op
ValueError: invalid entry in choice array
Check that the Soil Group raster does not contain values other than (1, 2, 3, 4)
03/02/2025 17:48:21 natcap.invest.utils ERROR Exception while executing natcap.invest.urban_flood_risk_mitigation
Traceback (most recent call last):
File “natcap\invest\urban_flood_risk_mitigation.py”, line 892, in _lu_to_cn_op
File “numpy_core\fromnumeric.py”, line 455, in choose
File “numpy_core\fromnumeric.py”, line 57, in _wrapfunc
ValueError: invalid entry in choice array
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 186, in prepare_workspace
File “invest\cli.py”, line 472, in main
File “natcap\invest\urban_flood_risk_mitigation.py”, line 325, in execute
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task.py”, line 1093, in _call
File “src\pygeoprocessing\geoprocessing_core.pyx”, line 77, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File “src\pygeoprocessing\geoprocessing_core.pyx”, line 78, in pygeoprocessing.geoprocessing_core.gdal_use_exceptions.wrapper
File “pygeoprocessing\geoprocessing.py”, line 475, in raster_calculator
File “natcap\invest\urban_flood_risk_mitigation.py”, line 899, in _lu_to_cn_op
ValueError: invalid entry in choice array
Check that the Soil Group raster does not contain values other than (1, 2, 3, 4)
03/02/2025 17:48:21 natcap.invest.utils INFO Elapsed time: 0.15s
03/02/2025 17:48:21 natcap.invest.utils INFO Execution finished; version: 3.14.3
Could you help me, please?