Hi!
I am running a seasonal water yield model and persistently get this error. I looked into other solutions and made sure that all of the NoData areas had a defined value, that the data is all set to the same projection and overlaps correctly, and that the soil type raster only contains 1,2,3,4.
Any help is greatly appreciated, so I have attached the files used in a google drive link.
https://drive.google.com/drive/folders/1r5DwBLGaUPhukgLLd_on2yR4jhVYCcsr?usp=sharing
2022-03-28 15:21:19,342 (pygeoprocessing.geoprocessing_core) threading.run(870) WARNING No valid pixels were received, sending None.
2022-03-28 15:21:19,343 (taskgraph.Task) Task.add_task(706) ERROR Something went wrong when adding task calculate curve number (14), 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\seasonal_water_yield\seasonal_water_yield.py”, line 1072, in _calculate_curve_number_raster
File “pygeoprocessing\geoprocessing.py”, line 443, in raster_calculator
File “natcap\invest\seasonal_water_yield\seasonal_water_yield.py”, line 1064, in cn_op
KeyError: 0