# Urban cooling error

**URL:** <https://community.naturalcapitalalliance.org/t/urban-cooling-error/3445>\
**Category:** Software Support\
**Created:** [February 22, 2023, 8:35am UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-error/3445 "2023-02-22T08:35:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosd](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@cosd](https://community.naturalcapitalalliance.org/u/cosd)\
**Post date:** [February 22, 2023, 8:35am UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-error/3445/1 "2023-02-22T08:35:57Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)\
**Post date:** [February 22, 2023, 3:33pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-error/3445/2 "2023-02-22T15:33:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/8/8d95591aa074da87ea0fdd61ca47c1c3c0588aa7.png) [@system](https://community.naturalcapitalalliance.org/u/system)\
**Post date:** [May 23, 2023, 3:34pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-error/3445/3 "2023-05-23T15:34:47Z")

</div>

Closed on May 23, 2023, 3:34pm UTC

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