I have a couple of rasters that show % of success in different things. I want to calculate the overall probability of success. The numerical values are integers so they represent the percentage. This means that my calulation should be:
newRaster = (Raster("t35_sealrisk2")/100) * (Raster("t34_res_risk4")/100) The problem is that this produces only 0 or 1. I have also tried outputting one of the rasters divided by 100 and it is also 0 or 100. It seems that at no stage in the calculation does it handle the numbers as franctions - if I multiply everything by 100 I still only get 0 and 100.
If this a problem with map algebra that it cannot handle fractions, or is it because my inputs are integers it will consider everything as an integer?
أكثر...
newRaster = (Raster("t35_sealrisk2")/100) * (Raster("t34_res_risk4")/100) The problem is that this produces only 0 or 1. I have also tried outputting one of the rasters divided by 100 and it is also 0 or 100. It seems that at no stage in the calculation does it handle the numbers as franctions - if I multiply everything by 100 I still only get 0 and 100.
If this a problem with map algebra that it cannot handle fractions, or is it because my inputs are integers it will consider everything as an integer?
أكثر...