Dear all, I have a problem when I trying to run the model. An error occurs which says; ValueError: (‘Threat rasters should have values between 0 and 1, however,Threat: paddy_c.tif for column: cur_path’, ’ had values outside of this range.’) following the picture below
Could you please give me an explanation of why they’re showing like this?
Ps. I am attaching my data for your consideration. 3.zip (853.5 KB)
Thanks for your attention. I’m looking forward to your reply.
Hi @wanny , thanks for sharing your data. As the error message suggests, threat rasters must only contain values between 0 and 1. The paddy_c.tif raster you shared contains values between 2 and 36.
Actually, all your threat rasters look identical. They appear to be a landuse map with categories from 2 - 36. Probably this landuse map can be the basis for all your threat rasters, but you will need to do some processing to convert this to a raster of only 0s and 1s, where 1 represents the presence of the threat (for example, “paddy”) and 0 represents everything that is not “paddy”. And repeat this for each of your threats.