How can I stop my map algebra being limited to the size of my smallest raster?

المشرف العام

Administrator
طاقم الإدارة
I have five input rasters and I'm using map algebra to find areas where all of them have a value over 75, areas where all of them are over 25, and areas where one or more are under 25. I can do this with:

Con((Raster("RISK-CH.tif") > 74.9) & (Raster("RISK-MI.tif") > 74.9) & (Raster("RISK-RE.tif") > 74.9) & (Raster("RISK-SE.tif") > 74.9) & (Raster("RISK-SO.tif") > 74.9), 100, Con((Raster("RISK-CH.tif") > 24.9) & (Raster("RISK-MI.tif") > 24.9) & (Raster("RISK-RE.tif") > 24.9) & (Raster("RISK-SE.tif") > 24.9) & (Raster("RISK-SO.tif") > 24.9), 50, 0))The problem is that all of my rasters are slightly different shapes and sizes, and some have small holes, but I dont want to completely discount areas with no data. The output is the size of the smallest input. I won't allow them to make the highest category, but if all the available datasets are above 25 I want the cell to still make my middle category.

I've tried using

((Raster("RISK-CH.tif") > 74.9) | IsNull(Raster("RISK-CH")))

but that gives me the exact same output, I've tried

((Raster("RISK-CH.tif") > 74.9) | (Raster("RISK-CH.tif") IS nodata))and

((Raster("RISK-CH.tif") > 74.9) | (Raster("RISK-CH.tif") = NODATA))but both of these throw errors.

Is the issue to do with my boolean logic, or can a raster calculator output not be larger than the smallest inputs?



أكثر...
 
أعلى