Urban cooling error

What is the issue or question you have?

What do you expect to happen?

What have you tried so far?

Attach the logfile here:02/22/2023 17:30:31 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 1886, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from “D:\intermediate\lulc.tif” do not have corresponding entries in the value map: {111: 0.5, 112: 0.5, 121: 0.3, 131: 0.3, 132: 0.3, 141: 0.3, 151: 0.2, 152: 0.2, 153: 0.2, 154: 0.2, 155: 0.2, 161: 0.3, 162: 0.3, 163: 0.3, 211: 0.65, 212: 0.65, 221: 0.65, 222: 0.65, 231: 0.7, 241: 0.7, 251: 0.85, 252: 0.85, 311: 1.0, 312: 1.0, 331: 1.0, 411: 0.65, 421: 0.65, 422: 0.65, 423: 0.65, 511: 1.0, 521: 1.0, 522: 1.0, 611: 0.2, 612: 0.2, 613: 0.2, 621: 0.2, 622: 0.2, 623: 0.2, 711: 1.0, 712: 1.0, 721: 1.0, 990: 0.0}.
02/22/2023 17:30:31 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.
02/22/2023 17:30:31 pygeoprocessing.geoprocessing_core WARNING No valid pixels were received, sending None.
02/22/2023 17:30:31 taskgraph.Task ERROR Something went wrong when adding task reclassify to kc (1), terminating taskgraph.
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 919, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 1893, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 443, in raster_calculator
File “pygeoprocessing\geoprocessing.py”, line 1886, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from “D:\intermediate\lulc.tif” do not have corresponding entries in the value map: {111: 0.5, 112: 0.5, 121: 0.3, 131: 0.3, 132: 0.3, 141: 0.3, 151: 0.2, 152: 0.2, 153: 0.2, 154: 0.2, 155: 0.2, 161: 0.3, 162: 0.3, 163: 0.3, 211: 0.65, 212: 0.65, 221: 0.65, 222: 0.65, 231: 0.7, 241: 0.7, 251: 0.85, 252: 0.85, 311: 1.0, 312: 1.0, 331: 1.0, 411: 0.65, 421: 0.65, 422: 0.65, 423: 0.65, 511: 1.0, 521: 1.0, 522: 1.0, 611: 0.2, 612: 0.2, 613: 0.2, 621: 0.2, 622: 0.2, 623: 0.2, 711: 1.0, 712: 1.0, 721: 1.0, 990: 0.0}.

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 “natcap\invest\utils.py”, line 929, in reclassify_raster
ValueError: Values in the LULC raster were found that are not represented under the ‘lucode’ column of the Biophysical table. The missing values found in the LULC raster but not the table are: [0].
02/22/2023 17:30:31 natcap.invest.utils ERROR Exception while executing natcap.invest.urban_cooling_model
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 919, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 1893, in reclassify_raster
File “pygeoprocessing\geoprocessing.py”, line 443, in raster_calculator
File “pygeoprocessing\geoprocessing.py”, line 1886, in _map_dataset_to_value_op
pygeoprocessing.geoprocessing.ReclassificationMissingValuesError: The following 1 raster values [0] from “D:\intermediate\lulc.tif” do not have corresponding entries in the value map: {111: 0.5, 112: 0.5, 121: 0.3, 131: 0.3, 132: 0.3, 141: 0.3, 151: 0.2, 152: 0.2, 153: 0.2, 154: 0.2, 155: 0.2, 161: 0.3, 162: 0.3, 163: 0.3, 211: 0.65, 212: 0.65, 221: 0.65, 222: 0.65, 231: 0.7, 241: 0.7, 251: 0.85, 252: 0.85, 311: 1.0, 312: 1.0, 331: 1.0, 411: 0.65, 421: 0.65, 422: 0.65, 423: 0.65, 511: 1.0, 521: 1.0, 522: 1.0, 611: 0.2, 612: 0.2, 613: 0.2, 621: 0.2, 622: 0.2, 623: 0.2, 711: 1.0, 712: 1.0, 721: 1.0, 990: 0.0}.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “natcap\invest\utils.py”, line 164, in prepare_workspace
File “invest\cli.py”, line 486, in main
File “natcap\invest\urban_cooling_model.py”, line 405, in execute
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task.py”, line 1093, in _call
File “natcap\invest\utils.py”, line 929, in reclassify_raster
ValueError: Values in the LULC raster were found that are not represented under the ‘lucode’ column of the Biophysical table. The missing values found in the LULC raster but not the table are: [0].
02/22/2023 17:30:31 natcap.invest.utils INFO Elapsed time: 1.35s
02/22/2023 17:30:31 natcap.invest.utils INFO Execution finished

Welcome to the forum @cosd! -

The error that you’re getting has been discussed many times on this forum. Please use the Search function and see if any of the previous advice helps solve the error. If it doesn’t solve the problem, please let us know what you tried. Thanks.

~ Stacie

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