Crop Pollination Something went wrong when adding task reclassify_to_substrate_cavity

What is the issue or question you have?

What do you expect to happen?

What have you tried so far?

Attach the logfile here:

Hello everyone I am using the Crop Pollination model and I have some difficulties run a model whit my information.

03/20/2023 11:27:33 natcap.invest.utils Level 100 Writing log messages to [D:\invest\tesis1\InVEST-natcap.invest.pollination-log-2023-03-20–11_27_33.txt]
03/20/2023 11:27:33 main Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.pollination 3.12.1:
farm_vector_path D:\invest\tesis1\farm_results.shp
guild_table_path D:\invest\tesis1\guild_table.csv
landcover_biophysical_table_path D:\invest\tesis\landcover_biophysical_table_modelo.csv
landcover_raster_path D:\invest\tesis\cober.tif
n_workers -1
results_suffix
workspace_dir D:\invest\tesis1

03/20/2023 11:27:33 natcap.invest.pollination INFO Checking to make sure guild table has all expected headers
03/20/2023 11:27:33 natcap.invest.pollination INFO Checking that farm polygon has expected headers
03/20/2023 11:27:34 pygeoprocessing.geoprocessing INFO starting stats_worker
03/20/2023 11:27:34 pygeoprocessing.geoprocessing INFO started stats_worker <Thread(Thread-1 (stats_worker), started daemon 25632)>
03/20/2023 11:27:34 pygeoprocessing.geoprocessing ERROR exception encountered in raster_calculator
Traceback (most recent call last):
File “pygeoprocessing\geoprocessing.py”, line 443, in raster_calculator
File “pygeoprocessing\geoprocessing.py”, line 1937, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 10 raster values [11 22 23 31 41 42 52 71 90 95] from “D:\invest\tesis\cober.tif” do not have corresponding entries in the value map: {1: 1.0, 4: 0.6, 5: 0.6, 12: 0.9, 21: 0.4, 24: 0.3, 27: 0.2, 28: 0.4, 29: 1.0, 36: 0.6, 37: 0.6, 39: 0.9, 43: 0.4, 44: 0.3, 47: 0.2, 53: 0.4, 58: 1.0, 59: 0.6, 61: 0.6, 68: 0.9, 70: 0.4, 111: 0.3, 121: 0.2, 122: 0.4, 123: 1.0, 124: 0.6, 131: 0.6, 141: 0.9, 142: 0.4, 143: 0.3, 152: 0.2, 176: 0.4, 190: 0.4, 195: 0.3, 214: 0.2, 242: 0.4}.
03/20/2023 11:27:34 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.
03/20/2023 11:27:34 pygeoprocessing.geoprocessing_core WARNING No valid pixels were received, sending None.
03/20/2023 11:27:34 taskgraph.Task ERROR Something went wrong when adding task reclassify_to_substrate_cavity (1), terminating taskgraph.
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 955, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 1944, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 443, in raster_calculator
File “pygeoprocessing\geoprocessing.py”, line 1937, in _map_dataset_to_value_op

Hi @Henryp -

This type of error has been discussed many times in this forum. Please do a Search and check out some of those posts, see if they help you and let us know.

~ Stacie

1 Like

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