Running the NDR module in version 3.14.1 of the InVEST model, the data used can produce normal results in modules like water yield and sediment delivery ratio. In the TIFF files outputted by the NDR module, although images are present, the values are all -1.#IND. Tried to run the model in version 3.11.0, but it encountered an error midway.
In version 3.11, the error message was as follows:
01/17/2024 18:40:52 pygeoprocessing. geoprocessing INFO
01/17/2024 18:40:52 pygeoprocessing. geoprocessing ERROR
started stats_worker
Traceback (most recent call last):
exception encountered in raster_calculator
File “pygeoprocessing \geoprocessing.py”, line 443, in raster_calculator
File “natcap linvest \ndr\ndr. py”, line 956, in _map_load_op
TypeError: can’t multiply sequence by non-int of type ‘numpy.float64’
01/17/2024 18:40:52 pygeoprocessing. geoprocessing INFO
Waiting for raster stats worker result.
01/17/2024 18:40:52 taskgraph. Task
ERROR
Something went wrong when adding task n load (17),
terminating taskgraph.
Traceback (most recent call last):
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task.py”, line 1093, in _call
File “natcap \invest\ndr\ndr.py”, line 964, in _calculate_load
File “pygeoprocessing \geoprocessing. py”, line 443, in raster_calculator
File “natcap linvest \ndr \ndr.py”, line 956, in _map_load_op
TypeError: can’t multiply sequence by non-int of type ‘numpy. float64’
01/17/2024 18:40:52 natcap. invest. utils ERROR
Exception while executing natcap. invest. ndr. ndr
Traceback (most recent cal1 last):
File “natcap \investlutils. py”, line 165, in prepare_workspace
File “natcap\invest\cli.py”, line 486, in main
File “natcap \invest \ndr\ndr. py”, line 544, in execute
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task. py”, line 1093, in _call
File “natcap \invest\ndr\ndr.py”, line 964, in _calculate _load
File “pygeoprocessing \geoprocessing. py”, line 443, in raster_calculator
File “natcap linvest \ndr\ndr.py”, line 956, in _map_load_op
TypeError: can’t multiply sequence by non-int of type ‘numpy. float64’
01/17/2024 18:40:52
natcap. invest.utils INFO
Elapsed time: 12m 49.549999999999955s
01/17/2024 18:40:52
natcap.invest.utils INFO
Execution finished
InVEST-natcap.invest.ndr.ndr-log-2024-01-16–09_53_05.txt (28.5 KB)