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

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 (2.5 KB)

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

Thank you so much for your help!
I attached the biophysical table. LUCODE was matched with the raster LULC file.
biophysical_table3.csv (1.8 KB)
LU_raster3.tif (145.6 KB)

Thank you

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

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