# Urban Cooling: TypeError: Need to pass bool-like values

**URL:** <https://community.naturalcapitalalliance.org/t/urban-cooling-typeerror-need-to-pass-bool-like-values/4218>\
**Category:** Software Support\
**Tags:** urban-cooling\
**Created:** [November 6, 2023, 1:52pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-typeerror-need-to-pass-bool-like-values/4218 "2023-11-06T13:52:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prime0120](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@prime0120](https://community.naturalcapitalalliance.org/u/prime0120)\
**Post date:** [November 6, 2023, 1:52pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-typeerror-need-to-pass-bool-like-values/4218/1 "2023-11-06T13:52:06Z")

</div>

### What is the issue or question you have?

I tried to run the urban cooling mode. It isn’t work.  
Looking the sample file, I prepared the sample file, as it provided.  
Please look at the logfile to fix the problem.

### Attach the logfile here:

[InVEST-natcap.invest.urban\_cooling\_model-log-2023-11-06–17\_26\_21.txt](https://community.naturalcapitalalliance.org/uploads/short-url/vS0SE1SkDVFHh2Pv4ygBA26cSJ3.txt) (2.5 KB)

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 6, 2023, 4:51pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-typeerror-need-to-pass-bool-like-values/4218/2 "2023-11-06T16:51:58Z")

</div>

Hello @prime0120 and welcome to the forums!

I have not seen this error before, but it appears to be an issue with the biophysical table. Would you please attach your biophysical table so we can take a look?

Thank you,  
James

---

<div class="post-metadata">

**Author:** ![prime0120](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@prime0120](https://community.naturalcapitalalliance.org/u/prime0120)\
**Post date:** [November 7, 2023, 12:38am UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-typeerror-need-to-pass-bool-like-values/4218/3 "2023-11-07T00:38:32Z")

</div>

Thank you so much for your help!  
I attached the biophysical table. LUCODE was matched with the raster LULC file.  
[biophysical\_table3.csv](https://community.naturalcapitalalliance.org/uploads/short-url/bozlIJr8LQwtXIGKXlS52cFm7eY.csv) (1.8 KB)  
[LU\_raster3.tif](https://community.naturalcapitalalliance.org/uploads/short-url/z4OpTyAiC0ZmXu0kSt0J2dkpRAZ.tif) (145.6 KB)

Thank you

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [November 7, 2023, 8:35pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-typeerror-need-to-pass-bool-like-values/4218/5 "2023-11-07T20:35:42Z")

</div>

Thanks for including your biophysical table @prime0120 !

The issue here is that the values in the `green_area` column must be either 1 or 0, they can’t be anything in between. In your table, the classes for land use codes 28, 31 and 33 all have a `green_area` value of `0.3`, which is causing this error. If you convert those to either `0` or `1`, the model will continue executing.

Hope this helps,  
James

---

<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:** [November 30, 2023, 2:07pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-typeerror-need-to-pass-bool-like-values/4218/6 "2023-11-30T14:07:54Z")

</div>

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